Skip to content

Commit

Permalink
Merge pull request #32 from CleverTap/3.7.0
Browse files Browse the repository at this point in the history
3.7.0
  • Loading branch information
Aditi3 authored Sep 25, 2019
2 parents 968997c + df59aec commit 771f85b
Show file tree
Hide file tree
Showing 274 changed files with 14,039 additions and 4,828 deletions.
8 changes: 2 additions & 6 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,15 @@
# * http://www.objc.io/issue-6/travis-ci.html
# * https://github.com/supermarin/xcpretty#usage

# safelist
branches:
only:
- master
language: objective-c
cache: cocoapods
podfile: ObjCStarter/Podfile
osx_image: xcode10.3
osx_image: xcode10.2
before_install:
- gem install cocoapods -v '1.7.5' # Since Travis is not always on latest version
- pod update --project-directory=ObjCStarter
install:
- gem install xcpretty --no-rdoc --no-ri --no-document --quiet
- gem install xcpretty --no-document --quiet
script:
- set -o pipefail && xcodebuild -workspace "ObjCStarter/ObjCStarter.xcworkspace" -scheme "ObjCStarter" -sdk iphonesimulator -destination 'name=iPhone X' build
- pod lib lint --quick
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# CHANGE LOG

## Version 3.7.0 (September 25, 2019)
* Adds support for AB Tests. (in closed Beta)
* Adds support for SDWebImage version 5.1
* Disable Location API calls unless CLEVERTAP_LOCATION macro is set
* Bug fixes and performance improvements

## Version 3.6.0 (May 30, 2019)
* Adds support for SDWebImage version 5.0

