To run the example project, clone the repo, and run pod install
from the Example directory first.
To install the Segment-Branch integration, simply add this line to your CocoaPods Podfile
:
pod "Segment-Branch"
After adding the dependency, you must register the integration with our SDK. To do this, import the Branch integration in your AppDelegate
:
#import <Segment-Branch/BNCBranchIntegrationFactory.h>
And add the following lines:
NSString *const SEGMENT_WRITE_KEY = @" ... ";
SEGAnalyticsConfiguration *config = [SEGAnalyticsConfiguration configurationWithWriteKey:SEGMENT_WRITE_KEY];
[config use:[BNCBranchIntegrationFactory instance]];
[SEGAnalytics setupWithConfiguration:config];
Branch Metrics, [email protected]
Segment-Branch is available under the MIT license. See the LICENSE file for more info.