react-native-flyy 1.4.58 → 1.4.60
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/build.gradle +1 -1
- package/android/src/main/java/com/reactnativeflyy/FlyyRouteActivity.java +1 -1
- package/ios/ReactNativeFlyy.m +132 -63
- package/ios/ReactNativeFlyy.xcodeproj/project.xcworkspace/contents.xcworkspacedata +7 -0
- package/ios/ReactNativeFlyy.xcodeproj/project.xcworkspace/xcuserdata/vishalthakur.xcuserdatad/UserInterfaceState.xcuserstate +0 -0
- package/ios/ReactNativeFlyy.xcodeproj/xcuserdata/vishalthakur.xcuserdatad/xcschemes/xcschememanagement.plist +14 -0
- package/package.json +3 -1
- package/react-native-flyy.podspec +1 -1
package/android/build.gradle
CHANGED
|
@@ -131,7 +131,7 @@ dependencies {
|
|
|
131
131
|
implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
|
|
132
132
|
|
|
133
133
|
//Flyy sdk dependency
|
|
134
|
-
implementation 'com.github.roid-software:flyy-sdk:1.4.55.
|
|
134
|
+
implementation 'com.github.roid-software:flyy-sdk:1.4.55.64'
|
|
135
135
|
// implementation project(path: ':flyy')
|
|
136
136
|
|
|
137
137
|
implementation 'com.google.code.gson:gson:2.8.7'
|
|
@@ -109,7 +109,7 @@ public class FlyyRouteActivity extends AppCompatActivity {
|
|
|
109
109
|
Flyy.navigateToRaffleDetailActivity(this, OFFER_ID);
|
|
110
110
|
break;
|
|
111
111
|
case FLYY_OPEN_CHECKIN_PAGE:
|
|
112
|
-
|
|
112
|
+
Flyy.navigateToCheckInActivity(this);
|
|
113
113
|
break;
|
|
114
114
|
case FLYY_OPEN_LEADERBOARD_HISTORY:
|
|
115
115
|
//Flyy.navigateToLeaderBoardHistoryActivity(this);
|
package/ios/ReactNativeFlyy.m
CHANGED
|
@@ -20,6 +20,55 @@ NSString * extUserId = @"";
|
|
|
20
20
|
int extEnvironment = 0;
|
|
21
21
|
RCTResponseSenderBlock sdkClosedCallback;
|
|
22
22
|
|
|
23
|
+
+ (UIViewController *)currentViewController {
|
|
24
|
+
UIViewController *baseController = [UIApplication sharedApplication].delegate.window.rootViewController;
|
|
25
|
+
if (!baseController) {
|
|
26
|
+
baseController = [[UIViewController alloc] init];
|
|
27
|
+
}
|
|
28
|
+
if (@available(iOS 13.0, *)) {
|
|
29
|
+
// iOS 13+ handle multiple scenes
|
|
30
|
+
NSSet *connectedScenes = [UIApplication sharedApplication].connectedScenes;
|
|
31
|
+
UIWindowScene *windowScene = nil;
|
|
32
|
+
for (UIScene *scene in connectedScenes) {
|
|
33
|
+
if ([scene isKindOfClass:[UIWindowScene class]]) {
|
|
34
|
+
windowScene = (UIWindowScene *)scene;
|
|
35
|
+
break;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
if (windowScene) {
|
|
39
|
+
UIWindow *window = windowScene.windows.firstObject;
|
|
40
|
+
if ([window.rootViewController isKindOfClass:[UINavigationController class]]) {
|
|
41
|
+
UINavigationController *nav = (UINavigationController *)window.rootViewController;
|
|
42
|
+
if (nav.viewControllers.firstObject) {
|
|
43
|
+
baseController = nav.viewControllers.firstObject;
|
|
44
|
+
}
|
|
45
|
+
} else {
|
|
46
|
+
// fallback: use keyWindow
|
|
47
|
+
for (UIWindow *w in [UIApplication sharedApplication].windows) {
|
|
48
|
+
if (w.isKeyWindow && w.rootViewController) {
|
|
49
|
+
baseController = w.rootViewController;
|
|
50
|
+
break;
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
} else {
|
|
55
|
+
// fallback: key window
|
|
56
|
+
for (UIWindow *w in [UIApplication sharedApplication].windows) {
|
|
57
|
+
if (w.isKeyWindow && w.rootViewController) {
|
|
58
|
+
baseController = w.rootViewController;
|
|
59
|
+
break;
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
} else {
|
|
64
|
+
// pre–iOS 13 fallback
|
|
65
|
+
if ([UIApplication sharedApplication].delegate.window.rootViewController) {
|
|
66
|
+
baseController = [UIApplication sharedApplication].delegate.window.rootViewController;
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
return baseController;
|
|
70
|
+
}
|
|
71
|
+
|
|
23
72
|
-(void)set_navigation_controller:(UINavigationController*)navigation withCurrentViewController:(UIViewController*) controller
|
|
24
73
|
{
|
|
25
74
|
[navigation pushViewController:controller animated:YES];
|
|
@@ -821,8 +870,8 @@ RCT_EXPORT_METHOD(openOffersScreen)
|
|
|
821
870
|
dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0), ^{
|
|
822
871
|
|
|
823
872
|
dispatch_async(dispatch_get_main_queue(), ^(){
|
|
824
|
-
|
|
825
|
-
[self->flyy
|
|
873
|
+
UIViewController *vc = [ReactNativeFlyy currentViewController];
|
|
874
|
+
[self->flyy openOffersPageWithCurrentVC:vc];
|
|
826
875
|
});
|
|
827
876
|
});
|
|
828
877
|
}
|
|
@@ -837,8 +886,9 @@ RCT_EXPORT_METHOD(openOffersScreenWithCallBack: (RCTResponseSenderBlock)callback
|
|
|
837
886
|
dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0), ^{
|
|
838
887
|
|
|
839
888
|
dispatch_async(dispatch_get_main_queue(), ^(){
|
|
840
|
-
|
|
841
|
-
[self->flyy
|
|
889
|
+
UIViewController *vc = [ReactNativeFlyy currentViewController];
|
|
890
|
+
[self->flyy openOffersPageWithCurrentVC:vc];
|
|
891
|
+
//[self->flyy openOffersPage];
|
|
842
892
|
});
|
|
843
893
|
});
|
|
844
894
|
|
|
@@ -884,8 +934,9 @@ RCT_EXPORT_METHOD(openRewardsScreen)
|
|
|
884
934
|
dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0), ^{
|
|
885
935
|
|
|
886
936
|
dispatch_async(dispatch_get_main_queue(), ^(){
|
|
887
|
-
|
|
888
|
-
[self->flyy
|
|
937
|
+
UIViewController *vc = [ReactNativeFlyy currentViewController];
|
|
938
|
+
[self->flyy openRewardsPageWithCurrentVC:vc];
|
|
939
|
+
//[self->flyy openRewardsPage];
|
|
889
940
|
});
|
|
890
941
|
});
|
|
891
942
|
|
|
@@ -901,8 +952,9 @@ RCT_EXPORT_METHOD(openRewardsScreenWithCallBack: (RCTResponseSenderBlock)callbac
|
|
|
901
952
|
dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0), ^{
|
|
902
953
|
|
|
903
954
|
dispatch_async(dispatch_get_main_queue(), ^(){
|
|
904
|
-
|
|
905
|
-
[self->flyy
|
|
955
|
+
UIViewController *vc = [ReactNativeFlyy currentViewController];
|
|
956
|
+
[self->flyy openRewardsPageWithCurrentVC:vc];
|
|
957
|
+
//[self->flyy openRewardsPage];
|
|
906
958
|
});
|
|
907
959
|
});
|
|
908
960
|
|
|
@@ -916,8 +968,9 @@ RCT_EXPORT_METHOD(openWalletScreen)
|
|
|
916
968
|
dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0), ^{
|
|
917
969
|
|
|
918
970
|
dispatch_async(dispatch_get_main_queue(), ^(){
|
|
919
|
-
|
|
920
|
-
[self->flyy
|
|
971
|
+
UIViewController *vc = [ReactNativeFlyy currentViewController];
|
|
972
|
+
[self->flyy openWalletPageWithCurrentVC:vc];
|
|
973
|
+
//[self->flyy openWalletPage];
|
|
921
974
|
});
|
|
922
975
|
});
|
|
923
976
|
|
|
@@ -933,8 +986,9 @@ RCT_EXPORT_METHOD(openWalletScreenWithCallBack: (RCTResponseSenderBlock)callback
|
|
|
933
986
|
dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0), ^{
|
|
934
987
|
|
|
935
988
|
dispatch_async(dispatch_get_main_queue(), ^(){
|
|
936
|
-
|
|
937
|
-
[self->flyy
|
|
989
|
+
UIViewController *vc = [ReactNativeFlyy currentViewController];
|
|
990
|
+
[self->flyy openWalletPageWithCurrentVC:vc];
|
|
991
|
+
//[self->flyy openWalletPage];
|
|
938
992
|
});
|
|
939
993
|
});
|
|
940
994
|
|
|
@@ -947,8 +1001,9 @@ RCT_EXPORT_METHOD(openGiftCardScreen)
|
|
|
947
1001
|
dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0), ^{
|
|
948
1002
|
|
|
949
1003
|
dispatch_async(dispatch_get_main_queue(), ^(){
|
|
950
|
-
|
|
951
|
-
[self->flyy
|
|
1004
|
+
UIViewController *vc = [ReactNativeFlyy currentViewController];
|
|
1005
|
+
[self->flyy openGiftCardPageWithCurrentVC:vc];
|
|
1006
|
+
//[self->flyy openGiftCardPage];
|
|
952
1007
|
});
|
|
953
1008
|
});
|
|
954
1009
|
|
|
@@ -962,8 +1017,9 @@ RCT_EXPORT_METHOD(openReferralHistory)
|
|
|
962
1017
|
dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0), ^{
|
|
963
1018
|
|
|
964
1019
|
dispatch_async(dispatch_get_main_queue(), ^(){
|
|
965
|
-
|
|
966
|
-
[self->flyy
|
|
1020
|
+
UIViewController *vc = [ReactNativeFlyy currentViewController];
|
|
1021
|
+
[self->flyy openReferralHistoryPageWithCurrentVC:vc];
|
|
1022
|
+
//[self->flyy openReferralHistoryPage];
|
|
967
1023
|
});
|
|
968
1024
|
});
|
|
969
1025
|
}
|
|
@@ -976,8 +1032,9 @@ RCT_EXPORT_METHOD(openFlyyQuizPage: (NSInteger)quizId)
|
|
|
976
1032
|
dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0), ^{
|
|
977
1033
|
|
|
978
1034
|
dispatch_async(dispatch_get_main_queue(), ^(){
|
|
979
|
-
|
|
980
|
-
[self->flyy openQuizListDetailPageWithQuizId:quizId];
|
|
1035
|
+
UIViewController *vc = [ReactNativeFlyy currentViewController];
|
|
1036
|
+
[self->flyy openQuizListDetailPageWithQuizId:quizId currentVC:vc];
|
|
1037
|
+
//[self->flyy openQuizListDetailPageWithQuizId:quizId];
|
|
981
1038
|
});
|
|
982
1039
|
});
|
|
983
1040
|
}
|
|
@@ -990,8 +1047,9 @@ RCT_EXPORT_METHOD(openFlyyQuizHistoryPage)
|
|
|
990
1047
|
dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0), ^{
|
|
991
1048
|
|
|
992
1049
|
dispatch_async(dispatch_get_main_queue(), ^(){
|
|
993
|
-
|
|
994
|
-
[self->flyy
|
|
1050
|
+
UIViewController *vc = [ReactNativeFlyy currentViewController];
|
|
1051
|
+
[self->flyy openQuizHistoryPageWithCurrentVC:vc];
|
|
1052
|
+
//[self->flyy openQuizHistoryPage];
|
|
995
1053
|
});
|
|
996
1054
|
});
|
|
997
1055
|
|
|
@@ -1005,8 +1063,9 @@ RCT_EXPORT_METHOD(openFlyyQuizListPage)
|
|
|
1005
1063
|
dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0), ^{
|
|
1006
1064
|
|
|
1007
1065
|
dispatch_async(dispatch_get_main_queue(), ^(){
|
|
1008
|
-
|
|
1009
|
-
[self->flyy
|
|
1066
|
+
UIViewController *vc = [ReactNativeFlyy currentViewController];
|
|
1067
|
+
[self->flyy openQuizListPageWithCurrentVC:vc];
|
|
1068
|
+
//[self->flyy openQuizListPage];
|
|
1010
1069
|
});
|
|
1011
1070
|
});
|
|
1012
1071
|
}
|
|
@@ -1019,36 +1078,39 @@ RCT_EXPORT_METHOD(openFlyyStampsPage)
|
|
|
1019
1078
|
dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0), ^{
|
|
1020
1079
|
|
|
1021
1080
|
dispatch_async(dispatch_get_main_queue(), ^(){
|
|
1022
|
-
|
|
1023
|
-
[self->flyy
|
|
1081
|
+
UIViewController *vc = [ReactNativeFlyy currentViewController];
|
|
1082
|
+
[self->flyy openStampPageWithCurrentVC:vc];
|
|
1083
|
+
//[self->flyy openStampPage];
|
|
1024
1084
|
});
|
|
1025
1085
|
});
|
|
1026
1086
|
}
|
|
1027
1087
|
|
|
1028
1088
|
//open invite details screen
|
|
1029
|
-
RCT_EXPORT_METHOD(openFlyyInviteDetailsPage: (NSInteger
|
|
1089
|
+
RCT_EXPORT_METHOD(openFlyyInviteDetailsPage: (NSInteger)offerId)
|
|
1030
1090
|
{
|
|
1031
1091
|
flyy = [Flyy sharedFlyyInstance];
|
|
1032
1092
|
|
|
1033
1093
|
dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0), ^{
|
|
1034
1094
|
|
|
1035
1095
|
dispatch_async(dispatch_get_main_queue(), ^(){
|
|
1036
|
-
|
|
1037
|
-
[self->flyy openInviteDetailsPageWithOfferId:offerId];
|
|
1096
|
+
UIViewController *vc = [ReactNativeFlyy currentViewController];
|
|
1097
|
+
[self->flyy openInviteDetailsPageWithOfferId:offerId currentVC:vc];
|
|
1098
|
+
//[self->flyy openInviteDetailsPageWithOfferId:offerId];
|
|
1038
1099
|
});
|
|
1039
1100
|
});
|
|
1040
1101
|
}
|
|
1041
1102
|
|
|
1042
1103
|
//open challenge details screen
|
|
1043
|
-
RCT_EXPORT_METHOD(openFlyyChallengeDetailPage: (NSInteger
|
|
1104
|
+
RCT_EXPORT_METHOD(openFlyyChallengeDetailPage: (NSInteger)offerId)
|
|
1044
1105
|
{
|
|
1045
1106
|
flyy = [Flyy sharedFlyyInstance];
|
|
1046
1107
|
|
|
1047
1108
|
dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0), ^{
|
|
1048
1109
|
|
|
1049
1110
|
dispatch_async(dispatch_get_main_queue(), ^(){
|
|
1050
|
-
|
|
1051
|
-
[self->flyy openFlyyChallengesPageWithOfferId:offerId];
|
|
1111
|
+
UIViewController *vc = [ReactNativeFlyy currentViewController];
|
|
1112
|
+
[self->flyy openFlyyChallengesPageWithOfferId:offerId currentVC:vc];
|
|
1113
|
+
//[self->flyy openFlyyChallengesPageWithOfferId:offerId];
|
|
1052
1114
|
});
|
|
1053
1115
|
});
|
|
1054
1116
|
}
|
|
@@ -1061,8 +1123,9 @@ RCT_EXPORT_METHOD(openFlyyBonanzaPage)
|
|
|
1061
1123
|
dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0), ^{
|
|
1062
1124
|
|
|
1063
1125
|
dispatch_async(dispatch_get_main_queue(), ^(){
|
|
1064
|
-
|
|
1065
|
-
[self->flyy
|
|
1126
|
+
UIViewController *vc = [ReactNativeFlyy currentViewController];
|
|
1127
|
+
[self->flyy openBonanzaPageWithCurrentVC:vc];
|
|
1128
|
+
//[self->flyy openBonanzaPage];
|
|
1066
1129
|
});
|
|
1067
1130
|
});
|
|
1068
1131
|
}
|
|
@@ -1075,8 +1138,9 @@ RCT_EXPORT_METHOD(openFlyyGamesPage)
|
|
|
1075
1138
|
dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0), ^{
|
|
1076
1139
|
|
|
1077
1140
|
dispatch_async(dispatch_get_main_queue(), ^(){
|
|
1078
|
-
|
|
1079
|
-
[self->flyy
|
|
1141
|
+
UIViewController *vc = [ReactNativeFlyy currentViewController];
|
|
1142
|
+
[self->flyy openGameListPageWithCurrentVC:vc];
|
|
1143
|
+
//[self->flyy openGameListPage];
|
|
1080
1144
|
});
|
|
1081
1145
|
});
|
|
1082
1146
|
}
|
|
@@ -1089,36 +1153,38 @@ RCT_EXPORT_METHOD(openFlyyGamesHistory)
|
|
|
1089
1153
|
dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0), ^{
|
|
1090
1154
|
|
|
1091
1155
|
dispatch_async(dispatch_get_main_queue(), ^(){
|
|
1092
|
-
|
|
1093
|
-
[self->flyy
|
|
1156
|
+
UIViewController *vc = [ReactNativeFlyy currentViewController];
|
|
1157
|
+
[self->flyy openGameHistoryPageWithCurrentVC:vc];
|
|
1158
|
+
//[self->flyy openGameHistoryPage];
|
|
1094
1159
|
});
|
|
1095
1160
|
});
|
|
1096
1161
|
}
|
|
1097
1162
|
|
|
1098
1163
|
//open custom invite and earn screen
|
|
1099
|
-
RCT_EXPORT_METHOD(openFlyyCustomInviteAndEarnPage: (NSInteger
|
|
1164
|
+
RCT_EXPORT_METHOD(openFlyyCustomInviteAndEarnPage: (NSInteger)offerId :(NSString *)headerColor)
|
|
1100
1165
|
{
|
|
1101
1166
|
flyy = [Flyy sharedFlyyInstance];
|
|
1102
1167
|
|
|
1103
1168
|
dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0), ^{
|
|
1104
1169
|
|
|
1105
1170
|
dispatch_async(dispatch_get_main_queue(), ^(){
|
|
1106
|
-
|
|
1107
|
-
[self->flyy openFlyyCustomInviteAndEarnVCWithOfferId:offerId headerColor:headerColor];
|
|
1171
|
+
UIViewController *vc = [ReactNativeFlyy currentViewController];
|
|
1172
|
+
[self->flyy openFlyyCustomInviteAndEarnVCWithOfferId:offerId headerColor:headerColor currentVC:vc];
|
|
1173
|
+
//[self->flyy openFlyyCustomInviteAndEarnVCWithOfferId:offerId headerColor:headerColor];
|
|
1108
1174
|
});
|
|
1109
1175
|
});
|
|
1110
1176
|
}
|
|
1111
1177
|
|
|
1112
1178
|
//open invite and earn screen
|
|
1113
|
-
RCT_EXPORT_METHOD(openFlyyInviteAndEarnPage: (NSInteger
|
|
1179
|
+
RCT_EXPORT_METHOD(openFlyyInviteAndEarnPage: (NSInteger)offerId)
|
|
1114
1180
|
{
|
|
1115
1181
|
flyy = [Flyy sharedFlyyInstance];
|
|
1116
1182
|
|
|
1117
1183
|
dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0), ^{
|
|
1118
1184
|
|
|
1119
1185
|
dispatch_async(dispatch_get_main_queue(), ^(){
|
|
1120
|
-
|
|
1121
|
-
[self->flyy openInviteAndEarnPageWithOfferId:offerId];
|
|
1186
|
+
UIViewController *vc = [ReactNativeFlyy currentViewController];
|
|
1187
|
+
[self->flyy openInviteAndEarnPageWithOfferId:offerId currentVC:vc];
|
|
1122
1188
|
});
|
|
1123
1189
|
});
|
|
1124
1190
|
}
|
|
@@ -1131,7 +1197,8 @@ RCT_EXPORT_METHOD(openFlyySpinTheWheelPage: (NSInteger)wheelId)
|
|
|
1131
1197
|
dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0), ^{
|
|
1132
1198
|
|
|
1133
1199
|
dispatch_async(dispatch_get_main_queue(), ^(){
|
|
1134
|
-
[
|
|
1200
|
+
UIViewController *vc = [ReactNativeFlyy currentViewController];
|
|
1201
|
+
[self->flyy openSpinTheWheelPageWithSpinWheelId:wheelId currentVC:vc];
|
|
1135
1202
|
});
|
|
1136
1203
|
});
|
|
1137
1204
|
}
|
|
@@ -1144,7 +1211,8 @@ RCT_EXPORT_METHOD(openFlyyCheckinPage)
|
|
|
1144
1211
|
dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0), ^{
|
|
1145
1212
|
|
|
1146
1213
|
dispatch_async(dispatch_get_main_queue(), ^(){
|
|
1147
|
-
[
|
|
1214
|
+
UIViewController *vc = [ReactNativeFlyy currentViewController];
|
|
1215
|
+
[self->flyy openDailyCheckinPageWithCurrentVC:vc];
|
|
1148
1216
|
});
|
|
1149
1217
|
});
|
|
1150
1218
|
}
|
|
@@ -1157,22 +1225,22 @@ RCT_EXPORT_METHOD(openCheckinScreen)
|
|
|
1157
1225
|
dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0), ^{
|
|
1158
1226
|
|
|
1159
1227
|
dispatch_async(dispatch_get_main_queue(), ^(){
|
|
1160
|
-
|
|
1161
|
-
[self->flyy
|
|
1228
|
+
UIViewController *vc = [ReactNativeFlyy currentViewController];
|
|
1229
|
+
[self->flyy openDailyCheckinPageWithCurrentVC:vc];
|
|
1162
1230
|
});
|
|
1163
1231
|
});
|
|
1164
1232
|
}
|
|
1165
1233
|
|
|
1166
1234
|
//open raffle screen
|
|
1167
|
-
RCT_EXPORT_METHOD(openFlyyRafflePage: (NSInteger
|
|
1235
|
+
RCT_EXPORT_METHOD(openFlyyRafflePage: (NSInteger)raffleId)
|
|
1168
1236
|
{
|
|
1169
1237
|
flyy = [Flyy sharedFlyyInstance];
|
|
1170
1238
|
|
|
1171
1239
|
dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0), ^{
|
|
1172
1240
|
|
|
1173
1241
|
dispatch_async(dispatch_get_main_queue(), ^(){
|
|
1174
|
-
|
|
1175
|
-
|
|
1242
|
+
UIViewController *vc = [ReactNativeFlyy currentViewController];
|
|
1243
|
+
[self->flyy openRafflePageWithRaffleId:raffleId currentVC:vc];
|
|
1176
1244
|
});
|
|
1177
1245
|
});
|
|
1178
1246
|
}
|
|
@@ -1209,8 +1277,9 @@ RCT_EXPORT_METHOD(openFlyyPollScreen: (NSInteger)offerId)
|
|
|
1209
1277
|
dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0), ^{
|
|
1210
1278
|
|
|
1211
1279
|
dispatch_async(dispatch_get_main_queue(), ^(){
|
|
1212
|
-
|
|
1213
|
-
[self->flyy navigateToPollActivityWithPollId:offerId];
|
|
1280
|
+
UIViewController *vc = [ReactNativeFlyy currentViewController];
|
|
1281
|
+
[self->flyy navigateToPollActivityWithPollId:offerId currentVC:vc];
|
|
1282
|
+
//[self->flyy navigateToPollActivityWithPollId:offerId];
|
|
1214
1283
|
});
|
|
1215
1284
|
});
|
|
1216
1285
|
}
|
|
@@ -1223,8 +1292,8 @@ RCT_EXPORT_METHOD(openFlyySurveyScreen: (NSInteger)offerId)
|
|
|
1223
1292
|
dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0), ^{
|
|
1224
1293
|
|
|
1225
1294
|
dispatch_async(dispatch_get_main_queue(), ^(){
|
|
1226
|
-
|
|
1227
|
-
[self->flyy navigateToSurveyActivityWithSurveyId:offerId];
|
|
1295
|
+
UIViewController *vc = [ReactNativeFlyy currentViewController];
|
|
1296
|
+
[self->flyy navigateToSurveyActivityWithSurveyId:offerId currentVC:vc];
|
|
1228
1297
|
});
|
|
1229
1298
|
});
|
|
1230
1299
|
}
|
|
@@ -1237,8 +1306,8 @@ RCT_EXPORT_METHOD(openFlyyTriviaScreen: (NSInteger)offerId)
|
|
|
1237
1306
|
dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0), ^{
|
|
1238
1307
|
|
|
1239
1308
|
dispatch_async(dispatch_get_main_queue(), ^(){
|
|
1240
|
-
|
|
1241
|
-
[self->flyy navigateToTriviaActivityWithTriviaId:offerId];
|
|
1309
|
+
UIViewController *vc = [ReactNativeFlyy currentViewController];
|
|
1310
|
+
[self->flyy navigateToTriviaActivityWithTriviaId:offerId currentVC:vc];
|
|
1242
1311
|
});
|
|
1243
1312
|
});
|
|
1244
1313
|
}
|
|
@@ -1251,8 +1320,8 @@ RCT_EXPORT_METHOD(openFlyyPollListScreen)
|
|
|
1251
1320
|
dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0), ^{
|
|
1252
1321
|
|
|
1253
1322
|
dispatch_async(dispatch_get_main_queue(), ^(){
|
|
1254
|
-
|
|
1255
|
-
[self->flyy
|
|
1323
|
+
UIViewController *vc = [ReactNativeFlyy currentViewController];
|
|
1324
|
+
[self->flyy navigateToPollListActivityWithCurrentVC:vc];
|
|
1256
1325
|
});
|
|
1257
1326
|
});
|
|
1258
1327
|
}
|
|
@@ -1265,8 +1334,8 @@ RCT_EXPORT_METHOD(openFlyySurveyListScreen)
|
|
|
1265
1334
|
dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0), ^{
|
|
1266
1335
|
|
|
1267
1336
|
dispatch_async(dispatch_get_main_queue(), ^(){
|
|
1268
|
-
|
|
1269
|
-
[self->flyy
|
|
1337
|
+
UIViewController *vc = [ReactNativeFlyy currentViewController];
|
|
1338
|
+
[self->flyy navigateToSurveyListActivityWithCurrentVC:vc];
|
|
1270
1339
|
});
|
|
1271
1340
|
});
|
|
1272
1341
|
}
|
|
@@ -1279,8 +1348,8 @@ RCT_EXPORT_METHOD(openFlyyTriviaListScreen)
|
|
|
1279
1348
|
dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0), ^{
|
|
1280
1349
|
|
|
1281
1350
|
dispatch_async(dispatch_get_main_queue(), ^(){
|
|
1282
|
-
|
|
1283
|
-
[self->flyy
|
|
1351
|
+
UIViewController *vc = [ReactNativeFlyy currentViewController];
|
|
1352
|
+
[self->flyy navigateToTriviaListActivityWithCurrentVC:vc];
|
|
1284
1353
|
});
|
|
1285
1354
|
});
|
|
1286
1355
|
}
|
|
@@ -1293,8 +1362,8 @@ RCT_EXPORT_METHOD(openInviteAndEarnQR: (NSInteger)offerId)
|
|
|
1293
1362
|
dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0), ^{
|
|
1294
1363
|
|
|
1295
1364
|
dispatch_async(dispatch_get_main_queue(), ^(){
|
|
1296
|
-
|
|
1297
|
-
[self->flyy openInviteAndEarnQRActivityWithOfferId:offerId];
|
|
1365
|
+
UIViewController *vc = [ReactNativeFlyy currentViewController];
|
|
1366
|
+
[self->flyy openInviteAndEarnQRActivityWithOfferId:offerId currentVC:vc];
|
|
1298
1367
|
});
|
|
1299
1368
|
});
|
|
1300
1369
|
}
|
|
Binary file
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
|
3
|
+
<plist version="1.0">
|
|
4
|
+
<dict>
|
|
5
|
+
<key>SchemeUserState</key>
|
|
6
|
+
<dict>
|
|
7
|
+
<key>Flyy.xcscheme_^#shared#^_</key>
|
|
8
|
+
<dict>
|
|
9
|
+
<key>orderHint</key>
|
|
10
|
+
<integer>0</integer>
|
|
11
|
+
</dict>
|
|
12
|
+
</dict>
|
|
13
|
+
</dict>
|
|
14
|
+
</plist>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-native-flyy",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.60",
|
|
4
4
|
"description": "React Native wrapper around our Android and iOS mobile SDKs",
|
|
5
5
|
"main": "lib/commonjs/index",
|
|
6
6
|
"module": "lib/module/index",
|
|
@@ -57,6 +57,7 @@
|
|
|
57
57
|
"@types/react": "18.2.79",
|
|
58
58
|
"@types/react-native": "0.62.13",
|
|
59
59
|
"commitlint": "^19.7.1",
|
|
60
|
+
"esbuild": "^0.25.8",
|
|
60
61
|
"eslint": "^7.2.0",
|
|
61
62
|
"eslint-config-prettier": "^7.0.0",
|
|
62
63
|
"eslint-plugin-prettier": "^3.1.3",
|
|
@@ -164,6 +165,7 @@
|
|
|
164
165
|
"react-dev-utils": "10.1.0"
|
|
165
166
|
},
|
|
166
167
|
"dependencies": {
|
|
168
|
+
"@babel/runtime": "^7.28.2",
|
|
167
169
|
"@react-native-firebase/app": "^21.7.4",
|
|
168
170
|
"metro": "^0.81.1",
|
|
169
171
|
"metro-babel-register": "^0.66.2",
|