Expand Down
6 changes: 3 additions & 3 deletions CleverTap-iOS-SDK.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = "CleverTap-iOS-SDK"
s.version = "3.6.0"
s.version = "3.7.0"
s.summary = "The CleverTap iOS SDK for App Analytics and Engagement."
s.homepage = "https://github.com/CleverTap/clevertap-ios-sdk"
s.license = { :type => "MIT" }
Expand All @@ -9,11 +9,11 @@ s.source = { :git => "https://github.com/CleverTap/clevertap-
s.requires_arc = true
s.module_name = 'CleverTapSDK'
s.resources = 'CleverTapSDK/*.crt'
s.ios.dependency 'SDWebImage', '~> 5.0'
s.ios.dependency 'SDWebImage', '~> 5.1'
s.ios.resources = 'CleverTapSDK/**/*.{png,xib}', 'CleverTapSDK/**/*.xcdatamodeld'
s.ios.deployment_target = '8.0'
s.ios.source_files = 'CleverTapSDK/**/*.{h,m}'
s.ios.public_header_files = 'CleverTapSDK/CleverTap.h', 'CleverTapSDK/CleverTap+SSLPinning.h','CleverTapSDK/CleverTap+Inbox.h', 'CleverTapSDK/CleverTapInstanceConfig.h', 'CleverTapSDK/CleverTapBuildInfo.h', 'CleverTapSDK/CleverTapEventDetail.h', 'CleverTapSDK/CleverTapInAppNotificationDelegate.h', 'CleverTapSDK/CleverTapSyncDelegate.h', 'CleverTapSDK/CleverTapTrackedViewController.h', 'CleverTapSDK/CleverTapUTMDetail.h', 'CleverTapSDK/CleverTapJSInterface.h'
s.ios.public_header_files = 'CleverTapSDK/CleverTap.h', 'CleverTapSDK/CleverTap+SSLPinning.h','CleverTapSDK/CleverTap+Inbox.h', 'CleverTapSDK/CleverTapInstanceConfig.h', 'CleverTapSDK/CleverTapBuildInfo.h', 'CleverTapSDK/CleverTapEventDetail.h', 'CleverTapSDK/CleverTapInAppNotificationDelegate.h', 'CleverTapSDK/CleverTapSyncDelegate.h', 'CleverTapSDK/CleverTapTrackedViewController.h', 'CleverTapSDK/CleverTapUTMDetail.h', 'CleverTapSDK/CleverTapJSInterface.h', 'CleverTapSDK/CleverTap+ABTesting.h'
s.tvos.deployment_target = '9.0'
s.tvos.source_files = 'CleverTapSDK/*.{h,m}'
s.tvos.exclude_files = 'CleverTapSDK/CleverTapJSInterface.{h,m}'
Expand Down
372 changes: 372 additions & 0 deletions CleverTapSDK.xcodeproj/project.pbxproj

Large diffs are not rendered by default.

57 changes: 57 additions & 0 deletions CleverTapSDK/ABTesting/controllers/CTABTestController.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@

#import <Foundation/Foundation.h>
#import "CTABVariant.h"
#import "CTDeviceInfo.h"

@protocol CTABTestingDelegate <NSObject>
@required
- (void)abExperimentsDidUpdate;
- (CTDeviceInfo* _Nonnull)getDeviceInfo;

@end

@class CleverTapInstanceConfig;

@interface CTABTestController : NSObject

@property (nonatomic, weak) id<CTABTestingDelegate> _Nullable delegate;

- (instancetype _Nullable)initWithConfig:(CleverTapInstanceConfig *_Nonnull)config
guid:(NSString *_Nonnull)guid
delegate:(id<CTABTestingDelegate>_Nonnull)delegate;
- (void)updateExperiments:(NSArray<NSDictionary*> *_Nonnull)experiments;
- (void)resetWithGuid:(NSString* _Nullable)guid;

- (void)registerBoolVariableWithName:(NSString* _Nonnull)name;
- (void)registerDoubleVariableWithName:(NSString* _Nonnull)name;
- (void)registerIntegerVariableWithName:(NSString* _Nonnull)name;
- (void)registerStringVariableWithName:(NSString* _Nonnull)name;

- (void)registerArrayOfBoolVariableWithName:(NSString* _Nonnull)name;
- (void)registerArrayOfDoubleVariableWithName:(NSString* _Nonnull)name;
- (void)registerArrayOfIntegerVariableWithName:(NSString* _Nonnull)name;
- (void)registerArrayOfStringVariableWithName:(NSString* _Nonnull)name;

- (void)registerDictionaryOfBoolVariableWithName:(NSString* _Nonnull)name;
- (void)registerDictionaryOfDoubleVariableWithName:(NSString* _Nonnull)name;
- (void)registerDictionaryOfIntegerVariableWithName:(NSString* _Nonnull)name;
- (void)registerDictionaryOfStringVariableWithName:(NSString* _Nonnull)name;


- (BOOL)getBoolVariableWithName:(NSString* _Nonnull)name defaultValue:(BOOL)defaultValue;
- (double)getDoubleVariableWithName:(NSString* _Nonnull)name defaultValue:(double)defaultValue;
- (int)getIntegerVariableWithName:(NSString* _Nonnull)name defaultValue:(int)defaultValue;
- (NSString* _Nonnull)getStringVariableWithName:(NSString* _Nonnull)name defaultValue:(NSString * _Nonnull)defaultValue;

- (NSArray<NSNumber*>* _Nonnull)getArrayOfBoolVariableWithName:(NSString* _Nonnull)name defaultValue:(NSArray<NSNumber*>* _Nonnull)defaultValue;
- (NSArray<NSNumber*>* _Nonnull)getArrayOfDoubleVariableWithName:(NSString* _Nonnull)name defaultValue:(NSArray<NSNumber*>* _Nonnull)defaultValue;
- (NSArray<NSNumber*>* _Nonnull)getArrayOfIntegerVariableWithName:(NSString* _Nonnull)name defaultValue:(NSArray<NSNumber*>* _Nonnull)defaultValue;
- (NSArray<NSString*>* _Nonnull)getArrayOfStringVariableWithName:(NSString* _Nonnull)name defaultValue:(NSArray<NSString*>* _Nonnull)defaultValue;

- (NSDictionary<NSString*, NSNumber*>* _Nonnull)getDictionaryOfBoolVariableWithName:(NSString* _Nonnull)name defaultValue:(NSDictionary<NSString*, NSNumber*>* _Nonnull)defaultValue;
- (NSDictionary<NSString*, NSNumber*>* _Nonnull)getDictionaryOfDoubleVariableWithName:(NSString* _Nonnull)name defaultValue:(NSDictionary<NSString*, NSNumber*>* _Nonnull)defaultValue;
- (NSDictionary<NSString*, NSNumber*>* _Nonnull)getDictionaryOfIntegerVariableWithName:(NSString* _Nonnull)name defaultValue:(NSDictionary<NSString*, NSNumber*>* _Nonnull)defaultValue;
- (NSDictionary<NSString*, NSString*>* _Nonnull)getDictionaryOfStringVariableWithName:(NSString* _Nonnull)name defaultValue:(NSDictionary<NSString*, NSString*>* _Nonnull)defaultValue;


@end
Loading

0 comments on commit 771f85b

Please sign in to comment.