Skip to content

Commit

Permalink
Carnival iOS SDK 5.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
CarnivalBot committed May 30, 2016
1 parent c40caad commit bbe7645
Show file tree
Hide file tree
Showing 79 changed files with 32 additions and 1,979 deletions.
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
#import "CarnivalMessageStream.h"
#import "CarnivalAttributes.h"

#define CARNIVAL_VERSION @"4.2.0"
#define CARNIVAL_VERSION @"5.0.0"

/* Constants for Auto-Analytics Tracking */
NS_ASSUME_NONNULL_BEGIN
Expand Down Expand Up @@ -69,48 +69,11 @@ NS_ASSUME_NONNULL_END
+ (void)startEngine:(nonnull NSString *)appKey registerForPushNotifications:(BOOL)registerForPushNotifications;

/**
* Sets the Carnival appKey credentials for this app and ignores certain analytics sources.
* Carnival Auto-Analytics Tracking will track 3rd party analytics being logged and log them to Carnival as well. Right now, only Events are supported.
* This is enababled by default for your convinience. If you wish to opt out, you can provide an array of sources to ignore.
*
* @param appKey The appKey you recieved when setting up your app at http://app.carnivalmobile.com .
* @param ignoreArray An array of string constants of the Auto-Analytics sources to ignore. By default, all sources will be observed.
*
* @warning It is important that this method is called at the earliest possible opportunity (e.g. application:didFinishLaunchingWithOptions:),
* calling it later in the app lifecycle can have unintended consequences. No startEngine: calls (overrides included) must not be called more than once.
* Enables AutoAnalytics tracking for a given array of event sources. This is opt-in as of Carnival 5.0.0.
*
* @param enableArray - An array of const strings beginning with CarnivalAutoAnalyticsSource.
*/
+ (void)startEngine:(nonnull NSString *)appKey ignoreAutoAnalyticsSources:(nonnull NSArray *)ignoreArray;

/**
* Sets the Carnival appKey credentials for this app, the UIUserNotificationTypes and ignores certain analytics sources.
* Carnival Auto-Analytics Tracking will track 3rd party analytics being logged and log them to Carnival as well. Right now, only Events are supported.
* This is enababled by default for your convinience. If you wish to opt out, you can provide an array of sources to ignore.
*
* @param appKey The appKey you recieved when setting up your app at http://app.carnivalmobile.com .
* @param types The UIUserNotificationType attributes you wish to register this app for as defined in UIApplication.h
* see appledocs for more information.
* @param ignoreArray An array of string constants of the Auto-Analytics sources to ignore. By default, all sources will be observed.
* @discussion An exception will be raised if you do not set your appKey before you call any other methods.
* Make sure your app bundle identifier is the same as whatever it is on http://app.carnivalmobile.com .
*
* @warning It is important that this method is called at the earliest possible opportunity (e.g. application:didFinishLaunchingWithOptions:),
* calling it later in the app lifecycle can have unintended consequences. No startEngine: calls (overrides included) must not be called more than once.
*/
+ (void)startEngine:(nonnull NSString *)appKey andNotificationTypes:(UIUserNotificationType)types ignoreAutoAnalyticsSources:(nonnull NSArray *)ignoreArray;

/**
* Sets the Carnival appKey credentials for this app, optionally registers for push notifications with the badge, alert and sound UIUserNotificationType's and ignores certain analytics sources.
* Carnival Auto-Analytics Tracking will track 3rd party analytics being logged and log them to Carnival as well. Right now, only Events are supported.
* This is enababled by default for your convinience. If you wish to opt out, you can provide an array of sources to ignore.
*
* @param appKey The appKey you recieved when setting up your app at http://app.carnivalmobile.com .
* @param registerForPushNotifications when this parameter is YES the Carnival iOS SDK will automatically register for push notifications
* @param ignoreArray An array of string constants of the Auto-Analytics sources to ignore. By default, all sources will be observed.
* @warning It is important that this method is called at the earliest possible opportunity (e.g. application:didFinishLaunchingWithOptions:),
* calling it later in the app lifecycle can have unintended consequences. No startEngine: calls (overrides included) must not be called more than once.
*/
+ (void)startEngine:(nonnull NSString *)appKey registerForPushNotifications:(BOOL)registerForPushNotifications ignoreAutoAnalyticsSources:(nonnull NSArray *)ignoreArray;

+ (void)enableAutoAnalytics:(nonnull NSArray *)enableArray;

