Skip to content

Commit b4d2576

Browse files
committed
Demo application added.
1 parent 51c1f48 commit b4d2576

File tree

8 files changed

+754
-0
lines changed

8 files changed

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

DemoApp/EinlassDemo/AppDelegate.swift

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
//
2+
// Apache License, Version 2.0
3+
//
4+
// Copyright 2017, Markus Wanke
5+
//
6+
// Licensed under the Apache License, Version 2.0 (the "License");
7+
// you may not use this file except in compliance with the License.
8+
// You may obtain a copy of the License at
9+
//
10+
// http://www.apache.org/licenses/LICENSE-2.0
11+
//
12+
// Unless required by applicable law or agreed to in writing, software
13+
// distributed under the License is distributed on an "AS IS" BASIS,
14+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15+
// See the License for the specific language governing permissions and
16+
// limitations under the License.
17+
//
18+
19+
20+
import UIKit
21+
import Einlass
22+
23+
struct Const: FacebookConsumerCredentialProvider, TwitterConsumerCredentialProvider
24+
{
25+
static let FACEBOOK_APP_ID = <YOUR_FACEBOOK_APP_ID>
26+
27+
static let TWITTER_CONSUMER_KEY = <YOUR_TWITTER_CONSUMER_KEY>
28+
static let TWITTER_CONSUMER_SECRET = <YOUR_TWITTER_CONSUMER_SECRET>
29+
}
30+
31+
32+
@UIApplicationMain
33+
class AppDelegate: UIResponder, UIApplicationDelegate
34+
{
35+
var window: UIWindow?
36+
37+
func application(_ application: UIApplication, didFinishLaunchingWithOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool
38+
{
39+
FacebookAuthenticator.consumerCredentialProvider = Const.self
40+
TwitterAuthenticator.consumerCredentialProvider = Const.self
41+
42+
return true
43+
}
44+
}
45+
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="12120" systemVersion="16E195" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" launchScreen="YES" useTraitCollections="YES" colorMatched="YES" initialViewController="01J-lp-oVM">
3+
<device id="retina4_7" orientation="portrait">
4+
<adaptation id="fullscreen"/>
5+
</device>
6+
<dependencies>
7+
<deployment identifier="iOS"/>
8+
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="12088"/>
9+
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
10+
</dependencies>
11+
<scenes>
12+
<!--View Controller-->
13+
<scene sceneID="EHf-IW-A2E">
14+
<objects>
15+
<viewController id="01J-lp-oVM" sceneMemberID="viewController">
16+
<layoutGuides>
17+
<viewControllerLayoutGuide type="top" id="Llm-lL-Icb"/>
18+
<viewControllerLayoutGuide type="bottom" id="xb3-aO-Qok"/>
19+
</layoutGuides>
20+
<view key="view" contentMode="scaleToFill" id="Ze5-6b-2t3">
21+
<rect key="frame" x="0.0" y="0.0" width="375" height="667"/>
22+
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
23+
<subviews>
24+
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Einlass Demo" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="zxQ-Q0-oWz">
25+
<rect key="frame" x="60.5" y="170" width="254" height="48"/>
26+
<fontDescription key="fontDescription" type="boldSystem" pointSize="40"/>
27+
<color key="textColor" red="0.0" green="0.0" blue="0.0" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
28+
<nil key="highlightedColor"/>
29+
</label>
30+
</subviews>
31+
<color key="backgroundColor" red="0.8037109375" green="0.8037109375" blue="0.8037109375" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
32+
<constraints>
33+
<constraint firstItem="zxQ-Q0-oWz" firstAttribute="top" secondItem="Llm-lL-Icb" secondAttribute="bottom" constant="150" id="2JJ-to-rvo"/>
34+
<constraint firstItem="zxQ-Q0-oWz" firstAttribute="centerX" secondItem="Ze5-6b-2t3" secondAttribute="centerX" id="b1i-Yo-X2Y"/>
35+
</constraints>
36+
</view>
37+
</viewController>
38+
<placeholder placeholderIdentifier="IBFirstResponder" id="iYj-Kq-Ea1" userLabel="First Responder" sceneMemberID="firstResponder"/>
39+
</objects>
40+
<point key="canvasLocation" x="53" y="375"/>
41+
</scene>
42+
</scenes>
43+
</document>

0 commit comments

Comments
 (0)