Skip to content

Commit 2b7efa1

Browse files
authored
Merge pull request #224 from keenlabs/update_examples
Update examples and installation instructions
2 parents b5ac5c5 + 82912d2 commit 2b7efa1

File tree

75 files changed

+2191
-1162
lines changed

Some content is hidden

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

75 files changed

+2191
-1162
lines changed

.gitignore

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,10 @@ KeenClient.xcodeproj/project.xcworkspace/xcshareddata/KeenClient.xccheckout
1818
Gemfile.lock
1919

2020
# VS Code
21-
.vscode/
21+
.vscode/
22+
23+
# CocoaPods
24+
Pods/
25+
26+
# Carthage
27+
Checkouts/

.travis.yml

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@ osx_image: xcode8.3
77
xcode_workspace: KeenClient.xcworkspace
88
xcode_scheme:
99
- KeenClientFramework
10-
- KeenSwiftClientExample
11-
- KeenClientExample
1210
xcode_sdk: iphonesimulator10.3
1311
env:
1412
- XCODEBUILD_PLATFORM='iOS Simulator' XCODEBUILD_SIM_OS=10.3 XCODEBUILD_DEVICE='iPhone 6' XCODEBUILD_ACTION=build
@@ -31,6 +29,18 @@ matrix:
3129
xcode_sdk: macosx10.12
3230
env:
3331
- XCODEBUILD_PLATFORM='OS X' XCODEBUILD_ACTION=build
32+
- xcode_scheme: KeenClientExampleObjCCocoaPods
33+
xcode_sdk: iphonesimulator10.3
34+
env: POD_INSTALL=true XCODEBUILD_WORKSPACE=Examples/objc/cocoapods/KeenClientExampleObjCCocoaPods.xcworkspace XCODEBUILD_PLATFORM='iOS Simulator' XCODEBUILD_SIM_OS=10.3 XCODEBUILD_DEVICE='iPhone 6' XCODEBUILD_ACTION=build
35+
- xcode_scheme: KeenClientExampleObjCCarthage
36+
xcode_sdk: iphonesimulator10.3
37+
env: CARTHAGE_INSTALL=true XCODEBUILD_PROJECT=Examples/objc/carthage/KeenClientExampleObjCCarthage.xcodeproj XCODEBUILD_PROJECT_TARGET=KeenClientExampleObjCCarthage XCODEBUILD_PLATFORM='iOS Simulator' XCODEBUILD_SIM_OS=10.3 XCODEBUILD_DEVICE='iPhone 6' XCODEBUILD_ACTION=build
38+
- xcode_scheme: KeenClientExampleSwiftCocoaPods
39+
xcode_sdk: iphonesimulator10.3
40+
env: POD_INSTALL=true XCODEBUILD_WORKSPACE=Examples/swift/cocoapods/KeenClientExampleSwiftCocoaPods.xcworkspace XCODEBUILD_PLATFORM='iOS Simulator' XCODEBUILD_SIM_OS=10.3 XCODEBUILD_DEVICE='iPhone 6' XCODEBUILD_ACTION=build
41+
- xcode_scheme: KeenClientExampleSwiftCarthage
42+
xcode_sdk: iphonesimulator10.3
43+
env: CARTHAGE_INSTALL=true XCODEBUILD_PROJECT=Examples/swift/carthage/KeenClientExampleSwiftCarthage.xcodeproj XCODEBUILD_PROJECT_TARGET=KeenClientExampleSwiftCarthage XCODEBUILD_PLATFORM='iOS Simulator' XCODEBUILD_SIM_OS=10.3 XCODEBUILD_DEVICE='iPhone 6' XCODEBUILD_ACTION=build
3444

3545
before_install:
3646
- gem install bundler

Examples/objc/carthage/Cartfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
git "keenlabs/KeenClient-iOS"

Examples/objc/carthage/KeenClientExampleObjCCarthage.xcodeproj/project.pbxproj

Lines changed: 399 additions & 0 deletions
Large diffs are not rendered by default.

Examples/objc/carthage/KeenClientExampleObjCCarthage.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.

