react-native-flyy 1.3.1 → 1.4.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/android/.gradle/6.3/executionHistory/executionHistory.bin +0 -0
- package/android/.gradle/6.3/executionHistory/executionHistory.lock +0 -0
- package/android/.gradle/6.3/fileHashes/fileHashes.bin +0 -0
- package/android/.gradle/6.3/fileHashes/fileHashes.lock +0 -0
- package/android/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
- package/android/.gradle/buildOutputCleanup/outputFiles.bin +0 -0
- package/android/.gradle/checksums/checksums.lock +0 -0
- package/android/.gradle/checksums/sha1-checksums.bin +0 -0
- package/android/.idea/caches/build_file_checksums.ser +0 -0
- package/android/.idea/libraries/Gradle__com_github_roid_software_flyy_sdk_1_4_29_jar.xml +9 -0
- package/android/.idea/libraries/{Gradle__com_github_roid_software_flyy_sdk_flyy_1_4_11_aar.xml → Gradle__com_github_roid_software_flyy_sdk_flyy_1_4_29_aar.xml} +4 -4
- package/android/.idea/libraries/{Gradle__com_github_roid_software_flyy_sdk_scratchoff_1_4_11_aar.xml → Gradle__com_github_roid_software_flyy_sdk_scratchoff_1_4_29_aar.xml} +4 -4
- package/android/.idea/modules/android.iml +29 -54
- package/android/.idea/workspace.xml +1 -4
- package/android/build.gradle +1 -1
- package/android/src/main/java/com/reactnativeflyy/FlyyModule.kt +45 -2
- package/ios/ReactNativeFlyy.h +0 -1
- package/ios/ReactNativeFlyy.m +279 -77
- package/package.json +1 -1
- package/react-native-flyy.podspec +1 -2
- package/android/.idea/libraries/Gradle__androidx_annotation_annotation_1_0_0_jar.xml +0 -13
- package/android/.idea/libraries/Gradle__androidx_appcompat_appcompat_1_0_2_aar.xml +0 -16
- package/android/.idea/libraries/Gradle__androidx_arch_core_core_common_2_0_0_jar.xml +0 -11
- package/android/.idea/libraries/Gradle__androidx_arch_core_core_runtime_2_0_0_aar.xml +0 -13
- package/android/.idea/libraries/Gradle__androidx_asynclayoutinflater_asynclayoutinflater_1_0_0_aar.xml +0 -13
- package/android/.idea/libraries/Gradle__androidx_collection_collection_1_0_0_jar.xml +0 -11
- package/android/.idea/libraries/Gradle__androidx_coordinatorlayout_coordinatorlayout_1_0_0_aar.xml +0 -16
- package/android/.idea/libraries/Gradle__androidx_core_core_1_0_1_aar.xml +0 -16
- package/android/.idea/libraries/Gradle__androidx_documentfile_documentfile_1_0_0_aar.xml +0 -13
- package/android/.idea/libraries/Gradle__androidx_fragment_fragment_1_0_0_aar.xml +0 -16
- package/android/.idea/libraries/Gradle__androidx_legacy_legacy_support_core_ui_1_0_0_aar.xml +0 -13
- package/android/.idea/libraries/Gradle__androidx_legacy_legacy_support_core_utils_1_0_0_aar.xml +0 -13
- package/android/.idea/libraries/Gradle__androidx_lifecycle_lifecycle_common_2_0_0_jar.xml +0 -11
- package/android/.idea/libraries/Gradle__androidx_lifecycle_lifecycle_livedata_2_0_0_aar.xml +0 -13
- package/android/.idea/libraries/Gradle__androidx_lifecycle_lifecycle_livedata_core_2_0_0_aar.xml +0 -13
- package/android/.idea/libraries/Gradle__androidx_lifecycle_lifecycle_runtime_2_0_0_aar.xml +0 -13
- package/android/.idea/libraries/Gradle__androidx_lifecycle_lifecycle_viewmodel_2_0_0_aar.xml +0 -13
- package/android/.idea/libraries/Gradle__androidx_localbroadcastmanager_localbroadcastmanager_1_0_0_aar.xml +0 -13
- package/android/.idea/libraries/Gradle__androidx_print_print_1_0_0_aar.xml +0 -16
- package/android/.idea/libraries/Gradle__androidx_slidingpanelayout_slidingpanelayout_1_0_0_aar.xml +0 -13
- package/android/.idea/libraries/Gradle__androidx_vectordrawable_vectordrawable_1_0_1_aar.xml +0 -13
- package/android/.idea/libraries/Gradle__androidx_vectordrawable_vectordrawable_animated_1_0_0_aar.xml +0 -13
- package/android/.idea/libraries/Gradle__androidx_versionedparcelable_versionedparcelable_1_0_0_aar.xml +0 -13
- package/android/.idea/libraries/Gradle__com_github_roid_software_flyy_sdk_1_4_11_jar.xml +0 -9
- package/android/.idea/libraries/Gradle__org_jetbrains_kotlin_kotlin_stdlib_1_3_50_jar.xml +0 -13
- package/android/.idea/libraries/Gradle__org_jetbrains_kotlin_kotlin_stdlib_common_1_3_50_jar.xml +0 -13
- package/ios/WebViewController.h +0 -22
- package/ios/WebViewController.m +0 -152
package/ios/ReactNativeFlyy.m
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
#import "ReactNativeFlyy.h"
|
|
2
2
|
#import "FlyyFramework/FlyyFramework.h"
|
|
3
|
-
#import "WebViewController.h"
|
|
4
3
|
|
|
5
4
|
@interface ReactNativeFlyy ()<FlyySDKClosedListener> {
|
|
6
5
|
Flyy *flyy;
|
|
@@ -16,6 +15,7 @@ RCT_EXPORT_MODULE(Flyy)
|
|
|
16
15
|
static NSString * STAGE = @"STAGE";
|
|
17
16
|
static NSString * PRODUCTION = @"PRODUCTION";
|
|
18
17
|
NSString * themeColor = @"";
|
|
18
|
+
RCTResponseSenderBlock sdkClosedCallback;
|
|
19
19
|
|
|
20
20
|
-(void)set_navigation_controller:(UINavigationController*)navigation withCurrentViewController:(UIViewController*) controller
|
|
21
21
|
{
|
|
@@ -28,7 +28,7 @@ RCT_EXPORT_METHOD(setPackageName: (NSString *)packageName)
|
|
|
28
28
|
//Instance of flyy class
|
|
29
29
|
flyy = [Flyy sharedFlyyInstance];
|
|
30
30
|
|
|
31
|
-
[flyy
|
|
31
|
+
[flyy setPackageWithPackageName:packageName];
|
|
32
32
|
}
|
|
33
33
|
|
|
34
34
|
//Init flyy sdk
|
|
@@ -37,7 +37,7 @@ RCT_EXPORT_METHOD(initSDK: (NSString *)partnerToken :(int)environment)
|
|
|
37
37
|
//Instance of flyy class
|
|
38
38
|
flyy = [Flyy sharedFlyyInstance];
|
|
39
39
|
|
|
40
|
-
[flyy
|
|
40
|
+
[flyy initSDKWithPartnerToken:partnerToken environment: environment];
|
|
41
41
|
}
|
|
42
42
|
|
|
43
43
|
//Init flyy sdk with referral callback
|
|
@@ -46,7 +46,7 @@ RCT_EXPORT_METHOD(initSDKWithReferralCallback: (NSString *)partnerToken :(int)en
|
|
|
46
46
|
//Instance of flyy class
|
|
47
47
|
flyy = [Flyy sharedFlyyInstance];
|
|
48
48
|
|
|
49
|
-
[flyy
|
|
49
|
+
[flyy initSDKWithPartnerToken:partnerToken environment: environment onComplete: ^(BOOL success, NSString * referralData) {
|
|
50
50
|
if(success) {
|
|
51
51
|
callback(@[referralData]);
|
|
52
52
|
}
|
|
@@ -60,7 +60,7 @@ RCT_EXPORT_METHOD(initSDKWithReferralCallback: (NSString *)partnerToken :(int)en
|
|
|
60
60
|
// //Instance of flyy class
|
|
61
61
|
// flyy = [Flyy sharedFlyyInstance];
|
|
62
62
|
//
|
|
63
|
-
// [flyy
|
|
63
|
+
// [flyy initSDKWithPartnerToken:partnerToken environment:environment themeColorPrimary:colorPrimary themeColorPrimaryDark:colorPrimaryDark];
|
|
64
64
|
//}
|
|
65
65
|
|
|
66
66
|
//set user
|
|
@@ -69,7 +69,7 @@ RCT_EXPORT_METHOD(setUser: (NSString *)userId)
|
|
|
69
69
|
//Instance of flyy class
|
|
70
70
|
flyy = [Flyy sharedFlyyInstance];
|
|
71
71
|
|
|
72
|
-
[flyy
|
|
72
|
+
[flyy setUserWithExternalUserId:userId];
|
|
73
73
|
}
|
|
74
74
|
|
|
75
75
|
//set user with segment id
|
|
@@ -78,7 +78,7 @@ RCT_EXPORT_METHOD(setUserWithSegment: (NSString *)userId :(NSString *)segmentId
|
|
|
78
78
|
//Instance of flyy class
|
|
79
79
|
flyy = [Flyy sharedFlyyInstance];
|
|
80
80
|
|
|
81
|
-
[flyy
|
|
81
|
+
[flyy setUserWithExternalUserId:userId segmentId:segmentId onComplete: ^(BOOL success) {
|
|
82
82
|
if(success) {
|
|
83
83
|
}
|
|
84
84
|
}];
|
|
@@ -90,7 +90,7 @@ RCT_EXPORT_METHOD(setUserWithCallBack: (NSString *)userId :(RCTResponseSenderBlo
|
|
|
90
90
|
//Instance of flyy class
|
|
91
91
|
flyy = [Flyy sharedFlyyInstance];
|
|
92
92
|
|
|
93
|
-
[flyy
|
|
93
|
+
[flyy setUserWithExternalUserId:userId onComplete: ^(BOOL success) {
|
|
94
94
|
if(success) {
|
|
95
95
|
callback(@[@("success")]);
|
|
96
96
|
}
|
|
@@ -103,7 +103,7 @@ RCT_EXPORT_METHOD(setUserWithSegmentCallback: (NSString *)userId :(NSString *)se
|
|
|
103
103
|
//Instance of flyy class
|
|
104
104
|
flyy = [Flyy sharedFlyyInstance];
|
|
105
105
|
|
|
106
|
-
[flyy
|
|
106
|
+
[flyy setUserWithExternalUserId:userId segmentId:segmentId onComplete: ^(BOOL success) {
|
|
107
107
|
if(success) {
|
|
108
108
|
callback(@[@("success")]);
|
|
109
109
|
}
|
|
@@ -116,7 +116,7 @@ RCT_EXPORT_METHOD(setNewUser: (NSString *)userId)
|
|
|
116
116
|
//Instance of flyy class
|
|
117
117
|
flyy = [Flyy sharedFlyyInstance];
|
|
118
118
|
|
|
119
|
-
[flyy
|
|
119
|
+
[flyy setNewUserWithExternalUserId:userId];
|
|
120
120
|
}
|
|
121
121
|
|
|
122
122
|
//set new user with segmentId
|
|
@@ -125,7 +125,7 @@ RCT_EXPORT_METHOD(setNewUserWithSegment: (NSString *)userId :(NSString *)segment
|
|
|
125
125
|
//Instance of flyy class
|
|
126
126
|
flyy = [Flyy sharedFlyyInstance];
|
|
127
127
|
|
|
128
|
-
[flyy
|
|
128
|
+
[flyy setNewUserWithExternalUserId:userId segmentId:segmentId onComplete: ^(BOOL success) {
|
|
129
129
|
if(success) {
|
|
130
130
|
}
|
|
131
131
|
}];
|
|
@@ -137,7 +137,7 @@ RCT_EXPORT_METHOD(setNewUserWithSegmentCallback: (NSString *)userId :(NSString *
|
|
|
137
137
|
//Instance of flyy class
|
|
138
138
|
flyy = [Flyy sharedFlyyInstance];
|
|
139
139
|
|
|
140
|
-
[flyy
|
|
140
|
+
[flyy setNewUserWithExternalUserId:userId segmentId:segmentId onComplete: ^(BOOL success) {
|
|
141
141
|
if(success) {
|
|
142
142
|
callback(@[@("success")]);
|
|
143
143
|
}
|
|
@@ -150,7 +150,7 @@ RCT_EXPORT_METHOD(setNewUserWithCallBack: (NSString *)userId :(RCTResponseSender
|
|
|
150
150
|
//Instance of flyy class
|
|
151
151
|
flyy = [Flyy sharedFlyyInstance];
|
|
152
152
|
|
|
153
|
-
[flyy
|
|
153
|
+
[flyy setNewUserWithExternalUserId:userId onComplete: ^(BOOL success) {
|
|
154
154
|
if(success) {
|
|
155
155
|
callback(@[@("success")]);
|
|
156
156
|
}
|
|
@@ -163,7 +163,7 @@ RCT_EXPORT_METHOD(setNewUserWithSegment: (NSString *)userId :(NSString *)segment
|
|
|
163
163
|
//Instance of flyy class
|
|
164
164
|
flyy = [Flyy sharedFlyyInstance];
|
|
165
165
|
|
|
166
|
-
[flyy
|
|
166
|
+
[flyy setNewUserWithExternalUserId:userId segmentId:segmentId onComplete: ^(BOOL success) {
|
|
167
167
|
if(success) {
|
|
168
168
|
callback(@[@("success")]);
|
|
169
169
|
}
|
|
@@ -176,7 +176,7 @@ RCT_EXPORT_METHOD(setUserName: (NSString *)userName)
|
|
|
176
176
|
//Instance of flyy class
|
|
177
177
|
flyy = [Flyy sharedFlyyInstance];
|
|
178
178
|
|
|
179
|
-
[flyy
|
|
179
|
+
[flyy setUserNameWithUserName:userName];
|
|
180
180
|
}
|
|
181
181
|
|
|
182
182
|
//set username with callback
|
|
@@ -185,7 +185,7 @@ RCT_EXPORT_METHOD(setUserNameWithCallBack: (NSString *)userName :(RCTResponseSen
|
|
|
185
185
|
//Instance of flyy class
|
|
186
186
|
flyy = [Flyy sharedFlyyInstance];
|
|
187
187
|
|
|
188
|
-
[flyy
|
|
188
|
+
[flyy setUserNameWithUserName:userName onComplete: ^(BOOL success) {
|
|
189
189
|
if(success) {
|
|
190
190
|
callback(@[@("success")]);
|
|
191
191
|
}
|
|
@@ -198,7 +198,7 @@ RCT_EXPORT_METHOD(sendEvent: (NSString *)key withString:(NSString *)value)
|
|
|
198
198
|
//Instance of flyy class
|
|
199
199
|
flyy = [Flyy sharedFlyyInstance];
|
|
200
200
|
|
|
201
|
-
[flyy
|
|
201
|
+
[flyy sendEventWithKey:key value:value];
|
|
202
202
|
}
|
|
203
203
|
|
|
204
204
|
//send event with callback
|
|
@@ -207,7 +207,7 @@ RCT_EXPORT_METHOD(sendEventWithCallBack: (NSString *)key withString:(NSString *)
|
|
|
207
207
|
//Instance of flyy class
|
|
208
208
|
flyy = [Flyy sharedFlyyInstance];
|
|
209
209
|
|
|
210
|
-
[flyy
|
|
210
|
+
[flyy sendEventWithKey:key value:value onComplete: ^(BOOL success) {
|
|
211
211
|
if(success) {
|
|
212
212
|
callback(@[@("success")]);
|
|
213
213
|
}
|
|
@@ -248,7 +248,7 @@ RCT_EXPORT_METHOD(addUserToSegment: (NSString *)segmentTitle withString:(NSStrin
|
|
|
248
248
|
//Instance of flyy class
|
|
249
249
|
flyy = [Flyy sharedFlyyInstance];
|
|
250
250
|
|
|
251
|
-
[flyy
|
|
251
|
+
[flyy addUserToSegmentWithSegmentTitle:segmentTitle segmentKey:segmentKey onComplete: ^(BOOL success) {
|
|
252
252
|
if(success) {
|
|
253
253
|
// callback(@[@("success")]);
|
|
254
254
|
}
|
|
@@ -274,7 +274,7 @@ RCT_EXPORT_METHOD(showRewardWonScratchPopup: (NSString *)title :(NSString *)mess
|
|
|
274
274
|
RCT_EXPORT_METHOD(setReferralCode: (NSString *)referralCode) {
|
|
275
275
|
//Instance of flyy class
|
|
276
276
|
flyy = [Flyy sharedFlyyInstance];
|
|
277
|
-
[flyy
|
|
277
|
+
[flyy setReferralCodeWithReferralCode:referralCode];
|
|
278
278
|
}
|
|
279
279
|
|
|
280
280
|
//get referral code
|
|
@@ -290,7 +290,7 @@ RCT_EXPORT_METHOD(setSegmentId: (NSString *)segmentId) {
|
|
|
290
290
|
//Instance of flyy class
|
|
291
291
|
flyy = [Flyy sharedFlyyInstance];
|
|
292
292
|
|
|
293
|
-
[flyy
|
|
293
|
+
[flyy setSegmentIdWithSegementId:segmentId];
|
|
294
294
|
}
|
|
295
295
|
|
|
296
296
|
//verify refferal code
|
|
@@ -299,7 +299,7 @@ RCT_EXPORT_METHOD(verifyReferralCode: (NSString *)referralCode :(RCTResponseSend
|
|
|
299
299
|
//Instance of flyy class
|
|
300
300
|
flyy = [Flyy sharedFlyyInstance];
|
|
301
301
|
|
|
302
|
-
[flyy
|
|
302
|
+
[flyy verifyReferralCodeWithReferralCode:referralCode onComplete:^(bool isValid, NSString* referralUrl) {
|
|
303
303
|
if (isValid) {
|
|
304
304
|
callback(@[@"true", referralUrl]);
|
|
305
305
|
} else {
|
|
@@ -314,7 +314,7 @@ RCT_EXPORT_METHOD(getShareData: (RCTResponseSenderBlock)callback)
|
|
|
314
314
|
//Instance of flyy class
|
|
315
315
|
flyy = [Flyy sharedFlyyInstance];
|
|
316
316
|
|
|
317
|
-
[flyy
|
|
317
|
+
[flyy getShareDataOnComplete: ^(BOOL success, NSArray<NSString *> *referralDetails) {
|
|
318
318
|
if (success) {
|
|
319
319
|
NSDictionary* jsonObject = @{ @"success": @true,
|
|
320
320
|
@"referral_link": referralDetails[0],
|
|
@@ -341,7 +341,7 @@ RCT_EXPORT_METHOD(getShareDataWithOfferId: (int)offerId :(RCTResponseSenderBlock
|
|
|
341
341
|
//Instance of flyy class
|
|
342
342
|
flyy = [Flyy sharedFlyyInstance];
|
|
343
343
|
|
|
344
|
-
[flyy
|
|
344
|
+
[flyy getShareDataWithOfferId:offerId onComplete:^(BOOL success, NSArray<NSString *> *referralDetails) {
|
|
345
345
|
if (success) {
|
|
346
346
|
NSDictionary* jsonObject = @{ @"success": @true,
|
|
347
347
|
@"referral_link": referralDetails[0],
|
|
@@ -368,7 +368,7 @@ RCT_EXPORT_METHOD(getReferralCount:(RCTResponseSenderBlock)callback)
|
|
|
368
368
|
//Instance of flyy class
|
|
369
369
|
flyy = [Flyy sharedFlyyInstance];
|
|
370
370
|
|
|
371
|
-
[flyy
|
|
371
|
+
[flyy getReferralCountOnComplete:^(BOOL success, NSInteger referralCount) {
|
|
372
372
|
callback(@[@(referralCount)]);
|
|
373
373
|
}];
|
|
374
374
|
|
|
@@ -381,7 +381,7 @@ RCT_EXPORT_METHOD(setThemeColor: (NSString *)colorPrimary :(NSString *)colorPrim
|
|
|
381
381
|
|
|
382
382
|
//Instance of flyy class
|
|
383
383
|
flyy = [Flyy sharedFlyyInstance];
|
|
384
|
-
[flyy
|
|
384
|
+
[flyy setThemeColorWithColorPrimary:colorPrimary colorPrimaryDark:colorPrimaryDark];
|
|
385
385
|
|
|
386
386
|
}
|
|
387
387
|
|
|
@@ -390,7 +390,7 @@ RCT_EXPORT_METHOD(setUserToken: (NSString *)userToken)
|
|
|
390
390
|
{
|
|
391
391
|
//Instance of flyy class
|
|
392
392
|
flyy = [Flyy sharedFlyyInstance];
|
|
393
|
-
[flyy
|
|
393
|
+
[flyy setUserTokenWithUserToken:userToken];
|
|
394
394
|
}
|
|
395
395
|
|
|
396
396
|
//set user token with segment id
|
|
@@ -398,7 +398,7 @@ RCT_EXPORT_METHOD(setUserTokenWithSegment: (NSString *)userToken :(NSString *)se
|
|
|
398
398
|
{
|
|
399
399
|
//Instance of flyy class
|
|
400
400
|
flyy = [Flyy sharedFlyyInstance];
|
|
401
|
-
[flyy
|
|
401
|
+
[flyy setUserTokenWithUserToken:userToken segmentId:segmentId];
|
|
402
402
|
}
|
|
403
403
|
|
|
404
404
|
//set user token with callback
|
|
@@ -406,7 +406,7 @@ RCT_EXPORT_METHOD(setUserTokenWithCallBack: (NSString *)userToken :(RCTResponseS
|
|
|
406
406
|
{
|
|
407
407
|
//Instance of flyy class
|
|
408
408
|
flyy = [Flyy sharedFlyyInstance];
|
|
409
|
-
[flyy
|
|
409
|
+
[flyy setUserTokenWithUserToken:userToken onComplete: ^(BOOL success) {
|
|
410
410
|
if(success) {
|
|
411
411
|
callback(@[@("success")]);
|
|
412
412
|
}
|
|
@@ -418,7 +418,7 @@ RCT_EXPORT_METHOD(setUserTokenWithSegmentCallback: (NSString *)userToken :(NSStr
|
|
|
418
418
|
{
|
|
419
419
|
//Instance of flyy class
|
|
420
420
|
flyy = [Flyy sharedFlyyInstance];
|
|
421
|
-
[flyy
|
|
421
|
+
[flyy setUserTokenWithUserToken:userToken segmentId:segmentId onComplete: ^(BOOL success) {
|
|
422
422
|
if(success) {
|
|
423
423
|
callback(@[@("success")]);
|
|
424
424
|
}
|
|
@@ -430,7 +430,7 @@ RCT_EXPORT_METHOD(setNewUserToken: (NSString *)userToken)
|
|
|
430
430
|
{
|
|
431
431
|
//Instance of flyy class
|
|
432
432
|
flyy = [Flyy sharedFlyyInstance];
|
|
433
|
-
[flyy
|
|
433
|
+
[flyy setNewUserTokenWithUserToken:userToken];
|
|
434
434
|
}
|
|
435
435
|
|
|
436
436
|
//set new user token with segmentId
|
|
@@ -438,7 +438,7 @@ RCT_EXPORT_METHOD(setNewUserTokenWithSegment: (NSString *)userToken :(NSString *
|
|
|
438
438
|
{
|
|
439
439
|
//Instance of flyy class
|
|
440
440
|
flyy = [Flyy sharedFlyyInstance];
|
|
441
|
-
[flyy
|
|
441
|
+
[flyy setNewUserTokenWithUserToken:userToken segmentId:segmentId];
|
|
442
442
|
}
|
|
443
443
|
|
|
444
444
|
//set new user token with callback
|
|
@@ -446,7 +446,7 @@ RCT_EXPORT_METHOD(setNewUserTokenWithCallBack: (NSString *)userToken :(RCTRespon
|
|
|
446
446
|
{
|
|
447
447
|
//Instance of flyy class
|
|
448
448
|
flyy = [Flyy sharedFlyyInstance];
|
|
449
|
-
[flyy
|
|
449
|
+
[flyy setNewUserTokenWithUserToken:userToken onComplete: ^(BOOL success) {
|
|
450
450
|
if(success) {
|
|
451
451
|
callback(@[@("success")]);
|
|
452
452
|
}
|
|
@@ -458,7 +458,7 @@ RCT_EXPORT_METHOD(setNewUserTokenWithSegmentCallback: (NSString *)userToken :(NS
|
|
|
458
458
|
{
|
|
459
459
|
//Instance of flyy class
|
|
460
460
|
flyy = [Flyy sharedFlyyInstance];
|
|
461
|
-
[flyy
|
|
461
|
+
[flyy setNewUserTokenWithUserToken:userToken segmentId:segmentId onComplete: ^(BOOL success) {
|
|
462
462
|
if(success) {
|
|
463
463
|
callback(@[@("success")]);
|
|
464
464
|
}
|
|
@@ -470,7 +470,7 @@ RCT_EXPORT_METHOD(getScratchCardCount: (RCTResponseSenderBlock)callback)
|
|
|
470
470
|
{
|
|
471
471
|
//Instance of flyy class
|
|
472
472
|
flyy = [Flyy sharedFlyyInstance];
|
|
473
|
-
[flyy
|
|
473
|
+
[flyy getScratchCardCountOnComplete: ^(BOOL success, NSArray<NSNumber *> *scratchCardCountData) {
|
|
474
474
|
if (success) {
|
|
475
475
|
NSDictionary* jsonObject = @{ @"success": @true,
|
|
476
476
|
@"total_sc_count": scratchCardCountData[0],
|
|
@@ -498,7 +498,7 @@ RCT_EXPORT_METHOD(getWalletBalance: (NSString *)walletLabel :(RCTResponseSenderB
|
|
|
498
498
|
{
|
|
499
499
|
//Instance of flyy class
|
|
500
500
|
flyy = [Flyy sharedFlyyInstance];
|
|
501
|
-
[flyy
|
|
501
|
+
[flyy getWalletBalanceWithWalletLabel:walletLabel onComplete:^(BOOL success, NSArray<NSNumber *> *walletBalanceData) {
|
|
502
502
|
if (success) {
|
|
503
503
|
NSDictionary* jsonObject = @{ @"success": @true,
|
|
504
504
|
@"balance": walletBalanceData[0],
|
|
@@ -523,7 +523,7 @@ RCT_EXPORT_METHOD(getReferrerDetails: (RCTResponseSenderBlock)callback)
|
|
|
523
523
|
{
|
|
524
524
|
//Instance of flyy class
|
|
525
525
|
flyy = [Flyy sharedFlyyInstance];
|
|
526
|
-
[flyy
|
|
526
|
+
[flyy getReferrerDetailsOnComplete:^(BOOL success, NSArray<NSString *> *referrerDetailsData) {
|
|
527
527
|
if (success) {
|
|
528
528
|
NSDictionary* jsonObject = @{ @"success": @true,
|
|
529
529
|
@"name": referrerDetailsData[0],
|
|
@@ -549,7 +549,7 @@ RCT_EXPORT_METHOD(getPreviousLeaderboardWinners: (NSString *)tag :(RCTResponseSe
|
|
|
549
549
|
{
|
|
550
550
|
//Instance of flyy class
|
|
551
551
|
flyy = [Flyy sharedFlyyInstance];
|
|
552
|
-
[flyy
|
|
552
|
+
[flyy getPreviousLeaderboardWinnersWithTag:tag onComplete:^(BOOL success, NSString* message, NSInteger participantsCount, NSString* winners, NSString* previousWinners) {
|
|
553
553
|
if (success) {
|
|
554
554
|
NSDictionary* jsonObject = @{ @"success": @true,
|
|
555
555
|
@"message": message,
|
|
@@ -576,7 +576,7 @@ RCT_EXPORT_METHOD(getLeaderboardParticipants: (NSString *)tag :(RCTResponseSende
|
|
|
576
576
|
{
|
|
577
577
|
//Instance of flyy class
|
|
578
578
|
flyy = [Flyy sharedFlyyInstance];
|
|
579
|
-
[flyy
|
|
579
|
+
[flyy getLeaderboardParticipantsWithTag:tag onComplete:^(BOOL success, NSString* message, NSInteger participantsCount, NSString* winners, NSString* previousWinners) {
|
|
580
580
|
if (success) {
|
|
581
581
|
NSDictionary* jsonObject = @{ @"success": @true,
|
|
582
582
|
@"message": message,
|
|
@@ -612,18 +612,60 @@ RCT_EXPORT_METHOD(sendFcmTokenToServer: (NSString *)fcmToken)
|
|
|
612
612
|
//Instance of flyy class
|
|
613
613
|
NSLog(@"FCMTOKEN %@",fcmToken);
|
|
614
614
|
flyy = [Flyy sharedFlyyInstance];
|
|
615
|
-
[flyy
|
|
615
|
+
[flyy sendFcmTokenToServerWithFcmToken:fcmToken];
|
|
616
616
|
}
|
|
617
617
|
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
618
|
+
RCT_EXPORT_METHOD(handleBackgroundNotification: (NSString *)remoteMessageString)
|
|
619
|
+
{
|
|
620
|
+
//Instance of flyy class
|
|
621
|
+
flyy = [Flyy sharedFlyyInstance];
|
|
622
|
+
NSLog(@"userinfo %@",remoteMessageString);
|
|
623
|
+
|
|
624
|
+
if (remoteMessageString != nil) {
|
|
625
|
+
|
|
626
|
+
NSError * err;
|
|
627
|
+
NSData *data = [remoteMessageString dataUsingEncoding:NSUTF8StringEncoding];
|
|
628
|
+
NSDictionary * userInfo;
|
|
629
|
+
if(data!=nil){
|
|
630
|
+
userInfo = (NSDictionary *)[NSJSONSerialization JSONObjectWithData:data options:NSJSONReadingMutableContainers error:&err];
|
|
631
|
+
}
|
|
632
|
+
|
|
633
|
+
dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0), ^{
|
|
634
|
+
dispatch_async(dispatch_get_main_queue(), ^(){
|
|
635
|
+
[self->flyy handleBackgroundNotificationWithUserInfo:userInfo];
|
|
636
|
+
});
|
|
637
|
+
});
|
|
638
|
+
}
|
|
639
|
+
}
|
|
640
|
+
|
|
641
|
+
RCT_EXPORT_METHOD(handleForegroundNotification: (NSString *)remoteMessageString)
|
|
621
642
|
{
|
|
622
643
|
//Instance of flyy class
|
|
623
644
|
flyy = [Flyy sharedFlyyInstance];
|
|
624
645
|
NSLog(@"userinfo %@",remoteMessageString);
|
|
625
646
|
|
|
626
|
-
|
|
647
|
+
if (remoteMessageString != nil) {
|
|
648
|
+
NSError * err;
|
|
649
|
+
NSData *data = [remoteMessageString dataUsingEncoding:NSUTF8StringEncoding];
|
|
650
|
+
NSDictionary * userInfo;
|
|
651
|
+
if(data!=nil){
|
|
652
|
+
userInfo = (NSDictionary *)[NSJSONSerialization JSONObjectWithData:data options:NSJSONReadingMutableContainers error:&err];
|
|
653
|
+
}
|
|
654
|
+
|
|
655
|
+
[self->flyy handleForegroundNotificationWithUserInfo:userInfo];
|
|
656
|
+
|
|
657
|
+
// dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0), ^{
|
|
658
|
+
// dispatch_async(dispatch_get_main_queue(), ^(){
|
|
659
|
+
// [self->flyy handleForegroundNotificationWithUserInfo:userInfo];
|
|
660
|
+
// });
|
|
661
|
+
// });
|
|
662
|
+
}
|
|
663
|
+
}
|
|
664
|
+
|
|
665
|
+
|
|
666
|
+
RCT_EXPORT_METHOD(handleNotification: (NSString *)remoteMessageString)
|
|
667
|
+
{
|
|
668
|
+
//only for android
|
|
627
669
|
}
|
|
628
670
|
|
|
629
671
|
//set notification channel works only for android now
|
|
@@ -637,7 +679,7 @@ RCT_EXPORT_METHOD(getOffersCount: (RCTResponseSenderBlock)callback)
|
|
|
637
679
|
//Instance of flyy class
|
|
638
680
|
flyy = [Flyy sharedFlyyInstance];
|
|
639
681
|
|
|
640
|
-
[flyy
|
|
682
|
+
[flyy getOffersCountOnComplete: ^(BOOL success, NSArray<NSNumber *> *offersCount) {
|
|
641
683
|
if (success) {
|
|
642
684
|
NSDictionary* jsonObject = @{ @"success": @true,
|
|
643
685
|
@"live_offers_count": offersCount[0],
|
|
@@ -659,60 +701,198 @@ RCT_EXPORT_METHOD(getOffersCount: (RCTResponseSenderBlock)callback)
|
|
|
659
701
|
RCT_EXPORT_METHOD(openOffersScreen)
|
|
660
702
|
{
|
|
661
703
|
flyy = [Flyy sharedFlyyInstance];
|
|
662
|
-
|
|
704
|
+
|
|
705
|
+
dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0), ^{
|
|
706
|
+
|
|
707
|
+
dispatch_async(dispatch_get_main_queue(), ^(){
|
|
708
|
+
|
|
709
|
+
[self->flyy openOffersPage];
|
|
710
|
+
});
|
|
711
|
+
});
|
|
712
|
+
}
|
|
713
|
+
|
|
714
|
+
//open offers screen with segment and callback
|
|
715
|
+
RCT_EXPORT_METHOD(openOffersScreenWithCallBack: (RCTResponseSenderBlock)callback)
|
|
716
|
+
{
|
|
717
|
+
flyy = [Flyy sharedFlyyInstance];
|
|
718
|
+
sdkClosedCallback = callback;
|
|
719
|
+
[flyy setSDKClosedListenerWithFlyysdkclosedlistener:self];
|
|
720
|
+
|
|
721
|
+
dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0), ^{
|
|
722
|
+
|
|
723
|
+
dispatch_async(dispatch_get_main_queue(), ^(){
|
|
724
|
+
|
|
725
|
+
[self->flyy openOffersPage];
|
|
726
|
+
});
|
|
727
|
+
});
|
|
728
|
+
|
|
663
729
|
}
|
|
664
730
|
|
|
665
731
|
//open offers screen with segemnt id
|
|
666
732
|
RCT_EXPORT_METHOD(openOffersScreenWithSegment: (NSString *)segmentId)
|
|
667
733
|
{
|
|
668
734
|
flyy = [Flyy sharedFlyyInstance];
|
|
669
|
-
|
|
735
|
+
|
|
736
|
+
dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0), ^{
|
|
737
|
+
|
|
738
|
+
dispatch_async(dispatch_get_main_queue(), ^(){
|
|
739
|
+
|
|
740
|
+
[self->flyy openOffersPageWithSegmentId:segmentId];
|
|
741
|
+
});
|
|
742
|
+
});
|
|
743
|
+
|
|
744
|
+
}
|
|
745
|
+
|
|
746
|
+
//open offers screen with segment and callback
|
|
747
|
+
RCT_EXPORT_METHOD(openOffersScreenWithSegmentCallBack: (NSString *)segmentId :(RCTResponseSenderBlock)callback)
|
|
748
|
+
{
|
|
749
|
+
flyy = [Flyy sharedFlyyInstance];
|
|
750
|
+
sdkClosedCallback = callback;
|
|
751
|
+
[flyy setSDKClosedListenerWithFlyysdkclosedlistener:self];
|
|
752
|
+
|
|
753
|
+
dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0), ^{
|
|
754
|
+
|
|
755
|
+
dispatch_async(dispatch_get_main_queue(), ^(){
|
|
756
|
+
|
|
757
|
+
[self->flyy openOffersPageWithSegmentId:segmentId];
|
|
758
|
+
});
|
|
759
|
+
});
|
|
760
|
+
|
|
670
761
|
}
|
|
671
762
|
|
|
672
763
|
//open rewards screen
|
|
673
764
|
RCT_EXPORT_METHOD(openRewardsScreen)
|
|
674
765
|
{
|
|
675
766
|
flyy = [Flyy sharedFlyyInstance];
|
|
676
|
-
|
|
767
|
+
|
|
768
|
+
dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0), ^{
|
|
769
|
+
|
|
770
|
+
dispatch_async(dispatch_get_main_queue(), ^(){
|
|
771
|
+
|
|
772
|
+
[self->flyy openRewardsPage];
|
|
773
|
+
});
|
|
774
|
+
});
|
|
775
|
+
|
|
776
|
+
}
|
|
777
|
+
|
|
778
|
+
//open rewards screen with callback
|
|
779
|
+
RCT_EXPORT_METHOD(openRewardsScreenWithCallBack: (RCTResponseSenderBlock)callback)
|
|
780
|
+
{
|
|
781
|
+
flyy = [Flyy sharedFlyyInstance];
|
|
782
|
+
sdkClosedCallback = callback;
|
|
783
|
+
[flyy setSDKClosedListenerWithFlyysdkclosedlistener:self];
|
|
784
|
+
|
|
785
|
+
dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0), ^{
|
|
786
|
+
|
|
787
|
+
dispatch_async(dispatch_get_main_queue(), ^(){
|
|
788
|
+
|
|
789
|
+
[self->flyy openRewardsPage];
|
|
790
|
+
});
|
|
791
|
+
});
|
|
792
|
+
|
|
677
793
|
}
|
|
678
794
|
|
|
679
795
|
//open wallet screen
|
|
680
796
|
RCT_EXPORT_METHOD(openWalletScreen)
|
|
681
797
|
{
|
|
682
798
|
flyy = [Flyy sharedFlyyInstance];
|
|
683
|
-
|
|
799
|
+
|
|
800
|
+
dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0), ^{
|
|
801
|
+
|
|
802
|
+
dispatch_async(dispatch_get_main_queue(), ^(){
|
|
803
|
+
|
|
804
|
+
[self->flyy openWalletPage];
|
|
805
|
+
});
|
|
806
|
+
});
|
|
807
|
+
|
|
808
|
+
}
|
|
809
|
+
|
|
810
|
+
//open wallet screen
|
|
811
|
+
RCT_EXPORT_METHOD(openWalletScreenWithCallBack: (RCTResponseSenderBlock)callback)
|
|
812
|
+
{
|
|
813
|
+
flyy = [Flyy sharedFlyyInstance];
|
|
814
|
+
sdkClosedCallback = callback;
|
|
815
|
+
[flyy setSDKClosedListenerWithFlyysdkclosedlistener:self];
|
|
816
|
+
|
|
817
|
+
dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0), ^{
|
|
818
|
+
|
|
819
|
+
dispatch_async(dispatch_get_main_queue(), ^(){
|
|
820
|
+
|
|
821
|
+
[self->flyy openWalletPage];
|
|
822
|
+
});
|
|
823
|
+
});
|
|
824
|
+
|
|
684
825
|
}
|
|
685
826
|
|
|
686
827
|
//open gift cards screen
|
|
687
828
|
RCT_EXPORT_METHOD(openGiftCardScreen)
|
|
688
829
|
{
|
|
689
830
|
flyy = [Flyy sharedFlyyInstance];
|
|
690
|
-
|
|
831
|
+
dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0), ^{
|
|
832
|
+
|
|
833
|
+
dispatch_async(dispatch_get_main_queue(), ^(){
|
|
834
|
+
|
|
835
|
+
[self->flyy openGiftCardPage];
|
|
836
|
+
});
|
|
837
|
+
});
|
|
838
|
+
|
|
691
839
|
}
|
|
692
840
|
|
|
693
841
|
//open referral history screen
|
|
694
842
|
RCT_EXPORT_METHOD(openReferralHistory)
|
|
695
843
|
{
|
|
696
844
|
flyy = [Flyy sharedFlyyInstance];
|
|
697
|
-
|
|
845
|
+
|
|
846
|
+
dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0), ^{
|
|
847
|
+
|
|
848
|
+
dispatch_async(dispatch_get_main_queue(), ^(){
|
|
849
|
+
|
|
850
|
+
[self->flyy openReferralHistoryPage];
|
|
851
|
+
});
|
|
852
|
+
});
|
|
698
853
|
}
|
|
699
854
|
|
|
700
855
|
//open quiz screen
|
|
701
|
-
RCT_EXPORT_METHOD(openFlyyQuizPage)
|
|
856
|
+
RCT_EXPORT_METHOD(openFlyyQuizPage: (NSInteger *)quizId)
|
|
702
857
|
{
|
|
858
|
+
flyy = [Flyy sharedFlyyInstance];
|
|
703
859
|
|
|
860
|
+
dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0), ^{
|
|
861
|
+
|
|
862
|
+
dispatch_async(dispatch_get_main_queue(), ^(){
|
|
863
|
+
|
|
864
|
+
[self->flyy openQuizListDetailPage];
|
|
865
|
+
});
|
|
866
|
+
});
|
|
704
867
|
}
|
|
705
868
|
|
|
706
869
|
//open quiz history screen
|
|
707
870
|
RCT_EXPORT_METHOD(openFlyyQuizHistoryPage)
|
|
708
871
|
{
|
|
872
|
+
flyy = [Flyy sharedFlyyInstance];
|
|
873
|
+
|
|
874
|
+
dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0), ^{
|
|
875
|
+
|
|
876
|
+
dispatch_async(dispatch_get_main_queue(), ^(){
|
|
877
|
+
|
|
878
|
+
[self->flyy openQuizHistoryPage];
|
|
879
|
+
});
|
|
880
|
+
});
|
|
709
881
|
|
|
710
882
|
}
|
|
711
883
|
|
|
712
884
|
//open quiz list screen
|
|
713
885
|
RCT_EXPORT_METHOD(openFlyyQuizListPage)
|
|
714
886
|
{
|
|
887
|
+
flyy = [Flyy sharedFlyyInstance];
|
|
715
888
|
|
|
889
|
+
dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0), ^{
|
|
890
|
+
|
|
891
|
+
dispatch_async(dispatch_get_main_queue(), ^(){
|
|
892
|
+
|
|
893
|
+
[self->flyy openQuizListPage];
|
|
894
|
+
});
|
|
895
|
+
});
|
|
716
896
|
}
|
|
717
897
|
|
|
718
898
|
//open stamps screen
|
|
@@ -722,15 +902,31 @@ RCT_EXPORT_METHOD(openFlyyStampsPage)
|
|
|
722
902
|
}
|
|
723
903
|
|
|
724
904
|
//open stamps screen
|
|
725
|
-
RCT_EXPORT_METHOD(openFlyyInviteDetailsPage)
|
|
905
|
+
RCT_EXPORT_METHOD(openFlyyInviteDetailsPage: (NSInteger *)offerId)
|
|
726
906
|
{
|
|
907
|
+
flyy = [Flyy sharedFlyyInstance];
|
|
727
908
|
|
|
909
|
+
dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0), ^{
|
|
910
|
+
|
|
911
|
+
dispatch_async(dispatch_get_main_queue(), ^(){
|
|
912
|
+
|
|
913
|
+
[self->flyy openInviteDetailsPageWithOfferId:*offerId];
|
|
914
|
+
});
|
|
915
|
+
});
|
|
728
916
|
}
|
|
729
917
|
|
|
730
918
|
//open challenge details screen
|
|
731
|
-
RCT_EXPORT_METHOD(openFlyyChallengeDetailPage: (
|
|
919
|
+
RCT_EXPORT_METHOD(openFlyyChallengeDetailPage: (NSInteger *)offerId)
|
|
732
920
|
{
|
|
921
|
+
flyy = [Flyy sharedFlyyInstance];
|
|
733
922
|
|
|
923
|
+
dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0), ^{
|
|
924
|
+
|
|
925
|
+
dispatch_async(dispatch_get_main_queue(), ^(){
|
|
926
|
+
|
|
927
|
+
[self->flyy openFlyyChallengesPageWithOfferId:offerId];
|
|
928
|
+
});
|
|
929
|
+
});
|
|
734
930
|
}
|
|
735
931
|
|
|
736
932
|
//open bonanza screen
|
|
@@ -739,35 +935,41 @@ RCT_EXPORT_METHOD(openFlyyBonanzaPage)
|
|
|
739
935
|
|
|
740
936
|
}
|
|
741
937
|
|
|
742
|
-
//
|
|
743
|
-
RCT_EXPORT_METHOD(
|
|
938
|
+
//open offers screen
|
|
939
|
+
RCT_EXPORT_METHOD(openFlyyCustomInviteAndEarnPage: (NSInteger *)offerId :(NSString *)headerColor)
|
|
744
940
|
{
|
|
745
|
-
|
|
746
|
-
// callback(@[@("Flyy SDK Closed")]);
|
|
941
|
+
flyy = [Flyy sharedFlyyInstance];
|
|
747
942
|
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
943
|
+
dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0), ^{
|
|
944
|
+
|
|
945
|
+
dispatch_async(dispatch_get_main_queue(), ^(){
|
|
946
|
+
|
|
947
|
+
[self->flyy openFlyyCustomInviteAndEarnVCWithOfferId:offerId headerColor:headerColor];
|
|
948
|
+
});
|
|
949
|
+
});
|
|
950
|
+
}
|
|
951
|
+
|
|
952
|
+
RCT_EXPORT_METHOD(openFlyyInviteAndEarnPage: (NSInteger *)offerId)
|
|
953
|
+
{
|
|
954
|
+
flyy = [Flyy sharedFlyyInstance];
|
|
955
|
+
|
|
956
|
+
dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0), ^{
|
|
957
|
+
|
|
958
|
+
dispatch_async(dispatch_get_main_queue(), ^(){
|
|
959
|
+
|
|
960
|
+
[self->flyy openInviteAndEarnPageWithOfferId:offerId];
|
|
961
|
+
});
|
|
962
|
+
});
|
|
753
963
|
}
|
|
754
964
|
|
|
755
965
|
//our internal protocol stub method
|
|
756
966
|
- (void)onSDKClosedWithScreenName:(NSString * _Nonnull)screenName {
|
|
757
967
|
NSLog(@"%@", screenName);
|
|
758
968
|
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
// RCTResponseSenderBlock callback;
|
|
764
|
-
//
|
|
765
|
-
// [self OnSDKClosed: callback];
|
|
766
|
-
}
|
|
767
|
-
|
|
768
|
-
- (void) returnCallBack:(NSNotification *) notification :(RCTResponseSenderBlock)callback {
|
|
769
|
-
NSLog(@"%@", notification);
|
|
770
|
-
// callback(@[@("Flyy SDK Closed")]);
|
|
969
|
+
if(sdkClosedCallback != nil) {
|
|
970
|
+
sdkClosedCallback(@[@("success")]);
|
|
971
|
+
sdkClosedCallback = nil;
|
|
972
|
+
}
|
|
771
973
|
}
|
|
772
974
|
|
|
773
975
|
//overriden method to expose all the constants
|
|
@@ -776,8 +978,8 @@ RCT_EXPORT_METHOD(OnSDKClosed: (RCTResponseSenderBlock)callback)
|
|
|
776
978
|
//Instance of flyy class
|
|
777
979
|
flyy = [Flyy sharedFlyyInstance];
|
|
778
980
|
return @{
|
|
779
|
-
STAGE: [NSNumber numberWithInt:[flyy
|
|
780
|
-
PRODUCTION: [NSNumber numberWithInt:[flyy
|
|
981
|
+
STAGE: [NSNumber numberWithInt:[flyy staging]],
|
|
982
|
+
PRODUCTION: [NSNumber numberWithInt:[flyy production]],
|
|
781
983
|
};
|
|
782
984
|
}
|
|
783
985
|
|