XCode: use old network extension ID

This commit is contained in:
Jason A. Donenfeld 2018-11-04 04:16:13 +01:00
parent ab14c0070c
commit 54cfa3dba3
4 changed files with 4 additions and 13 deletions

View File

@ -564,7 +564,7 @@
); );
MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE; MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE;
MTL_FAST_MATH = YES; MTL_FAST_MATH = YES;
PRODUCT_BUNDLE_IDENTIFIER = "$(APP_ID).WireGuardNetworkExtension"; PRODUCT_BUNDLE_IDENTIFIER = "$(APP_ID).network-extension";
PRODUCT_NAME = "$(TARGET_NAME)"; PRODUCT_NAME = "$(TARGET_NAME)";
SKIP_INSTALL = YES; SKIP_INSTALL = YES;
SWIFT_OBJC_BRIDGING_HEADER = "WireGuardNetworkExtension/WireGuardNetworkExtension-Bridging-Header.h"; SWIFT_OBJC_BRIDGING_HEADER = "WireGuardNetworkExtension/WireGuardNetworkExtension-Bridging-Header.h";
@ -586,7 +586,7 @@
"@executable_path/../../Frameworks", "@executable_path/../../Frameworks",
); );
MTL_FAST_MATH = YES; MTL_FAST_MATH = YES;
PRODUCT_BUNDLE_IDENTIFIER = "$(APP_ID).WireGuardNetworkExtension"; PRODUCT_BUNDLE_IDENTIFIER = "$(APP_ID).network-extension";
PRODUCT_NAME = "$(TARGET_NAME)"; PRODUCT_NAME = "$(TARGET_NAME)";
SKIP_INSTALL = YES; SKIP_INSTALL = YES;
SWIFT_OBJC_BRIDGING_HEADER = "WireGuardNetworkExtension/WireGuardNetworkExtension-Bridging-Header.h"; SWIFT_OBJC_BRIDGING_HEADER = "WireGuardNetworkExtension/WireGuardNetworkExtension-Bridging-Header.h";

View File

@ -1,2 +1,2 @@
VERSION_NAME = 0.0.20181103 VERSION_NAME = 0.0.20181104
VERSION_ID = 1 VERSION_ID = 1

View File

@ -216,7 +216,7 @@ extension NETunnelProviderProtocol {
let appId = Bundle.main.bundleIdentifier! let appId = Bundle.main.bundleIdentifier!
let firstValidEndpoint = tunnelConfiguration.peers.first(where: { $0.endpoint != nil })?.endpoint let firstValidEndpoint = tunnelConfiguration.peers.first(where: { $0.endpoint != nil })?.endpoint
providerBundleIdentifier = "\(appId).WireGuardNetworkExtension" providerBundleIdentifier = "\(appId).network-extension"
providerConfiguration = [ providerConfiguration = [
"tunnelConfiguration": serializedTunnelConfiguration, "tunnelConfiguration": serializedTunnelConfiguration,
"tunnelConfigurationVersion": 1 "tunnelConfigurationVersion": 1

View File

@ -1,9 +0,0 @@
//
// Copyright © 2018 WireGuard LLC. All Rights Reserved.
//
import os.log
struct Log {
static var general = OSLog(subsystem: "com.wireguard.ios.network-extension", category: "general")
}