From 3346559ce12c9f933150593ca4156759c7ded968 Mon Sep 17 00:00:00 2001 From: Minseok Choi Date: Sun, 6 Jul 2025 12:25:12 +0900 Subject: [PATCH 1/2] support rn 0.80 --- .../com/microsoft/codepush/react/CodePushNativeModule.java | 4 ++-- test/test.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/android/app/src/main/java/com/microsoft/codepush/react/CodePushNativeModule.java b/android/app/src/main/java/com/microsoft/codepush/react/CodePushNativeModule.java index ed4ea0651..db497cb78 100644 --- a/android/app/src/main/java/com/microsoft/codepush/react/CodePushNativeModule.java +++ b/android/app/src/main/java/com/microsoft/codepush/react/CodePushNativeModule.java @@ -24,7 +24,7 @@ import com.facebook.react.bridge.WritableMap; import com.facebook.react.common.annotations.UnstableReactNativeAPI; import com.facebook.react.devsupport.interfaces.DevSupportManager; -import com.facebook.react.modules.core.ChoreographerCompat; +import android.view.Choreographer; import com.facebook.react.modules.core.DeviceEventManagerModule; import com.facebook.react.modules.core.ReactChoreographer; import com.facebook.react.modules.debug.interfaces.DeveloperSettings; @@ -440,7 +440,7 @@ public void call(DownloadProgress downloadProgress) { getReactApplicationContext().runOnUiQueueThread(new Runnable() { @Override public void run() { - ReactChoreographer.getInstance().postFrameCallback(ReactChoreographer.CallbackType.TIMERS_EVENTS, new ChoreographerCompat.FrameCallback() { + ReactChoreographer.getInstance().postFrameCallback(ReactChoreographer.CallbackType.TIMERS_EVENTS, new Choreographer.FrameCallback() { @Override public void doFrame(long frameTimeNanos) { if (!latestDownloadProgress.isCompleted()) { diff --git a/test/test.ts b/test/test.ts index dae87bb95..1a8cedeb6 100644 --- a/test/test.ts +++ b/test/test.ts @@ -309,7 +309,7 @@ class RNProjectManager extends ProjectManager { } mkdirp.sync(projectDirectory); - return TestUtil.getProcessOutput("npx @react-native-community/cli init " + appName + " --version 0.78.0 --install-pods", { cwd: projectDirectory, timeout: 30 * 60 * 1000 }) + return TestUtil.getProcessOutput("npx @react-native-community/cli init " + appName + " --version 0.80.1 --install-pods", { cwd: projectDirectory, timeout: 30 * 60 * 1000 }) .then((e) => { console.log(`"npx @react-native-community/cli init ${appName}" success. cwd=${projectDirectory}`); return e; }) .then(this.copyTemplate.bind(this, templatePath, projectDirectory)) .then(TestUtil.getProcessOutput.bind(undefined, TestConfig.thisPluginInstallString, { cwd: path.join(projectDirectory, TestConfig.TestAppName) })) From 6af1fbc49775cd63870117e8589e3d7b73683561 Mon Sep 17 00:00:00 2001 From: Minseok Choi Date: Sun, 6 Jul 2025 18:52:02 +0900 Subject: [PATCH 2/2] update README --- README.md | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 89e1d7097..87d686c4f 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,3 @@ -#### [Sign up With App Center](https://appcenter.ms/signup?utm_source=CodePush&utm_medium=Azure) to use CodePush - # React Native Module for CodePush This plugin provides client-side integration for the [CodePush service](https://microsoft.github.io/code-push/), allowing you to easily add a dynamic update experience to your React Native app(s). @@ -52,7 +50,8 @@ We try our best to maintain backwards compatibility of our plugin with previous | React Native version(s) | Supporting CodePush version(s) | |-------------------------|------------------------------------------------------------------------------------------------------| |