react-native-flyy 1.4.66 → 1.4.67

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.97'
134
+ implementation 'com.github.roid-software:flyy-sdk:1.4.56'
135
135
  // implementation project(path: ':flyy')
136
136
 
137
137
  implementation 'com.google.code.gson:gson:2.8.7'
@@ -879,6 +879,12 @@ class FlyyModule(reactContext: ReactApplicationContext) : ReactContextBaseJavaMo
879
879
  openFlyyRouteActivity(FlyyRouteActivity.FLYY_INVITE_AND_EARN_QR, null)
880
880
  }
881
881
 
882
+
883
+ @ReactMethod
884
+ fun openCampaignTrackerScreen() {
885
+ openFlyyRouteActivity(FlyyRouteActivity.FLYY_OPEN_CAMPAIGN_TRACKER_PAGE, null)
886
+ }
887
+
882
888
  // set custom colors and text for Poll, Survey, Trivia and Custom Quiz
883
889
 
884
890
  @ReactMethod
@@ -41,6 +41,7 @@ public class FlyyRouteActivity extends AppCompatActivity {
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
43
  public static final String FLYY_OPEN_MILESTONE_PAGE = "flyy_open_milestone_page";
44
+ public static final String FLYY_OPEN_CAMPAIGN_TRACKER_PAGE = "flyy_open_camaign_tracker_page";
44
45
 
45
46
 
46
47
  public static final String FLYY_INVITE_AND_EARN_QR = "flyy_invite_and_earn_qr";
@@ -144,7 +145,10 @@ public class FlyyRouteActivity extends AppCompatActivity {
144
145
  break;
145
146
  case FLYY_OPEN_MILESTONE_PAGE:
146
147
  //Flyy.navigateToMilestoneActivity(this,OFFER_ID);
147
- break;
148
+ break;
149
+ case FLYY_OPEN_CAMPAIGN_TRACKER_PAGE:
150
+ Flyy.navigateToCampaignTrackerActivity(this);
151
+ break;
148
152
  default:
149
153
  throw new IllegalStateException("Unexpected value: " + activityToOpen);
150
154
  }
@@ -876,6 +876,19 @@ RCT_EXPORT_METHOD(openOffersScreen)
876
876
  });
877
877
  }
878
878
 
879
+ RCT_EXPORT_METHOD(openCampaignTrackerScreen)
880
+ {
881
+ flyy = [Flyy sharedFlyyInstance];
882
+
883
+ dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0), ^{
884
+
885
+ dispatch_async(dispatch_get_main_queue(), ^(){
886
+ UIViewController *vc = [ReactNativeFlyy currentViewController];
887
+ [self->flyy openMilestoneTrackerpageWithCurrentVC:vc];
888
+ });
889
+ });
890
+ }
891
+
879
892
  //open offers screen with segment and callback
880
893
  RCT_EXPORT_METHOD(openOffersScreenWithCallBack: (RCTResponseSenderBlock)callback)
881
894
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-flyy",
3
- "version": "1.4.66",
3
+ "version": "1.4.67",
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.155"
21
+ s.dependency "FlyyFramework", "1.3.156"
22
22
  end