Skip to content

Commit

Permalink
Merge branch 'master' into junyi/cordova-err-propagation-merge
Browse files Browse the repository at this point in the history
  • Loading branch information
jyyi1 committed Aug 14, 2024
2 parents bdb353c + d5626e7 commit 0b7564a
Show file tree
Hide file tree
Showing 15 changed files with 10 additions and 895 deletions.
12 changes: 0 additions & 12 deletions client/src/cordova/apple/OutlineAppleLib/Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -37,24 +37,12 @@ let package = Package(
name: "OutlineTunnel",
targets: ["OutlineTunnel"]
),
.library(
name: "OutlineLauncher",
targets: ["OutlineLauncher"]
),
],
dependencies: [
.package(url: "https://github.com/CocoaLumberjack/CocoaLumberjack.git", from: "3.8.5"),
.package(url: "https://github.com/getsentry/sentry-cocoa", from: "8.26.0"),
],
targets: [
.target(
name: "OutlineLauncher",
dependencies: [
"CocoaLumberjack",
.product(name: "CocoaLumberjackSwift", package: "CocoaLumberjack"),
"OutlineCatalystApp",
]
),
.target(
name: "OutlineCatalystApp",
dependencies: [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,6 @@
{ _ in
appKitController._AppKitBridge_setConnectionStatus(.disconnected)
}

// Enable app launcher to start on boot.
appKitController._AppKitBridge_setAppLauncherEnabled(true)
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,5 @@ public enum ConnectionStatus: Int {
public extension NSObject {
@objc func _AppKitBridge_terminate() {}
@objc func _AppKitBridge_setConnectionStatus(_: ConnectionStatus) {}
@objc func _AppKitBridge_setAppLauncherEnabled(_: Bool) {}
@objc func _AppKitBridge_loadMainApp(_: String) {}
}

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -131,23 +131,6 @@ public class OutlineVpn: NSObject {
return nil
}

/** Starts the last successful VPN tunnel. */
@objc public func startLastSuccessfulTunnel(_ completion: @escaping (Callback)) {
Task {
guard let manager = await getTunnelManager() else {
DDLogDebug("Tunnel manager not setup")
completion("Failed to get TunnelManager")
return
}
do {
try manager.connection.startVPNTunnel()
completion(nil)
} catch {
completion("Failed to start VPN")
}
}
}

/** Tears down the VPN if the tunnel with id |tunnelId| is active. */
public func stop(_ tunnelId: String) async {
guard let manager = await getTunnelManager(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,6 @@ final class OutlineTunnelTest: XCTestCase {

static let kAppGroup = "outline.spm.tests"

// Example test
func testTunnelStoreDoesNotLoadBeforeSetup() throws {
let tunnelStore = OutlineTunnelStore(appGroup: OutlineTunnelTest.kAppGroup)
XCTAssertNil(tunnelStore.load())
}

func testSelectVpnAddress() {
XCTAssertEqual("10.111.222.0", selectVpnAddress(interfaceAddresses:["172.16.9.2", "192.168.20.2", "169.254.19.1"]))
XCTAssertEqual("172.16.9.1", selectVpnAddress(interfaceAddresses:["10.111.222.1", "192.168.20.2", "169.254.19.1"]))
Expand Down
Loading

0 comments on commit 0b7564a

Please sign in to comment.