react-native-flyy 1.4.60 → 1.4.61

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.
@@ -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.64'
134
+ implementation 'com.github.roid-software:flyy-sdk:1.4.55.90'
135
135
  // implementation project(path: ':flyy')
136
136
 
137
137
  implementation 'com.google.code.gson:gson:2.8.7'
@@ -1008,6 +1008,12 @@ class FlyyModule(reactContext: ReactApplicationContext) : ReactContextBaseJavaMo
1008
1008
  Flyy.setReferralHistoryMessage(historyMessageLabel);
1009
1009
  }
1010
1010
 
1011
+ @ReactMethod
1012
+ fun openFlyyMileStonePage(offerId: Int) {
1013
+ FlyyRouteActivity.OFFER_ID = offerId
1014
+ openFlyyRouteActivity(FlyyRouteActivity.FLYY_OPEN_MILESTONE_PAGE, null)
1015
+ }
1016
+
1011
1017
 
1012
1018
 
1013
1019
 
@@ -40,6 +40,7 @@ public class FlyyRouteActivity extends AppCompatActivity {
40
40
  public static final String FLYY_OPEN_SURVEY_LIST_SCREEN = "flyy_open_survey_list_screen";
41
41
  public static final String FLYY_OPEN_TRIVIA_SCREEN = "flyy_open_trivia_screen";
42
42
  public static final String FLYY_OPEN_TRIVIA_LIST_SCREEN = "flyy_open_trivia_list_screen";
43
+ public static final String FLYY_OPEN_MILESTONE_PAGE = "flyy_open_milestone_page";
43
44
 
44
45
 
45
46
  public static final String FLYY_INVITE_AND_EARN_QR = "flyy_invite_and_earn_qr";
@@ -141,6 +142,9 @@ public class FlyyRouteActivity extends AppCompatActivity {
141
142
  case FLYY_INVITE_AND_EARN_QR:
142
143
  Flyy.navigateToInviteAndEarnQRActivity(this,OFFER_ID);
143
144
  break;
145
+ case FLYY_OPEN_MILESTONE_PAGE:
146
+ Flyy.navigateToMilestoneActivity(this,OFFER_ID);
147
+ break;
144
148
  default:
145
149
  throw new IllegalStateException("Unexpected value: " + activityToOpen);
146
150
  }
@@ -1384,6 +1384,20 @@ RCT_EXPORT_METHOD(setReferralHistoryMessage: (NSString *)historyMessageLabel)
1384
1384
  [flyy setReferralHistoryMessageWithSetTitle:historyMessageLabel];
1385
1385
  }
1386
1386
 
1387
+ //open milestone screen
1388
+ RCT_EXPORT_METHOD(openFlyyMileStonePage: (NSInteger)offerId)
1389
+ {
1390
+ flyy = [Flyy sharedFlyyInstance];
1391
+
1392
+ dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0), ^{
1393
+
1394
+ dispatch_async(dispatch_get_main_queue(), ^(){
1395
+ UIViewController *vc = [ReactNativeFlyy currentViewController];
1396
+ [self->flyy navigateToMilestoneActivityWithOfferId:offerId currentVC:vc];
1397
+ });
1398
+ });
1399
+ }
1400
+
1387
1401
  //get product details with callback
1388
1402
  RCT_EXPORT_METHOD(getProductDetails: (NSString *)productKey
1389
1403
  resolver:(RCTPromiseResolveBlock)resolve
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-flyy",
3
- "version": "1.4.60",
3
+ "version": "1.4.61",
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",
@@ -18,5 +18,5 @@ Pod::Spec.new do |s|
18
18
 
19
19
 
20
20
  s.dependency "React-Core"
21
- s.dependency "FlyyFramework", "1.3.140"
21
+ s.dependency "FlyyFramework", "1.3.145"
22
22
  end