Skip to content

Commit

Permalink
Updated IPtProxy, IPtProxyUI and Tor.framework dependency.
Browse files Browse the repository at this point in the history
  • Loading branch information
tladesignz committed Jul 6, 2023
1 parent d6a5441 commit 9f91250
Show file tree
Hide file tree
Showing 5 changed files with 32 additions and 50 deletions.
6 changes: 3 additions & 3 deletions Orbot/BridgesViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import UIKit
import Eureka
import IPtProxyUI
import MessageUI
import MBProgressHUD
import ProgressHUD

class BridgesViewController: BaseFormViewController, BridgesConfDelegate, MFMailComposeViewControllerDelegate {

Expand Down Expand Up @@ -214,15 +214,15 @@ class BridgesViewController: BaseFormViewController, BridgesConfDelegate, MFMail
return
}

MBProgressHUD.showAdded(to: self.view, animated: true)
ProgressHUD.show()

AutoConf(self).do(cannotConnectWithoutPt: true) { [weak self] error in
guard let self = self else {
return
}

DispatchQueue.main.async {
MBProgressHUD.hide(for: self.view, animated: true)
ProgressHUD.dismiss()

if let error = error {
AlertHelper.present(self, message: error.localizedDescription)
Expand Down
14 changes: 7 additions & 7 deletions Orbot/CaptchaViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

import UIKit
import IPtProxyUI
import MBProgressHUD
import ProgressHUD

class CaptchaViewController: UIViewController {

Expand Down Expand Up @@ -76,15 +76,15 @@ class CaptchaViewController: UIViewController {
@IBAction
func save() {
dismissKeyboard()
let hud = MBProgressHUD.showAdded(to: view, animated: true)
ProgressHUD.show()

MoatViewController.requestBridges(delegate, challenge, solutionTf.text) { [weak self] bridges, error in
MoatViewControllerHelper.requestBridges(delegate, challenge, solutionTf.text) { [weak self] bridges, error in
DispatchQueue.main.async {
guard let self = self else {
return
}

hud.hide(animated: true)
ProgressHUD.dismiss()

if let error = error {
AlertHelper.present(self, message: error.localizedDescription)
Expand All @@ -109,15 +109,15 @@ class CaptchaViewController: UIViewController {
func fetchCaptcha(_ sender: Any?) {
refreshBt.isEnabled = false
saveBt.isEnabled = false
let hud = MBProgressHUD.showAdded(to: view, animated: true)
ProgressHUD.show()

MoatViewController.fetchCaptcha(delegate) { [weak self] challenge, captcha, error in
MoatViewControllerHelper.fetchCaptcha(delegate) { [weak self] challenge, captcha, error in
DispatchQueue.main.async {
guard let self = self else {
return
}

hud.hide(animated: true)
ProgressHUD.dismiss()
self.refreshBt.isEnabled = true
self.solutionDidChange()

Expand Down
18 changes: 5 additions & 13 deletions Orbot/MainViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
import UIKit
import Tor
import IPtProxyUI
import MBProgressHUD
import ProgressHUD
import NetworkExtension

class MainViewController: UIViewController {
Expand Down Expand Up @@ -175,37 +175,29 @@ class MainViewController: UIViewController {
}

@IBAction func refresh(_ sender: UIButton? = nil) {
let hud = MBProgressHUD.showAdded(to: view, animated: true)
hud.mode = .determinate
hud.progress = 0
hud.label.text = L10n.newCircuits
ProgressHUD.showProgress(L10n.newCircuits, 0)

let showError = { (error: Error) in
hud.progress = 1
hud.label.text = IPtProxyUI.L10n.error
hud.detailsLabel.text = error.localizedDescription
hud.hide(animated: true, afterDelay: 3)
ProgressHUD.showError(error.localizedDescription, delay: 3)
}

VpnManager.shared.getCircuits { [weak self] circuits, error in
if let error = error {
return showError(error)
}

hud.progress = 0.5
ProgressHUD.showProgress(0.5)

VpnManager.shared.closeCircuits(circuits) { success, error in
if let error = error {
return showError(error)
}

hud.progress = 1
ProgressHUD.showSucceed()

if self?.logContainer.isHidden == false && self?.logSc.selectedSegmentIndex == 1 {
self?.changeLog()
}

hud.hide(animated: true, afterDelay: 0.5)
}
}
}
Expand Down
5 changes: 2 additions & 3 deletions Podfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,8 @@ def tor
end

def iptproxy
pod 'ReachabilitySwift', :git => 'https://github.com/tladesignz/Reachability.swift'

pod 'IPtProxyUI/AppEx',
'~> 2.1'
'~> 3.0.1'
# :git => 'https://github.com/tladesignz/IPtProxyUI-ios'
# :path => '../IPtProxyUI-ios'
end
Expand All @@ -24,6 +22,7 @@ target 'Orbot' do
iptproxy

pod 'Eureka', '~> 5.3'
pod 'ProgressHUD', '~> 13.6'
end

target 'Orbot Mac' do
Expand Down
39 changes: 15 additions & 24 deletions Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -5,26 +5,23 @@ PODS:
- GCDWebServerExtension/Core (3.5.4)
- ImageRow (4.1.0):
- Eureka (~> 5.3.5)
- IPtProxy (2.0.0)
- IPtProxyUI/AppEx (2.1.1):
- IPtProxy (3.1.1)
- IPtProxyUI/AppEx (3.0.1):
- Eureka (~> 5.3)
- ImageRow (~> 4.0)
- IPtProxy (~> 2.0.0)
- MBProgressHUD (~> 1.2)
- ReachabilitySwift (~> 5.0)
- MBProgressHUD (1.2.0)
- ReachabilitySwift (5.0.0)
- Tor/Core (407.13.1)
- Tor/CTor (407.13.1):
- IPtProxy (~> 3.1.1)
- ProgressHUD (13.6.2)
- Tor/Core (407.13.2)
- Tor/CTor (407.13.2):
- Tor/Core
- Tor/GeoIP (407.13.1):
- Tor/GeoIP (407.13.2):
- Tor/CTor

DEPENDENCIES:
- Eureka (~> 5.3)
- GCDWebServerExtension (from `https://github.com/tladesignz/GCDWebServer.git`)
- IPtProxyUI/AppEx (~> 2.1)
- ReachabilitySwift (from `https://github.com/tladesignz/Reachability.swift`)
- IPtProxyUI/AppEx (~> 3.0.1)
- ProgressHUD (~> 13.6)
- Tor/GeoIP (~> 407.13)

SPEC REPOS:
Expand All @@ -33,33 +30,27 @@ SPEC REPOS:
- ImageRow
- IPtProxy
- IPtProxyUI
- MBProgressHUD
- ProgressHUD
- Tor

EXTERNAL SOURCES:
GCDWebServerExtension:
:git: https://github.com/tladesignz/GCDWebServer.git
ReachabilitySwift:
:git: https://github.com/tladesignz/Reachability.swift

CHECKOUT OPTIONS:
GCDWebServerExtension:
:commit: 250ccc860abfcceb30c3c9b546b225a8293ad3dd
:git: https://github.com/tladesignz/GCDWebServer.git
ReachabilitySwift:
:commit: 277210cb6c9d1e2ded24c0729fcb77dd62e1e30c
:git: https://github.com/tladesignz/Reachability.swift

SPEC CHECKSUMS:
Eureka: 28ad9dec6286cd7cd601fdf8e8df39bb7356a8f4
GCDWebServerExtension: dd9ca142fd4063d0ffc0944f716646be3c5689b1
ImageRow: 880c0f052c5a89c80521b485c86ccf723a124e99
IPtProxy: d33e998c68686b1e706612c310d246187c06c907
IPtProxyUI: 95e83b717f89a682a601b4f244c40393ecf29c08
MBProgressHUD: 3ee5efcc380f6a79a7cc9b363dd669c5e1ae7406
ReachabilitySwift: 639a14aabcad9d368f9bb0e29903840de36c90d9
Tor: 1664d036a03ea9bd6851b76ce09550872c54ca98
IPtProxy: 264799227d5d83a4a583e66bd4ea846510554025
IPtProxyUI: a52edf104d5f4e42b111d07dd7d0f682c321347c
ProgressHUD: 355915c8f033e626788fa9b0d99d06e8691595ab
Tor: 7bfe99b1c4a250ca0de56a4873fced120a3b417a

PODFILE CHECKSUM: 7773b896f5b370d8d902692e5798c30fb3c7541c
PODFILE CHECKSUM: ccdcaa23466380b895af276ec540e3631b22f23e

COCOAPODS: 1.12.1

0 comments on commit 9f91250

Please sign in to comment.