/** @name Tags
* @warning Tags are now deprecated in favour for setting an array of strings with setStrings:forKey: methods.
Expand Down
Binary file not shown.
Binary file not shown.
2 changes: 1 addition & 1 deletion Carnival.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = 'Carnival'
s.version = '4.2.0'
s.version = '5.0.0'
s.summary = 'Carnival iOS SDK for integrating with http://carnival.io messaging and analytics service'
s.author = {
'Carnival Mobile' => '[email protected]'
Expand Down
27 changes: 14 additions & 13 deletions ExampleProject/ExampleProject.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
objects = {

/* Begin PBXBuildFile section */
22382BD91CED23E800900E63 /* Carnival.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 22382BD61CED23E800900E63 /* Carnival.framework */; };
22382BDA1CED23E800900E63 /* CarnivalResources.bundle in Resources */ = {isa = PBXBuildFile; fileRef = 22382BD81CED23E800900E63 /* CarnivalResources.bundle */; };
22581FB41CFBEA1600C6EBFB /* Carnival.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 22581FB11CFBEA1600C6EBFB /* Carnival.framework */; };
22581FB51CFBEA1600C6EBFB /* CarnivalResources.bundle in Resources */ = {isa = PBXBuildFile; fileRef = 22581FB31CFBEA1600C6EBFB /* CarnivalResources.bundle */; };
228702781CAA2B120087E877 /* Carnival.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 228702751CAA2B120087E877 /* Carnival.framework */; };
22B325F41C6153A700A7056D /* Security.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 22B325F31C6153A700A7056D /* Security.framework */; };
758D6AF419AE915600F09C8D /* (null) in Resources */ = {isa = PBXBuildFile; };
Expand All @@ -29,8 +29,8 @@
/* End PBXBuildFile section */

/* Begin PBXFileReference section */
22382BD61CED23E800900E63 /* Carnival.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; path = Carnival.framework; sourceTree = "<group>"; };
22382BD81CED23E800900E63 /* CarnivalResources.bundle */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.plug-in"; path = CarnivalResources.bundle; sourceTree = "<group>"; };
22581FB11CFBEA1600C6EBFB /* Carnival.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; path = Carnival.framework; sourceTree = "<group>"; };
22581FB31CFBEA1600C6EBFB /* CarnivalResources.bundle */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.plug-in"; path = CarnivalResources.bundle; sourceTree = "<group>"; };
228702751CAA2B120087E877 /* Carnival.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; path = Carnival.framework; sourceTree = "<group>"; };
22B325F31C6153A700A7056D /* Security.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Security.framework; path = System/Library/Frameworks/Security.framework; sourceTree = SDKROOT; };
7566D52919F9B984007D5D27 /* AdSupport.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = AdSupport.framework; path = System/Library/Frameworks/AdSupport.framework; sourceTree = SDKROOT; };
Expand Down Expand Up @@ -60,7 +60,7 @@
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
22382BD91CED23E800900E63 /* Carnival.framework in Frameworks */,
22581FB41CFBEA1600C6EBFB /* Carnival.framework in Frameworks */,
22B325F41C6153A700A7056D /* Security.framework in Frameworks */,
75D77B3119F077A500BD2319 /* QuartzCore.framework in Frameworks */,
75D77B2F19F0779600BD2319 /* CoreLocation.framework in Frameworks */,
Expand All @@ -76,19 +76,20 @@
/* End PBXFrameworksBuildPhase section */

/* Begin PBXGroup section */
22382BD51CED23E800900E63 /* Carnival.embeddedframework */ = {
22581FB01CFBEA1600C6EBFB /* Carnival.embeddedframework */ = {
isa = PBXGroup;
children = (
22382BD61CED23E800900E63 /* Carnival.framework */,
22382BD71CED23E800900E63 /* Resources */,
22581FB11CFBEA1600C6EBFB /* Carnival.framework */,
22581FB21CFBEA1600C6EBFB /* Resources */,
);
path = Carnival.embeddedframework;
name = Carnival.embeddedframework;
path = "../../../../../Library/Developer/Xcode/DerivedData/Carnival-bgxlyhbbxuufrgdvzvwjlanfapkg/Build/Products/Debug-iphoneos/Carnival.embeddedframework";
sourceTree = "<group>";
};
22382BD71CED23E800900E63 /* Resources */ = {
22581FB21CFBEA1600C6EBFB /* Resources */ = {
isa = PBXGroup;
children = (
22382BD81CED23E800900E63 /* CarnivalResources.bundle */,
22581FB31CFBEA1600C6EBFB /* CarnivalResources.bundle */,
);
path = Resources;
sourceTree = "<group>";
Expand Down Expand Up @@ -129,7 +130,7 @@
758E8D8E186367C900A8AFA4 /* ExampleProject */ = {
isa = PBXGroup;
children = (
22382BD51CED23E800900E63 /* Carnival.embeddedframework */,
22581FB01CFBEA1600C6EBFB /* Carnival.embeddedframework */,
758E8D97186367C900A8AFA4 /* ExampleAppDelegate.h */,
758E8D98186367C900A8AFA4 /* ExampleAppDelegate.m */,
758E8DA0186367C900A8AFA4 /* ExampleViewController.h */,
Expand Down Expand Up @@ -208,7 +209,7 @@
758E8D9F186367C900A8AFA4 /* Main_iPad.storyboard in Resources */,
758E8D9C186367C900A8AFA4 /* Main_iPhone.storyboard in Resources */,
758D6AF419AE915600F09C8D /* (null) in Resources */,
22382BDA1CED23E800900E63 /* CarnivalResources.bundle in Resources */,
22581FB51CFBEA1600C6EBFB /* CarnivalResources.bundle in Resources */,
758E8DA4186367C900A8AFA4 /* Images.xcassets in Resources */,
758E8D93186367C900A8AFA4 /* InfoPlist.strings in Resources */,
);
Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

Binary file not shown.
Loading

0 comments on commit bbe7645

Please sign in to comment.