Skip to content

Commit 4a692b5

Browse files
committed
601, 604: Fix build of branch ios SDK
1 parent 60d7f81 commit 4a692b5

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

plugin.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ SOFTWARE.
2424
<plugin xmlns="http://apache.org/cordova/ns/plugins/1.0"
2525
xmlns:android="http://schemas.android.com/apk/res/android"
2626
id="branch-cordova-sdk"
27-
version="4.0.0">
27+
version="4.0.1">
2828

2929
<!-- Description -->
3030
<name>branch-cordova-sdk</name>
@@ -85,7 +85,7 @@ SOFTWARE.
8585
<config>
8686
<source url="https://github.com/CocoaPods/Specs.git"/>
8787
</config>
88-
<pods use-frameworks="true">
88+
<pods>
8989
<pod name="Branch" spec="~> 0.31.3" />
9090
</pods>
9191
</podspec>

src/ios/BranchSDK.m

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -746,7 +746,7 @@ - (void)listOnSpotlight:(CDVInvokedUrlCommand*)command {
746746

747747
- (void)crossPlatformIds:(CDVInvokedUrlCommand *)command {
748748
NSMutableDictionary *json = [NSMutableDictionary new];
749-
749+
750750
Branch *branch = [self getInstance];
751751
[branch crossPlatformIdDataWithCompletion:^(BranchCrossPlatformID *cpid) {
752752
CDVPluginResult* pluginResult = nil;
@@ -760,9 +760,9 @@ - (void)crossPlatformIds:(CDVInvokedUrlCommand *)command {
760760
for (BranchProbabilisticCrossPlatformID *tmp in cpid.probabiliticCrossPlatformIDs) {
761761
if (tmp.crossPlatformID && tmp.score) {
762762
NSMutableDictionary *pair = [NSMutableDictionary new];
763-
[pair setObject:tmp.crossPlatformID forKey:@"id"];
763+
[pair setObject:tmp.crossPlatformID forKey:@"id"];
764764
[pair setObject:tmp.score forKey:@"probability"];
765-
[probCPIDs addObject:pair];
765+
[probCPIDs addObject:pair];
766766
}
767767
}
768768
[json setObject:probCPIDs forKey:@"prob_cross_platform_ids"];
@@ -777,9 +777,9 @@ - (void)crossPlatformIds:(CDVInvokedUrlCommand *)command {
777777

778778
- (void)lastAttributedTouchData:(CDVInvokedUrlCommand *)command {
779779
NSMutableDictionary *json = [NSMutableDictionary new];
780-
780+
781781
Branch *branch = [self getInstance];
782-
[branch lastTouchAttributedDataWithCompletion:^(BranchLastAttributedTouchData * _Nullable latd) {
782+
[branch lastAttributedTouchDataWithAttributionWindow:30 completion:^(BranchLastAttributedTouchData * _Nullable latd) {
783783
CDVPluginResult* pluginResult = nil;
784784
if (latd) {
785785
[json setObject:latd.attributionWindow forKey:@"attribution_window"];

0 commit comments

Comments
 (0)