Skip to content

Commit

Permalink
v1.1.0 Release
Browse files Browse the repository at this point in the history
  • Loading branch information
aglazer committed Jan 30, 2014
0 parents commit 9797d36
Show file tree
Hide file tree
Showing 9 changed files with 172 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .gitignore
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/
90 changes: 90 additions & 0 deletions README.md
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._
1 change: 1 addition & 0 deletions Taplytics.framework/Headers
1 change: 1 addition & 0 deletions Taplytics.framework/Taplytics
8 changes: 8 additions & 0 deletions Taplytics.framework/Versions/A/Headers/Taplytics.h
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"
35 changes: 35 additions & 0 deletions Taplytics.framework/Versions/A/Headers/TaplyticsManager.h
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 added Taplytics.framework/Versions/A/Taplytics
Binary file not shown.
1 change: 1 addition & 0 deletions Taplytics.framework/Versions/Current
18 changes: 18 additions & 0 deletions Taplytics.podspec
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

0 comments on commit 9797d36

Please sign in to comment.