Skip to content

Commit 79f571a

Browse files
CHOIMINSEOKMinseok Choi
andauthored
Support RN 0.80 (#23)
* support rn 0.80 * update README --------- Co-authored-by: Minseok Choi <minseokchoi@Minseoks-MacBook-Pro.local>
1 parent f149a12 commit 79f571a

File tree

3 files changed

+5
-6
lines changed

3 files changed

+5
-6
lines changed

README.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
#### [Sign up With App Center](https://appcenter.ms/signup?utm_source=CodePush&utm_medium=Azure) to use CodePush
2-
31
# React Native Module for CodePush
42

53
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
5250
| React Native version(s) | Supporting CodePush version(s) |
5351
|-------------------------|------------------------------------------------------------------------------------------------------|
5452
| <v0.76 | **Consider [microsoft/code-push-react-native](https://github.com/microsoft/react-native-code-push)** |
55-
| v0.76, v0.77, 0.78 | v10.0+ *(Available for Old/New Architecture)* |
53+
| v0.76, v0.77, 0.78, 0.79| v10.0+ *(Available for Old/New Architecture)* |
54+
| v0.80 | v10.1+ *(Available for Old/New Architecture)* |
5655

5756

5857

android/app/src/main/java/com/microsoft/codepush/react/CodePushNativeModule.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
import com.facebook.react.bridge.WritableMap;
2525
import com.facebook.react.common.annotations.UnstableReactNativeAPI;
2626
import com.facebook.react.devsupport.interfaces.DevSupportManager;
27-
import com.facebook.react.modules.core.ChoreographerCompat;
27+
import android.view.Choreographer;
2828
import com.facebook.react.modules.core.DeviceEventManagerModule;
2929
import com.facebook.react.modules.core.ReactChoreographer;
3030
import com.facebook.react.modules.debug.interfaces.DeveloperSettings;
@@ -440,7 +440,7 @@ public void call(DownloadProgress downloadProgress) {
440440
getReactApplicationContext().runOnUiQueueThread(new Runnable() {
441441
@Override
442442
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() {
444444
@Override
445445
public void doFrame(long frameTimeNanos) {
446446
if (!latestDownloadProgress.isCompleted()) {

test/test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,7 @@ class RNProjectManager extends ProjectManager {
309309
}
310310
mkdirp.sync(projectDirectory);
311311

312-
return TestUtil.getProcessOutput("npx @react-native-community/cli init " + appName + " --version 0.78.0 --install-pods", { cwd: projectDirectory, timeout: 30 * 60 * 1000 })
312+
return TestUtil.getProcessOutput("npx @react-native-community/cli init " + appName + " --version 0.80.1 --install-pods", { cwd: projectDirectory, timeout: 30 * 60 * 1000 })
313313
.then((e) => { console.log(`"npx @react-native-community/cli init ${appName}" success. cwd=${projectDirectory}`); return e; })
314314
.then(this.copyTemplate.bind(this, templatePath, projectDirectory))
315315
.then<void>(TestUtil.getProcessOutput.bind(undefined, TestConfig.thisPluginInstallString, { cwd: path.join(projectDirectory, TestConfig.TestAppName) }))

0 commit comments

Comments
 (0)