Skip to content

Commit e78cfd3

Browse files
committed
Initial commit on this repo
0 parents  commit e78cfd3

File tree

72 files changed

+3250
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

72 files changed

+3250
-0
lines changed

VPN.HT.xcodeproj/project.pbxproj

+502
Large diffs are not rendered by default.

VPN.HT.xcodeproj/project.xcworkspace/contents.xcworkspacedata

+7
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<Bucket
3+
type = "1"
4+
version = "2.0">
5+
</Bucket>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,115 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<Scheme
3+
LastUpgradeVersion = "0700"
4+
version = "1.3">
5+
<BuildAction
6+
parallelizeBuildables = "YES"
7+
buildImplicitDependencies = "YES">
8+
<BuildActionEntries>
9+
<BuildActionEntry
10+
buildForTesting = "YES"
11+
buildForRunning = "YES"
12+
buildForProfiling = "YES"
13+
buildForArchiving = "YES"
14+
buildForAnalyzing = "YES">
15+
<BuildableReference
16+
BuildableIdentifier = "primary"
17+
BlueprintIdentifier = "D97F119C1B08A40E003C6CB8"
18+
BuildableName = "VPN.HT.app"
19+
BlueprintName = "VPN.HT"
20+
ReferencedContainer = "container:VPN.HT.xcodeproj">
21+
</BuildableReference>
22+
</BuildActionEntry>
23+
<BuildActionEntry
24+
buildForTesting = "YES"
25+
buildForRunning = "NO"
26+
buildForProfiling = "NO"
27+
buildForArchiving = "NO"
28+
buildForAnalyzing = "YES">
29+
<BuildableReference
30+
BuildableIdentifier = "primary"
31+
BlueprintIdentifier = "D97F11B11B08A40E003C6CB8"
32+
BuildableName = "VPN.HTTests.xctest"
33+
BlueprintName = "VPN.HTTests"
34+
ReferencedContainer = "container:VPN.HT.xcodeproj">
35+
</BuildableReference>
36+
</BuildActionEntry>
37+
</BuildActionEntries>
38+
</BuildAction>
39+
<TestAction
40+
buildConfiguration = "Debug"
41+
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
42+
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
43+
shouldUseLaunchSchemeArgsEnv = "YES">
44+
<Testables>
45+
<TestableReference
46+
skipped = "NO">
47+
<BuildableReference
48+
BuildableIdentifier = "primary"
49+
BlueprintIdentifier = "D97F11B11B08A40E003C6CB8"
50+
BuildableName = "VPN.HTTests.xctest"
51+
BlueprintName = "VPN.HTTests"
52+
ReferencedContainer = "container:VPN.HT.xcodeproj">
53+
</BuildableReference>
54+
</TestableReference>
55+
</Testables>
56+
<MacroExpansion>
57+
<BuildableReference
58+
BuildableIdentifier = "primary"
59+
BlueprintIdentifier = "D97F119C1B08A40E003C6CB8"
60+
BuildableName = "VPN.HT.app"
61+
BlueprintName = "VPN.HT"
62+
ReferencedContainer = "container:VPN.HT.xcodeproj">
63+
</BuildableReference>
64+
</MacroExpansion>
65+
<AdditionalOptions>
66+
</AdditionalOptions>
67+
</TestAction>
68+
<LaunchAction
69+
buildConfiguration = "Debug"
70+
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
71+
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
72+
launchStyle = "0"
73+
useCustomWorkingDirectory = "NO"
74+
ignoresPersistentStateOnLaunch = "NO"
75+
debugDocumentVersioning = "YES"
76+
debugServiceExtension = "internal"
77+
allowLocationSimulation = "YES">
78+
<BuildableProductRunnable
79+
runnableDebuggingMode = "0">
80+
<BuildableReference
81+
BuildableIdentifier = "primary"
82+
BlueprintIdentifier = "D97F119C1B08A40E003C6CB8"
83+
BuildableName = "VPN.HT.app"
84+
BlueprintName = "VPN.HT"
85+
ReferencedContainer = "container:VPN.HT.xcodeproj">
86+
</BuildableReference>
87+
</BuildableProductRunnable>
88+
<AdditionalOptions>
89+
</AdditionalOptions>
90+
</LaunchAction>
91+
<ProfileAction
92+
buildConfiguration = "Release"
93+
shouldUseLaunchSchemeArgsEnv = "YES"
94+
savedToolIdentifier = ""
95+
useCustomWorkingDirectory = "NO"
96+
debugDocumentVersioning = "YES">
97+
<BuildableProductRunnable
98+
runnableDebuggingMode = "0">
99+
<BuildableReference
100+
BuildableIdentifier = "primary"
101+
BlueprintIdentifier = "D97F119C1B08A40E003C6CB8"
102+
BuildableName = "VPN.HT.app"
103+
BlueprintName = "VPN.HT"
104+
ReferencedContainer = "container:VPN.HT.xcodeproj">
105+
</BuildableReference>
106+
</BuildableProductRunnable>
107+
</ProfileAction>
108+
<AnalyzeAction
109+
buildConfiguration = "Debug">
110+
</AnalyzeAction>
111+
<ArchiveAction
112+
buildConfiguration = "Release"
113+
revealArchiveInOrganizer = "YES">
114+
</ArchiveAction>
115+
</Scheme>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3+
<plist version="1.0">
4+
<dict>
5+
<key>SchemeUserState</key>
6+
<dict>
7+
<key>VPN.HT.xcscheme</key>
8+
<dict>
9+
<key>orderHint</key>
10+
<integer>0</integer>
11+
</dict>
12+
</dict>
13+
<key>SuppressBuildableAutocreation</key>
14+
<dict>
15+
<key>D97F119C1B08A40E003C6CB8</key>
16+
<dict>
17+
<key>primary</key>
18+
<true/>
19+
</dict>
20+
<key>D97F11B11B08A40E003C6CB8</key>
21+
<dict>
22+
<key>primary</key>
23+
<true/>
24+
</dict>
25+
</dict>
26+
</dict>
27+
</plist>

