Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 27 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
version: 2

jobs:
build_and_test:
macos:
xcode: "11.0"
steps:
- checkout
- run: xcrun simctl list
- run:
name: Install build dependencies
command: |
sudo gem install xcpretty
sudo gem install cocoapods -v 1.8.4
- run:
name: Fetch Cocoapods specs
command: curl https://cocoapods-specs.circleci.com/fetch-cocoapods-repo-from-s3.sh | bash -s cf
- run: make install
- run: make build
- run: make test
- run: make lint

workflows:
version: 2
build_and_test:
jobs:
- build_and_test
33 changes: 27 additions & 6 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,23 +1,44 @@
Change Log
==========
Version 1.7.0 *(7th October, 2020)*
-------------------------------------------
* Updates import headers for iOS 14 support.

Version 1.6.0 *(9th January, 2019)*
-------------------------------------------
* [New] Add support for enabling Segment to send data to Mixpanel's EU endpoint leveraging a new setting. M.panel EU Endpoint documentation can be found [here](https://developer.mixpanel.com/docs/implement-mixpanel#section-implementing-mixpanel-in-the-european-union-eu).

Version 1.5.0 *(9th January, 2019)*
-------------------------------------------
*(Upgrade Segment-Mixpanel to 3.5)*

* [New](https://github.com/segment-integrations/analytics-ios-integration-mixpanel/pull/47): Upgrade Segment-Mixpanel to 3.5.0.

* [New] Add support for groups

Version 1.4.0 *(12th September, 2019)*
-------------------------------------------
*(Upgrade Segment-Mixpanel to 3.4.7)*

* [New](https://github.com/segment-integrations/analytics-ios-integration-mixpanel/pull/42): Upgrade Segment-Mixpanel to 3.4.7.

Version 1.3.0 *(21st March, 2018)*
-------------------------------------------
*(Supports analytics-ios 3.0+ and Mixpanel 3.0+)*
* [New](https://github.com/segment-integrations/analytics-ios-integration-mixpanel/pull/38): Supports automatic property increments for user profiles.

* [New](https://github.com/segment-integrations/analytics-ios-integration-mixpanel/pull/38): Supports automatic property increments for user profiles.

Version 1.2.0 *(20th February, 2017)*
-------------------------------------------
*(Supports analytics-ios 3.0+ and Mixpanel 3.0+)*

* Adds instance with launch-options for Mixpanel Push Notification Tracking.
* Updates Example/Podfile to [Cocoapods 1.0 spec.](http://blog.cocoapods.org/CocoaPods-1.0-Migration-Guide/)
* Updates Example/Podfile to [Cocoapods 1.0 spec.](http://blog.cocoapods.org/CocoaPods-1.0-Migration-Guide/)

Version 1.1.0 *(12th July, 2016)*
-------------------------------------------
*(Supports analytics-ios 3.0+ and Mixpanel 3.0+)*

* Supports any version greater than 3.0 and less than 4.0.
* Fixes small bug in the Mixpanel library in version 2.9.9, for the in-app notifications, that was fixed in the version 3.0
* Drops iOS 7 support
Expand All @@ -26,7 +47,7 @@ Version 1.1.0 *(12th July, 2016)*
Version 1.0.5 *(7th July, 2016)*
-------------------------------------------
*(Supports analytics-ios 3.0)*

* Supports any version greater than 3.0 and less than 4.0.

Version 1.0.4 *(12th May, 2016)*
Expand Down
4 changes: 2 additions & 2 deletions Cartfile.resolved
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
github "mixpanel/mixpanel-iphone" "v3.4.9"
github "segmentio/analytics-ios" "3.7.0"
github "mixpanel/mixpanel-iphone" "v3.6.3"
github "segmentio/analytics-ios" "4.1.2"
2 changes: 2 additions & 0 deletions Example/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Segment-Mixpanel.xcworkspace
project.pbxproj
2 changes: 1 addition & 1 deletion Example/Podfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ end
target 'Segment-Mixpanel_Tests' do
pod "Segment-Mixpanel", :path => "../"

pod 'OCMockito'
pod 'OCMockito', '~> 3.0'
pod 'Specta'
pod 'Expecta'
end
51 changes: 29 additions & 22 deletions Example/Podfile.lock
Original file line number Diff line number Diff line change
@@ -1,36 +1,43 @@
PODS:
- Analytics (3.2.6)
- Expecta (1.0.3)
- Mixpanel (3.0.0):
- Mixpanel/Mixpanel (= 3.0.0)
- Mixpanel/Mixpanel (3.0.0)
- OCHamcrest (5.2.0)
- OCMockito (3.0.1):
- Analytics (4.0.5)
- Expecta (1.0.6)
- Mixpanel (3.6.0)
- OCHamcrest (5.4.0)
- OCMockito (3.0.2):
- OCHamcrest (~> 5.1)
- Segment-Mixpanel (1.2.0):
- Analytics (~> 3.0)
- Mixpanel (~> 3.0)
- Specta (1.0.4)
- Segment-Mixpanel (1.6.1):
- Analytics
- Mixpanel (~> 3.5)
- Specta (1.0.7)

DEPENDENCIES:
- Expecta
- OCMockito
- OCMockito (~> 3.0)
- Segment-Mixpanel (from `../`)
- Specta

SPEC REPOS:
https://github.com/CocoaPods/Specs.git:
- Analytics
- Expecta
- Mixpanel
- OCHamcrest
- OCMockito
- Specta

EXTERNAL SOURCES:
Segment-Mixpanel:
:path: ../
:path: "../"

SPEC CHECKSUMS:
Analytics: ad1c5bdc169866d72afdbc918084d0695010e35a
Expecta: 9d1bff6c8b0eeee73a166a2ee898892478927a15
Mixpanel: ac92056ee35a961362513ba11049e67cffcaa1f1
OCHamcrest: 218dc4022a5e928a275771da70c5dbea9f859287
OCMockito: 9eee3c61e42f7cb8aa015d66f8cc16849701d973
Segment-Mixpanel: a4c523dbaebecdcfed6a65ecd9c0ea8b430cd8d2
Specta: 69bb134672aae190a1379ff91df07dad8dd1f869
Analytics: 4bcf052c91e1f3339219e83d6a036fb2bd7c218d
Expecta: 3b6bd90a64b9a1dcb0b70aa0e10a7f8f631667d5
Mixpanel: 446b6e7713aa34a9a3516ff7648d56551384fc94
OCHamcrest: 5c1d441c5a82fb18ac17c2aeb52ec1a99edb971b
OCMockito: 2cb6c2267cbc76537be56281cd47cdb5a7c27541
Segment-Mixpanel: 05d5021ffa0edc37642980ef44e03748ceb804da
Specta: 3e1bd89c3517421982dc4d1c992503e48bd5fe66

PODFILE CHECKSUM: 507a152874203f544f8656b6532dd0f45dd3c57d
PODFILE CHECKSUM: 6ff827a80dc2a21042246602306af45cb1c9f2a8

COCOAPODS: 1.3.1
COCOAPODS: 1.8.4
6 changes: 6 additions & 0 deletions Example/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# analytics-ios-integration-mixpanel/Example

## Installation

1. `pod install`

114 changes: 46 additions & 68 deletions Example/Segment-Mixpanel.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,6 @@
6003F586195388D20070C39A /* Sources */,
6003F587195388D20070C39A /* Frameworks */,
6003F588195388D20070C39A /* Resources */,
AD9A917E693CF7F2FD86A331 /* [CP] Embed Pods Frameworks */,
70186F6A4ED53ECE49AA3164 /* [CP] Copy Pods Resources */,
);
buildRules = (
Expand All @@ -230,7 +229,6 @@
6003F5AA195388D20070C39A /* Sources */,
6003F5AB195388D20070C39A /* Frameworks */,
6003F5AC195388D20070C39A /* Resources */,
684D47C18DC4556E3B421A93 /* [CP] Embed Pods Frameworks */,
8D9A76D760D30F28BADFC3A4 /* [CP] Copy Pods Resources */,
);
buildRules = (
Expand Down Expand Up @@ -299,43 +297,13 @@
/* End PBXResourcesBuildPhase section */

/* Begin PBXShellScriptBuildPhase section */
684D47C18DC4556E3B421A93 /* [CP] Embed Pods Frameworks */ = {
isa = PBXShellScriptBuildPhase;
buildActionMask = 2147483647;
files = (
);
inputPaths = (
"${SRCROOT}/Pods/Target Support Files/Pods-Segment-Mixpanel_Tests/Pods-Segment-Mixpanel_Tests-frameworks.sh",
"${BUILT_PRODUCTS_DIR}/Analytics/Analytics.framework",
"${BUILT_PRODUCTS_DIR}/Mixpanel/Mixpanel.framework",
"${BUILT_PRODUCTS_DIR}/Segment-Mixpanel/Segment_Mixpanel.framework",
"${BUILT_PRODUCTS_DIR}/Expecta/Expecta.framework",
"${BUILT_PRODUCTS_DIR}/OCHamcrest/OCHamcrest.framework",
"${BUILT_PRODUCTS_DIR}/OCMockito/OCMockito.framework",
"${BUILT_PRODUCTS_DIR}/Specta/Specta.framework",
);
name = "[CP] Embed Pods Frameworks";
outputPaths = (
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/Analytics.framework",
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/Mixpanel.framework",
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/Segment_Mixpanel.framework",
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/Expecta.framework",
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/OCHamcrest.framework",
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/OCMockito.framework",
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/Specta.framework",
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-Segment-Mixpanel_Tests/Pods-Segment-Mixpanel_Tests-frameworks.sh\"\n";
showEnvVarsInLog = 0;
};
70186F6A4ED53ECE49AA3164 /* [CP] Copy Pods Resources */ = {
isa = PBXShellScriptBuildPhase;
buildActionMask = 2147483647;
files = (
);
inputPaths = (
"${SRCROOT}/Pods/Target Support Files/Pods-Segment-Mixpanel_Example/Pods-Segment-Mixpanel_Example-resources.sh",
"${PODS_ROOT}/Target Support Files/Pods-Segment-Mixpanel_Example/Pods-Segment-Mixpanel_Example-resources.sh",
"${PODS_ROOT}/Mixpanel/Mixpanel/Images/MPArrowLeft.png",
"${PODS_ROOT}/Mixpanel/Mixpanel/Images/[email protected]",
"${PODS_ROOT}/Mixpanel/Mixpanel/Images/MPArrowRight.png",
Expand All @@ -349,18 +317,34 @@
"${PODS_ROOT}/Mixpanel/Mixpanel/Images/[email protected]",
"${PODS_ROOT}/Mixpanel/Mixpanel/Images/MPLogo.png",
"${PODS_ROOT}/Mixpanel/Mixpanel/Images/[email protected]",
"${PODS_ROOT}/Mixpanel/Mixpanel/MPNotification~ipad.storyboard",
"${PODS_ROOT}/Mixpanel/Mixpanel/MPNotification~iphonelandscape.storyboard",
"${PODS_ROOT}/Mixpanel/Mixpanel/MPNotification~iphoneportrait.storyboard",
"${PODS_ROOT}/Mixpanel/Mixpanel/MPSurvey.storyboard",
"${PODS_ROOT}/Mixpanel/Mixpanel/Images/placeholder-image.png",
"${PODS_ROOT}/Mixpanel/Mixpanel/MPTakeoverNotificationViewController~ipad.xib",
"${PODS_ROOT}/Mixpanel/Mixpanel/MPTakeoverNotificationViewController~iphonelandscape.xib",
"${PODS_ROOT}/Mixpanel/Mixpanel/MPTakeoverNotificationViewController~iphoneportrait.xib",
);
name = "[CP] Copy Pods Resources";
outputPaths = (
"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}",
"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/MPArrowLeft.png",
"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/[email protected]",
"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/MPArrowRight.png",
"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/[email protected]",
"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/MPCheckmark.png",
"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/[email protected]",
"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/MPCloseButton.png",
"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/[email protected]",
"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/[email protected]",
"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/MPDismissKeyboard.png",
"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/[email protected]",
"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/MPLogo.png",
"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/[email protected]",
"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/placeholder-image.png",
"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/MPTakeoverNotificationViewController~ipad.nib",
"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/MPTakeoverNotificationViewController~iphonelandscape.nib",
"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/MPTakeoverNotificationViewController~iphoneportrait.nib",
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-Segment-Mixpanel_Example/Pods-Segment-Mixpanel_Example-resources.sh\"\n";
shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-Segment-Mixpanel_Example/Pods-Segment-Mixpanel_Example-resources.sh\"\n";
showEnvVarsInLog = 0;
};
76468687818568B0D2196A4F /* [CP] Check Pods Manifest.lock */ = {
Expand All @@ -387,7 +371,7 @@
files = (
);
inputPaths = (
"${SRCROOT}/Pods/Target Support Files/Pods-Segment-Mixpanel_Tests/Pods-Segment-Mixpanel_Tests-resources.sh",
"${PODS_ROOT}/Target Support Files/Pods-Segment-Mixpanel_Tests/Pods-Segment-Mixpanel_Tests-resources.sh",
"${PODS_ROOT}/Mixpanel/Mixpanel/Images/MPArrowLeft.png",
"${PODS_ROOT}/Mixpanel/Mixpanel/Images/[email protected]",
"${PODS_ROOT}/Mixpanel/Mixpanel/Images/MPArrowRight.png",
Expand All @@ -401,18 +385,34 @@
"${PODS_ROOT}/Mixpanel/Mixpanel/Images/[email protected]",
"${PODS_ROOT}/Mixpanel/Mixpanel/Images/MPLogo.png",
"${PODS_ROOT}/Mixpanel/Mixpanel/Images/[email protected]",
"${PODS_ROOT}/Mixpanel/Mixpanel/MPNotification~ipad.storyboard",
"${PODS_ROOT}/Mixpanel/Mixpanel/MPNotification~iphonelandscape.storyboard",
"${PODS_ROOT}/Mixpanel/Mixpanel/MPNotification~iphoneportrait.storyboard",
"${PODS_ROOT}/Mixpanel/Mixpanel/MPSurvey.storyboard",
"${PODS_ROOT}/Mixpanel/Mixpanel/Images/placeholder-image.png",
"${PODS_ROOT}/Mixpanel/Mixpanel/MPTakeoverNotificationViewController~ipad.xib",
"${PODS_ROOT}/Mixpanel/Mixpanel/MPTakeoverNotificationViewController~iphonelandscape.xib",
"${PODS_ROOT}/Mixpanel/Mixpanel/MPTakeoverNotificationViewController~iphoneportrait.xib",
);
name = "[CP] Copy Pods Resources";
outputPaths = (
"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}",
"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/MPArrowLeft.png",
"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/[email protected]",
"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/MPArrowRight.png",
"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/[email protected]",
"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/MPCheckmark.png",
"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/[email protected]",
"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/MPCloseButton.png",
"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/[email protected]",
"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/[email protected]",
"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/MPDismissKeyboard.png",
"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/[email protected]",
"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/MPLogo.png",
"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/[email protected]",
"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/placeholder-image.png",
"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/MPTakeoverNotificationViewController~ipad.nib",
"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/MPTakeoverNotificationViewController~iphonelandscape.nib",
"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/MPTakeoverNotificationViewController~iphoneportrait.nib",
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-Segment-Mixpanel_Tests/Pods-Segment-Mixpanel_Tests-resources.sh\"\n";
shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-Segment-Mixpanel_Tests/Pods-Segment-Mixpanel_Tests-resources.sh\"\n";
showEnvVarsInLog = 0;
};
91D1BC7AA4C14768B2F9B9C8 /* [CP] Check Pods Manifest.lock */ = {
Expand All @@ -433,28 +433,6 @@
shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n";
showEnvVarsInLog = 0;
};
AD9A917E693CF7F2FD86A331 /* [CP] Embed Pods Frameworks */ = {
isa = PBXShellScriptBuildPhase;
buildActionMask = 2147483647;
files = (
);
inputPaths = (
"${SRCROOT}/Pods/Target Support Files/Pods-Segment-Mixpanel_Example/Pods-Segment-Mixpanel_Example-frameworks.sh",
"${BUILT_PRODUCTS_DIR}/Analytics/Analytics.framework",
"${BUILT_PRODUCTS_DIR}/Mixpanel/Mixpanel.framework",
"${BUILT_PRODUCTS_DIR}/Segment-Mixpanel/Segment_Mixpanel.framework",
);
name = "[CP] Embed Pods Frameworks";
outputPaths = (
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/Analytics.framework",
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/Mixpanel.framework",
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/Segment_Mixpanel.framework",
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-Segment-Mixpanel_Example/Pods-Segment-Mixpanel_Example-frameworks.sh\"\n";
showEnvVarsInLog = 0;
};
/* End PBXShellScriptBuildPhase section */

/* Begin PBXSourcesBuildPhase section */
Expand Down
22 changes: 21 additions & 1 deletion Example/Segment-Mixpanel/SEGAppDelegate.m
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,33 @@
//

#import "SEGAppDelegate.h"

#import <Analytics/SEGAnalytics.h>
#import <Segment-Mixpanel/SEGMixpanelIntegrationFactory.h>

@implementation SEGAppDelegate

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
// Override point for customization after application launch.

// Override point for customization after application launch.
[SEGAnalytics debug:YES];
SEGAnalyticsConfiguration *config = [SEGAnalyticsConfiguration configurationWithWriteKey:@"YOUR_WRITE_KEY_HERE"];

// Add any of your bundled integrations.
config.trackApplicationLifecycleEvents = YES;
config.flushAt = 1;
[config use:[SEGMixpanelIntegrationFactory instance]];
[SEGAnalytics setupWithConfiguration:config];

[[SEGAnalytics sharedAnalytics] track:@"Mixpanel Application Launched"];

[[SEGAnalytics sharedAnalytics] identify:@"segment-fake-tester-Mixpanel"
traits:@{ @"email": @"[email protected]" }];

[[SEGAnalytics sharedAnalytics] group:@"testversion1" traits:@{ @"name": @"test group"}];


return YES;
}

Expand Down
2 changes: 2 additions & 0 deletions Example/Tests/SEGPayloadBuilder.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,6 @@

+ (SEGAliasPayload *)alias:(NSString *)newId;

+ (SEGGroupPayload *)group:(NSString *) groupId withTraits:(NSDictionary *)traits;

@end
Loading