From fb875cf0fd333d3ec4eac0f896d0062cb79a75aa Mon Sep 17 00:00:00 2001 From: Wenzhi Date: Mon, 7 Dec 2015 14:01:41 -0500 Subject: [PATCH] Release 1.0.0-alpha --- .gitignore | 39 ++ CHANGELOG.md | 8 + Example/Podfile | 26 + Example/Podfile.lock | 35 + .../Segment-Appboy.xcodeproj/project.pbxproj | 619 ++++++++++++++++++ .../contents.xcworkspacedata | 7 + .../xcschemes/Segment-Appboy-Example.xcscheme | 101 +++ .../contents.xcworkspacedata | 10 + .../AppIcon.appiconset/Contents.json | 68 ++ .../Contents.cold.json | 51 ++ .../LaunchImage.launchimage/Contents.json | 107 +++ .../LaunchImage.launchimage/Default-1.png | Bin 0 -> 1319 bytes .../LaunchImage.launchimage/Default-2-1-1.png | Bin 0 -> 1319 bytes .../LaunchImage.launchimage/Default-2-1.png | Bin 0 -> 1319 bytes .../LaunchImage.launchimage/Default-2.png | Bin 0 -> 1319 bytes .../Default-568h@2x.png | Bin 0 -> 4594 bytes .../LaunchImage.launchimage/Default.png | Bin 0 -> 1319 bytes .../Default@2x-1-1-1-1-1.png | Bin 0 -> 3740 bytes .../Default@2x-1-1-1-1.png | Bin 0 -> 3740 bytes .../Default@2x-1-1-1.png | Bin 0 -> 3740 bytes .../Default@2x-1-1.png | Bin 0 -> 3740 bytes .../LaunchImage.launchimage/Default@2x-1.png | Bin 0 -> 3740 bytes .../LaunchImage.launchimage/Default@2x.png | Bin 0 -> 3740 bytes Example/Segment-Appboy/LaunchScreen.xib | 16 + Example/Segment-Appboy/Main.storyboard | 65 ++ Example/Segment-Appboy/SEGAppDelegate.h | 7 + Example/Segment-Appboy/SEGAppDelegate.m | 44 ++ Example/Segment-Appboy/SEGViewController.h | 10 + Example/Segment-Appboy/SEGViewController.m | 57 ++ .../Segment-Appboy/Segment-Appboy-Info.plist | 47 ++ .../Segment-Appboy/Segment-Appboy-Prefix.pch | 16 + .../Segment-Appboy/en.lproj/InfoPlist.strings | 2 + Example/Segment-Appboy/main.m | 9 + Example/Tests/SEGAppboyIntegrationTest.m | 187 ++++++ Example/Tests/Tests-Info.plist | 22 + Example/Tests/Tests-Prefix.pch | 8 + Example/Tests/en.lproj/InfoPlist.strings | 2 + LICENSE | 21 + Makefile | 27 + Pod/Assets/.gitkeep | 0 Pod/Classes/.gitkeep | 0 Pod/Classes/SEGAppboyIntegration.h | 10 + Pod/Classes/SEGAppboyIntegration.m | 173 +++++ Pod/Classes/SEGAppboyIntegrationFactory.h | 8 + Pod/Classes/SEGAppboyIntegrationFactory.m | 32 + README.md | 56 +- RELEASING.md | 9 + Segment-Appboy.podspec | 27 + _Pods.xcodeproj | 1 + 49 files changed, 1925 insertions(+), 2 deletions(-) create mode 100644 .gitignore create mode 100644 CHANGELOG.md create mode 100644 Example/Podfile create mode 100644 Example/Podfile.lock create mode 100644 Example/Segment-Appboy.xcodeproj/project.pbxproj create mode 100644 Example/Segment-Appboy.xcodeproj/project.xcworkspace/contents.xcworkspacedata create mode 100644 Example/Segment-Appboy.xcodeproj/xcshareddata/xcschemes/Segment-Appboy-Example.xcscheme create mode 100644 Example/Segment-Appboy.xcworkspace/contents.xcworkspacedata create mode 100644 Example/Segment-Appboy/Images.xcassets/AppIcon.appiconset/Contents.json create mode 100644 Example/Segment-Appboy/Images.xcassets/LaunchImage.launchimage/Contents.cold.json create mode 100644 Example/Segment-Appboy/Images.xcassets/LaunchImage.launchimage/Contents.json create mode 100644 Example/Segment-Appboy/Images.xcassets/LaunchImage.launchimage/Default-1.png create mode 100644 Example/Segment-Appboy/Images.xcassets/LaunchImage.launchimage/Default-2-1-1.png create mode 100644 Example/Segment-Appboy/Images.xcassets/LaunchImage.launchimage/Default-2-1.png create mode 100644 Example/Segment-Appboy/Images.xcassets/LaunchImage.launchimage/Default-2.png create mode 100644 Example/Segment-Appboy/Images.xcassets/LaunchImage.launchimage/Default-568h@2x.png create mode 100644 Example/Segment-Appboy/Images.xcassets/LaunchImage.launchimage/Default.png create mode 100644 Example/Segment-Appboy/Images.xcassets/LaunchImage.launchimage/Default@2x-1-1-1-1-1.png create mode 100644 Example/Segment-Appboy/Images.xcassets/LaunchImage.launchimage/Default@2x-1-1-1-1.png create mode 100644 Example/Segment-Appboy/Images.xcassets/LaunchImage.launchimage/Default@2x-1-1-1.png create mode 100644 Example/Segment-Appboy/Images.xcassets/LaunchImage.launchimage/Default@2x-1-1.png create mode 100644 Example/Segment-Appboy/Images.xcassets/LaunchImage.launchimage/Default@2x-1.png create mode 100644 Example/Segment-Appboy/Images.xcassets/LaunchImage.launchimage/Default@2x.png create mode 100644 Example/Segment-Appboy/LaunchScreen.xib create mode 100644 Example/Segment-Appboy/Main.storyboard create mode 100644 Example/Segment-Appboy/SEGAppDelegate.h create mode 100644 Example/Segment-Appboy/SEGAppDelegate.m create mode 100644 Example/Segment-Appboy/SEGViewController.h create mode 100644 Example/Segment-Appboy/SEGViewController.m create mode 100644 Example/Segment-Appboy/Segment-Appboy-Info.plist create mode 100644 Example/Segment-Appboy/Segment-Appboy-Prefix.pch create mode 100644 Example/Segment-Appboy/en.lproj/InfoPlist.strings create mode 100644 Example/Segment-Appboy/main.m create mode 100644 Example/Tests/SEGAppboyIntegrationTest.m create mode 100644 Example/Tests/Tests-Info.plist create mode 100644 Example/Tests/Tests-Prefix.pch create mode 100644 Example/Tests/en.lproj/InfoPlist.strings create mode 100644 LICENSE create mode 100644 Makefile create mode 100644 Pod/Assets/.gitkeep create mode 100644 Pod/Classes/.gitkeep create mode 100644 Pod/Classes/SEGAppboyIntegration.h create mode 100644 Pod/Classes/SEGAppboyIntegration.m create mode 100644 Pod/Classes/SEGAppboyIntegrationFactory.h create mode 100644 Pod/Classes/SEGAppboyIntegrationFactory.m create mode 100644 RELEASING.md create mode 100644 Segment-Appboy.podspec create mode 120000 _Pods.xcodeproj diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..77d5e1a --- /dev/null +++ b/.gitignore @@ -0,0 +1,39 @@ +# OS X +.DS_Store + +# Xcode +build/ +*.pbxuser +!default.pbxuser +*.mode1v3 +!default.mode1v3 +*.mode2v3 +!default.mode2v3 +*.perspectivev3 +!default.perspectivev3 +xcuserdata +*.xccheckout +profile +*.moved-aside +DerivedData +*.hmap +*.ipa + +# Bundler +.bundle + +# AppCode +.idea/ + +# emacs +*~ + +Carthage +# We recommend against adding the Pods directory to your .gitignore. However +# you should judge for yourself, the pros and cons are mentioned at: +# http://guides.cocoapods.org/using/using-cocoapods.html#should-i-ignore-the-pods-directory-in-source-control +# +# Note: if you ignore the Pods directory, make sure to uncomment +# `pod install` in .travis.yml +# +Pods/ \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 0000000..f0de31b --- /dev/null +++ b/CHANGELOG.md @@ -0,0 +1,8 @@ +Change Log +========== + +Version 1.0.0-alpha *(December, 2015)* +------------------------------------------- +*(Supports analytics-ios 3.0.+ and Appboy 2.15.+)* + +Initial alpha release. diff --git a/Example/Podfile b/Example/Podfile new file mode 100644 index 0000000..3935dcc --- /dev/null +++ b/Example/Podfile @@ -0,0 +1,26 @@ +source 'https://github.com/CocoaPods/Specs.git' + +use_frameworks! + +target 'Segment-Appboy_Example', :exclusive => true do + pod "Segment-Appboy", :path => "../" + pod 'Analytics' +end + +target 'Segment-Appboy_Tests', :exclusive => true do + pod "Segment-Appboy", :path => "../" + pod 'Analytics' + pod 'Specta' + pod 'Expecta' + pod 'OCMock' +end + +post_install do |installer| + installer.pods_project.targets.each do |target| + target.build_configurations.each do |config| + if target.name == "Appboy-iOS-SDK" + config.build_settings["OTHER_LDFLAGS"] = '$(inherited) "-ObjC"' + end + end + end +end \ No newline at end of file diff --git a/Example/Podfile.lock b/Example/Podfile.lock new file mode 100644 index 0000000..4f615f7 --- /dev/null +++ b/Example/Podfile.lock @@ -0,0 +1,35 @@ +PODS: + - Analytics (3.0.1) + - Appboy-iOS-SDK (2.17.0): + - SDWebImage (~> 3.7.0) + - Expecta (1.0.5) + - OCMock (3.2) + - SDWebImage (3.7.3): + - SDWebImage/Core (= 3.7.3) + - SDWebImage/Core (3.7.3) + - Segment-Appboy (1.0.0): + - Analytics (~> 3.0.0) + - Appboy-iOS-SDK (~> 2.15) + - Specta (1.0.5) + +DEPENDENCIES: + - Analytics + - Expecta + - OCMock + - Segment-Appboy (from `../`) + - Specta + +EXTERNAL SOURCES: + Segment-Appboy: + :path: ../ + +SPEC CHECKSUMS: + Analytics: 3d943bbe5b5522b7b380645474a9a0c76d126ad1 + Appboy-iOS-SDK: cc3b430b910c2b4a231f7891cd587957a3041553 + Expecta: e1c022fcd33910b6be89c291d2775b3fe27a89fe + OCMock: 28def049ef47f996b515a8eeea958be7ccab2dbb + SDWebImage: 1d2b1a1efda1ade1b00b6f8498865f8ddedc8a84 + Segment-Appboy: 00b351d614a5af4629464787159c0e4beb541747 + Specta: ac94d110b865115fe60ff2c6d7281053c6f8e8a2 + +COCOAPODS: 0.39.0 diff --git a/Example/Segment-Appboy.xcodeproj/project.pbxproj b/Example/Segment-Appboy.xcodeproj/project.pbxproj new file mode 100644 index 0000000..f6a2fe4 --- /dev/null +++ b/Example/Segment-Appboy.xcodeproj/project.pbxproj @@ -0,0 +1,619 @@ +// !$*UTF8*$! +{ + archiveVersion = 1; + classes = { + }; + objectVersion = 46; + objects = { + +/* Begin PBXBuildFile section */ + 6003F58E195388D20070C39A /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 6003F58D195388D20070C39A /* Foundation.framework */; }; + 6003F590195388D20070C39A /* CoreGraphics.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 6003F58F195388D20070C39A /* CoreGraphics.framework */; }; + 6003F592195388D20070C39A /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 6003F591195388D20070C39A /* UIKit.framework */; }; + 6003F598195388D20070C39A /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = 6003F596195388D20070C39A /* InfoPlist.strings */; }; + 6003F59A195388D20070C39A /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 6003F599195388D20070C39A /* main.m */; }; + 6003F59E195388D20070C39A /* SEGAppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 6003F59D195388D20070C39A /* SEGAppDelegate.m */; }; + 6003F5A7195388D20070C39A /* SEGViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 6003F5A6195388D20070C39A /* SEGViewController.m */; }; + 6003F5A9195388D20070C39A /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 6003F5A8195388D20070C39A /* Images.xcassets */; }; + 6003F5B0195388D20070C39A /* XCTest.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 6003F5AF195388D20070C39A /* XCTest.framework */; }; + 6003F5B1195388D20070C39A /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 6003F58D195388D20070C39A /* Foundation.framework */; }; + 6003F5B2195388D20070C39A /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 6003F591195388D20070C39A /* UIKit.framework */; }; + 6003F5BA195388D20070C39A /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = 6003F5B8195388D20070C39A /* InfoPlist.strings */; }; + 6003F5BC195388D20070C39A /* SEGAppboyIntegrationTest.m in Sources */ = {isa = PBXBuildFile; fileRef = 6003F5BB195388D20070C39A /* SEGAppboyIntegrationTest.m */; }; + 873B8AEB1B1F5CCA007FD442 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 873B8AEA1B1F5CCA007FD442 /* Main.storyboard */; }; + D3C0897B71D57C614E791C33 /* Pods_Segment_Appboy_Tests.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = F373C65B14EBD0A693B5E1B9 /* Pods_Segment_Appboy_Tests.framework */; }; + E34AFDEF1C0E7B3B0069EFC5 /* LaunchScreen.xib in Resources */ = {isa = PBXBuildFile; fileRef = E34AFDEE1C0E7B3B0069EFC5 /* LaunchScreen.xib */; }; + EE2F29D98DEAD57250510643 /* Pods_Segment_Appboy_Example.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 589BD37A4C260FD9A3C992C7 /* Pods_Segment_Appboy_Example.framework */; }; +/* End PBXBuildFile section */ + +/* Begin PBXContainerItemProxy section */ + 6003F5B3195388D20070C39A /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = 6003F582195388D10070C39A /* Project object */; + proxyType = 1; + remoteGlobalIDString = 6003F589195388D20070C39A; + remoteInfo = "Segment-Appboy"; + }; +/* End PBXContainerItemProxy section */ + +/* Begin PBXFileReference section */ + 201291CD83F54EB0C208C304 /* Pods-Segment-Appboy_Example.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Segment-Appboy_Example.debug.xcconfig"; path = "Pods/Target Support Files/Pods-Segment-Appboy_Example/Pods-Segment-Appboy_Example.debug.xcconfig"; sourceTree = ""; }; + 27DBD57E45C0D4DEADCB5EAA /* Pods-Segment-Appboy_Tests.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Segment-Appboy_Tests.debug.xcconfig"; path = "Pods/Target Support Files/Pods-Segment-Appboy_Tests/Pods-Segment-Appboy_Tests.debug.xcconfig"; sourceTree = ""; }; + 2AF177CC51F0E4C8BFF06EC5 /* LICENSE */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; name = LICENSE; path = ../LICENSE; sourceTree = ""; }; + 589BD37A4C260FD9A3C992C7 /* Pods_Segment_Appboy_Example.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_Segment_Appboy_Example.framework; sourceTree = BUILT_PRODUCTS_DIR; }; + 6003F58A195388D20070C39A /* Segment-Appboy_Example.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "Segment-Appboy_Example.app"; sourceTree = BUILT_PRODUCTS_DIR; }; + 6003F58D195388D20070C39A /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = System/Library/Frameworks/Foundation.framework; sourceTree = SDKROOT; }; + 6003F58F195388D20070C39A /* CoreGraphics.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreGraphics.framework; path = System/Library/Frameworks/CoreGraphics.framework; sourceTree = SDKROOT; }; + 6003F591195388D20070C39A /* UIKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = UIKit.framework; path = System/Library/Frameworks/UIKit.framework; sourceTree = SDKROOT; }; + 6003F595195388D20070C39A /* Segment-Appboy-Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = "Segment-Appboy-Info.plist"; sourceTree = ""; }; + 6003F597195388D20070C39A /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/InfoPlist.strings; sourceTree = ""; }; + 6003F599195388D20070C39A /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = ""; }; + 6003F59C195388D20070C39A /* SEGAppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = SEGAppDelegate.h; sourceTree = ""; }; + 6003F59D195388D20070C39A /* SEGAppDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = SEGAppDelegate.m; sourceTree = ""; }; + 6003F5A5195388D20070C39A /* SEGViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = SEGViewController.h; sourceTree = ""; }; + 6003F5A6195388D20070C39A /* SEGViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = SEGViewController.m; sourceTree = ""; }; + 6003F5A8195388D20070C39A /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Images.xcassets; sourceTree = ""; }; + 6003F5AE195388D20070C39A /* Segment-Appboy_Tests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = "Segment-Appboy_Tests.xctest"; sourceTree = BUILT_PRODUCTS_DIR; }; + 6003F5AF195388D20070C39A /* XCTest.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = XCTest.framework; path = Library/Frameworks/XCTest.framework; sourceTree = DEVELOPER_DIR; }; + 6003F5B7195388D20070C39A /* Tests-Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = "Tests-Info.plist"; sourceTree = ""; }; + 6003F5B9195388D20070C39A /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/InfoPlist.strings; sourceTree = ""; }; + 6003F5BB195388D20070C39A /* SEGAppboyIntegrationTest.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = SEGAppboyIntegrationTest.m; sourceTree = ""; }; + 606FC2411953D9B200FFA9A0 /* Tests-Prefix.pch */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "Tests-Prefix.pch"; sourceTree = ""; }; + 873B8AEA1B1F5CCA007FD442 /* Main.storyboard */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.storyboard; path = Main.storyboard; sourceTree = ""; }; + A3F2E40E91ECF99EB610E19D /* Pods-Segment-Appboy_Example.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Segment-Appboy_Example.release.xcconfig"; path = "Pods/Target Support Files/Pods-Segment-Appboy_Example/Pods-Segment-Appboy_Example.release.xcconfig"; sourceTree = ""; }; + E10DD4E3EA59929200EB78C1 /* README.md */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = net.daringfireball.markdown; name = README.md; path = ../README.md; sourceTree = ""; }; + E34AFDEE1C0E7B3B0069EFC5 /* LaunchScreen.xib */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.xib; path = LaunchScreen.xib; sourceTree = ""; }; + F098DD1A877DE2E944D7137E /* Pods-Segment-Appboy_Tests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Segment-Appboy_Tests.release.xcconfig"; path = "Pods/Target Support Files/Pods-Segment-Appboy_Tests/Pods-Segment-Appboy_Tests.release.xcconfig"; sourceTree = ""; }; + F373C65B14EBD0A693B5E1B9 /* Pods_Segment_Appboy_Tests.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_Segment_Appboy_Tests.framework; sourceTree = BUILT_PRODUCTS_DIR; }; +/* End PBXFileReference section */ + +/* Begin PBXFrameworksBuildPhase section */ + 6003F587195388D20070C39A /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + 6003F590195388D20070C39A /* CoreGraphics.framework in Frameworks */, + 6003F592195388D20070C39A /* UIKit.framework in Frameworks */, + 6003F58E195388D20070C39A /* Foundation.framework in Frameworks */, + EE2F29D98DEAD57250510643 /* Pods_Segment_Appboy_Example.framework in Frameworks */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 6003F5AB195388D20070C39A /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + 6003F5B0195388D20070C39A /* XCTest.framework in Frameworks */, + 6003F5B2195388D20070C39A /* UIKit.framework in Frameworks */, + 6003F5B1195388D20070C39A /* Foundation.framework in Frameworks */, + D3C0897B71D57C614E791C33 /* Pods_Segment_Appboy_Tests.framework in Frameworks */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXFrameworksBuildPhase section */ + +/* Begin PBXGroup section */ + 6003F581195388D10070C39A = { + isa = PBXGroup; + children = ( + 60FF7A9C1954A5C5007DD14C /* Podspec Metadata */, + 6003F593195388D20070C39A /* Example for Segment-Appboy */, + 6003F5B5195388D20070C39A /* Tests */, + 6003F58C195388D20070C39A /* Frameworks */, + 6003F58B195388D20070C39A /* Products */, + 73B97EDD6E3B40D0149ABD67 /* Pods */, + ); + sourceTree = ""; + }; + 6003F58B195388D20070C39A /* Products */ = { + isa = PBXGroup; + children = ( + 6003F58A195388D20070C39A /* Segment-Appboy_Example.app */, + 6003F5AE195388D20070C39A /* Segment-Appboy_Tests.xctest */, + ); + name = Products; + sourceTree = ""; + }; + 6003F58C195388D20070C39A /* Frameworks */ = { + isa = PBXGroup; + children = ( + 6003F58D195388D20070C39A /* Foundation.framework */, + 6003F58F195388D20070C39A /* CoreGraphics.framework */, + 6003F591195388D20070C39A /* UIKit.framework */, + 6003F5AF195388D20070C39A /* XCTest.framework */, + 589BD37A4C260FD9A3C992C7 /* Pods_Segment_Appboy_Example.framework */, + F373C65B14EBD0A693B5E1B9 /* Pods_Segment_Appboy_Tests.framework */, + ); + name = Frameworks; + sourceTree = ""; + }; + 6003F593195388D20070C39A /* Example for Segment-Appboy */ = { + isa = PBXGroup; + children = ( + E34AFDEE1C0E7B3B0069EFC5 /* LaunchScreen.xib */, + 6003F59C195388D20070C39A /* SEGAppDelegate.h */, + 6003F59D195388D20070C39A /* SEGAppDelegate.m */, + 873B8AEA1B1F5CCA007FD442 /* Main.storyboard */, + 6003F5A5195388D20070C39A /* SEGViewController.h */, + 6003F5A6195388D20070C39A /* SEGViewController.m */, + 6003F5A8195388D20070C39A /* Images.xcassets */, + 6003F594195388D20070C39A /* Supporting Files */, + ); + name = "Example for Segment-Appboy"; + path = "Segment-Appboy"; + sourceTree = ""; + }; + 6003F594195388D20070C39A /* Supporting Files */ = { + isa = PBXGroup; + children = ( + 6003F595195388D20070C39A /* Segment-Appboy-Info.plist */, + 6003F596195388D20070C39A /* InfoPlist.strings */, + 6003F599195388D20070C39A /* main.m */, + ); + name = "Supporting Files"; + sourceTree = ""; + }; + 6003F5B5195388D20070C39A /* Tests */ = { + isa = PBXGroup; + children = ( + 6003F5BB195388D20070C39A /* SEGAppboyIntegrationTest.m */, + 6003F5B6195388D20070C39A /* Supporting Files */, + ); + path = Tests; + sourceTree = ""; + }; + 6003F5B6195388D20070C39A /* Supporting Files */ = { + isa = PBXGroup; + children = ( + 6003F5B7195388D20070C39A /* Tests-Info.plist */, + 6003F5B8195388D20070C39A /* InfoPlist.strings */, + 606FC2411953D9B200FFA9A0 /* Tests-Prefix.pch */, + ); + name = "Supporting Files"; + sourceTree = ""; + }; + 60FF7A9C1954A5C5007DD14C /* Podspec Metadata */ = { + isa = PBXGroup; + children = ( + E10DD4E3EA59929200EB78C1 /* README.md */, + 2AF177CC51F0E4C8BFF06EC5 /* LICENSE */, + ); + name = "Podspec Metadata"; + sourceTree = ""; + }; + 73B97EDD6E3B40D0149ABD67 /* Pods */ = { + isa = PBXGroup; + children = ( + 201291CD83F54EB0C208C304 /* Pods-Segment-Appboy_Example.debug.xcconfig */, + 27DBD57E45C0D4DEADCB5EAA /* Pods-Segment-Appboy_Tests.debug.xcconfig */, + A3F2E40E91ECF99EB610E19D /* Pods-Segment-Appboy_Example.release.xcconfig */, + F098DD1A877DE2E944D7137E /* Pods-Segment-Appboy_Tests.release.xcconfig */, + ); + name = Pods; + sourceTree = ""; + }; +/* End PBXGroup section */ + +/* Begin PBXNativeTarget section */ + 6003F589195388D20070C39A /* Segment-Appboy_Example */ = { + isa = PBXNativeTarget; + buildConfigurationList = 6003F5BF195388D20070C39A /* Build configuration list for PBXNativeTarget "Segment-Appboy_Example" */; + buildPhases = ( + 435E4717A088B9549A0B43C6 /* Check Pods Manifest.lock */, + 6003F586195388D20070C39A /* Sources */, + 6003F587195388D20070C39A /* Frameworks */, + 6003F588195388D20070C39A /* Resources */, + D3665A2A329991C788AD855F /* Embed Pods Frameworks */, + B7D8B7B344BC559F45D51EE6 /* Copy Pods Resources */, + ); + buildRules = ( + ); + dependencies = ( + ); + name = "Segment-Appboy_Example"; + productName = "Segment-Appboy"; + productReference = 6003F58A195388D20070C39A /* Segment-Appboy_Example.app */; + productType = "com.apple.product-type.application"; + }; + 6003F5AD195388D20070C39A /* Segment-Appboy_Tests */ = { + isa = PBXNativeTarget; + buildConfigurationList = 6003F5C2195388D20070C39A /* Build configuration list for PBXNativeTarget "Segment-Appboy_Tests" */; + buildPhases = ( + E802DAF3E4C6D80BE10A2B25 /* Check Pods Manifest.lock */, + 6003F5AA195388D20070C39A /* Sources */, + 6003F5AB195388D20070C39A /* Frameworks */, + 6003F5AC195388D20070C39A /* Resources */, + 8C97F5D383595BA7C234BB82 /* Embed Pods Frameworks */, + B7FF83C7C1E793F4BF195D61 /* Copy Pods Resources */, + ); + buildRules = ( + ); + dependencies = ( + 6003F5B4195388D20070C39A /* PBXTargetDependency */, + ); + name = "Segment-Appboy_Tests"; + productName = "Segment-AppboyTests"; + productReference = 6003F5AE195388D20070C39A /* Segment-Appboy_Tests.xctest */; + productType = "com.apple.product-type.bundle.unit-test"; + }; +/* End PBXNativeTarget section */ + +/* Begin PBXProject section */ + 6003F582195388D10070C39A /* Project object */ = { + isa = PBXProject; + attributes = { + CLASSPREFIX = SEG; + LastUpgradeCheck = 0510; + ORGANIZATIONNAME = Appboy; + TargetAttributes = { + 6003F589195388D20070C39A = { + DevelopmentTeam = 5GLZKGNWQ3; + }; + 6003F5AD195388D20070C39A = { + TestTargetID = 6003F589195388D20070C39A; + }; + }; + }; + buildConfigurationList = 6003F585195388D10070C39A /* Build configuration list for PBXProject "Segment-Appboy" */; + compatibilityVersion = "Xcode 3.2"; + developmentRegion = English; + hasScannedForEncodings = 0; + knownRegions = ( + en, + Base, + ); + mainGroup = 6003F581195388D10070C39A; + productRefGroup = 6003F58B195388D20070C39A /* Products */; + projectDirPath = ""; + projectRoot = ""; + targets = ( + 6003F589195388D20070C39A /* Segment-Appboy_Example */, + 6003F5AD195388D20070C39A /* Segment-Appboy_Tests */, + ); + }; +/* End PBXProject section */ + +/* Begin PBXResourcesBuildPhase section */ + 6003F588195388D20070C39A /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + E34AFDEF1C0E7B3B0069EFC5 /* LaunchScreen.xib in Resources */, + 873B8AEB1B1F5CCA007FD442 /* Main.storyboard in Resources */, + 6003F5A9195388D20070C39A /* Images.xcassets in Resources */, + 6003F598195388D20070C39A /* InfoPlist.strings in Resources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 6003F5AC195388D20070C39A /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 6003F5BA195388D20070C39A /* InfoPlist.strings in Resources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXResourcesBuildPhase section */ + +/* Begin PBXShellScriptBuildPhase section */ + 435E4717A088B9549A0B43C6 /* Check Pods Manifest.lock */ = { + isa = PBXShellScriptBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + inputPaths = ( + ); + name = "Check Pods Manifest.lock"; + outputPaths = ( + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "diff \"${PODS_ROOT}/../Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [[ $? != 0 ]] ; then\n cat << EOM\nerror: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\nEOM\n exit 1\nfi\n"; + showEnvVarsInLog = 0; + }; + 8C97F5D383595BA7C234BB82 /* Embed Pods Frameworks */ = { + isa = PBXShellScriptBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + inputPaths = ( + ); + name = "Embed Pods Frameworks"; + outputPaths = ( + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-Segment-Appboy_Tests/Pods-Segment-Appboy_Tests-frameworks.sh\"\n"; + showEnvVarsInLog = 0; + }; + B7D8B7B344BC559F45D51EE6 /* Copy Pods Resources */ = { + isa = PBXShellScriptBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + inputPaths = ( + ); + name = "Copy Pods Resources"; + outputPaths = ( + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-Segment-Appboy_Example/Pods-Segment-Appboy_Example-resources.sh\"\n"; + showEnvVarsInLog = 0; + }; + B7FF83C7C1E793F4BF195D61 /* Copy Pods Resources */ = { + isa = PBXShellScriptBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + inputPaths = ( + ); + name = "Copy Pods Resources"; + outputPaths = ( + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-Segment-Appboy_Tests/Pods-Segment-Appboy_Tests-resources.sh\"\n"; + showEnvVarsInLog = 0; + }; + D3665A2A329991C788AD855F /* Embed Pods Frameworks */ = { + isa = PBXShellScriptBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + inputPaths = ( + ); + name = "Embed Pods Frameworks"; + outputPaths = ( + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-Segment-Appboy_Example/Pods-Segment-Appboy_Example-frameworks.sh\"\n"; + showEnvVarsInLog = 0; + }; + E802DAF3E4C6D80BE10A2B25 /* Check Pods Manifest.lock */ = { + isa = PBXShellScriptBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + inputPaths = ( + ); + name = "Check Pods Manifest.lock"; + outputPaths = ( + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "diff \"${PODS_ROOT}/../Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [[ $? != 0 ]] ; then\n cat << EOM\nerror: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\nEOM\n exit 1\nfi\n"; + showEnvVarsInLog = 0; + }; +/* End PBXShellScriptBuildPhase section */ + +/* Begin PBXSourcesBuildPhase section */ + 6003F586195388D20070C39A /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 6003F59E195388D20070C39A /* SEGAppDelegate.m in Sources */, + 6003F5A7195388D20070C39A /* SEGViewController.m in Sources */, + 6003F59A195388D20070C39A /* main.m in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 6003F5AA195388D20070C39A /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 6003F5BC195388D20070C39A /* SEGAppboyIntegrationTest.m in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXSourcesBuildPhase section */ + +/* Begin PBXTargetDependency section */ + 6003F5B4195388D20070C39A /* PBXTargetDependency */ = { + isa = PBXTargetDependency; + target = 6003F589195388D20070C39A /* Segment-Appboy_Example */; + targetProxy = 6003F5B3195388D20070C39A /* PBXContainerItemProxy */; + }; +/* End PBXTargetDependency section */ + +/* Begin PBXVariantGroup section */ + 6003F596195388D20070C39A /* InfoPlist.strings */ = { + isa = PBXVariantGroup; + children = ( + 6003F597195388D20070C39A /* en */, + ); + name = InfoPlist.strings; + sourceTree = ""; + }; + 6003F5B8195388D20070C39A /* InfoPlist.strings */ = { + isa = PBXVariantGroup; + children = ( + 6003F5B9195388D20070C39A /* en */, + ); + name = InfoPlist.strings; + sourceTree = ""; + }; +/* End PBXVariantGroup section */ + +/* Begin XCBuildConfiguration section */ + 6003F5BD195388D20070C39A /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; + CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; + COPY_PHASE_STRIP = NO; + GCC_C_LANGUAGE_STANDARD = gnu99; + GCC_DYNAMIC_NO_PIC = NO; + GCC_OPTIMIZATION_LEVEL = 0; + GCC_PREPROCESSOR_DEFINITIONS = ( + "DEBUG=1", + "$(inherited)", + ); + GCC_SYMBOLS_PRIVATE_EXTERN = NO; + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNDECLARED_SELECTOR = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + IPHONEOS_DEPLOYMENT_TARGET = 8.0; + ONLY_ACTIVE_ARCH = YES; + SDKROOT = iphoneos; + TARGETED_DEVICE_FAMILY = "1,2"; + }; + name = Debug; + }; + 6003F5BE195388D20070C39A /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; + CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; + COPY_PHASE_STRIP = YES; + ENABLE_NS_ASSERTIONS = NO; + GCC_C_LANGUAGE_STANDARD = gnu99; + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNDECLARED_SELECTOR = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + IPHONEOS_DEPLOYMENT_TARGET = 8.0; + SDKROOT = iphoneos; + TARGETED_DEVICE_FAMILY = "1,2"; + VALIDATE_PRODUCT = YES; + }; + name = Release; + }; + 6003F5C0195388D20070C39A /* Debug */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 201291CD83F54EB0C208C304 /* Pods-Segment-Appboy_Example.debug.xcconfig */; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage; + CODE_SIGN_IDENTITY = "iPhone Distribution: Appboy Inc. (5GLZKGNWQ3)"; + GCC_PRECOMPILE_PREFIX_HEADER = YES; + GCC_PREFIX_HEADER = ""; + INFOPLIST_FILE = "Segment-Appboy/Segment-Appboy-Info.plist"; + IPHONEOS_DEPLOYMENT_TARGET = 8.0; + MODULE_NAME = ExampleApp; + PRODUCT_BUNDLE_IDENTIFIER = com.appboy.stopwatch; + PRODUCT_NAME = "$(TARGET_NAME)"; + PROVISIONING_PROFILE = "a84a14f8-b97b-4c32-b627-1ef89b964c33"; + WRAPPER_EXTENSION = app; + }; + name = Debug; + }; + 6003F5C1195388D20070C39A /* Release */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = A3F2E40E91ECF99EB610E19D /* Pods-Segment-Appboy_Example.release.xcconfig */; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage; + CODE_SIGN_IDENTITY = "iPhone Distribution: Appboy Inc. (5GLZKGNWQ3)"; + GCC_PRECOMPILE_PREFIX_HEADER = YES; + GCC_PREFIX_HEADER = ""; + INFOPLIST_FILE = "Segment-Appboy/Segment-Appboy-Info.plist"; + IPHONEOS_DEPLOYMENT_TARGET = 8.0; + MODULE_NAME = ExampleApp; + PRODUCT_BUNDLE_IDENTIFIER = com.appboy.stopwatch; + PRODUCT_NAME = "$(TARGET_NAME)"; + PROVISIONING_PROFILE = "a84a14f8-b97b-4c32-b627-1ef89b964c33"; + WRAPPER_EXTENSION = app; + }; + name = Release; + }; + 6003F5C3195388D20070C39A /* Debug */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 27DBD57E45C0D4DEADCB5EAA /* Pods-Segment-Appboy_Tests.debug.xcconfig */; + buildSettings = { + BUNDLE_LOADER = "$(TEST_HOST)"; + FRAMEWORK_SEARCH_PATHS = "$(inherited)"; + GCC_PRECOMPILE_PREFIX_HEADER = YES; + GCC_PREFIX_HEADER = "Tests/Tests-Prefix.pch"; + GCC_PREPROCESSOR_DEFINITIONS = ( + "DEBUG=1", + "$(inherited)", + ); + INFOPLIST_FILE = "Tests/Tests-Info.plist"; + PRODUCT_NAME = "$(TARGET_NAME)"; + TEST_HOST = "$(BUILT_PRODUCTS_DIR)/Segment-Appboy_Example.app/Segment-Appboy_Example"; + WRAPPER_EXTENSION = xctest; + }; + name = Debug; + }; + 6003F5C4195388D20070C39A /* Release */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = F098DD1A877DE2E944D7137E /* Pods-Segment-Appboy_Tests.release.xcconfig */; + buildSettings = { + BUNDLE_LOADER = "$(TEST_HOST)"; + FRAMEWORK_SEARCH_PATHS = "$(inherited)"; + GCC_PRECOMPILE_PREFIX_HEADER = YES; + GCC_PREFIX_HEADER = "Tests/Tests-Prefix.pch"; + INFOPLIST_FILE = "Tests/Tests-Info.plist"; + PRODUCT_NAME = "$(TARGET_NAME)"; + TEST_HOST = "$(BUILT_PRODUCTS_DIR)/Segment-Appboy_Example.app/Segment-Appboy_Example"; + WRAPPER_EXTENSION = xctest; + }; + name = Release; + }; +/* End XCBuildConfiguration section */ + +/* Begin XCConfigurationList section */ + 6003F585195388D10070C39A /* Build configuration list for PBXProject "Segment-Appboy" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 6003F5BD195388D20070C39A /* Debug */, + 6003F5BE195388D20070C39A /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + 6003F5BF195388D20070C39A /* Build configuration list for PBXNativeTarget "Segment-Appboy_Example" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 6003F5C0195388D20070C39A /* Debug */, + 6003F5C1195388D20070C39A /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + 6003F5C2195388D20070C39A /* Build configuration list for PBXNativeTarget "Segment-Appboy_Tests" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 6003F5C3195388D20070C39A /* Debug */, + 6003F5C4195388D20070C39A /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; +/* End XCConfigurationList section */ + }; + rootObject = 6003F582195388D10070C39A /* Project object */; +} diff --git a/Example/Segment-Appboy.xcodeproj/project.xcworkspace/contents.xcworkspacedata b/Example/Segment-Appboy.xcodeproj/project.xcworkspace/contents.xcworkspacedata new file mode 100644 index 0000000..7cfa2b4 --- /dev/null +++ b/Example/Segment-Appboy.xcodeproj/project.xcworkspace/contents.xcworkspacedata @@ -0,0 +1,7 @@ + + + + + diff --git a/Example/Segment-Appboy.xcodeproj/xcshareddata/xcschemes/Segment-Appboy-Example.xcscheme b/Example/Segment-Appboy.xcodeproj/xcshareddata/xcschemes/Segment-Appboy-Example.xcscheme new file mode 100644 index 0000000..316277f --- /dev/null +++ b/Example/Segment-Appboy.xcodeproj/xcshareddata/xcschemes/Segment-Appboy-Example.xcscheme @@ -0,0 +1,101 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Example/Segment-Appboy.xcworkspace/contents.xcworkspacedata b/Example/Segment-Appboy.xcworkspace/contents.xcworkspacedata new file mode 100644 index 0000000..b7d1aef --- /dev/null +++ b/Example/Segment-Appboy.xcworkspace/contents.xcworkspacedata @@ -0,0 +1,10 @@ + + + + + + + diff --git a/Example/Segment-Appboy/Images.xcassets/AppIcon.appiconset/Contents.json b/Example/Segment-Appboy/Images.xcassets/AppIcon.appiconset/Contents.json new file mode 100644 index 0000000..36d2c80 --- /dev/null +++ b/Example/Segment-Appboy/Images.xcassets/AppIcon.appiconset/Contents.json @@ -0,0 +1,68 @@ +{ + "images" : [ + { + "idiom" : "iphone", + "size" : "29x29", + "scale" : "2x" + }, + { + "idiom" : "iphone", + "size" : "29x29", + "scale" : "3x" + }, + { + "idiom" : "iphone", + "size" : "40x40", + "scale" : "2x" + }, + { + "idiom" : "iphone", + "size" : "40x40", + "scale" : "3x" + }, + { + "idiom" : "iphone", + "size" : "60x60", + "scale" : "2x" + }, + { + "idiom" : "iphone", + "size" : "60x60", + "scale" : "3x" + }, + { + "idiom" : "ipad", + "size" : "29x29", + "scale" : "1x" + }, + { + "idiom" : "ipad", + "size" : "29x29", + "scale" : "2x" + }, + { + "idiom" : "ipad", + "size" : "40x40", + "scale" : "1x" + }, + { + "idiom" : "ipad", + "size" : "40x40", + "scale" : "2x" + }, + { + "idiom" : "ipad", + "size" : "76x76", + "scale" : "1x" + }, + { + "idiom" : "ipad", + "size" : "76x76", + "scale" : "2x" + } + ], + "info" : { + "version" : 1, + "author" : "xcode" + } +} \ No newline at end of file diff --git a/Example/Segment-Appboy/Images.xcassets/LaunchImage.launchimage/Contents.cold.json b/Example/Segment-Appboy/Images.xcassets/LaunchImage.launchimage/Contents.cold.json new file mode 100644 index 0000000..4458b40 --- /dev/null +++ b/Example/Segment-Appboy/Images.xcassets/LaunchImage.launchimage/Contents.cold.json @@ -0,0 +1,51 @@ +{ + "images" : [ + { + "orientation" : "portrait", + "idiom" : "iphone", + "extent" : "full-screen", + "minimum-system-version" : "7.0", + "scale" : "2x" + }, + { + "orientation" : "portrait", + "idiom" : "iphone", + "subtype" : "retina4", + "extent" : "full-screen", + "minimum-system-version" : "7.0", + "scale" : "2x" + }, + { + "orientation" : "portrait", + "idiom" : "ipad", + "extent" : "full-screen", + "minimum-system-version" : "7.0", + "scale" : "1x" + }, + { + "orientation" : "landscape", + "idiom" : "ipad", + "extent" : "full-screen", + "minimum-system-version" : "7.0", + "scale" : "1x" + }, + { + "orientation" : "portrait", + "idiom" : "ipad", + "extent" : "full-screen", + "minimum-system-version" : "7.0", + "scale" : "2x" + }, + { + "orientation" : "landscape", + "idiom" : "ipad", + "extent" : "full-screen", + "minimum-system-version" : "7.0", + "scale" : "2x" + } + ], + "info" : { + "version" : 1, + "author" : "xcode" + } +} diff --git a/Example/Segment-Appboy/Images.xcassets/LaunchImage.launchimage/Contents.json b/Example/Segment-Appboy/Images.xcassets/LaunchImage.launchimage/Contents.json new file mode 100644 index 0000000..d8f0113 --- /dev/null +++ b/Example/Segment-Appboy/Images.xcassets/LaunchImage.launchimage/Contents.json @@ -0,0 +1,107 @@ +{ + "images" : [ + { + "orientation" : "portrait", + "idiom" : "iphone", + "extent" : "full-screen", + "minimum-system-version" : "7.0", + "filename" : "Default@2x-1.png", + "scale" : "2x" + }, + { + "extent" : "full-screen", + "idiom" : "iphone", + "subtype" : "retina4", + "filename" : "Default-568h@2x.png", + "minimum-system-version" : "7.0", + "orientation" : "portrait", + "scale" : "2x" + }, + { + "orientation" : "portrait", + "idiom" : "ipad", + "extent" : "full-screen", + "minimum-system-version" : "7.0", + "filename" : "Default@2x-1-1.png", + "scale" : "1x" + }, + { + "orientation" : "landscape", + "idiom" : "ipad", + "extent" : "full-screen", + "minimum-system-version" : "7.0", + "filename" : "Default@2x-1-1-1-1.png", + "scale" : "1x" + }, + { + "orientation" : "portrait", + "idiom" : "ipad", + "extent" : "full-screen", + "minimum-system-version" : "7.0", + "filename" : "Default@2x-1-1-1.png", + "scale" : "2x" + }, + { + "orientation" : "landscape", + "idiom" : "ipad", + "extent" : "full-screen", + "minimum-system-version" : "7.0", + "filename" : "Default@2x-1-1-1-1-1.png", + "scale" : "2x" + }, + { + "orientation" : "portrait", + "idiom" : "iphone", + "extent" : "full-screen", + "filename" : "Default-1.png", + "scale" : "1x" + }, + { + "orientation" : "portrait", + "idiom" : "iphone", + "extent" : "full-screen", + "filename" : "Default@2x.png", + "scale" : "2x" + }, + { + "orientation" : "portrait", + "idiom" : "iphone", + "extent" : "full-screen", + "filename" : "Default-568h@2x.png", + "subtype" : "retina4", + "scale" : "2x" + }, + { + "orientation" : "portrait", + "idiom" : "ipad", + "extent" : "to-status-bar", + "filename" : "Default.png", + "scale" : "1x" + }, + { + "orientation" : "landscape", + "idiom" : "ipad", + "extent" : "to-status-bar", + "filename" : "Default-2-1.png", + "scale" : "1x" + }, + { + "orientation" : "portrait", + "idiom" : "ipad", + "extent" : "to-status-bar", + "filename" : "Default-2.png", + "scale" : "2x" + }, + { + "orientation" : "landscape", + "idiom" : "ipad", + "extent" : "to-status-bar", + "filename" : "Default-2-1-1.png", + "scale" : "2x" + } + ], + "info" : { + "version" : 1, + "author" : "xcode" + } +} \ No newline at end of file diff --git a/Example/Segment-Appboy/Images.xcassets/LaunchImage.launchimage/Default-1.png b/Example/Segment-Appboy/Images.xcassets/LaunchImage.launchimage/Default-1.png new file mode 100644 index 0000000000000000000000000000000000000000..fbb1ff795be29212e29f94f09a71bf957a475ce7 GIT binary patch literal 1319 zcmeAS@N?(olHy`uVBq!ia0y~yU~~ZD2OMlbkt;o0T!0j3fk$L90|U1(2s1Lwnj^u$ zz;e^m#WAGf*4rzFj13Gt2R3NUyT7uLo!92HAhT_h>D4g)1A@Qzp8wOZSy+V0!kgs) z10#D4g)1A@Qzp8wOZSy+V0!kgs) z10#D4g)1A@Qzp8wOZSy+V0!kgs) z10#D4g)1A@Qzp8wOZSy+V0!kgs) z10#;^x5wll_aBuHAx;`{GdZ)D1+GA{JF-DuAChtc6CGrxz8A}?D~_04Ywws;1&YpwG1sD5#TUs3HXYv{w>Wl8G6 zM`FJII&FF1^11c%xZ5ta@tIp^NrrYzTfJ`Xd6lV?my1oA=i7B@^A&IAE304n=}tU- zR!Hxl==XE4AIf%doPIm;-9Nu?%KNLj?_BIu@;{I#DqAc0gD3FJmF#WaBKz5Y|H$0V zcIUIqhs$OxOskou*Uk~DxOiOM)=$x%v+sh|YtgkFd)RFD+(^^ko*2(8abohr&^+l~ zN@)`}ubq@wbpD}!f8ln+|NMHhOTWB{ZI1XoXX(!59sHg5w7-Sy>$JbV^^430?+x+m zcX}q)v;OG+b*YA_LO$@z%1N~)_ny1Q$FCK+$99jk`eMOyZr|TorH0iq5*sgmRee3< zgtEo;(sZHCOT-)AhyB=cBl*R|6(@o-A0$3F=vBLFX8f$euxBlIPj8Nzd4@^3KV|>& zvrih>8|=5N-Lr!A>?JF6<3(bhyu-8e)~$5BwQg2qAopLRnbvXrCp2?+Pdzk6{xsjN zvW1eT#k`JPe5qEyHmxdM@YW61-Sfn6O_+c8(wh=CiOL)Hd#v=IvB}(yy%LnPZSev3 z7cMT!eqy>wS66yjFA11uH08)%H!~YmqZ2KyhfgOOD*0a$%DG!<+5h->OV1|py}FA6 zms%fRU$Fn=#t8f1n~Z^B_V2dxhBv2qpVT8V01uGRSZd5?c- zh?tdMz^6YBwHh6P=Wf22`gOMdU)!t=-r8T3{Vy1rM86eQU>D9PHNRxHJUiR|4WG>^ zw%tF@z1^3cUGk^!bMM{m+~Z~&@{Vmg^y9|*jksrx4Cv0Cnazjwasjq3IBiNbfgVl%F0&o@;M_B&Pm zMEvQLKYRXcvXR~(vNK+8^71EpKfK}mc9!R_>|TiyuFYA#TdQ?HvPhWltFp~yyM8R> zXv^vnvB=x=Coc;!J8|sB7v<$;F>{_y>#DGt*QM^!`M%r#$ni(UOxx$}`4RU+ZNoC= zum2_s8(3LA$kp*tJz@N4u2o@}>ldz)*%!{n*0J5^TjaUA?3&pr(eRt=SFP9NtU0yA zDE6v*yXaXH(eqC=%*uD{J=DEeWnZ&W-wVfkzxTP8-Q~%B7wyvi|B&_Tu#D&x!nJP& zzV4U0)%L-!=9%%LZuYOc_C9*P*y9P?#9*rp_kYX2^nP@=Wc$U6hVP;0)m^OR&87aY zGncZCSNbn@G4->3Btv0EjP?Wt5Z@Sn2DRmzV368|&p4rRy77 zT3YHG80i}s=>k>g7FXt#Bv$C=6)QswftllyTAW;zSx}OhpQivaH!&%{w8U0P31kr* zK-^i9nTD__uNdkrpa=CqGWv#k2KsQbfm&@qqEm7$6{b!QF%`hORymn+3>% zPz^Tvpg=?lRB()eLIX{lP++H4Wa0>HkPK#EgG8+YGAmMZB3v?aQ}e(mv!<=wqs;T8siSJ>2Oixu+tr z05d*;s;zwUQ!>*kT@p)D?TiczjdTsnb&bqJ3{9;J%&iQ70gk2yDV9Jo&PAz-CHX}m z`T03^;0VhFaTSd84D^6m3S9->c!Gohu*k9F0_ubnUv^xY9}8y!OElvEpAc7Y*+v?% znAPnhP=`QCkY8|KRZZKD{iiQnx%=e9=bwN7T@mZ(U|`_T@pN$vskrs_%EgJT0UR!l z50m~euHF!7^KG$p%gW&3@M}9iH^skxUcFmM>Fe>PGkq(Bzi(uf*0NglsYUaK!1KJn z8zUctZvPiiyy?sFMH_kHQufp@nPRxQ{%gtJay}; b)BZ7hQM0)5-%UoJ0SG)@{an^LB{Ts5Wl;?~ literal 0 HcmV?d00001 diff --git a/Example/Segment-Appboy/Images.xcassets/LaunchImage.launchimage/Default.png b/Example/Segment-Appboy/Images.xcassets/LaunchImage.launchimage/Default.png new file mode 100644 index 0000000000000000000000000000000000000000..fbb1ff795be29212e29f94f09a71bf957a475ce7 GIT binary patch literal 1319 zcmeAS@N?(olHy`uVBq!ia0y~yU~~ZD2OMlbkt;o0T!0j3fk$L90|U1(2s1Lwnj^u$ zz;e^m#WAGf*4rzFj13Gt2R3NUyT7uLo!92HAhT_h>D4g)1A@Qzp8wOZSy+V0!kgs) z10#i{XFiri*0=7)>)FF9n)5?n|oem>g45OQ|9@0UD|xboB7J>mwvhv zPoEXiJ1F}7-0O$3T^y(1PJH*z@0;@es_r`%JC*zo{zu^tUI*GfSM9{4g|6 zdY4k##La6bB^I53sNY|>-S9uZ-t5vZZ(^Gxe$QFDGkFJp=RNIjA^SS*uW$V#^TB&V z{Q8}qiS?{M`hQ)jVXBZ1{IYUVZOOgo?(y+!MeecPW39eeu$BhWBAVw%ka5F>%F-;LHb!4-R_Ou9_J?t1#?Y%iYtPqh_9AQtnUL zzx?cz2KEN~Eo=9zU_E=u%G`L7*eCDs?7Vd=9dE6h6&c9=*J!47T>lBp+}%?TO_4v% zx2tTSnve(VbM%Cy$T^*@nDh+YbG>v3{fOpWGlO>x8PVX$wz%C_BVip)6|~ z!+2Sh_jUe*$P2fEZf#t=^wrPC3(9H-?N8X9xwP})g;oC+{acy0B7TMVmHXCNEt1yD zRBE+qwf}0=s@LlO_30{!+@|;eSD(u-LBY-tJ(8S)r0*` zRX-7bI_1xvKbvf%H;C+vmz%u&$=(ldIKQ3c`766uqJ(R6mhaYT-H$91Cj6>wbJ?yR z3pv`dxuKbmV*80Pwgt7P_tv$1t-_xToit}eS~c1kq-=K59ZH92ce z?J$bH>fSDT)fodWCT9 zTY<0prEax-@T+-dyr`S~>#n_zo-g)z!ZtD3YQz2CvM;?K-7VREv7+I7=y`P)Yk702 z|Le@9tmBpbi(O3pY#+%`Sdk;GEetF+I14-?iy0WWfoyJJMuu5)B!Gp;gUpbKk_cZP ztK|G#y~LFKq*T3%+ybC#1_ql7DKQ57aVaP$*c7FtSp~VcLA3*Uwn`Z#B?VUc`sL;2dgaD?`9*7iAWdWaj57fXq!y$}cUkRZ;?3 z1P2gzmSmLU==*qIwaH6RP3Yw$11Oa%rA$X#$ZA&a4_kHlsH zvLIB0jXo$4kpdMQW1!GL6DJhdsTG+x0vjZQ8Q36EtANak)SL*H%-qyGaL}2V7})4z zl|k|!Sl&55C%-7TATc==6ddS6=&Hf?L?Z05G()imNru|Nl9CKh>jkAnIpCC@lB}Pa zlM3{6Nii^73{ewdO0rdPX;M~datSOZAgLN0A5Mws`bfey`k1Pz7NNjA4|h6B=BY?5 zz>H3yYAfITl+3hBm&B4(J0k-_BV7Y?T_f`lLsKgQb1P$W8+|l2NRb4RaV|gx^s?g$aAW)cEYK7Kd_r8oMH@aM z_oBx^pgdPekY8|KO~>hrcVB-0^KYw`dNi=OeDCSv7*cWT?IlOSLkV0EdYDn1{ovtu&Hnu@>pGwQtI@vsdZSzRYuA(0t}V)E_}mcPU-x*z`&)+_ zwz7h7v!iYU10xfQ28a}K0Fqn^K$2AeNHTE%Nk$e9fdvdqEF1x-%1Ba-Fp~(A5sJYM z!0!w+#c-${9u8z>qI$MJ1}nbw{#`KP{hj294Mq<- l5)YngP=3ZTgMH3tcJ;vb7xupU@C#I6db;|#taD0e0s!Nsedz!I literal 0 HcmV?d00001 diff --git a/Example/Segment-Appboy/Images.xcassets/LaunchImage.launchimage/Default@2x-1-1-1-1.png b/Example/Segment-Appboy/Images.xcassets/LaunchImage.launchimage/Default@2x-1-1-1-1.png new file mode 100644 index 0000000000000000000000000000000000000000..a9c9b18d9b7ad386b7df0464158336e7195c1ff2 GIT binary patch literal 3740 zcmeAS@N?(olHy`uVBq!ia0y~yU}|7sU_QXY3=|1JbM*uR1B*(gvvYu_v$H}#QGQxx zPAUU~gi{XFiri*0=7)>)FF9n)5?n|oem>g45OQ|9@0UD|xboB7J>mwvhv zPoEXiJ1F}7-0O$3T^y(1PJH*z@0;@es_r`%JC*zo{zu^tUI*GfSM9{4g|6 zdY4k##La6bB^I53sNY|>-S9uZ-t5vZZ(^Gxe$QFDGkFJp=RNIjA^SS*uW$V#^TB&V z{Q8}qiS?{M`hQ)jVXBZ1{IYUVZOOgo?(y+!MeecPW39eeu$BhWBAVw%ka5F>%F-;LHb!4-R_Ou9_J?t1#?Y%iYtPqh_9AQtnUL zzx?cz2KEN~Eo=9zU_E=u%G`L7*eCDs?7Vd=9dE6h6&c9=*J!47T>lBp+}%?TO_4v% zx2tTSnve(VbM%Cy$T^*@nDh+YbG>v3{fOpWGlO>x8PVX$wz%C_BVip)6|~ z!+2Sh_jUe*$P2fEZf#t=^wrPC3(9H-?N8X9xwP})g;oC+{acy0B7TMVmHXCNEt1yD zRBE+qwf}0=s@LlO_30{!+@|;eSD(u-LBY-tJ(8S)r0*` zRX-7bI_1xvKbvf%H;C+vmz%u&$=(ldIKQ3c`766uqJ(R6mhaYT-H$91Cj6>wbJ?yR z3pv`dxuKbmV*80Pwgt7P_tv$1t-_xToit}eS~c1kq-=K59ZH92ce z?J$bH>fSDT)fodWCT9 zTY<0prEax-@T+-dyr`S~>#n_zo-g)z!ZtD3YQz2CvM;?K-7VREv7+I7=y`P)Yk702 z|Le@9tmBpbi(O3pY#+%`Sdk;GEetF+I14-?iy0WWfoyJJMuu5)B!Gp;gUpbKk_cZP ztK|G#y~LFKq*T3%+ybC#1_ql7DKQ57aVaP$*c7FtSp~VcLA3*Uwn`Z#B?VUc`sL;2dgaD?`9*7iAWdWaj57fXq!y$}cUkRZ;?3 z1P2gzmSmLU==*qIwaH6RP3Yw$11Oa%rA$X#$ZA&a4_kHlsH zvLIB0jXo$4kpdMQW1!GL6DJhdsTG+x0vjZQ8Q36EtANak)SL*H%-qyGaL}2V7})4z zl|k|!Sl&55C%-7TATc==6ddS6=&Hf?L?Z05G()imNru|Nl9CKh>jkAnIpCC@lB}Pa zlM3{6Nii^73{ewdO0rdPX;M~datSOZAgLN0A5Mws`bfey`k1Pz7NNjA4|h6B=BY?5 zz>H3yYAfITl+3hBm&B4(J0k-_BV7Y?T_f`lLsKgQb1P$W8+|l2NRb4RaV|gx^s?g$aAW)cEYK7Kd_r8oMH@aM z_oBx^pgdPekY8|KO~>hrcVB-0^KYw`dNi=OeDCSv7*cWT?IlOSLkV0EdYDn1{ovtu&Hnu@>pGwQtI@vsdZSzRYuA(0t}V)E_}mcPU-x*z`&)+_ zwz7h7v!iYU10xfQ28a}K0Fqn^K$2AeNHTE%Nk$e9fdvdqEF1x-%1Ba-Fp~(A5sJYM z!0!w+#c-${9u8z>qI$MJ1}nbw{#`KP{hj294Mq<- l5)YngP=3ZTgMH3tcJ;vb7xupU@C#I6db;|#taD0e0s!Nsedz!I literal 0 HcmV?d00001 diff --git a/Example/Segment-Appboy/Images.xcassets/LaunchImage.launchimage/Default@2x-1-1-1.png b/Example/Segment-Appboy/Images.xcassets/LaunchImage.launchimage/Default@2x-1-1-1.png new file mode 100644 index 0000000000000000000000000000000000000000..a9c9b18d9b7ad386b7df0464158336e7195c1ff2 GIT binary patch literal 3740 zcmeAS@N?(olHy`uVBq!ia0y~yU}|7sU_QXY3=|1JbM*uR1B*(gvvYu_v$H}#QGQxx zPAUU~gi{XFiri*0=7)>)FF9n)5?n|oem>g45OQ|9@0UD|xboB7J>mwvhv zPoEXiJ1F}7-0O$3T^y(1PJH*z@0;@es_r`%JC*zo{zu^tUI*GfSM9{4g|6 zdY4k##La6bB^I53sNY|>-S9uZ-t5vZZ(^Gxe$QFDGkFJp=RNIjA^SS*uW$V#^TB&V z{Q8}qiS?{M`hQ)jVXBZ1{IYUVZOOgo?(y+!MeecPW39eeu$BhWBAVw%ka5F>%F-;LHb!4-R_Ou9_J?t1#?Y%iYtPqh_9AQtnUL zzx?cz2KEN~Eo=9zU_E=u%G`L7*eCDs?7Vd=9dE6h6&c9=*J!47T>lBp+}%?TO_4v% zx2tTSnve(VbM%Cy$T^*@nDh+YbG>v3{fOpWGlO>x8PVX$wz%C_BVip)6|~ z!+2Sh_jUe*$P2fEZf#t=^wrPC3(9H-?N8X9xwP})g;oC+{acy0B7TMVmHXCNEt1yD zRBE+qwf}0=s@LlO_30{!+@|;eSD(u-LBY-tJ(8S)r0*` zRX-7bI_1xvKbvf%H;C+vmz%u&$=(ldIKQ3c`766uqJ(R6mhaYT-H$91Cj6>wbJ?yR z3pv`dxuKbmV*80Pwgt7P_tv$1t-_xToit}eS~c1kq-=K59ZH92ce z?J$bH>fSDT)fodWCT9 zTY<0prEax-@T+-dyr`S~>#n_zo-g)z!ZtD3YQz2CvM;?K-7VREv7+I7=y`P)Yk702 z|Le@9tmBpbi(O3pY#+%`Sdk;GEetF+I14-?iy0WWfoyJJMuu5)B!Gp;gUpbKk_cZP ztK|G#y~LFKq*T3%+ybC#1_ql7DKQ57aVaP$*c7FtSp~VcLA3*Uwn`Z#B?VUc`sL;2dgaD?`9*7iAWdWaj57fXq!y$}cUkRZ;?3 z1P2gzmSmLU==*qIwaH6RP3Yw$11Oa%rA$X#$ZA&a4_kHlsH zvLIB0jXo$4kpdMQW1!GL6DJhdsTG+x0vjZQ8Q36EtANak)SL*H%-qyGaL}2V7})4z zl|k|!Sl&55C%-7TATc==6ddS6=&Hf?L?Z05G()imNru|Nl9CKh>jkAnIpCC@lB}Pa zlM3{6Nii^73{ewdO0rdPX;M~datSOZAgLN0A5Mws`bfey`k1Pz7NNjA4|h6B=BY?5 zz>H3yYAfITl+3hBm&B4(J0k-_BV7Y?T_f`lLsKgQb1P$W8+|l2NRb4RaV|gx^s?g$aAW)cEYK7Kd_r8oMH@aM z_oBx^pgdPekY8|KO~>hrcVB-0^KYw`dNi=OeDCSv7*cWT?IlOSLkV0EdYDn1{ovtu&Hnu@>pGwQtI@vsdZSzRYuA(0t}V)E_}mcPU-x*z`&)+_ zwz7h7v!iYU10xfQ28a}K0Fqn^K$2AeNHTE%Nk$e9fdvdqEF1x-%1Ba-Fp~(A5sJYM z!0!w+#c-${9u8z>qI$MJ1}nbw{#`KP{hj294Mq<- l5)YngP=3ZTgMH3tcJ;vb7xupU@C#I6db;|#taD0e0s!Nsedz!I literal 0 HcmV?d00001 diff --git a/Example/Segment-Appboy/Images.xcassets/LaunchImage.launchimage/Default@2x-1-1.png b/Example/Segment-Appboy/Images.xcassets/LaunchImage.launchimage/Default@2x-1-1.png new file mode 100644 index 0000000000000000000000000000000000000000..a9c9b18d9b7ad386b7df0464158336e7195c1ff2 GIT binary patch literal 3740 zcmeAS@N?(olHy`uVBq!ia0y~yU}|7sU_QXY3=|1JbM*uR1B*(gvvYu_v$H}#QGQxx zPAUU~gi{XFiri*0=7)>)FF9n)5?n|oem>g45OQ|9@0UD|xboB7J>mwvhv zPoEXiJ1F}7-0O$3T^y(1PJH*z@0;@es_r`%JC*zo{zu^tUI*GfSM9{4g|6 zdY4k##La6bB^I53sNY|>-S9uZ-t5vZZ(^Gxe$QFDGkFJp=RNIjA^SS*uW$V#^TB&V z{Q8}qiS?{M`hQ)jVXBZ1{IYUVZOOgo?(y+!MeecPW39eeu$BhWBAVw%ka5F>%F-;LHb!4-R_Ou9_J?t1#?Y%iYtPqh_9AQtnUL zzx?cz2KEN~Eo=9zU_E=u%G`L7*eCDs?7Vd=9dE6h6&c9=*J!47T>lBp+}%?TO_4v% zx2tTSnve(VbM%Cy$T^*@nDh+YbG>v3{fOpWGlO>x8PVX$wz%C_BVip)6|~ z!+2Sh_jUe*$P2fEZf#t=^wrPC3(9H-?N8X9xwP})g;oC+{acy0B7TMVmHXCNEt1yD zRBE+qwf}0=s@LlO_30{!+@|;eSD(u-LBY-tJ(8S)r0*` zRX-7bI_1xvKbvf%H;C+vmz%u&$=(ldIKQ3c`766uqJ(R6mhaYT-H$91Cj6>wbJ?yR z3pv`dxuKbmV*80Pwgt7P_tv$1t-_xToit}eS~c1kq-=K59ZH92ce z?J$bH>fSDT)fodWCT9 zTY<0prEax-@T+-dyr`S~>#n_zo-g)z!ZtD3YQz2CvM;?K-7VREv7+I7=y`P)Yk702 z|Le@9tmBpbi(O3pY#+%`Sdk;GEetF+I14-?iy0WWfoyJJMuu5)B!Gp;gUpbKk_cZP ztK|G#y~LFKq*T3%+ybC#1_ql7DKQ57aVaP$*c7FtSp~VcLA3*Uwn`Z#B?VUc`sL;2dgaD?`9*7iAWdWaj57fXq!y$}cUkRZ;?3 z1P2gzmSmLU==*qIwaH6RP3Yw$11Oa%rA$X#$ZA&a4_kHlsH zvLIB0jXo$4kpdMQW1!GL6DJhdsTG+x0vjZQ8Q36EtANak)SL*H%-qyGaL}2V7})4z zl|k|!Sl&55C%-7TATc==6ddS6=&Hf?L?Z05G()imNru|Nl9CKh>jkAnIpCC@lB}Pa zlM3{6Nii^73{ewdO0rdPX;M~datSOZAgLN0A5Mws`bfey`k1Pz7NNjA4|h6B=BY?5 zz>H3yYAfITl+3hBm&B4(J0k-_BV7Y?T_f`lLsKgQb1P$W8+|l2NRb4RaV|gx^s?g$aAW)cEYK7Kd_r8oMH@aM z_oBx^pgdPekY8|KO~>hrcVB-0^KYw`dNi=OeDCSv7*cWT?IlOSLkV0EdYDn1{ovtu&Hnu@>pGwQtI@vsdZSzRYuA(0t}V)E_}mcPU-x*z`&)+_ zwz7h7v!iYU10xfQ28a}K0Fqn^K$2AeNHTE%Nk$e9fdvdqEF1x-%1Ba-Fp~(A5sJYM z!0!w+#c-${9u8z>qI$MJ1}nbw{#`KP{hj294Mq<- l5)YngP=3ZTgMH3tcJ;vb7xupU@C#I6db;|#taD0e0s!Nsedz!I literal 0 HcmV?d00001 diff --git a/Example/Segment-Appboy/Images.xcassets/LaunchImage.launchimage/Default@2x-1.png b/Example/Segment-Appboy/Images.xcassets/LaunchImage.launchimage/Default@2x-1.png new file mode 100644 index 0000000000000000000000000000000000000000..a9c9b18d9b7ad386b7df0464158336e7195c1ff2 GIT binary patch literal 3740 zcmeAS@N?(olHy`uVBq!ia0y~yU}|7sU_QXY3=|1JbM*uR1B*(gvvYu_v$H}#QGQxx zPAUU~gi{XFiri*0=7)>)FF9n)5?n|oem>g45OQ|9@0UD|xboB7J>mwvhv zPoEXiJ1F}7-0O$3T^y(1PJH*z@0;@es_r`%JC*zo{zu^tUI*GfSM9{4g|6 zdY4k##La6bB^I53sNY|>-S9uZ-t5vZZ(^Gxe$QFDGkFJp=RNIjA^SS*uW$V#^TB&V z{Q8}qiS?{M`hQ)jVXBZ1{IYUVZOOgo?(y+!MeecPW39eeu$BhWBAVw%ka5F>%F-;LHb!4-R_Ou9_J?t1#?Y%iYtPqh_9AQtnUL zzx?cz2KEN~Eo=9zU_E=u%G`L7*eCDs?7Vd=9dE6h6&c9=*J!47T>lBp+}%?TO_4v% zx2tTSnve(VbM%Cy$T^*@nDh+YbG>v3{fOpWGlO>x8PVX$wz%C_BVip)6|~ z!+2Sh_jUe*$P2fEZf#t=^wrPC3(9H-?N8X9xwP})g;oC+{acy0B7TMVmHXCNEt1yD zRBE+qwf}0=s@LlO_30{!+@|;eSD(u-LBY-tJ(8S)r0*` zRX-7bI_1xvKbvf%H;C+vmz%u&$=(ldIKQ3c`766uqJ(R6mhaYT-H$91Cj6>wbJ?yR z3pv`dxuKbmV*80Pwgt7P_tv$1t-_xToit}eS~c1kq-=K59ZH92ce z?J$bH>fSDT)fodWCT9 zTY<0prEax-@T+-dyr`S~>#n_zo-g)z!ZtD3YQz2CvM;?K-7VREv7+I7=y`P)Yk702 z|Le@9tmBpbi(O3pY#+%`Sdk;GEetF+I14-?iy0WWfoyJJMuu5)B!Gp;gUpbKk_cZP ztK|G#y~LFKq*T3%+ybC#1_ql7DKQ57aVaP$*c7FtSp~VcLA3*Uwn`Z#B?VUc`sL;2dgaD?`9*7iAWdWaj57fXq!y$}cUkRZ;?3 z1P2gzmSmLU==*qIwaH6RP3Yw$11Oa%rA$X#$ZA&a4_kHlsH zvLIB0jXo$4kpdMQW1!GL6DJhdsTG+x0vjZQ8Q36EtANak)SL*H%-qyGaL}2V7})4z zl|k|!Sl&55C%-7TATc==6ddS6=&Hf?L?Z05G()imNru|Nl9CKh>jkAnIpCC@lB}Pa zlM3{6Nii^73{ewdO0rdPX;M~datSOZAgLN0A5Mws`bfey`k1Pz7NNjA4|h6B=BY?5 zz>H3yYAfITl+3hBm&B4(J0k-_BV7Y?T_f`lLsKgQb1P$W8+|l2NRb4RaV|gx^s?g$aAW)cEYK7Kd_r8oMH@aM z_oBx^pgdPekY8|KO~>hrcVB-0^KYw`dNi=OeDCSv7*cWT?IlOSLkV0EdYDn1{ovtu&Hnu@>pGwQtI@vsdZSzRYuA(0t}V)E_}mcPU-x*z`&)+_ zwz7h7v!iYU10xfQ28a}K0Fqn^K$2AeNHTE%Nk$e9fdvdqEF1x-%1Ba-Fp~(A5sJYM z!0!w+#c-${9u8z>qI$MJ1}nbw{#`KP{hj294Mq<- l5)YngP=3ZTgMH3tcJ;vb7xupU@C#I6db;|#taD0e0s!Nsedz!I literal 0 HcmV?d00001 diff --git a/Example/Segment-Appboy/Images.xcassets/LaunchImage.launchimage/Default@2x.png b/Example/Segment-Appboy/Images.xcassets/LaunchImage.launchimage/Default@2x.png new file mode 100644 index 0000000000000000000000000000000000000000..a9c9b18d9b7ad386b7df0464158336e7195c1ff2 GIT binary patch literal 3740 zcmeAS@N?(olHy`uVBq!ia0y~yU}|7sU_QXY3=|1JbM*uR1B*(gvvYu_v$H}#QGQxx zPAUU~gi{XFiri*0=7)>)FF9n)5?n|oem>g45OQ|9@0UD|xboB7J>mwvhv zPoEXiJ1F}7-0O$3T^y(1PJH*z@0;@es_r`%JC*zo{zu^tUI*GfSM9{4g|6 zdY4k##La6bB^I53sNY|>-S9uZ-t5vZZ(^Gxe$QFDGkFJp=RNIjA^SS*uW$V#^TB&V z{Q8}qiS?{M`hQ)jVXBZ1{IYUVZOOgo?(y+!MeecPW39eeu$BhWBAVw%ka5F>%F-;LHb!4-R_Ou9_J?t1#?Y%iYtPqh_9AQtnUL zzx?cz2KEN~Eo=9zU_E=u%G`L7*eCDs?7Vd=9dE6h6&c9=*J!47T>lBp+}%?TO_4v% zx2tTSnve(VbM%Cy$T^*@nDh+YbG>v3{fOpWGlO>x8PVX$wz%C_BVip)6|~ z!+2Sh_jUe*$P2fEZf#t=^wrPC3(9H-?N8X9xwP})g;oC+{acy0B7TMVmHXCNEt1yD zRBE+qwf}0=s@LlO_30{!+@|;eSD(u-LBY-tJ(8S)r0*` zRX-7bI_1xvKbvf%H;C+vmz%u&$=(ldIKQ3c`766uqJ(R6mhaYT-H$91Cj6>wbJ?yR z3pv`dxuKbmV*80Pwgt7P_tv$1t-_xToit}eS~c1kq-=K59ZH92ce z?J$bH>fSDT)fodWCT9 zTY<0prEax-@T+-dyr`S~>#n_zo-g)z!ZtD3YQz2CvM;?K-7VREv7+I7=y`P)Yk702 z|Le@9tmBpbi(O3pY#+%`Sdk;GEetF+I14-?iy0WWfoyJJMuu5)B!Gp;gUpbKk_cZP ztK|G#y~LFKq*T3%+ybC#1_ql7DKQ57aVaP$*c7FtSp~VcLA3*Uwn`Z#B?VUc`sL;2dgaD?`9*7iAWdWaj57fXq!y$}cUkRZ;?3 z1P2gzmSmLU==*qIwaH6RP3Yw$11Oa%rA$X#$ZA&a4_kHlsH zvLIB0jXo$4kpdMQW1!GL6DJhdsTG+x0vjZQ8Q36EtANak)SL*H%-qyGaL}2V7})4z zl|k|!Sl&55C%-7TATc==6ddS6=&Hf?L?Z05G()imNru|Nl9CKh>jkAnIpCC@lB}Pa zlM3{6Nii^73{ewdO0rdPX;M~datSOZAgLN0A5Mws`bfey`k1Pz7NNjA4|h6B=BY?5 zz>H3yYAfITl+3hBm&B4(J0k-_BV7Y?T_f`lLsKgQb1P$W8+|l2NRb4RaV|gx^s?g$aAW)cEYK7Kd_r8oMH@aM z_oBx^pgdPekY8|KO~>hrcVB-0^KYw`dNi=OeDCSv7*cWT?IlOSLkV0EdYDn1{ovtu&Hnu@>pGwQtI@vsdZSzRYuA(0t}V)E_}mcPU-x*z`&)+_ zwz7h7v!iYU10xfQ28a}K0Fqn^K$2AeNHTE%Nk$e9fdvdqEF1x-%1Ba-Fp~(A5sJYM z!0!w+#c-${9u8z>qI$MJ1}nbw{#`KP{hj294Mq<- l5)YngP=3ZTgMH3tcJ;vb7xupU@C#I6db;|#taD0e0s!Nsedz!I literal 0 HcmV?d00001 diff --git a/Example/Segment-Appboy/LaunchScreen.xib b/Example/Segment-Appboy/LaunchScreen.xib new file mode 100644 index 0000000..8badd85 --- /dev/null +++ b/Example/Segment-Appboy/LaunchScreen.xib @@ -0,0 +1,16 @@ + + + + + + + + + + + + + + + + diff --git a/Example/Segment-Appboy/Main.storyboard b/Example/Segment-Appboy/Main.storyboard new file mode 100644 index 0000000..d21d6fd --- /dev/null +++ b/Example/Segment-Appboy/Main.storyboard @@ -0,0 +1,65 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Example/Segment-Appboy/SEGAppDelegate.h b/Example/Segment-Appboy/SEGAppDelegate.h new file mode 100644 index 0000000..4fa9e2b --- /dev/null +++ b/Example/Segment-Appboy/SEGAppDelegate.h @@ -0,0 +1,7 @@ +@import UIKit; + +@interface SEGAppDelegate : UIResponder + +@property (strong, nonatomic) UIWindow *window; + +@end diff --git a/Example/Segment-Appboy/SEGAppDelegate.m b/Example/Segment-Appboy/SEGAppDelegate.m new file mode 100644 index 0000000..1b5a61d --- /dev/null +++ b/Example/Segment-Appboy/SEGAppDelegate.m @@ -0,0 +1,44 @@ +#import "SEGAppDelegate.h" +#import "SEGAnalytics.h" +#import "SEGAppboyIntegrationFactory.h" +#import "Appboy.h" + +@implementation SEGAppDelegate + +- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions +{ + SEGAnalyticsConfiguration *config = [SEGAnalyticsConfiguration configurationWithWriteKey:@"xNAmGpyITen4FEZg9C2ES6r2iYm8Ommk"]; + [config use:[SEGAppboyIntegrationFactory instance]]; + [SEGAnalytics setupWithConfiguration:config]; + [SEGAnalytics debug:YES]; + + return YES; +} + +- (void)applicationWillResignActive:(UIApplication *)application +{ + // 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. + // 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. +} + +- (void)applicationDidEnterBackground:(UIApplication *)application +{ + // 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. + // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits. +} + +- (void)applicationWillEnterForeground:(UIApplication *)application +{ + // 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. +} + +- (void)applicationDidBecomeActive:(UIApplication *)application +{ + // 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. +} + +- (void)applicationWillTerminate:(UIApplication *)application +{ + // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:. +} +@end diff --git a/Example/Segment-Appboy/SEGViewController.h b/Example/Segment-Appboy/SEGViewController.h new file mode 100644 index 0000000..50ac2ac --- /dev/null +++ b/Example/Segment-Appboy/SEGViewController.h @@ -0,0 +1,10 @@ +@import UIKit; +#import "AppboyKit.h" + +@interface SEGViewController : UIViewController +- (IBAction)identifyButtonPress:(id)sender; +- (IBAction)flushButtonPress:(id)sender; +- (IBAction)trackButtonPress:(id)sender; +- (IBAction)feedbackButtonPress:(id)sender; +- (IBAction)feedButtonPress:(id)sender; +@end diff --git a/Example/Segment-Appboy/SEGViewController.m b/Example/Segment-Appboy/SEGViewController.m new file mode 100644 index 0000000..925aa72 --- /dev/null +++ b/Example/Segment-Appboy/SEGViewController.m @@ -0,0 +1,57 @@ +#import "SEGViewController.h" +#import "SEGAnalytics.h" +#import "ABKFeedViewControllerPopoverContext.h" + +@interface SEGViewController () + +@end + +@implementation SEGViewController + +- (void)viewDidLoad +{ + [super viewDidLoad]; +} + +- (void)didReceiveMemoryWarning +{ + [super didReceiveMemoryWarning]; +} + +- (IBAction)identifyButtonPress:(id)sender { + [[SEGAnalytics sharedAnalytics] identify:@"appboySegementTestUseriOS" + traits:@{ @"email": @"hello@appboy.com", + @"bool" : @(YES), + @"double" : @(3.14159), + @"integer": @(31), + @"gender" : @"female", + @"birthday" : [NSDate dateWithTimeIntervalSince1970:564559200], + @"firstName" : @"Appboy", + @"lastName" : @"Appboy", + @"phone" : @"1234567890", + @"address" : @{@"city" : @"New York", + @"country" : @"US"}}]; +} + +- (IBAction)flushButtonPress:(id)sender { + [[SEGAnalytics sharedAnalytics] flush]; +} + +- (IBAction)trackButtonPress:(id)sender { + [[SEGAnalytics sharedAnalytics] track:@"appboySegmentTrackEvent" + properties:@{ @"eventproperty": @"eventPropertyValue"}]; + [[SEGAnalytics sharedAnalytics] track:@"Candy" + properties:@{ @"currency": @"CNY", @"revenue" : @"60", @"property" : @"milky white rabbit"}]; +} + +- (IBAction)feedbackButtonPress:(id)sender { + ABKFeedbackViewControllerModalContext *feedbackViewController = [[ABKFeedbackViewControllerModalContext alloc] init]; + [self presentViewController:feedbackViewController animated:YES completion:nil]; +} + +- (IBAction)feedButtonPress:(id)sender { + ABKFeedViewControllerModalContext *feedModal = [[ABKFeedViewControllerModalContext alloc] init]; + feedModal.navigationItem.title = @"Modal Context"; + [self presentViewController:feedModal animated:YES completion:nil]; +} +@end diff --git a/Example/Segment-Appboy/Segment-Appboy-Info.plist b/Example/Segment-Appboy/Segment-Appboy-Info.plist new file mode 100644 index 0000000..b06b79c --- /dev/null +++ b/Example/Segment-Appboy/Segment-Appboy-Info.plist @@ -0,0 +1,47 @@ + + + + + CFBundleDevelopmentRegion + en + CFBundleDisplayName + ${PRODUCT_NAME} + CFBundleExecutable + ${EXECUTABLE_NAME} + CFBundleIdentifier + $(PRODUCT_BUNDLE_IDENTIFIER) + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + ${PRODUCT_NAME} + CFBundlePackageType + APPL + CFBundleShortVersionString + 1.0 + CFBundleSignature + ???? + CFBundleVersion + 1.0 + LSRequiresIPhoneOS + + UIMainStoryboardFile + Main + UIRequiredDeviceCapabilities + + armv7 + + UISupportedInterfaceOrientations + + UIInterfaceOrientationPortrait + UIInterfaceOrientationLandscapeLeft + UIInterfaceOrientationLandscapeRight + + UISupportedInterfaceOrientations~ipad + + UIInterfaceOrientationPortrait + UIInterfaceOrientationPortraitUpsideDown + UIInterfaceOrientationLandscapeLeft + UIInterfaceOrientationLandscapeRight + + + diff --git a/Example/Segment-Appboy/Segment-Appboy-Prefix.pch b/Example/Segment-Appboy/Segment-Appboy-Prefix.pch new file mode 100644 index 0000000..7825372 --- /dev/null +++ b/Example/Segment-Appboy/Segment-Appboy-Prefix.pch @@ -0,0 +1,16 @@ +// +// Prefix header +// +// The contents of this file are implicitly included at the beginning of every source file. +// + +#import + +#ifndef __IPHONE_5_0 +#warning "This project uses features only available in iOS SDK 5.0 and later." +#endif + +#ifdef __OBJC__ + @import UIKit; + @import Foundation; +#endif diff --git a/Example/Segment-Appboy/en.lproj/InfoPlist.strings b/Example/Segment-Appboy/en.lproj/InfoPlist.strings new file mode 100644 index 0000000..477b28f --- /dev/null +++ b/Example/Segment-Appboy/en.lproj/InfoPlist.strings @@ -0,0 +1,2 @@ +/* Localized versions of Info.plist keys */ + diff --git a/Example/Segment-Appboy/main.m b/Example/Segment-Appboy/main.m new file mode 100644 index 0000000..b18e2d8 --- /dev/null +++ b/Example/Segment-Appboy/main.m @@ -0,0 +1,9 @@ +@import UIKit; +#import "SEGAppDelegate.h" + +int main(int argc, char * argv[]) +{ + @autoreleasepool { + return UIApplicationMain(argc, argv, nil, NSStringFromClass([SEGAppDelegate class])); + } +} diff --git a/Example/Tests/SEGAppboyIntegrationTest.m b/Example/Tests/SEGAppboyIntegrationTest.m new file mode 100644 index 0000000..5d38b62 --- /dev/null +++ b/Example/Tests/SEGAppboyIntegrationTest.m @@ -0,0 +1,187 @@ +#import "SEGAppboyIntegration.h" +#import "AppboyKit.h" +#import +#import +#import "SEGAnalyticsUtils.h" + +SpecBegin(InitialSpecs) + +describe(@"SEGAppboyIntegration", ^{ + describe(@"initWithSettings", ^{ + it(@"initializes appboy if an apiKey is passed", ^{ + NSDictionary *settings = @{@"apiKey":@"foo"}; + id appboyMock = OCMClassMock([Appboy class]); + OCMExpect([appboyMock startWithApiKey:@"foo" inApplication:[OCMArg any] withLaunchOptions:nil]); + SEGAppboyIntegration *appboyIntegration = [[SEGAppboyIntegration alloc] initWithSettings:settings]; + OCMVerifyAllWithDelay(appboyMock, 2); + }); + }); + + describe(@"identify", ^{ + it(@"calls appropriate Appboy method with valid values", ^{ + NSDictionary *settings = @{@"apiKey":@"foo"}; + NSDateComponents *comps = [[NSDateComponents alloc] init]; + [comps setDay:10]; + [comps setMonth:10]; + [comps setYear:2010]; + NSDate *testDate = [[NSCalendar currentCalendar] dateFromComponents:comps]; + id appboyMock = OCMClassMock([Appboy class]); + id appboyUserMock = OCMClassMock([ABKUser class]); + OCMStub([appboyMock sharedInstance]).andReturn(appboyMock); + OCMStub([appboyMock user]).andReturn(appboyUserMock); + OCMExpect([appboyMock startWithApiKey:@"foo" inApplication:[OCMArg any] withLaunchOptions:nil]); + OCMExpect([appboyMock changeUser:@"testUser"]); + OCMExpect([appboyUserMock setDateOfBirth:testDate]); + OCMExpect([appboyUserMock setEmail:@"brian@appboy.com"]); + OCMExpect([appboyUserMock setFirstName:@"brian"]); + OCMExpect([appboyUserMock setLastName:@"w"]); + OCMExpect([appboyUserMock setGender:ABKUserGenderMale]); + OCMExpect([appboyUserMock setPhone:@"9084891234"]); + OCMExpect([appboyUserMock setHomeCity:@"belmar"]); + OCMExpect([appboyUserMock setCountry:@"usa"]); + + SEGAppboyIntegration *appboyIntegration = [[SEGAppboyIntegration alloc] initWithSettings:settings]; + + NSDictionary *traits = @{ + @"address" : @{ @"city" : @"belmar", @"country" : @"usa" }, + @"birthday" : iso8601FormattedString(testDate), + @"email" : @"brian@appboy.com", + @"firstName" : @"brian", + @"lastName" : @"w", + @"gender" : @"m", + @"phone" : @"9084891234" + }; + + SEGIdentifyPayload *identifyPayload = [[SEGIdentifyPayload alloc] initWithUserId:@"testUser" + traits:traits + context:nil + integrations:nil]; + [appboyIntegration identify:identifyPayload]; + OCMVerifyAllWithDelay(appboyMock, 2); + OCMVerifyAllWithDelay(appboyUserMock, 2); + }); + + it(@"doesn't break if types are bad", ^{ + NSDictionary *settings = @{@"apiKey":@"foo"}; + id appboyMock = OCMClassMock([Appboy class]); + id appboyUserMock = OCMClassMock([ABKUser class]); + OCMStub([appboyMock sharedInstance]).andReturn(appboyMock); + OCMStub([appboyMock user]).andReturn(appboyUserMock); + OCMExpect([appboyMock startWithApiKey:@"foo" inApplication:[OCMArg any] withLaunchOptions:nil]); + OCMExpect([appboyMock changeUser:@"testUser"]); + + SEGAppboyIntegration *appboyIntegration = [[SEGAppboyIntegration alloc] initWithSettings:settings]; + + NSDictionary *traits = @{ + @"address" : @{ @1 : @2, @"country" : @{@"asdf": @"asdf"}}, + @"birthday" : @"badDate", + @"email" : @22, + @"firstName" : @1, + @"lastName" : @2, + @"gender" : @3, + @"phone" : @4 + }; + + SEGIdentifyPayload *identifyPayload = [[SEGIdentifyPayload alloc] initWithUserId:@"testUser" + traits:traits + context:nil + integrations:nil]; + [appboyIntegration identify:identifyPayload]; + OCMVerifyAllWithDelay(appboyMock, 2); + OCMVerifyAllWithDelay(appboyUserMock, 2); + }); + }); + + + describe(@"track", ^{ + it(@"calls purchase if there is revenue", ^{ + NSDictionary *settings = @{@"apiKey":@"foo"}; + id appboyMock = OCMClassMock([Appboy class]); + OCMStub([appboyMock sharedInstance]).andReturn(appboyMock); + OCMExpect([appboyMock startWithApiKey:@"foo" inApplication:[OCMArg any] withLaunchOptions:nil]); + OCMExpect([appboyMock logPurchase:@"testPurchase" inCurrency:@"USD" atPrice:[NSDecimalNumber decimalNumberWithString:@"55.5"] + withQuantity:1 andProperties:@{@"extraProperty" : @"extraValue"}]); + + SEGAppboyIntegration *appboyIntegration = [[SEGAppboyIntegration alloc] initWithSettings:settings]; + + NSDictionary *properties = @{ + @"revenue" : @"55.5", + @"currency" : @"USD", + @"extraProperty" : @"extraValue" + }; + + SEGTrackPayload *trackPayload = [[SEGTrackPayload alloc] initWithEvent:@"testPurchase" + properties:properties + context:nil + integrations:nil]; + [appboyIntegration track:trackPayload]; + OCMVerifyAllWithDelay(appboyMock, 2); + }); + + it(@"logs an event if there isn't revenue", ^{ + NSDictionary *settings = @{@"apiKey":@"foo"}; + id appboyMock = OCMClassMock([Appboy class]); + OCMStub([appboyMock sharedInstance]).andReturn(appboyMock); + OCMExpect([appboyMock startWithApiKey:@"foo" inApplication:[OCMArg any] withLaunchOptions:nil]); + NSDictionary *propertiesDictionary = @{ @"asdf" : @1, @"extraProperty" : @"extraValue"}; + OCMExpect([appboyMock logCustomEvent:@"testEvent" withProperties:propertiesDictionary]); + + SEGAppboyIntegration *appboyIntegration = [[SEGAppboyIntegration alloc] initWithSettings:settings]; + NSDictionary *properties = @{ + @"asdf" : @1, + @"extraProperty" : @"extraValue" + }; + + SEGTrackPayload *trackPayload = [[SEGTrackPayload alloc] initWithEvent:@"testEvent" + properties:properties + context:nil + integrations:nil]; + [appboyIntegration track:trackPayload]; + OCMVerifyAllWithDelay(appboyMock, 2); + }); + }); + + + describe(@"flush", ^{ + it(@"calls [[Appboy sharedInstance] flushDataAndProcessRequestQueue]", ^{ + NSDictionary *settings = @{@"apiKey":@"foo"}; + id appboyMock = OCMClassMock([Appboy class]); + OCMStub([appboyMock sharedInstance]).andReturn(appboyMock); + OCMExpect([appboyMock startWithApiKey:@"foo" inApplication:[OCMArg any] withLaunchOptions:nil]); + OCMExpect([appboyMock flushDataAndProcessRequestQueue]); + SEGAppboyIntegration *appboyIntegration = [[SEGAppboyIntegration alloc] initWithSettings:settings]; + [appboyIntegration flush]; + OCMVerifyAllWithDelay(appboyMock, 2); + }); + }); + + describe(@"registeredForRemoteNotificationsWithDeviceToken", ^{ + it(@"initializes calls [[Appboy sharedInstance] registerPushToken]", ^{ + NSDictionary *settings = @{@"apiKey":@"foo"}; + NSData *registerData = [[NSData alloc] init]; + id appboyMock = OCMClassMock([Appboy class]); + OCMStub([appboyMock sharedInstance]).andReturn(appboyMock); + OCMExpect([appboyMock startWithApiKey:@"foo" inApplication:[OCMArg any] withLaunchOptions:nil]); + OCMExpect([appboyMock registerPushToken:[OCMArg any]]); + SEGAppboyIntegration *appboyIntegration = [[SEGAppboyIntegration alloc] initWithSettings:settings]; + [appboyIntegration registeredForRemoteNotificationsWithDeviceToken:registerData]; + OCMVerifyAllWithDelay(appboyMock, 2); + }); + }); + + describe(@"receivedRemoteNotification", ^{ + it(@"initializes calls [[Appboy sharedInstance] registerApplication:didReceiveRemoteNotification:]", ^{ + NSDictionary *settings = @{@"apiKey":@"foo"}; + NSDictionary *userInfo = @{@"test":@"userInfo"}; + id appboyMock = OCMClassMock([Appboy class]); + OCMStub([appboyMock sharedInstance]).andReturn(appboyMock); + OCMExpect([appboyMock startWithApiKey:@"foo" inApplication:[OCMArg any] withLaunchOptions:nil]); + OCMExpect([appboyMock registerApplication:[OCMArg any] didReceiveRemoteNotification:userInfo]); + SEGAppboyIntegration *appboyIntegration = [[SEGAppboyIntegration alloc] initWithSettings:settings]; + [appboyIntegration receivedRemoteNotification:userInfo]; + OCMVerifyAllWithDelay(appboyMock, 2); + }); + }); +}); + +SpecEnd diff --git a/Example/Tests/Tests-Info.plist b/Example/Tests/Tests-Info.plist new file mode 100644 index 0000000..41520ed --- /dev/null +++ b/Example/Tests/Tests-Info.plist @@ -0,0 +1,22 @@ + + + + + CFBundleDevelopmentRegion + en + CFBundleExecutable + ${EXECUTABLE_NAME} + CFBundleIdentifier + org.cocoapods.demo.${PRODUCT_NAME:rfc1034identifier} + CFBundleInfoDictionaryVersion + 6.0 + CFBundlePackageType + BNDL + CFBundleShortVersionString + 1.0 + CFBundleSignature + ???? + CFBundleVersion + 1 + + diff --git a/Example/Tests/Tests-Prefix.pch b/Example/Tests/Tests-Prefix.pch new file mode 100644 index 0000000..b84cd59 --- /dev/null +++ b/Example/Tests/Tests-Prefix.pch @@ -0,0 +1,8 @@ +// The contents of this file are implicitly included at the beginning of every test case source file. + +#ifdef __OBJC__ + + @import Specta; + @import Expecta; + +#endif diff --git a/Example/Tests/en.lproj/InfoPlist.strings b/Example/Tests/en.lproj/InfoPlist.strings new file mode 100644 index 0000000..477b28f --- /dev/null +++ b/Example/Tests/en.lproj/InfoPlist.strings @@ -0,0 +1,2 @@ +/* Localized versions of Info.plist keys */ + diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..1298520 --- /dev/null +++ b/LICENSE @@ -0,0 +1,21 @@ +The MIT License (MIT) + +Copyright (c) 2014 Segment.io, Inc. + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..b8d7fcd --- /dev/null +++ b/Makefile @@ -0,0 +1,27 @@ +XCPRETTY := xcpretty -c && exit ${PIPESTATUS[0]} + +SDK ?= "iphonesimulator" +DESTINATION ?= "platform=iOS Simulator,name=iPhone 5" +PROJECT := Segment-Appboy +XC_ARGS := -scheme $(PROJECT)-Example -workspace Example/$(PROJECT).xcworkspace -sdk $(SDK) -destination $(DESTINATION) ONLY_ACTIVE_ARCH=NO + +install: Example/Podfile Segment-Appboy.podspec + pod install --project-directory=Example + +clean: + xcodebuild $(XC_ARGS) clean | $(XCPRETTY) + +build: + xcodebuild $(XC_ARGS) | $(XCPRETTY) + +test: + xcodebuild test $(XC_ARGS) | $(XCPRETTY) + +xcbuild: + xctool $(XC_ARGS) + +xctest: + xctool test $(XC_ARGS) + +.PHONY: test build xctest xcbuild clean +.SILENT: diff --git a/Pod/Assets/.gitkeep b/Pod/Assets/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/Pod/Classes/.gitkeep b/Pod/Classes/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/Pod/Classes/SEGAppboyIntegration.h b/Pod/Classes/SEGAppboyIntegration.h new file mode 100644 index 0000000..02ae92d --- /dev/null +++ b/Pod/Classes/SEGAppboyIntegration.h @@ -0,0 +1,10 @@ +#import +#import + +@interface SEGAppboyIntegration : NSObject + +@property(nonatomic, strong) NSDictionary *settings; + +- (id)initWithSettings:(NSDictionary *)settings; + +@end \ No newline at end of file diff --git a/Pod/Classes/SEGAppboyIntegration.m b/Pod/Classes/SEGAppboyIntegration.m new file mode 100644 index 0000000..acd9032 --- /dev/null +++ b/Pod/Classes/SEGAppboyIntegration.m @@ -0,0 +1,173 @@ +#import "SEGAppboyIntegration.h" +#import "Appboy-iOS-SDK/AppboyKit.h" +#import "Appboy-iOS-SDK/ABKUser.h" +#import + +@implementation SEGAppboyIntegration + +- (id)initWithSettings:(NSDictionary *)settings +{ + if (self = [super init]) { + self.settings = settings; + dispatch_async(dispatch_get_main_queue(), ^{ + NSString *appboyAPIKey = [self.settings objectForKey:@"apiKey"]; + [Appboy startWithApiKey:appboyAPIKey + inApplication:[UIApplication sharedApplication] + withLaunchOptions:nil]; + SEGLog(@"[Appboy startWithApiKey:inApplication:withLaunchOptions:]"); + }); + } + + return self; +} + +- (void)identify:(SEGIdentifyPayload *)payload +{ + // Ensure that the userID is set and valid (i.e. a non-empty string). + if (payload.userId != nil && [payload.userId length] != 0) { + // `changeUser:` should always be called in the main thread. If we are already in the main thread, + // calling dispatch_sync will cause hanging. + if ([NSThread isMainThread]) { + [[Appboy sharedInstance] changeUser:payload.userId]; + SEGLog(@"[[Appboy sharedInstance] changeUser:%@]", payload.userId); + } else { + dispatch_sync(dispatch_get_main_queue(), ^{ + [[Appboy sharedInstance] changeUser:payload.userId]; + SEGLog(@"[[Appboy sharedInstance] changeUser:%@]", payload.userId); + }); + } + } + + if ([payload.traits[@"birthday"] isKindOfClass:[NSString class]]) { + NSDateFormatter *dateFormatter = [[NSDateFormatter alloc] init]; + NSLocale *enUSPOSIXLocale = [NSLocale localeWithLocaleIdentifier:@"en_US_POSIX"]; + [dateFormatter setLocale:enUSPOSIXLocale]; + [dateFormatter setDateFormat:@"yyyy-MM-dd'T'HH:mm:ssZZZZZ"]; + [Appboy sharedInstance].user.dateOfBirth = [dateFormatter dateFromString:payload.traits[@"birthday"]]; + SEGLog(@"Logged [Appboy sharedInstance].user.dateOfBirth"); + } + + if ([payload.traits[@"email"] isKindOfClass:[NSString class]]) { + [Appboy sharedInstance].user.email = payload.traits[@"email"]; + SEGLog(@"Logged [Appboy sharedInstance].user.email"); + } + + if ([payload.traits[@"firstName"] isKindOfClass:[NSString class]]) { + [Appboy sharedInstance].user.firstName = payload.traits[@"firstName"]; + SEGLog(@"Logged [Appboy sharedInstance].user.firstName"); + } + + if ([payload.traits[@"lastName"] isKindOfClass:[NSString class]]) { + [Appboy sharedInstance].user.lastName = payload.traits[@"lastName"]; + SEGLog(@"Logged [Appboy sharedInstance].user.lastName"); + } + + // Appboy only accepts "m" or "male" for gender male, and "f" or "female" for gender female, with case insensitive. + if ([payload.traits[@"gender"] isKindOfClass:[NSString class]]) { + NSString *gender = payload.traits[@"gender"]; + if ([gender.lowercaseString isEqualToString:@"m"] || [gender.lowercaseString isEqualToString:@"male"]) { + [[Appboy sharedInstance].user setGender:ABKUserGenderMale]; + SEGLog(@"[[Appboy sharedInstance].user setGender:]"); + } else if ([gender.lowercaseString isEqualToString:@"f"] || [gender.lowercaseString isEqualToString:@"female"]) { + [[Appboy sharedInstance].user setGender:ABKUserGenderFemale]; + SEGLog(@"[[Appboy sharedInstance].user setGender:]"); + } + } + + if ([payload.traits[@"phone"] isKindOfClass:[NSString class]]) { + [Appboy sharedInstance].user.phone = payload.traits[@"phone"]; + SEGLog(@"Logged [Appboy sharedInstance].user.phone"); + } + + if ([payload.traits[@"address"] isKindOfClass:[NSDictionary class]]) { + NSDictionary *address = payload.traits[@"address"]; + if ([address[@"city"] isKindOfClass:[NSString class]]) { + [Appboy sharedInstance].user.homeCity = address[@"city"]; + SEGLog(@"Logged [Appboy sharedInstance].user.homeCity"); + } + + if ([address[@"country"] isKindOfClass:[NSString class]]) { + [Appboy sharedInstance].user.country = address[@"country"]; + SEGLog(@"Logged [Appboy sharedInstance].user.country"); + } + } + + NSArray *appboyTraits = @[@"birthday", @"email", @"firstName", @"lastName", @"gender", @"phone", @"address", @"anonymousID"]; + + // Other traits. Iterate over all the traits and set them. + for (NSString *key in payload.traits.allKeys) { + if (![appboyTraits containsObject:key]) { + id traitValue = payload.traits[key]; + if ([traitValue isKindOfClass:[NSString class]]) { + [[Appboy sharedInstance].user setCustomAttributeWithKey:key andStringValue:traitValue]; + SEGLog(@"[[Appboy sharedInstance].user setCustomAttributeWithKey: andStringValue:]"); + } else if ([traitValue isKindOfClass:[NSNumber class]]) { + if (strcmp([traitValue objCType], [@(YES) objCType]) == 0) { + [[Appboy sharedInstance].user setCustomAttributeWithKey:key andBOOLValue:[(NSNumber *)traitValue boolValue]]; + SEGLog(@"[[Appboy sharedInstance].user setCustomAttributeWithKey: andBOOLValue:]"); + } else if (strcmp([traitValue objCType], @encode(int)) == 0) { + [[Appboy sharedInstance].user setCustomAttributeWithKey:key andIntegerValue:[(NSNumber *)traitValue integerValue]]; + SEGLog(@"[[Appboy sharedInstance].user setCustomAttributeWithKey: andIntegerValue:]"); + } else if (strcmp([traitValue objCType], @encode(double)) == 0) { + [[Appboy sharedInstance].user setCustomAttributeWithKey:key andDoubleValue:[(NSNumber *)traitValue doubleValue]]; + SEGLog(@"[[Appboy sharedInstance].user setCustomAttributeWithKey: andDoubleValue:]"); + } else { + SEGLog(@"Could not map NSNumber value to Appboy custom attribute:%@]", traitValue); + } + } + } + } +} + +- (void)track:(SEGTrackPayload *)payload +{ + NSDecimalNumber *revenue = [SEGAppboyIntegration extractRevenue:payload.properties withKey:@"revenue"]; + if (revenue) { + NSString *currency = @"USD"; // Make USD as the default currency. + if ([payload.properties[@"currency"] isKindOfClass:[NSString class]] && + [(NSString *)payload.properties[@"currency"] length] == 3) { // Currency should be an ISO 4217 currency code. + currency = payload.properties[@"currency"]; + } + + if (payload.properties != nil) { + NSMutableDictionary *appboyProperties = [NSMutableDictionary dictionaryWithDictionary:payload.properties]; + appboyProperties[@"currency"] = nil; + appboyProperties[@"revenue"] = nil; + [[Appboy sharedInstance] logPurchase:payload.event inCurrency:currency atPrice:revenue withQuantity:1 andProperties:appboyProperties]; + } else { + [[Appboy sharedInstance] logPurchase:payload.event inCurrency:currency atPrice:revenue withQuantity:1]; + } + SEGLog(@"[[Appboy sharedInstance] logPurchase: inCurrency: atPrice: withQuantity:]"); + } else { + [[Appboy sharedInstance] logCustomEvent:payload.event withProperties:payload.properties]; + SEGLog(@"[[Appboy sharedInstance] logCustomEvent: withProperties:]"); + } +} + ++ (NSDecimalNumber *)extractRevenue:(NSDictionary *)dictionary withKey:(NSString *)revenueKey +{ + id revenueProperty = dictionary[revenueKey]; + if (revenueProperty) { + if ([revenueProperty isKindOfClass:[NSString class]]) { + return [NSDecimalNumber decimalNumberWithString:revenueProperty]; + } else if ([revenueProperty isKindOfClass:[NSDecimalNumber class]]) { + return revenueProperty; + } + } + return nil; +} + +- (void)flush +{ + [[Appboy sharedInstance] flushDataAndProcessRequestQueue]; + SEGLog(@"[[Appboy sharedInstance] flushDataAndProcessRequestQueue]"); +} + +// Invoked when the device is registered with a push token. +// Appboy uses this to send push messages to the device, so forward it to Appboy. +- (void)registeredForRemoteNotificationsWithDeviceToken:(NSData *)deviceToken +{ + [[Appboy sharedInstance] registerPushToken:[NSString stringWithFormat:@"%@", deviceToken]]; + SEGLog(@"[[Appboy sharedInstance] registerPushToken:]"); +} +@end diff --git a/Pod/Classes/SEGAppboyIntegrationFactory.h b/Pod/Classes/SEGAppboyIntegrationFactory.h new file mode 100644 index 0000000..bec6506 --- /dev/null +++ b/Pod/Classes/SEGAppboyIntegrationFactory.h @@ -0,0 +1,8 @@ +#import +#import + +@interface SEGAppboyIntegrationFactory : NSObject + ++ (id)instance; + +@end \ No newline at end of file diff --git a/Pod/Classes/SEGAppboyIntegrationFactory.m b/Pod/Classes/SEGAppboyIntegrationFactory.m new file mode 100644 index 0000000..53e0f0f --- /dev/null +++ b/Pod/Classes/SEGAppboyIntegrationFactory.m @@ -0,0 +1,32 @@ +#import "SEGAppboyIntegrationFactory.h" +#import "SEGAppboyIntegration.h" + +@implementation SEGAppboyIntegrationFactory + ++ (id)instance +{ + static dispatch_once_t once; + static SEGAppboyIntegrationFactory *sharedInstance; + dispatch_once(&once, ^{ + sharedInstance = [[self alloc] init]; + }); + return sharedInstance; +} + +- (id)init +{ + self = [super init]; + return self; +} + +- (id)createWithSettings:(NSDictionary *)settings forAnalytics:(SEGAnalytics *)analytics +{ + return [[SEGAppboyIntegration alloc] initWithSettings:settings]; +} + +- (NSString *)key +{ + return @"Appboy"; +} + +@end \ No newline at end of file diff --git a/README.md b/README.md index 7bcd416..da0ef8c 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,54 @@ -# appboy-segment-ios -Appboy's side-by-side iOS SDK integration with Segment.IO +# Analytics + +[![Version](https://img.shields.io/cocoapods/v/Segment-Appboy.svg?style=flat)](http://cocoapods.org/pods/Segment-Appboy) +[![License](https://img.shields.io/cocoapods/l/Segment-Appboy.svg?style=flat)](http://cocoapods.org/pods/Segment-Appboy) + +Appboy integration for analytics-ios. + +NOTE: For this alpha version, the Appboy segment iOS SDK doesn't support push analytics, and it won't open deep links or http links from push. Version 1.0.0 should have improved push support. + +## Installation + +Analytics is available through [CocoaPods](http://cocoapods.org). To install +it, simply add the following line to your `Podfile`: + +```ruby +pod "Segment-Appboy" +``` + +## License + +``` +WWWWWW||WWWWWW + W W W||W W W + || + ( OO )__________ + / | \ + /o o| MIT \ + \___/||_||__||_|| * + || || || || + _||_|| _||_|| + (__|__|(__|__| + +The MIT License (MIT) + +Copyright (c) 2014 Segment, Inc. + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. +``` diff --git a/RELEASING.md b/RELEASING.md new file mode 100644 index 0000000..b95b398 --- /dev/null +++ b/RELEASING.md @@ -0,0 +1,9 @@ +Releasing +========= + + 1. Update the version in `Segment-Appboy.podspec` to a non-beta version. + 2. Update the `CHANGELOG.md` for the impending release. + 3. `git commit -am "Prepare for release X.Y.Z."` (where X.Y.Z is the new version) + 4. `git tag -a X.Y.Z -m "Version X.Y.Z"` (where X.Y.Z is the new version) + 5. `git push && git push --tags` + 6. `pod trunk push Segment-Appboy.podspec --allow-warnings` diff --git a/Segment-Appboy.podspec b/Segment-Appboy.podspec new file mode 100644 index 0000000..5b6b491 --- /dev/null +++ b/Segment-Appboy.podspec @@ -0,0 +1,27 @@ +Pod::Spec.new do |s| + s.name = "Segment-Appboy" + s.version = "1.0.0-alpha" + s.summary = "Appboy Integration for Segment's analytics-ios library." + + s.description = <<-DESC + Analytics for iOS provides a single API that lets you + integrate with over 100s of tools. + + This is the Appboy integration for the iOS library. + DESC + + s.homepage = "https://github.com/appboy/appboy-segment-ios" + s.license = { :type => 'MIT' } + s.author = { "Appboy" => "hello@appboy.com" } + s.source = { :git => "https://github.com/appboy/appboy-segment-ios.git", :tag => s.version.to_s } + s.social_media_url = 'https://twitter.com/appboy' + + s.platform = :ios, '8.0' + s.requires_arc = true + + s.source_files = 'Pod/Classes/**/*' + + s.dependency 'Analytics', '~> 3.0.0' + s.dependency 'Appboy-iOS-SDK' + +end diff --git a/_Pods.xcodeproj b/_Pods.xcodeproj new file mode 120000 index 0000000..3c5a8e7 --- /dev/null +++ b/_Pods.xcodeproj @@ -0,0 +1 @@ +Example/Pods/Pods.xcodeproj \ No newline at end of file