Skip to content

Commit 5587919

Browse files
authored
Merge pull request #402 from bozaigao/master
feat: support for new architecture
2 parents 65a332b + f8115c3 commit 5587919

File tree

33 files changed

+985
-224
lines changed

33 files changed

+985
-224
lines changed

Example/testHotUpdate/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ ios/.xcode.env.local
2424

2525
# Android/IntelliJ
2626
#
27+
release/
2728
build/
2829
.idea
2930
.gradle
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2.7.6
1+
3.1.1

Example/testHotUpdate/.update

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0eXBlIjoidXNlciIsInVpZCI6OTQ3NywiZXhwIjoxNjc5MjczODYwOTgzLCJpYXQiOjE2NzY2ODE4NjB9.RtoiYnN_2hJ6-aRsx6JkRWil0-RxkdpL7yD7koAky8E"
3+
}

Example/testHotUpdate/Gemfile.lock

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,10 +91,10 @@ PLATFORMS
9191
ruby
9292

9393
DEPENDENCIES
94-
cocoapods (~> 1.11, >= 1.11.2)
94+
cocoapods (~> 1.11, >= 1.11.3)
9595

9696
RUBY VERSION
97-
ruby 2.7.4p191
97+
ruby 3.1.1p18
9898

9999
BUNDLED WITH
100100
2.2.27

Example/testHotUpdate/android/app/_BUCK

Lines changed: 0 additions & 55 deletions
This file was deleted.

Example/testHotUpdate/android/app/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,4 +167,4 @@ dependencies {
167167
}
168168
}
169169

170-
apply from: file("../../node_modules/@react-native-community/cli-platform-android/native_modules.gradle"); applyNativeModulesAppBuildGradle(project)
170+
apply from: file("../../node_modules/@react-native-community/cli-platform-android/native_modules.gradle"); applyNativeModulesAppBuildGradle(project)

Example/testHotUpdate/android/app/src/debug/java/com/testhotupdate/ReactNativeFlipper.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,4 +72,4 @@ public void run() {
7272
}
7373
}
7474
}
75-
}
75+
}

Example/testHotUpdate/android/app/src/main/java/com/testhotupdate/MainApplication.java

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,17 @@
99
import com.facebook.react.defaults.DefaultReactNativeHost;
1010
import com.facebook.soloader.SoLoader;
1111
import java.util.List;
12+
1213
import cn.reactnative.modules.update.UpdateContext;
14+
1315
public class MainApplication extends Application implements ReactApplication {
1416

1517
private final ReactNativeHost mReactNativeHost =
1618
new DefaultReactNativeHost(this) {
17-
@Override
18-
protected String getJSBundleFile() {
19-
return UpdateContext.getBundleUrl(MainApplication.this);
20-
}
21-
19+
@Override
20+
protected String getJSBundleFile() {
21+
return UpdateContext.getBundleUrl(MainApplication.this);
22+
}
2223
@Override
2324
public boolean getUseDeveloperSupport() {
2425
return BuildConfig.DEBUG;
@@ -64,4 +65,4 @@ public void onCreate() {
6465
}
6566
ReactNativeFlipper.initializeFlipper(this, getReactNativeHost().getReactInstanceManager());
6667
}
67-
}
68+
}

Example/testHotUpdate/android/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,4 @@ buildscript {
1818
classpath("com.android.tools.build:gradle:7.3.1")
1919
classpath("com.facebook.react:react-native-gradle-plugin")
2020
}
21-
}
21+
}
285 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)