Commit 8f8b274a authored by joy's avatar joy
Browse files

save

parent 8340e425
Showing with 1041 additions and 379 deletions
+1041 -379
This diff is collapsed.
......@@ -7,6 +7,7 @@
<key>com.apple.developer.networking.networkextension</key>
<array>
<string>app-proxy-provider</string>
<string>content-filter-provider</string>
<string>packet-tunnel-provider</string>
</array>
<key>com.apple.developer.networking.vpn.api</key>
......
// !$*UTF8*$!
{
archiveVersion = 1;
classes = {
};
objectVersion = 50;
objects = {
/* Begin PBXBuildFile section */
A8E7FD0E213FD5FE00A3CE9B /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = A8E7FD0D213FD5FE00A3CE9B /* AppDelegate.swift */; };
A8E7FD10213FD5FE00A3CE9B /* ViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = A8E7FD0F213FD5FE00A3CE9B /* ViewController.swift */; };
A8E7FD13213FD5FE00A3CE9B /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = A8E7FD11213FD5FE00A3CE9B /* Main.storyboard */; };
A8E7FD15213FD5FF00A3CE9B /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = A8E7FD14213FD5FF00A3CE9B /* Assets.xcassets */; };
A8E7FD18213FD5FF00A3CE9B /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = A8E7FD16213FD5FF00A3CE9B /* LaunchScreen.storyboard */; };
A8E7FD21213FD61600A3CE9B /* NetworkExtension.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = A8E7FD20213FD61600A3CE9B /* NetworkExtension.framework */; };
/* End PBXBuildFile section */
/* Begin PBXFileReference section */
A8E7FD0A213FD5FE00A3CE9B /* vpn.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = vpn.app; sourceTree = BUILT_PRODUCTS_DIR; };
A8E7FD0D213FD5FE00A3CE9B /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = "<group>"; };
A8E7FD0F213FD5FE00A3CE9B /* ViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ViewController.swift; sourceTree = "<group>"; };
A8E7FD12213FD5FE00A3CE9B /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = "<group>"; };
A8E7FD14213FD5FF00A3CE9B /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = "<group>"; };
A8E7FD17213FD5FF00A3CE9B /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = "<group>"; };
A8E7FD19213FD5FF00A3CE9B /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
A8E7FD20213FD61600A3CE9B /* NetworkExtension.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = NetworkExtension.framework; path = System/Library/Frameworks/NetworkExtension.framework; sourceTree = SDKROOT; };
A8E7FD22213FD61600A3CE9B /* vpn.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; path = vpn.entitlements; sourceTree = "<group>"; };
/* End PBXFileReference section */
/* Begin PBXFrameworksBuildPhase section */
A8E7FD07213FD5FE00A3CE9B /* Frameworks */ = {
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
A8E7FD21213FD61600A3CE9B /* NetworkExtension.framework in Frameworks */,
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXFrameworksBuildPhase section */
/* Begin PBXGroup section */
A8E7FD01213FD5FE00A3CE9B = {
isa = PBXGroup;
children = (
A8E7FD0C213FD5FE00A3CE9B /* vpn */,
A8E7FD0B213FD5FE00A3CE9B /* Products */,
A8E7FD1F213FD61600A3CE9B /* Frameworks */,
);
sourceTree = "<group>";
};
A8E7FD0B213FD5FE00A3CE9B /* Products */ = {
isa = PBXGroup;
children = (
A8E7FD0A213FD5FE00A3CE9B /* vpn.app */,
);
name = Products;
sourceTree = "<group>";
};
A8E7FD0C213FD5FE00A3CE9B /* vpn */ = {
isa = PBXGroup;
children = (
A8E7FD22213FD61600A3CE9B /* vpn.entitlements */,
A8E7FD0D213FD5FE00A3CE9B /* AppDelegate.swift */,
A8E7FD0F213FD5FE00A3CE9B /* ViewController.swift */,
A8E7FD11213FD5FE00A3CE9B /* Main.storyboard */,
A8E7FD14213FD5FF00A3CE9B /* Assets.xcassets */,
A8E7FD16213FD5FF00A3CE9B /* LaunchScreen.storyboard */,
A8E7FD19213FD5FF00A3CE9B /* Info.plist */,
);
path = vpn;
sourceTree = "<group>";
};
A8E7FD1F213FD61600A3CE9B /* Frameworks */ = {
isa = PBXGroup;
children = (
A8E7FD20213FD61600A3CE9B /* NetworkExtension.framework */,
);
name = Frameworks;
sourceTree = "<group>";
};
/* End PBXGroup section */
/* Begin PBXNativeTarget section */
A8E7FD09213FD5FE00A3CE9B /* vpn */ = {
isa = PBXNativeTarget;
buildConfigurationList = A8E7FD1C213FD5FF00A3CE9B /* Build configuration list for PBXNativeTarget "vpn" */;
buildPhases = (
A8E7FD06213FD5FE00A3CE9B /* Sources */,
A8E7FD07213FD5FE00A3CE9B /* Frameworks */,
A8E7FD08213FD5FE00A3CE9B /* Resources */,
);
buildRules = (
);
dependencies = (
);
name = vpn;
productName = vpn;
productReference = A8E7FD0A213FD5FE00A3CE9B /* vpn.app */;
productType = "com.apple.product-type.application";
};
/* End PBXNativeTarget section */
/* Begin PBXProject section */
A8E7FD02213FD5FE00A3CE9B /* Project object */ = {
isa = PBXProject;
attributes = {
LastSwiftUpdateCheck = 0940;
LastUpgradeCheck = 0940;
ORGANIZATIONNAME = "togreat tech";
TargetAttributes = {
A8E7FD09213FD5FE00A3CE9B = {
CreatedOnToolsVersion = 9.4.1;
SystemCapabilities = {
com.apple.NetworkExtensions.iOS = {
enabled = 1;
};
com.apple.Push = {
enabled = 1;
};
com.apple.VPNLite = {
enabled = 1;
};
};
};
};
};
buildConfigurationList = A8E7FD05213FD5FE00A3CE9B /* Build configuration list for PBXProject "vpn" */;
compatibilityVersion = "Xcode 9.3";
developmentRegion = en;
hasScannedForEncodings = 0;
knownRegions = (
en,
Base,
);
mainGroup = A8E7FD01213FD5FE00A3CE9B;
productRefGroup = A8E7FD0B213FD5FE00A3CE9B /* Products */;
projectDirPath = "";
projectRoot = "";
targets = (
A8E7FD09213FD5FE00A3CE9B /* vpn */,
);
};
/* End PBXProject section */
/* Begin PBXResourcesBuildPhase section */
A8E7FD08213FD5FE00A3CE9B /* Resources */ = {
isa = PBXResourcesBuildPhase;
buildActionMask = 2147483647;
files = (
A8E7FD18213FD5FF00A3CE9B /* LaunchScreen.storyboard in Resources */,
A8E7FD15213FD5FF00A3CE9B /* Assets.xcassets in Resources */,
A8E7FD13213FD5FE00A3CE9B /* Main.storyboard in Resources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXResourcesBuildPhase section */
/* Begin PBXSourcesBuildPhase section */
A8E7FD06213FD5FE00A3CE9B /* Sources */ = {
isa = PBXSourcesBuildPhase;
buildActionMask = 2147483647;
files = (
A8E7FD10213FD5FE00A3CE9B /* ViewController.swift in Sources */,
A8E7FD0E213FD5FE00A3CE9B /* AppDelegate.swift in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXSourcesBuildPhase section */
/* Begin PBXVariantGroup section */
A8E7FD11213FD5FE00A3CE9B /* Main.storyboard */ = {
isa = PBXVariantGroup;
children = (
A8E7FD12213FD5FE00A3CE9B /* Base */,
);
name = Main.storyboard;
sourceTree = "<group>";
};
A8E7FD16213FD5FF00A3CE9B /* LaunchScreen.storyboard */ = {
isa = PBXVariantGroup;
children = (
A8E7FD17213FD5FF00A3CE9B /* Base */,
);
name = LaunchScreen.storyboard;
sourceTree = "<group>";
};
/* End PBXVariantGroup section */
/* Begin XCBuildConfiguration section */
A8E7FD1A213FD5FF00A3CE9B /* Debug */ = {
isa = XCBuildConfiguration;
buildSettings = {
ALWAYS_SEARCH_USER_PATHS = NO;
CLANG_ANALYZER_NONNULL = YES;
CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
CLANG_CXX_LANGUAGE_STANDARD = "gnu++14";
CLANG_CXX_LIBRARY = "libc++";
CLANG_ENABLE_MODULES = YES;
CLANG_ENABLE_OBJC_ARC = YES;
CLANG_ENABLE_OBJC_WEAK = YES;
CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
CLANG_WARN_BOOL_CONVERSION = YES;
CLANG_WARN_COMMA = YES;
CLANG_WARN_CONSTANT_CONVERSION = YES;
CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
CLANG_WARN_EMPTY_BODY = YES;
CLANG_WARN_ENUM_CONVERSION = YES;
CLANG_WARN_INFINITE_RECURSION = YES;
CLANG_WARN_INT_CONVERSION = YES;
CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
CLANG_WARN_STRICT_PROTOTYPES = YES;
CLANG_WARN_SUSPICIOUS_MOVE = YES;
CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE;
CLANG_WARN_UNREACHABLE_CODE = YES;
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
CODE_SIGN_IDENTITY = "iPhone Developer";
COPY_PHASE_STRIP = NO;
DEBUG_INFORMATION_FORMAT = dwarf;
ENABLE_STRICT_OBJC_MSGSEND = YES;
ENABLE_TESTABILITY = YES;
GCC_C_LANGUAGE_STANDARD = gnu11;
GCC_DYNAMIC_NO_PIC = NO;
GCC_NO_COMMON_BLOCKS = YES;
GCC_OPTIMIZATION_LEVEL = 0;
GCC_PREPROCESSOR_DEFINITIONS = (
"DEBUG=1",
"$(inherited)",
);
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
GCC_WARN_UNDECLARED_SELECTOR = YES;
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
IPHONEOS_DEPLOYMENT_TARGET = 11.4;
MTL_ENABLE_DEBUG_INFO = YES;
ONLY_ACTIVE_ARCH = YES;
SDKROOT = iphoneos;
SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG;
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
};
name = Debug;
};
A8E7FD1B213FD5FF00A3CE9B /* Release */ = {
isa = XCBuildConfiguration;
buildSettings = {
ALWAYS_SEARCH_USER_PATHS = NO;
CLANG_ANALYZER_NONNULL = YES;
CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
CLANG_CXX_LANGUAGE_STANDARD = "gnu++14";
CLANG_CXX_LIBRARY = "libc++";
CLANG_ENABLE_MODULES = YES;
CLANG_ENABLE_OBJC_ARC = YES;
CLANG_ENABLE_OBJC_WEAK = YES;
CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
CLANG_WARN_BOOL_CONVERSION = YES;
CLANG_WARN_COMMA = YES;
CLANG_WARN_CONSTANT_CONVERSION = YES;
CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
CLANG_WARN_EMPTY_BODY = YES;
CLANG_WARN_ENUM_CONVERSION = YES;
CLANG_WARN_INFINITE_RECURSION = YES;
CLANG_WARN_INT_CONVERSION = YES;
CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
CLANG_WARN_STRICT_PROTOTYPES = YES;
CLANG_WARN_SUSPICIOUS_MOVE = YES;
CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE;
CLANG_WARN_UNREACHABLE_CODE = YES;
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
CODE_SIGN_IDENTITY = "iPhone Developer";
COPY_PHASE_STRIP = NO;
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
ENABLE_NS_ASSERTIONS = NO;
ENABLE_STRICT_OBJC_MSGSEND = YES;
GCC_C_LANGUAGE_STANDARD = gnu11;
GCC_NO_COMMON_BLOCKS = YES;
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
GCC_WARN_UNDECLARED_SELECTOR = YES;
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
IPHONEOS_DEPLOYMENT_TARGET = 11.4;
MTL_ENABLE_DEBUG_INFO = NO;
SDKROOT = iphoneos;
SWIFT_COMPILATION_MODE = wholemodule;
SWIFT_OPTIMIZATION_LEVEL = "-O";
VALIDATE_PRODUCT = YES;
};
name = Release;
};
A8E7FD1D213FD5FF00A3CE9B /* Debug */ = {
isa = XCBuildConfiguration;
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CODE_SIGN_ENTITLEMENTS = vpn/vpn.entitlements;
CODE_SIGN_STYLE = Automatic;
DEVELOPMENT_TEAM = HF225C89SZ;
INFOPLIST_FILE = vpn/Info.plist;
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/Frameworks",
);
PRODUCT_BUNDLE_IDENTIFIER = io.togreat.tvpn.vpn;
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_VERSION = 4.0;
TARGETED_DEVICE_FAMILY = "1,2";
};
name = Debug;
};
A8E7FD1E213FD5FF00A3CE9B /* Release */ = {
isa = XCBuildConfiguration;
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CODE_SIGN_ENTITLEMENTS = vpn/vpn.entitlements;
CODE_SIGN_STYLE = Automatic;
DEVELOPMENT_TEAM = HF225C89SZ;
INFOPLIST_FILE = vpn/Info.plist;
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/Frameworks",
);
PRODUCT_BUNDLE_IDENTIFIER = io.togreat.tvpn.vpn;
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_VERSION = 4.0;
TARGETED_DEVICE_FAMILY = "1,2";
};
name = Release;
};
/* End XCBuildConfiguration section */
/* Begin XCConfigurationList section */
A8E7FD05213FD5FE00A3CE9B /* Build configuration list for PBXProject "vpn" */ = {
isa = XCConfigurationList;
buildConfigurations = (
A8E7FD1A213FD5FF00A3CE9B /* Debug */,
A8E7FD1B213FD5FF00A3CE9B /* Release */,
);
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
A8E7FD1C213FD5FF00A3CE9B /* Build configuration list for PBXNativeTarget "vpn" */ = {
isa = XCConfigurationList;
buildConfigurations = (
A8E7FD1D213FD5FF00A3CE9B /* Debug */,
A8E7FD1E213FD5FF00A3CE9B /* Release */,
);
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
/* End XCConfigurationList section */
};
rootObject = A8E7FD02213FD5FE00A3CE9B /* Project object */;
}
<?xml version="1.0" encoding="UTF-8"?>
<Workspace
version = "1.0">
<FileRef
location = "self:vpn.xcodeproj">
</FileRef>
</Workspace>
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>IDEDidComputeMac32BitWarning</key>
<true/>
</dict>
</plist>
//
// AppDelegate.swift
// vpn
//
// Created by joy on 2018/9/5.
// Copyright © 2018年 togreat tech. All rights reserved.
//
import UIKit
@UIApplicationMain
class AppDelegate: UIResponder, UIApplicationDelegate {
var window: UIWindow?
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool {
// Override point for customization after application launch.
return true
}
func applicationWillResignActive(_ application: UIApplication) {
// Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state.
// Use this method to pause ongoing tasks, disable timers, and invalidate graphics rendering callbacks. Games should use this method to pause the game.
}
func applicationDidEnterBackground(_ application: UIApplication) {
// Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later.
// If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits.
}
func applicationWillEnterForeground(_ application: UIApplication) {
// Called as part of the transition from the background to the active state; here you can undo many of the changes made on entering the background.
}
func applicationDidBecomeActive(_ application: UIApplication) {
// Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface.
}
func applicationWillTerminate(_ application: UIApplication) {
// Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:.
}
}
{
"images" : [
{
"idiom" : "iphone",
"size" : "20x20",
"scale" : "2x"
},
{
"idiom" : "iphone",
"size" : "20x20",
"scale" : "3x"
},
{
"idiom" : "iphone",
"size" : "29x29",
"scale" : "2x"
},
{
"idiom" : "iphone",
"size" : "29x29",
"scale" : "3x"
},
{
"idiom" : "iphone",
"size" : "40x40",
"scale" : "2x"
},
{
"idiom" : "iphone",
"size" : "40x40",
"scale" : "3x"
},
{
"idiom" : "iphone",
"size" : "60x60",
"scale" : "2x"
},
{
"idiom" : "iphone",
"size" : "60x60",
"scale" : "3x"
},
{
"idiom" : "ipad",
"size" : "20x20",
"scale" : "1x"
},
{
"idiom" : "ipad",
"size" : "20x20",
"scale" : "2x"
},
{
"idiom" : "ipad",
"size" : "29x29",
"scale" : "1x"
},
{
"idiom" : "ipad",
"size" : "29x29",
"scale" : "2x"
},
{
"idiom" : "ipad",
"size" : "40x40",
"scale" : "1x"
},
{
"idiom" : "ipad",
"size" : "40x40",
"scale" : "2x"
},
{
"idiom" : "ipad",
"size" : "76x76",
"scale" : "1x"
},
{
"idiom" : "ipad",
"size" : "76x76",
"scale" : "2x"
},
{
"idiom" : "ipad",
"size" : "83.5x83.5",
"scale" : "2x"
},
{
"idiom" : "ios-marketing",
"size" : "1024x1024",
"scale" : "1x"
}
],
"info" : {
"version" : 1,
"author" : "xcode"
}
}
\ No newline at end of file
{
"info" : {
"version" : 1,
"author" : "xcode"
}
}
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="13122.16" systemVersion="17A277" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" launchScreen="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES" initialViewController="01J-lp-oVM">
<dependencies>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="13104.12"/>
<capability name="Safe area layout guides" minToolsVersion="9.0"/>
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
</dependencies>
<scenes>
<!--View Controller-->
<scene sceneID="EHf-IW-A2E">
<objects>
<viewController id="01J-lp-oVM" sceneMemberID="viewController">
<view key="view" contentMode="scaleToFill" id="Ze5-6b-2t3">
<rect key="frame" x="0.0" y="0.0" width="375" height="667"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<color key="backgroundColor" red="1" green="1" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<viewLayoutGuide key="safeArea" id="6Tk-OE-BBY"/>
</view>
</viewController>
<placeholder placeholderIdentifier="IBFirstResponder" id="iYj-Kq-Ea1" userLabel="First Responder" sceneMemberID="firstResponder"/>
</objects>
<point key="canvasLocation" x="53" y="375"/>
</scene>
</scenes>
</document>
<?xml version="1.0" encoding="UTF-8"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="13122.16" systemVersion="17A277" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES" initialViewController="BYZ-38-t0r">
<dependencies>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="13104.12"/>
<capability name="Safe area layout guides" minToolsVersion="9.0"/>
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
</dependencies>
<scenes>
<!--View Controller-->
<scene sceneID="tne-QT-ifu">
<objects>
<viewController id="BYZ-38-t0r" customClass="ViewController" customModuleProvider="target" sceneMemberID="viewController">
<view key="view" contentMode="scaleToFill" id="8bC-Xf-vdC">
<rect key="frame" x="0.0" y="0.0" width="375" height="667"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<color key="backgroundColor" red="1" green="1" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<viewLayoutGuide key="safeArea" id="6Tk-OE-BBY"/>
</view>
</viewController>
<placeholder placeholderIdentifier="IBFirstResponder" id="dkx-z0-nzr" sceneMemberID="firstResponder"/>
</objects>
</scene>
</scenes>
</document>
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CFBundleDevelopmentRegion</key>
<string>$(DEVELOPMENT_LANGUAGE)</string>
<key>CFBundleExecutable</key>
<string>$(EXECUTABLE_NAME)</string>
<key>CFBundleIdentifier</key>
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleName</key>
<string>$(PRODUCT_NAME)</string>
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>1.0</string>
<key>CFBundleVersion</key>
<string>1</string>
<key>LSRequiresIPhoneOS</key>
<true/>
<key>UILaunchStoryboardName</key>
<string>LaunchScreen</string>
<key>UIMainStoryboardFile</key>
<string>Main</string>
<key>UIRequiredDeviceCapabilities</key>
<array>
<string>armv7</string>
</array>
<key>UISupportedInterfaceOrientations</key>
<array>
<string>UIInterfaceOrientationPortrait</string>
<string>UIInterfaceOrientationLandscapeLeft</string>
<string>UIInterfaceOrientationLandscapeRight</string>
</array>
<key>UISupportedInterfaceOrientations~ipad</key>
<array>
<string>UIInterfaceOrientationPortrait</string>
<string>UIInterfaceOrientationPortraitUpsideDown</string>
<string>UIInterfaceOrientationLandscapeLeft</string>
<string>UIInterfaceOrientationLandscapeRight</string>
</array>
</dict>
</plist>
//
// ViewController.swift
// vpn
//
// Created by joy on 2018/9/5.
// Copyright © 2018年 togreat tech. All rights reserved.
//
import UIKit
class ViewController: UIViewController {
override func viewDidLoad() {
super.viewDidLoad()
// Do any additional setup after loading the view, typically from a nib.
}
override func didReceiveMemoryWarning() {
super.didReceiveMemoryWarning()
// Dispose of any resources that can be recreated.
}
}
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>aps-environment</key>
<string>development</string>
<key>com.apple.developer.networking.networkextension</key>
<array>
<string>app-proxy-provider</string>
<string>content-filter-provider</string>
<string>packet-tunnel-provider</string>
</array>
<key>com.apple.developer.networking.vpn.api</key>
<array>
<string>allow-vpn</string>
</array>
</dict>
</plist>
......@@ -3,7 +3,7 @@ package configBuild
import (
"config/configStruct"
// "git.togreat.io/togreat/tgl/tglXcode/tglIosApp"
"git.togreat.io/togreat/tgl/tglAndroid/tglAndroidBuild"
// "git.togreat.io/togreat/tgl/tglAndroid/tglAndroidBuild"
)
func GetAllConfig()map[string]*configStruct.Config{
......@@ -11,11 +11,8 @@ func GetAllConfig()map[string]*configStruct.Config{
}
func BuildHook(config *configStruct.Config){
//iosVersion:=configStruct.GetVersion1(configStruct.ProductIos)
androidVersion:=configStruct.GetVersion1(configStruct.ProductAndroid)
version2:=configStruct.GetVersion2()
//tglIosApp.VersionCodeWriteV2("client/iOS/Orphan/Info.plist",iosVersion,version2)
//tglIosApp.VersionCodeWriteV2("client/iOS/OrphanTunnel/Info.plist",iosVersion,version2)
tglAndroidBuild.VersionCodeWriteV2("Client/ToWallet-Android",androidVersion,version2)
//androidVersion:=configStruct.GetVersion1(configStruct.ProductAndroid)
//version2:=configStruct.GetVersion2()
//tglAndroidBuild.VersionCodeWriteV2("Client/ToWallet-Android",androidVersion,version2)
}
tgl @ 8d02240d
Subproject commit e463eb519d2226334e143c771f8a088b650b1dfb
Subproject commit 8d02240d859dbccb3931e73732f5b00b293265d4
vpnlab @ adeb6a1a
Subproject commit adeb6a1a68b6af26d3773538bc00964a84b89d6d
package main
import (
"git.togreat.io/togreat/tgl/tglFile"
"time"
"git.togreat.io/togreat/tgl/tglTime"
"fmt"
"git.togreat.io/togreat/tgl/tglProjectConfig"
"git.togreat.io/togreat/tgl/tglBuild"
"git.togreat.io/togreat/tgl/tglFile/tglGetDataDirPath"
"git.togreat.io/togreat/tgl/tglExe/tglExeAndroidConfuse"
"git.togreat.io/togreat/tgl/tglAndroid/tglAndroidBuild"
"path/filepath"
"config/configStruct"
"config"
"git.togreat.io/togreat/tgl/tglSync/tglSyncMachineMutex"
"coin/AppEntryPoint/AppGetApiAddr/BuildTomDnsCodeCache"
"flag"
"git.togreat.io/togreat/tgl/tglStrconv"
)
const IsDebugVersion = false
func main(){
wd:=tglFile.MustGetWd()
// 这个命令调用禁止并发
startTime:=time.Now().In(tglTime.GetDefaultTimeZone())
locker:=tglSyncMachineMutex.NewMutex("tplAndroid_"+wd)
locker.Lock()
defer locker.Unlock()
fmt.Println("after wait lock ",time.Since(startTime))
debug := false
flag.BoolVar(&debug, "d", false, "debug mode")
flag.Parse()
setDebugApp("src/coin/AppEntryPoint/debugFlag_DontModify.go", debug)
//tglProfile.StartProfileV2(":40005")
tglProjectConfig.MustBuild()
tglBuild.MustBuild()
BuildTomDnsCodeCache.Build(true)
dataPath:=tglGetDataDirPath.MustGetDataDirPath()
packagePath := "coin/AppEntryPoint"
confuseReq:=tglExeAndroidConfuse.ConfuseRequest{
PackagePath: packagePath,
}
tglAndroidBuild.MustAddTglLibToAndroidProject(tglAndroidBuild.MustAddTglLibToAndroidProjectRequest{
PackagePath: packagePath,
AndroidProjectPath: "Client/ASRegistration",
OutputName: "AlisiaAar",
BeforeCompileCallback: func() {
fmt.Println("[tplAndroid] BeforeCompileCallback",time.Since(startTime))
if IsDebugVersion == false {
tglExeAndroidConfuse.ConfuseBeforeCompile(confuseReq)
}else{
tglFile.MustDeleteFile("src/coin/AppEntryPoint/zzzig_android_confuse.c")
}
},
SoFileConfig: tglAndroidBuild.SoFileConfig{
AfterCompileCallback: func(soFilePath string) {
fmt.Println("[tplAndroid] NewConfuseAfterCompileCallback",time.Since(startTime))
if IsDebugVersion == false {
tglExeAndroidConfuse.NewConfuseAfterCompileCallback(confuseReq)(soFilePath)
}
},
IsExportSymbolTable: IsDebugVersion,
SaveOutputFilePath: filepath.Join(dataPath,"AlisiaAndroidSo",
config.GetVersionDetail(configStruct.ProductAndroid)),
SaveOutputFilePathTimePadding: "_"+startTime.Format(tglTime.FormatFileNameV2),
BuildCpuTypeList: []string{tglAndroidBuild.CpuType386, tglAndroidBuild.CpuTypeArmv7, "arm64-v8a"},
},
FixCacheChangeList: []string{
"src/git.togreat.io/togreat/tgl/tglExe/tglExeAndroidConfuse",
"src/make/tplAndroid",
},
})
fmt.Println("finish tplAndroid",time.Since(startTime))
}
func setDebugApp(debugAppFilePath string, debugStatus bool){
tglFile.MustCheckContentAndWriteFileWithMkdir(debugAppFilePath,[]byte(`package main
// auto generated by src/make/tplAndroid/main.go:38
const debugClient = ` + tglStrconv.FormatBool(debugStatus) + `
func IsDebugClient() bool{
return debugClient
}`))
return
}
......@@ -2,19 +2,31 @@ package main
import (
"os"
"git.togreat.io/togreat/tgl/tglCmd"
"git.togreat.io/togreat/tgl/tglXcode/tglIosFramework"
"coin/AppEntryPoint/AppGetApiAddr/BuildTomDnsCodeCache"
"git.togreat.io/togreat/tgl/tglSys/tglSysEnv"
"git.togreat.io/togreat/tgl/tglProjectConfig"
"git.togreat.io/togreat/tgl/tglBuild"
)
func main(){
tglCmd.MustRun("tgl gorun make/tpl")
tglSysEnv.CleanEnv()
tglProjectConfig.MustBuild()
tglBuild.MustBuild()
os.Setenv("IPHONEOS_DEPLOYMENT_TARGET","8.0")
BuildTomDnsCodeCache.Build(true)
tglIosFramework.BuildToXcodeProject(tglIosFramework.BuildToXcodeProjectRequest{
GoPackagePath: "coin/AppEntryPoint",
XcodeProjectPath: "Client/Registration",
XcodeTargetName: "Registration",
XcodeProjectPath: "Client/TPN",
XcodeTargetName: "TPN",
FrameworkName: "TglIosLib",
})
tglIosFramework.BuildToXcodeProject(tglIosFramework.BuildToXcodeProjectRequest{
GoPackagePath: "coin/IosVpnProcessFrameworkEntryPoint",
XcodeProjectPath: "Client/TPN",
XcodeTargetName: "TPNTunnel",
FrameworkName: "TglVpnLib",
AddBuildTags: []string{"vpnProcess"},
})
}
\ No newline at end of file
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment