@revopush/react-native-code-push 1.0.0 → 1.2.0

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.
@@ -21,5 +21,13 @@
21
21
  private final ** mBundleLoader;
22
22
  }
23
23
 
24
+ -keepclassmembers class com.facebook.react.runtime.ReactHostImpl {
25
+ private final ** mReactHostDelegate;
26
+ }
27
+
28
+ -keep interface com.facebook.react.runtime.ReactHostDelegate { *; }
29
+
30
+ -keep class * implements com.facebook.react.runtime.ReactHostDelegate { *; }
31
+
24
32
  # Can't find referenced class org.bouncycastle.**
25
33
  -dontwarn com.nimbusds.jose.**
@@ -6,6 +6,7 @@ import android.os.AsyncTask;
6
6
  import android.os.Handler;
7
7
  import android.os.Looper;
8
8
  import android.view.View;
9
+ import android.view.Choreographer;
9
10
 
10
11
  import androidx.annotation.OptIn;
11
12
 
@@ -24,7 +25,6 @@ import com.facebook.react.bridge.ReadableMap;
24
25
  import com.facebook.react.bridge.WritableMap;
25
26
  import com.facebook.react.common.annotations.UnstableReactNativeAPI;
26
27
  import com.facebook.react.devsupport.interfaces.DevSupportManager;
27
- import com.facebook.react.modules.core.ChoreographerCompat;
28
28
  import com.facebook.react.modules.core.DeviceEventManagerModule;
29
29
  import com.facebook.react.modules.core.ReactChoreographer;
30
30
  import com.facebook.react.modules.debug.interfaces.DeveloperSettings;
@@ -440,7 +440,7 @@ public class CodePushNativeModule extends BaseJavaModule {
440
440
  getReactApplicationContext().runOnUiQueueThread(new Runnable() {
441
441
  @Override
442
442
  public void run() {
443
- ReactChoreographer.getInstance().postFrameCallback(ReactChoreographer.CallbackType.TIMERS_EVENTS, new ChoreographerCompat.FrameCallback() {
443
+ ReactChoreographer.getInstance().postFrameCallback(ReactChoreographer.CallbackType.TIMERS_EVENTS, new Choreographer.FrameCallback() {
444
444
  @Override
445
445
  public void doFrame(long frameTimeNanos) {
446
446
  if (!latestDownloadProgress.isCompleted()) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@revopush/react-native-code-push",
3
- "version": "1.0.0",
3
+ "version": "1.2.0",
4
4
  "description": "React Native plugin for the CodePush service",
5
5
  "main": "CodePush.js",
6
6
  "typings": "typings/react-native-code-push.d.ts",