@revopush/react-native-code-push 1.1.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.
|
@@ -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
|
|
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()) {
|