KeenSwiftClientExample/KeenSwiftClientExample/Images.xcassets/AppIcon.appiconset/Contents.json renamed to Examples/objc/carthage/KeenClientExampleObjCCarthage/Assets.xcassets/AppIcon.appiconset/Contents.json

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,36 @@
2929
"idiom" : "iphone",
3030
"size" : "60x60",
3131
"scale" : "3x"
32+
},
33+
{
34+
"idiom" : "ipad",
35+
"size" : "29x29",
36+
"scale" : "1x"
37+
},
38+
{
39+
"idiom" : "ipad",
40+
"size" : "29x29",
41+
"scale" : "2x"
42+
},
43+
{
44+
"idiom" : "ipad",
45+
"size" : "40x40",
46+
"scale" : "1x"
47+
},
48+
{
49+
"idiom" : "ipad",
50+
"size" : "40x40",
51+
"scale" : "2x"
52+
},
53+
{
54+
"idiom" : "ipad",
55+
"size" : "76x76",
56+
"scale" : "1x"
57+
},
58+
{
59+
"idiom" : "ipad",
60+
"size" : "76x76",
61+
"scale" : "2x"
3262
}
3363
],
3464
"info" : {
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
2+
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="11134" systemVersion="15F34" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" launchScreen="YES" useTraitCollections="YES" colorMatched="YES" initialViewController="01J-lp-oVM">
3+
<dependencies>
4+
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="11106"/>
5+
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
6+
</dependencies>
7+
<scenes>
8+
<!--View Controller-->
9+
<scene sceneID="EHf-IW-A2E">
10+
<objects>
11+
<viewController id="01J-lp-oVM" sceneMemberID="viewController">
12+
<layoutGuides>
13+
<viewControllerLayoutGuide type="top" id="Llm-lL-Icb"/>
14+
<viewControllerLayoutGuide type="bottom" id="xb3-aO-Qok"/>
15+
</layoutGuides>
16+
<view key="view" contentMode="scaleToFill" id="Ze5-6b-2t3">
17+
<rect key="frame" x="0.0" y="0.0" width="375" height="667"/>
18+
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
19+
<color key="backgroundColor" red="1" green="1" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
20+
</view>
21+
</viewController>
22+
<placeholder placeholderIdentifier="IBFirstResponder" id="iYj-Kq-Ea1" userLabel="First Responder" sceneMemberID="firstResponder"/>
23+
</objects>
24+
<point key="canvasLocation" x="53" y="375"/>
25+
</scene>
26+
</scenes>
27+
</document>

KeenClientExample/KeenClientExample/KeenClientExample-Info.plist renamed to Examples/objc/carthage/KeenClientExampleObjCCarthage/Info.plist

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -4,30 +4,24 @@
44
<dict>
55
<key>CFBundleDevelopmentRegion</key>
66
<string>en</string>
7-
<key>CFBundleDisplayName</key>
8-
<string>${PRODUCT_NAME}</string>
97
<key>CFBundleExecutable</key>
10-
<string>${EXECUTABLE_NAME}</string>
11-
<key>CFBundleIconFiles</key>
12-
<array/>
8+
<string>$(EXECUTABLE_NAME)</string>
139
<key>CFBundleIdentifier</key>
1410
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
1511
<key>CFBundleInfoDictionaryVersion</key>
1612
<string>6.0</string>
1713
<key>CFBundleName</key>
18-
<string>${PRODUCT_NAME}</string>
14+
<string>$(PRODUCT_NAME)</string>
1915
<key>CFBundlePackageType</key>
2016
<string>APPL</string>
2117
<key>CFBundleShortVersionString</key>
2218
<string>1.0</string>
23-
<key>CFBundleSignature</key>
24-
<string>????</string>
2519
<key>CFBundleVersion</key>
26-
<string>1.0</string>
20+
<string>1</string>
2721
<key>LSRequiresIPhoneOS</key>
2822
<true/>
29-
<key>NSLocationWhenInUseUsageDescription</key>
30-
<string>Location is required to allow collection of the geographical location of an event.</string>
23+
<key>UILaunchStoryboardName</key>
24+
<string>LaunchScreen</string>
3125
<key>UIRequiredDeviceCapabilities</key>
3226
<array>
3327
<string>armv7</string>
@@ -38,5 +32,12 @@
3832
<string>UIInterfaceOrientationLandscapeLeft</string>
3933
<string>UIInterfaceOrientationLandscapeRight</string>
4034
</array>
35+
<key>UISupportedInterfaceOrientations~ipad</key>
36+
<array>
37+
<string>UIInterfaceOrientationPortrait</string>
38+
<string>UIInterfaceOrientationPortraitUpsideDown</string>
39+
<string>UIInterfaceOrientationLandscapeLeft</string>
40+
<string>UIInterfaceOrientationLandscapeRight</string>
41+
</array>
4142
</dict>
4243
</plist>

Examples/objc/carthage/README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
A Cartfile is provided which will point to the latest version of the SDK available from github. Note that this may or may not build--that depends on if the version of the sample app checked out matches the latest SDK version on github, but is provided as an example of how to configure a Carthage project with the Keen SDK.
2+
3+
Also note that when running bin/simulate_travis.sh a Cartfile is generated that points to the local git repository and current local git branch, as well as a Cartfile.resolved that does the same.

0 commit comments

Comments
 (0)