Skip to content

Commit

Permalink
Fix iOS compile, broke in #12
Browse files Browse the repository at this point in the history
  • Loading branch information
jageet committed Nov 29, 2022
1 parent 7cace86 commit a1e2afc
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions ios/SiftReactNative.m
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,14 @@ - (dispatch_queue_t)methodQueue

RCT_EXPORT_METHOD(setSiftConfig:(NSString *)accountId beaconKey:(NSString *)beaconKey disallowCollectingLocationData:
(BOOL)disallowCollectingLocationData serverUrlFormat:(NSString *)serverUrlFormat) {
[[Sift sharedInstance] setAccountId:accountId];
[[Sift sharedInstance] setBeaconKey:beaconKey];
[[Sift sharedInstance] setDisallowCollectingLocationData:disallowCollectingLocationData];
Sift *sift = [Sift sharedInstance];
[sift setAccountId:accountId];
[sift setBeaconKey:beaconKey];
[sift setDisallowCollectingLocationData:disallowCollectingLocationData];
if ([serverUrlFormat length] > 0) {
[[Sift sharedInstance] setServerUrlFormat:serverUrlFormat];
[sift setServerUrlFormat:serverUrlFormat];
}
[[Sift sharedInstance] upload];
[sift upload];
}

RCT_EXPORT_METHOD(setUserId: (NSString *)userId) {
Expand Down

0 comments on commit a1e2afc

Please sign in to comment.