-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 9797d36
Showing
9 changed files
with
172 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# Xcode | ||
.DS_Store | ||
build/ | ||
*.pbxuser | ||
!default.pbxuser | ||
*.mode1v3 | ||
!default.mode1v3 | ||
*.mode2v3 | ||
!default.mode2v3 | ||
*.perspectivev3 | ||
!default.perspectivev3 | ||
*.xcworkspace | ||
!default.xcworkspace | ||
xcuserdata | ||
profile | ||
*.moved-aside | ||
DerivedData | ||
.idea/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,90 @@ | ||
# Taplytics iOS SDK | ||
|
||
_Description: Taplytics is a native mobile A/B testing platform that allows you to create new tests and push them live without any code updates!_ | ||
|
||
## Project Setup | ||
|
||
_How do I, as a developer, start using Taplytics?_ | ||
|
||
1. _Sign up for a free account at Taplytics.com._ | ||
2. _Install the SDK._ | ||
3. _Create an experiment and push it live to your users!_ | ||
|
||
## Installation Instructions (using CocoaPods) | ||
|
||
1. _Install using CocoaPods_ | ||
- Add a Podfile to the root of your project directory with the following: | ||
|
||
```ruby | ||
platform :ios | ||
pod 'Taplytics' | ||
``` | ||
|
||
2. _Add an import for the taplytics framework to your _prefix.pch file._ | ||
|
||
``` | ||
// YourApp_prefix.pch: | ||
#ifdef __OBJC__ | ||
#import <Foundation/Foundation.h> | ||
#import <UIKit/UIKit.h> | ||
// Add the following line: | ||
#import <Taplytics/Taplytics.h> | ||
#endif | ||
``` | ||
|
||
3. _Initialize the SDK by adding a line of code with your API key in your AppDelegate.m file_ | ||
|
||
|
||
```objective-c | ||
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { | ||
... | ||
[TaplyticsManager startTaplyticsAPIKey:@"Your App Token Here"]; | ||
... | ||
} | ||
``` | ||
|
||
## Installation Instructions (Manual Installation) | ||
|
||
|
||
1. _Download the SDK / clone into your app._ | ||
2. _Load the Taplytics framework into your app._ | ||
3. _Add the required frameworks:_ | ||
|
||
```objective-c | ||
CFNetwork.framework | ||
Security.framework | ||
CoreTelephony.framework | ||
AdSupport.framework | ||
SystemConfiguration.framework | ||
libicucore.dylib | ||
``` | ||
4. _Add the -ObjC Linker flag to your project settings_ | ||
5. _Add an import for the taplytics framework to your _prefix.pch file._ | ||
|
||
```objective-c | ||
// YourApp_prefix.pch: | ||
#ifdef __OBJC__ | ||
#import <Foundation/Foundation.h> | ||
#import <UIKit/UIKit.h> | ||
// Add the following line: | ||
#import <Taplytics/Taplytics.h> | ||
#endif | ||
``` | ||
|
||
6. _Initialize the SDK by adding a line of code with your API key in your AppDelegate.m file_ | ||
|
||
```objective-c | ||
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { | ||
... | ||
[TaplyticsManager startTaplyticsAPIKey:@"Your App Token Here" liveUpdate:YES]; | ||
//For internal builds, use liveUpdate:YES. For public builds, use liveUpdate:NO. | ||
... | ||
} | ||
``` | ||
|
||
## Questions or Need Help? | ||
|
||
_The taplytics team is available 24/7 to answer any questions you have. Just email help@taplytics.com or visit http://help.taplytics.com for more detailed installation and usage information._ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Versions/Current/Headers |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Versions/Current/Taplytics |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
// | ||
// Taplytics.h | ||
// Taplytics | ||
// | ||
// Copyright (c) 2014 Syrp Inc. All rights reserved. | ||
// | ||
|
||
#import "TaplyticsManager.h" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
// | ||
// TaplyticsManager.h | ||
// Taplytics | ||
// | ||
// Copyright (c) 2014 Syrp Inc. All rights reserved. | ||
// | ||
|
||
#import <Foundation/Foundation.h> | ||
|
||
typedef enum { | ||
TLDev, | ||
TLProduction, | ||
TLLocalHost, | ||
TLLocalTest | ||
} TLServer; | ||
|
||
@interface TaplyticsManager : NSObject | ||
|
||
// Start Taplytics With API Key Methods | ||
+ (void)startTaplyticsAPIKey:(NSString*)apiKey; | ||
|
||
+ (void)startTaplyticsAPIKey:(NSString*)apiKey liveUpdate:(BOOL)liveUpdate; | ||
|
||
+ (void)startTaplyticsAPIKey:(NSString*)apiKey server:(TLServer)server; | ||
|
||
+ (void)startTaplyticsAPIKey:(NSString*)apiKey server:(TLServer)server liveUpdate:(BOOL)liveUpdate; | ||
|
||
#if __IPHONE_OS_VERSION_MIN_REQUIRED >= 70000 | ||
|
||
// Update Taplytics Properties in Background, only iOS7 and later | ||
+ (void)performBackgroundFetch:(void(^)(UIBackgroundFetchResult))completionBlock; | ||
|
||
#endif | ||
|
||
@end |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
A |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
Pod::Spec.new do |s| | ||
s.name = 'Taplytics' | ||
s.version = '1.1.0' | ||
s.license = { :type => 'Commercial', :text => 'See http://taplytics.com/terms' } | ||
s.platform = :ios | ||
s.summary = 'iOS framework for using the Taplytics native mobile A/B testing service.' | ||
s.description = 'For installation instructions, please visit: https://github.com/taplytics/taplytics-ios-sdk' | ||
s.homepage = 'http://taplytics.com' | ||
s.author = { 'Taplytics' => '[email protected]' } | ||
s.source = { :git => 'https://github.com/taplytics/taplytics-ios-sdk.git', :tag => "#{s.version}" } | ||
s.requires_arc = true | ||
s.frameworks = 'CFNetwork', 'Security', 'CoreTelephony', 'AdSupport', 'SystemConfiguration' | ||
s.library = 'icucore' | ||
s.vendored_frameworks = 'Taplytics.framework' | ||
s.xcconfig = { | ||
'OTHER_LDFLAGS' => '$(inherited) -ObjC' | ||
} | ||
end |