Skip to content

Commit 489fda1

Browse files
committed
Adding example project in Swift
1 parent 0d385fc commit 489fda1

File tree

16 files changed

+623
-0
lines changed

16 files changed

+623
-0
lines changed
Lines changed: 334 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,334 @@
1+
// !$*UTF8*$!
2+
{
3+
archiveVersion = 1;
4+
classes = {
5+
};
6+
objectVersion = 46;
7+
objects = {
8+
9+
/* Begin PBXBuildFile section */
10+
7D42AC7F1C197D2600BB3D3A /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7D42AC7E1C197D2600BB3D3A /* AppDelegate.swift */; };
11+
7D42AC811C197D2600BB3D3A /* ViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7D42AC801C197D2600BB3D3A /* ViewController.swift */; };
12+
7D42AC841C197D2600BB3D3A /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 7D42AC821C197D2600BB3D3A /* Main.storyboard */; };
13+
7D42AC861C197D2600BB3D3A /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 7D42AC851C197D2600BB3D3A /* Assets.xcassets */; };
14+
7D42AC891C197D2600BB3D3A /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 7D42AC871C197D2600BB3D3A /* LaunchScreen.storyboard */; };
15+
7D42AC961C197DE500BB3D3A /* CoreLocation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 7D42AC951C197DE500BB3D3A /* CoreLocation.framework */; };
16+
7D42AC981C197DEA00BB3D3A /* CoreData.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 7D42AC971C197DEA00BB3D3A /* CoreData.framework */; };
17+
7D42AC9A1C197E2C00BB3D3A /* SystemConfiguration.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 7D42AC991C197E2C00BB3D3A /* SystemConfiguration.framework */; };
18+
7D42ACA91C198CC100BB3D3A /* Beaconstac.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 7D42ACA81C198CC100BB3D3A /* Beaconstac.framework */; };
19+
7D42ACAB1C198CCB00BB3D3A /* BeaconstacData.bundle in Resources */ = {isa = PBXBuildFile; fileRef = 7D42ACAA1C198CCB00BB3D3A /* BeaconstacData.bundle */; };
20+
/* End PBXBuildFile section */
21+
22+
/* Begin PBXFileReference section */
23+
7D42AC7B1C197D2600BB3D3A /* SwiftExample.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = SwiftExample.app; sourceTree = BUILT_PRODUCTS_DIR; };
24+
7D42AC7E1C197D2600BB3D3A /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = "<group>"; };
25+
7D42AC801C197D2600BB3D3A /* ViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ViewController.swift; sourceTree = "<group>"; };
26+
7D42AC831C197D2600BB3D3A /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = "<group>"; };
27+
7D42AC851C197D2600BB3D3A /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = "<group>"; };
28+
7D42AC881C197D2600BB3D3A /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = "<group>"; };
29+
7D42AC8A1C197D2600BB3D3A /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
30+
7D42AC951C197DE500BB3D3A /* CoreLocation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreLocation.framework; path = System/Library/Frameworks/CoreLocation.framework; sourceTree = SDKROOT; };
31+
7D42AC971C197DEA00BB3D3A /* CoreData.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreData.framework; path = System/Library/Frameworks/CoreData.framework; sourceTree = SDKROOT; };
32+
7D42AC991C197E2C00BB3D3A /* SystemConfiguration.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = SystemConfiguration.framework; path = System/Library/Frameworks/SystemConfiguration.framework; sourceTree = SDKROOT; };
33+
7D42ACA51C198A0200BB3D3A /* SwiftExample-Bridging-Header.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = "SwiftExample-Bridging-Header.h"; sourceTree = "<group>"; };
34+
7D42ACA81C198CC100BB3D3A /* Beaconstac.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Beaconstac.framework; path = ../../../BeaconstacSDK/Beaconstac.framework; sourceTree = "<group>"; };
35+
7D42ACAA1C198CCB00BB3D3A /* BeaconstacData.bundle */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.plug-in"; name = BeaconstacData.bundle; path = ../../../BeaconstacSDK/Beaconstac.framework/Versions/1.2/Resources/BeaconstacData.bundle; sourceTree = "<group>"; };
36+
/* End PBXFileReference section */
37+
38+
/* Begin PBXFrameworksBuildPhase section */
39+
7D42AC781C197D2600BB3D3A /* Frameworks */ = {
40+
isa = PBXFrameworksBuildPhase;
41+
buildActionMask = 2147483647;
42+
files = (
43+
7D42AC9A1C197E2C00BB3D3A /* SystemConfiguration.framework in Frameworks */,
44+
7D42AC981C197DEA00BB3D3A /* CoreData.framework in Frameworks */,
45+
7D42AC961C197DE500BB3D3A /* CoreLocation.framework in Frameworks */,
46+
7D42ACA91C198CC100BB3D3A /* Beaconstac.framework in Frameworks */,
47+
);
48+
runOnlyForDeploymentPostprocessing = 0;
49+
};
50+
/* End PBXFrameworksBuildPhase section */
51+
52+
/* Begin PBXGroup section */
53+
7D42AC721C197D2600BB3D3A = {
54+
isa = PBXGroup;
55+
children = (
56+
7D42AC7D1C197D2600BB3D3A /* SwiftExample */,
57+
7D42AC7C1C197D2600BB3D3A /* Products */,
58+
);
59+
sourceTree = "<group>";
60+
};
61+
7D42AC7C1C197D2600BB3D3A /* Products */ = {
62+
isa = PBXGroup;
63+
children = (
64+
7D42AC7B1C197D2600BB3D3A /* SwiftExample.app */,
65+
);
66+
name = Products;
67+
sourceTree = "<group>";
68+
};
69+
7D42AC7D1C197D2600BB3D3A /* SwiftExample */ = {
70+
isa = PBXGroup;
71+
children = (
72+
7D42AC7E1C197D2600BB3D3A /* AppDelegate.swift */,
73+
7D42AC801C197D2600BB3D3A /* ViewController.swift */,
74+
7D42ACA51C198A0200BB3D3A /* SwiftExample-Bridging-Header.h */,
75+
7D42AC851C197D2600BB3D3A /* Assets.xcassets */,
76+
7D42AC821C197D2600BB3D3A /* Main.storyboard */,
77+
7D42AC871C197D2600BB3D3A /* LaunchScreen.storyboard */,
78+
7D42AC8A1C197D2600BB3D3A /* Info.plist */,
79+
7D42ACAA1C198CCB00BB3D3A /* BeaconstacData.bundle */,
80+
7D42ACA81C198CC100BB3D3A /* Beaconstac.framework */,
81+
7D42AC991C197E2C00BB3D3A /* SystemConfiguration.framework */,
82+
7D42AC951C197DE500BB3D3A /* CoreLocation.framework */,
83+
7D42AC971C197DEA00BB3D3A /* CoreData.framework */,
84+
);
85+
path = SwiftExample;
86+
sourceTree = "<group>";
87+
};
88+
/* End PBXGroup section */
89+
90+
/* Begin PBXNativeTarget section */
91+
7D42AC7A1C197D2600BB3D3A /* SwiftExample */ = {
92+
isa = PBXNativeTarget;
93+
buildConfigurationList = 7D42AC8D1C197D2600BB3D3A /* Build configuration list for PBXNativeTarget "SwiftExample" */;
94+
buildPhases = (
95+
7D42AC771C197D2600BB3D3A /* Sources */,
96+
7D42AC781C197D2600BB3D3A /* Frameworks */,
97+
7D42AC791C197D2600BB3D3A /* Resources */,
98+
);
99+
buildRules = (
100+
);
101+
dependencies = (
102+
);
103+
name = SwiftExample;
104+
productName = SwiftExample;
105+
productReference = 7D42AC7B1C197D2600BB3D3A /* SwiftExample.app */;
106+
productType = "com.apple.product-type.application";
107+
};
108+
/* End PBXNativeTarget section */
109+
110+
/* Begin PBXProject section */
111+
7D42AC731C197D2600BB3D3A /* Project object */ = {
112+
isa = PBXProject;
113+
attributes = {
114+
LastSwiftUpdateCheck = 0710;
115+
LastUpgradeCheck = 0710;
116+
ORGANIZATIONNAME = "Mobstac Inc";
117+
TargetAttributes = {
118+
7D42AC7A1C197D2600BB3D3A = {
119+
CreatedOnToolsVersion = 7.1.1;
120+
SystemCapabilities = {
121+
com.apple.BackgroundModes = {
122+
enabled = 1;
123+
};
124+
};
125+
};
126+
};
127+
};
128+
buildConfigurationList = 7D42AC761C197D2600BB3D3A /* Build configuration list for PBXProject "SwiftExample" */;
129+
compatibilityVersion = "Xcode 3.2";
130+
developmentRegion = English;
131+
hasScannedForEncodings = 0;
132+
knownRegions = (
133+
en,
134+
Base,
135+
);
136+
mainGroup = 7D42AC721C197D2600BB3D3A;
137+
productRefGroup = 7D42AC7C1C197D2600BB3D3A /* Products */;
138+
projectDirPath = "";
139+
projectRoot = "";
140+
targets = (
141+
7D42AC7A1C197D2600BB3D3A /* SwiftExample */,
142+
);
143+
};
144+
/* End PBXProject section */
145+
146+
/* Begin PBXResourcesBuildPhase section */
147+
7D42AC791C197D2600BB3D3A /* Resources */ = {
148+
isa = PBXResourcesBuildPhase;
149+
buildActionMask = 2147483647;
150+
files = (
151+
7D42AC891C197D2600BB3D3A /* LaunchScreen.storyboard in Resources */,
152+
7D42AC861C197D2600BB3D3A /* Assets.xcassets in Resources */,
153+
7D42ACAB1C198CCB00BB3D3A /* BeaconstacData.bundle in Resources */,
154+
7D42AC841C197D2600BB3D3A /* Main.storyboard in Resources */,
155+
);
156+
runOnlyForDeploymentPostprocessing = 0;
157+
};
158+
/* End PBXResourcesBuildPhase section */
159+
160+
/* Begin PBXSourcesBuildPhase section */
161+
7D42AC771C197D2600BB3D3A /* Sources */ = {
162+
isa = PBXSourcesBuildPhase;
163+
buildActionMask = 2147483647;
164+
files = (
165+
7D42AC811C197D2600BB3D3A /* ViewController.swift in Sources */,
166+
7D42AC7F1C197D2600BB3D3A /* AppDelegate.swift in Sources */,
167+
);
168+
runOnlyForDeploymentPostprocessing = 0;
169+
};
170+
/* End PBXSourcesBuildPhase section */
171+
172+
/* Begin PBXVariantGroup section */
173+
7D42AC821C197D2600BB3D3A /* Main.storyboard */ = {
174+
isa = PBXVariantGroup;
175+
children = (
176+
7D42AC831C197D2600BB3D3A /* Base */,
177+
);
178+
name = Main.storyboard;
179+
sourceTree = "<group>";
180+
};
181+
7D42AC871C197D2600BB3D3A /* LaunchScreen.storyboard */ = {
182+
isa = PBXVariantGroup;
183+
children = (
184+
7D42AC881C197D2600BB3D3A /* Base */,
185+
);
186+
name = LaunchScreen.storyboard;
187+
sourceTree = "<group>";
188+
};
189+
/* End PBXVariantGroup section */
190+
191+
/* Begin XCBuildConfiguration section */
192+
7D42AC8B1C197D2600BB3D3A /* Debug */ = {
193+
isa = XCBuildConfiguration;
194+
buildSettings = {
195+
ALWAYS_SEARCH_USER_PATHS = NO;
196+
CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
197+
CLANG_CXX_LIBRARY = "libc++";
198+
CLANG_ENABLE_MODULES = YES;
199+
CLANG_ENABLE_OBJC_ARC = YES;
200+
CLANG_WARN_BOOL_CONVERSION = YES;
201+
CLANG_WARN_CONSTANT_CONVERSION = YES;
202+
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
203+
CLANG_WARN_EMPTY_BODY = YES;
204+
CLANG_WARN_ENUM_CONVERSION = YES;
205+
CLANG_WARN_INT_CONVERSION = YES;
206+
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
207+
CLANG_WARN_UNREACHABLE_CODE = YES;
208+
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
209+
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
210+
COPY_PHASE_STRIP = NO;
211+
DEBUG_INFORMATION_FORMAT = dwarf;
212+
ENABLE_STRICT_OBJC_MSGSEND = YES;
213+
ENABLE_TESTABILITY = YES;
214+
GCC_C_LANGUAGE_STANDARD = gnu99;
215+
GCC_DYNAMIC_NO_PIC = NO;
216+
GCC_NO_COMMON_BLOCKS = YES;
217+
GCC_OPTIMIZATION_LEVEL = 0;
218+
GCC_PREPROCESSOR_DEFINITIONS = (
219+
"DEBUG=1",
220+
"$(inherited)",
221+
);
222+
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
223+
GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
224+
GCC_WARN_UNDECLARED_SELECTOR = YES;
225+
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
226+
GCC_WARN_UNUSED_FUNCTION = YES;
227+
GCC_WARN_UNUSED_VARIABLE = YES;
228+
IPHONEOS_DEPLOYMENT_TARGET = 9.1;
229+
MTL_ENABLE_DEBUG_INFO = YES;
230+
ONLY_ACTIVE_ARCH = YES;
231+
SDKROOT = iphoneos;
232+
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
233+
};
234+
name = Debug;
235+
};
236+
7D42AC8C1C197D2600BB3D3A /* Release */ = {
237+
isa = XCBuildConfiguration;
238+
buildSettings = {
239+
ALWAYS_SEARCH_USER_PATHS = NO;
240+
CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
241+
CLANG_CXX_LIBRARY = "libc++";
242+
CLANG_ENABLE_MODULES = YES;
243+
CLANG_ENABLE_OBJC_ARC = YES;
244+
CLANG_WARN_BOOL_CONVERSION = YES;
245+
CLANG_WARN_CONSTANT_CONVERSION = YES;
246+
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
247+
CLANG_WARN_EMPTY_BODY = YES;
248+
CLANG_WARN_ENUM_CONVERSION = YES;
249+
CLANG_WARN_INT_CONVERSION = YES;
250+
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
251+
CLANG_WARN_UNREACHABLE_CODE = YES;
252+
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
253+
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
254+
COPY_PHASE_STRIP = NO;
255+
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
256+
ENABLE_NS_ASSERTIONS = NO;
257+
ENABLE_STRICT_OBJC_MSGSEND = YES;
258+
GCC_C_LANGUAGE_STANDARD = gnu99;
259+
GCC_NO_COMMON_BLOCKS = YES;
260+
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
261+
GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
262+
GCC_WARN_UNDECLARED_SELECTOR = YES;
263+
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
264+
GCC_WARN_UNUSED_FUNCTION = YES;
265+
GCC_WARN_UNUSED_VARIABLE = YES;
266+
IPHONEOS_DEPLOYMENT_TARGET = 9.1;
267+
MTL_ENABLE_DEBUG_INFO = NO;
268+
SDKROOT = iphoneos;
269+
VALIDATE_PRODUCT = YES;
270+
};
271+
name = Release;
272+
};
273+
7D42AC8E1C197D2600BB3D3A /* Debug */ = {
274+
isa = XCBuildConfiguration;
275+
buildSettings = {
276+
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
277+
CODE_SIGN_IDENTITY = "iPhone Developer";
278+
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
279+
FRAMEWORK_SEARCH_PATHS = (
280+
"$(inherited)",
281+
"$(PROJECT_DIR)/../../BeaconstacSDK/",
282+
);
283+
INFOPLIST_FILE = SwiftExample/Info.plist;
284+
IPHONEOS_DEPLOYMENT_TARGET = 8.1;
285+
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
286+
PRODUCT_BUNDLE_IDENTIFIER = com.mobstac.SwiftExample;
287+
PRODUCT_NAME = "$(TARGET_NAME)";
288+
SWIFT_OBJC_BRIDGING_HEADER = "SwiftExample/SwiftExample-Bridging-Header.h";
289+
};
290+
name = Debug;
291+
};
292+
7D42AC8F1C197D2600BB3D3A /* Release */ = {
293+
isa = XCBuildConfiguration;
294+
buildSettings = {
295+
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
296+
CODE_SIGN_IDENTITY = "iPhone Developer";
297+
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
298+
FRAMEWORK_SEARCH_PATHS = (
299+
"$(inherited)",
300+
"$(PROJECT_DIR)/../../BeaconstacSDK/",
301+
);
302+
INFOPLIST_FILE = SwiftExample/Info.plist;
303+
IPHONEOS_DEPLOYMENT_TARGET = 8.1;
304+
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
305+
PRODUCT_BUNDLE_IDENTIFIER = com.mobstac.SwiftExample;
306+
PRODUCT_NAME = "$(TARGET_NAME)";
307+
SWIFT_OBJC_BRIDGING_HEADER = "SwiftExample/SwiftExample-Bridging-Header.h";
308+
};
309+
name = Release;
310+
};
311+
/* End XCBuildConfiguration section */
312+
313+
/* Begin XCConfigurationList section */
314+
7D42AC761C197D2600BB3D3A /* Build configuration list for PBXProject "SwiftExample" */ = {
315+
isa = XCConfigurationList;
316+
buildConfigurations = (
317+
7D42AC8B1C197D2600BB3D3A /* Debug */,
318+
7D42AC8C1C197D2600BB3D3A /* Release */,
319+
);
320+
defaultConfigurationIsVisible = 0;
321+
defaultConfigurationName = Release;
322+
};
323+
7D42AC8D1C197D2600BB3D3A /* Build configuration list for PBXNativeTarget "SwiftExample" */ = {
324+
isa = XCConfigurationList;
325+
buildConfigurations = (
326+
7D42AC8E1C197D2600BB3D3A /* Debug */,
327+
7D42AC8F1C197D2600BB3D3A /* Release */,
328+
);
329+
defaultConfigurationIsVisible = 0;
330+
};
331+
/* End XCConfigurationList section */
332+
};
333+
rootObject = 7D42AC731C197D2600BB3D3A /* Project object */;
334+
}

Examples/SwiftExample/SwiftExample.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: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
//
2+
// AppDelegate.swift
3+
// SwiftExample
4+
//
5+
// Copyright © 2015 Mobstac Inc. All rights reserved.
6+
//
7+
8+
import UIKit
9+
10+
@UIApplicationMain
11+
class AppDelegate: UIResponder, UIApplicationDelegate {
12+
13+
var window: UIWindow?
14+
15+
16+
func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool {
17+
// Override point for customization after application launch.
18+
return true
19+
}
20+
21+
func applicationWillResignActive(application: UIApplication) {
22+
// 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.
23+
// 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.
24+
}
25+
26+
func applicationDidEnterBackground(application: UIApplication) {
27+
// 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.
28+
// If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits.
29+
}
30+
31+
func applicationWillEnterForeground(application: UIApplication) {
32+
// 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.
33+
}
34+
35+
func applicationDidBecomeActive(application: UIApplication) {
36+
// 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.
37+
}
38+
39+
func applicationWillTerminate(application: UIApplication) {
40+
// Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:.
41+
}
42+
43+
44+
}
45+

0 commit comments

Comments
 (0)