VPN.HT/AppDelegate.swift

+49
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
//
2+
// AppDelegate.swift
3+
// VPN.HT
4+
//
5+
// Created by Douwe Bos on 17-05-15.
6+
// Copyright (c) 2015 Douwe Bos. All rights reserved.
7+
//
8+
9+
import UIKit
10+
11+
@UIApplicationMain
12+
class AppDelegate: UIResponder, UIApplicationDelegate {
13+
14+
var window: UIWindow?
15+
16+
func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool {
17+
// Override point for customization after application launch.
18+
UIApplication.sharedApplication().statusBarStyle = .LightContent
19+
20+
let rootViewController = LoginViewController()
21+
window?.rootViewController = rootViewController
22+
23+
return true
24+
}
25+
26+
func applicationWillResignActive(application: UIApplication) {
27+
// 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.
28+
// Use this method to pause ongoing tasks, disable timers, and throttle down OpenGL ES frame rates. Games should use this method to pause the game.
29+
}
30+
31+
func applicationDidEnterBackground(application: UIApplication) {
32+
// 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.
33+
// If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits.
34+
}
35+
36+
func applicationWillEnterForeground(application: UIApplication) {
37+
// Called as part of the transition from the background to the inactive state; here you can undo many of the changes made on entering the background.
38+
}
39+
40+
func applicationDidBecomeActive(application: UIApplication) {
41+
// 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.
42+
}
43+
44+
func applicationWillTerminate(application: UIApplication) {
45+
// Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:.
46+
}
47+
48+
}
49+

VPN.HT/Classes.swift

+47
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
//
2+
// Classes.swift
3+
// VPN.HT
4+
//
5+
// Created by Douwe Bos on 17-05-15.
6+
// Copyright (c) 2015 Douwe Bos. All rights reserved.
7+
//
8+
import UIKit
9+
import MapKit
10+
import Security
11+
12+
struct StaticVar {
13+
static let lightBackgroundColor = UIColor(red: 237/255, green: 237/255, blue: 237/255, alpha: 1)
14+
static let darkBackgroundColor = UIColor(red: 90/255, green: 90/255, blue: 90/255, alpha: 1)
15+
static let greenBackgroundColor = UIColor(red: 44/255, green: 199/255, blue: 106/255, alpha: 1)
16+
static let redBackgroundColor = UIColor(red: 199/255, green: 44/255, blue: 44/255, alpha: 1)
17+
}
18+
19+
class IpAnnotation: NSObject, MKAnnotation {
20+
var title: String?
21+
var subtitle: String?
22+
var ipAddress: String?
23+
var location: String?
24+
var coordinate: CLLocationCoordinate2D
25+
var categoryID = 0
26+
27+
init(coordinate: CLLocationCoordinate2D) {
28+
self.coordinate = coordinate
29+
super.init()
30+
}
31+
}
32+
33+
class vpnServer {
34+
let country: String!
35+
let city: String!
36+
let ip: String!
37+
let long: Float!
38+
let lat: Float!
39+
40+
init(country: String, city: String!, ip: String!, long: Float!, lat: Float!) {
41+
self.country = country
42+
self.city = city
43+
self.ip = ip
44+
self.long = long
45+
self.lat = lat
46+
}
47+
}

0 commit comments

Comments
 (0)