Skip to content

Commit 602d1ea

Browse files
authored
Merge pull request kodecocodes#386 from JaapWijnen/convex-hull
Convex hull
2 parents ea14103 + 89d84fc commit 602d1ea

File tree

8 files changed

+746
-0
lines changed

8 files changed

+746
-0
lines changed
Lines changed: 297 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,297 @@
1+
// !$*UTF8*$!
2+
{
3+
archiveVersion = 1;
4+
classes = {
5+
};
6+
objectVersion = 46;
7+
objects = {
8+
9+
/* Begin PBXBuildFile section */
10+
8E6D68BA1E59989400161780 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 8E6D68B91E59989400161780 /* AppDelegate.swift */; };
11+
8E6D68C11E59989400161780 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 8E6D68C01E59989400161780 /* Assets.xcassets */; };
12+
8E6D68C41E59989400161780 /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 8E6D68C21E59989400161780 /* LaunchScreen.storyboard */; };
13+
8E6D68CC1E599CF100161780 /* View.swift in Sources */ = {isa = PBXBuildFile; fileRef = 8E6D68CB1E599CF100161780 /* View.swift */; };
14+
/* End PBXBuildFile section */
15+
16+
/* Begin PBXFileReference section */
17+
8E6D68B61E59989400161780 /* Convex Hull.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "Convex Hull.app"; sourceTree = BUILT_PRODUCTS_DIR; };
18+
8E6D68B91E59989400161780 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = "<group>"; };
19+
8E6D68C01E59989400161780 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = "<group>"; };
20+
8E6D68C31E59989400161780 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = "<group>"; };
21+
8E6D68C51E59989400161780 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
22+
8E6D68CB1E599CF100161780 /* View.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = View.swift; sourceTree = "<group>"; };
23+
/* End PBXFileReference section */
24+
25+
/* Begin PBXFrameworksBuildPhase section */
26+
8E6D68B31E59989400161780 /* Frameworks */ = {
27+
isa = PBXFrameworksBuildPhase;
28+
buildActionMask = 2147483647;
29+
files = (
30+
);
31+
runOnlyForDeploymentPostprocessing = 0;
32+
};
33+
/* End PBXFrameworksBuildPhase section */
34+
35+
/* Begin PBXGroup section */
36+
8E6D68AD1E59989400161780 = {
37+
isa = PBXGroup;
38+
children = (
39+
8E6D68B81E59989400161780 /* Convex Hull */,
40+
8E6D68B71E59989400161780 /* Products */,
41+
);
42+
sourceTree = "<group>";
43+
};
44+
8E6D68B71E59989400161780 /* Products */ = {
45+
isa = PBXGroup;
46+
children = (
47+
8E6D68B61E59989400161780 /* Convex Hull.app */,
48+
);
49+
name = Products;
50+
sourceTree = "<group>";
51+
};
52+
8E6D68B81E59989400161780 /* Convex Hull */ = {
53+
isa = PBXGroup;
54+
children = (
55+
8E6D68B91E59989400161780 /* AppDelegate.swift */,
56+
8E6D68CB1E599CF100161780 /* View.swift */,
57+
8E6D68C01E59989400161780 /* Assets.xcassets */,
58+
8E6D68C21E59989400161780 /* LaunchScreen.storyboard */,
59+
8E6D68C51E59989400161780 /* Info.plist */,
60+
);
61+
path = "Convex Hull";
62+
sourceTree = "<group>";
63+
};
64+
/* End PBXGroup section */
65+
66+
/* Begin PBXNativeTarget section */
67+
8E6D68B51E59989400161780 /* Convex Hull */ = {
68+
isa = PBXNativeTarget;
69+
buildConfigurationList = 8E6D68C81E59989400161780 /* Build configuration list for PBXNativeTarget "Convex Hull" */;
70+
buildPhases = (
71+
8E6D68B21E59989400161780 /* Sources */,
72+
8E6D68B31E59989400161780 /* Frameworks */,
73+
8E6D68B41E59989400161780 /* Resources */,
74+
);
75+
buildRules = (
76+
);
77+
dependencies = (
78+
);
79+
name = "Convex Hull";
80+
productName = "Convex Hull";
81+
productReference = 8E6D68B61E59989400161780 /* Convex Hull.app */;
82+
productType = "com.apple.product-type.application";
83+
};
84+
/* End PBXNativeTarget section */
85+
86+
/* Begin PBXProject section */
87+
8E6D68AE1E59989400161780 /* Project object */ = {
88+
isa = PBXProject;
89+
attributes = {
90+
LastSwiftUpdateCheck = 0820;
91+
LastUpgradeCheck = 0820;
92+
ORGANIZATIONNAME = Workmoose;
93+
TargetAttributes = {
94+
8E6D68B51E59989400161780 = {
95+
CreatedOnToolsVersion = 8.2.1;
96+
DevelopmentTeam = 7C4LVS3ZVC;
97+
ProvisioningStyle = Automatic;
98+
};
99+
};
100+
};
101+
buildConfigurationList = 8E6D68B11E59989400161780 /* Build configuration list for PBXProject "Convex Hull" */;
102+
compatibilityVersion = "Xcode 3.2";
103+
developmentRegion = English;
104+
hasScannedForEncodings = 0;
105+
knownRegions = (
106+
en,
107+
Base,
108+
);
109+
mainGroup = 8E6D68AD1E59989400161780;
110+
productRefGroup = 8E6D68B71E59989400161780 /* Products */;
111+
projectDirPath = "";
112+
projectRoot = "";
113+
targets = (
114+
8E6D68B51E59989400161780 /* Convex Hull */,
115+
);
116+
};
117+
/* End PBXProject section */
118+
119+
/* Begin PBXResourcesBuildPhase section */
120+
8E6D68B41E59989400161780 /* Resources */ = {
121+
isa = PBXResourcesBuildPhase;
122+
buildActionMask = 2147483647;
123+
files = (
124+
8E6D68C41E59989400161780 /* LaunchScreen.storyboard in Resources */,
125+
8E6D68C11E59989400161780 /* Assets.xcassets in Resources */,
126+
);
127+
runOnlyForDeploymentPostprocessing = 0;
128+
};
129+
/* End PBXResourcesBuildPhase section */
130+
131+
/* Begin PBXSourcesBuildPhase section */
132+
8E6D68B21E59989400161780 /* Sources */ = {
133+
isa = PBXSourcesBuildPhase;
134+
buildActionMask = 2147483647;
135+
files = (
136+
8E6D68BA1E59989400161780 /* AppDelegate.swift in Sources */,
137+
8E6D68CC1E599CF100161780 /* View.swift in Sources */,
138+
);
139+
runOnlyForDeploymentPostprocessing = 0;
140+
};
141+
/* End PBXSourcesBuildPhase section */
142+
143+
/* Begin PBXVariantGroup section */
144+
8E6D68C21E59989400161780 /* LaunchScreen.storyboard */ = {
145+
isa = PBXVariantGroup;
146+
children = (
147+
8E6D68C31E59989400161780 /* Base */,
148+
);
149+
name = LaunchScreen.storyboard;
150+
sourceTree = "<group>";
151+
};
152+
/* End PBXVariantGroup section */
153+
154+
/* Begin XCBuildConfiguration section */
155+
8E6D68C61E59989400161780 /* Debug */ = {
156+
isa = XCBuildConfiguration;
157+
buildSettings = {
158+
ALWAYS_SEARCH_USER_PATHS = NO;
159+
CLANG_ANALYZER_NONNULL = YES;
160+
CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
161+
CLANG_CXX_LIBRARY = "libc++";
162+
CLANG_ENABLE_MODULES = YES;
163+
CLANG_ENABLE_OBJC_ARC = YES;
164+
CLANG_WARN_BOOL_CONVERSION = YES;
165+
CLANG_WARN_CONSTANT_CONVERSION = YES;
166+
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
167+
CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
168+
CLANG_WARN_EMPTY_BODY = YES;
169+
CLANG_WARN_ENUM_CONVERSION = YES;
170+
CLANG_WARN_INFINITE_RECURSION = YES;
171+
CLANG_WARN_INT_CONVERSION = YES;
172+
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
173+
CLANG_WARN_SUSPICIOUS_MOVE = YES;
174+
CLANG_WARN_UNREACHABLE_CODE = YES;
175+
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
176+
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
177+
COPY_PHASE_STRIP = NO;
178+
DEBUG_INFORMATION_FORMAT = dwarf;
179+
ENABLE_STRICT_OBJC_MSGSEND = YES;
180+
ENABLE_TESTABILITY = YES;
181+
GCC_C_LANGUAGE_STANDARD = gnu99;
182+
GCC_DYNAMIC_NO_PIC = NO;
183+
GCC_NO_COMMON_BLOCKS = YES;
184+
GCC_OPTIMIZATION_LEVEL = 0;
185+
GCC_PREPROCESSOR_DEFINITIONS = (
186+
"DEBUG=1",
187+
"$(inherited)",
188+
);
189+
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
190+
GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
191+
GCC_WARN_UNDECLARED_SELECTOR = YES;
192+
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
193+
GCC_WARN_UNUSED_FUNCTION = YES;
194+
GCC_WARN_UNUSED_VARIABLE = YES;
195+
IPHONEOS_DEPLOYMENT_TARGET = 10.2;
196+
MTL_ENABLE_DEBUG_INFO = YES;
197+
ONLY_ACTIVE_ARCH = YES;
198+
SDKROOT = iphoneos;
199+
SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG;
200+
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
201+
TARGETED_DEVICE_FAMILY = "1,2";
202+
};
203+
name = Debug;
204+
};
205+
8E6D68C71E59989400161780 /* Release */ = {
206+
isa = XCBuildConfiguration;
207+
buildSettings = {
208+
ALWAYS_SEARCH_USER_PATHS = NO;
209+
CLANG_ANALYZER_NONNULL = YES;
210+
CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
211+
CLANG_CXX_LIBRARY = "libc++";
212+
CLANG_ENABLE_MODULES = YES;
213+
CLANG_ENABLE_OBJC_ARC = YES;
214+
CLANG_WARN_BOOL_CONVERSION = YES;
215+
CLANG_WARN_CONSTANT_CONVERSION = YES;
216+
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
217+
CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
218+
CLANG_WARN_EMPTY_BODY = YES;
219+
CLANG_WARN_ENUM_CONVERSION = YES;
220+
CLANG_WARN_INFINITE_RECURSION = YES;
221+
CLANG_WARN_INT_CONVERSION = YES;
222+
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
223+
CLANG_WARN_SUSPICIOUS_MOVE = YES;
224+
CLANG_WARN_UNREACHABLE_CODE = YES;
225+
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
226+
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
227+
COPY_PHASE_STRIP = NO;
228+
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
229+
ENABLE_NS_ASSERTIONS = NO;
230+
ENABLE_STRICT_OBJC_MSGSEND = YES;
231+
GCC_C_LANGUAGE_STANDARD = gnu99;
232+
GCC_NO_COMMON_BLOCKS = YES;
233+
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
234+
GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
235+
GCC_WARN_UNDECLARED_SELECTOR = YES;
236+
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
237+
GCC_WARN_UNUSED_FUNCTION = YES;
238+
GCC_WARN_UNUSED_VARIABLE = YES;
239+
IPHONEOS_DEPLOYMENT_TARGET = 10.2;
240+
MTL_ENABLE_DEBUG_INFO = NO;
241+
SDKROOT = iphoneos;
242+
SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule";
243+
TARGETED_DEVICE_FAMILY = "1,2";
244+
VALIDATE_PRODUCT = YES;
245+
};
246+
name = Release;
247+
};
248+
8E6D68C91E59989400161780 /* Debug */ = {
249+
isa = XCBuildConfiguration;
250+
buildSettings = {
251+
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
252+
DEVELOPMENT_TEAM = 7C4LVS3ZVC;
253+
INFOPLIST_FILE = "Convex Hull/Info.plist";
254+
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
255+
PRODUCT_BUNDLE_IDENTIFIER = "workmoose.Convex-Hull";
256+
PRODUCT_NAME = "$(TARGET_NAME)";
257+
SWIFT_VERSION = 3.0;
258+
};
259+
name = Debug;
260+
};
261+
8E6D68CA1E59989400161780 /* Release */ = {
262+
isa = XCBuildConfiguration;
263+
buildSettings = {
264+
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
265+
DEVELOPMENT_TEAM = 7C4LVS3ZVC;
266+
INFOPLIST_FILE = "Convex Hull/Info.plist";
267+
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
268+
PRODUCT_BUNDLE_IDENTIFIER = "workmoose.Convex-Hull";
269+
PRODUCT_NAME = "$(TARGET_NAME)";
270+
SWIFT_VERSION = 3.0;
271+
};
272+
name = Release;
273+
};
274+
/* End XCBuildConfiguration section */
275+
276+
/* Begin XCConfigurationList section */
277+
8E6D68B11E59989400161780 /* Build configuration list for PBXProject "Convex Hull" */ = {
278+
isa = XCConfigurationList;
279+
buildConfigurations = (
280+
8E6D68C61E59989400161780 /* Debug */,
281+
8E6D68C71E59989400161780 /* Release */,
282+
);
283+
defaultConfigurationIsVisible = 0;
284+
defaultConfigurationName = Release;
285+
};
286+
8E6D68C81E59989400161780 /* Build configuration list for PBXNativeTarget "Convex Hull" */ = {
287+
isa = XCConfigurationList;
288+
buildConfigurations = (
289+
8E6D68C91E59989400161780 /* Debug */,
290+
8E6D68CA1E59989400161780 /* Release */,
291+
);
292+
defaultConfigurationIsVisible = 0;
293+
};
294+
/* End XCConfigurationList section */
295+
};
296+
rootObject = 8E6D68AE1E59989400161780 /* Project object */;
297+
}

Convex Hull/Convex Hull.xcodeproj/project.xcworkspace/contents.xcworkspacedata

Lines changed: 7 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
//
2+
// AppDelegate.swift
3+
// Convex Hull
4+
//
5+
// Created by Jaap Wijnen on 19/02/2017.
6+
// Copyright © 2017 Workmoose. All rights reserved.
7+
//
8+
9+
import UIKit
10+
11+
@UIApplicationMain
12+
class AppDelegate: UIResponder, UIApplicationDelegate {
13+
14+
var window: UIWindow?
15+
16+
17+
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool {
18+
19+
let screenBounds = UIScreen.main.bounds
20+
21+
window = UIWindow(frame: screenBounds)
22+
23+
let viewController = UIViewController()
24+
viewController.view = View(frame: (window?.frame)!)
25+
viewController.view.backgroundColor = .white
26+
27+
window?.rootViewController = viewController
28+
window?.makeKeyAndVisible()
29+
30+
return true
31+
}
32+
33+
func applicationWillResignActive(_ application: UIApplication) {
34+
// 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.
35+
// Use this method to pause ongoing tasks, disable timers, and invalidate graphics rendering callbacks. Games should use this method to pause the game.
36+
}
37+
38+
func applicationDidEnterBackground(_ application: UIApplication) {
39+
// 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.
40+
// If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits.
41+
}
42+
43+
func applicationWillEnterForeground(_ application: UIApplication) {
44+
// 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.
45+
}
46+
47+
func applicationDidBecomeActive(_ application: UIApplication) {
48+
// 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.
49+
}
50+
51+
func applicationWillTerminate(_ application: UIApplication) {
52+
// Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:.
53+
}
54+
55+
56+
}
57+

0 commit comments

Comments
 (0)