Skip to content

Commit 655f4c8

Browse files
committed
update to 0.81.4
1 parent 3732c19 commit 655f4c8

13 files changed

Lines changed: 114 additions & 1022 deletions

File tree

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
module.exports = {
22
arrowParens: 'avoid',
3-
bracketSameLine: true,
4-
bracketSpacing: false,
53
singleQuote: true,
64
trailingComma: 'all',
75
};

Example/testHotUpdate/android/app/src/main/java/com/awesomeproject/MainApplication.kt

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,11 @@ import cn.reactnative.modules.update.UpdateContext
55
import com.facebook.react.PackageList
66
import com.facebook.react.ReactApplication
77
import com.facebook.react.ReactHost
8+
import com.facebook.react.ReactNativeApplicationEntryPoint.loadReactNative
89
import com.facebook.react.ReactNativeHost
910
import com.facebook.react.ReactPackage
10-
import com.facebook.react.defaults.DefaultNewArchitectureEntryPoint.load
1111
import com.facebook.react.defaults.DefaultReactHost.getDefaultReactHost
1212
import com.facebook.react.defaults.DefaultReactNativeHost
13-
import com.facebook.react.soloader.OpenSourceMergedSoMapping
14-
import com.facebook.soloader.SoLoader
1513

1614
class MainApplication : Application(), ReactApplication {
1715

@@ -39,10 +37,6 @@ class MainApplication : Application(), ReactApplication {
3937

4038
override fun onCreate() {
4139
super.onCreate()
42-
SoLoader.init(this, OpenSourceMergedSoMapping)
43-
if (BuildConfig.IS_NEW_ARCHITECTURE_ENABLED) {
44-
// If you opted-in for the New Architecture, we load the native entry point for this app.
45-
load()
46-
}
40+
loadReactNative(this)
4741
}
4842
}

Example/testHotUpdate/android/build.gradle

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
buildscript {
22
ext {
3-
buildToolsVersion = "35.0.0"
3+
buildToolsVersion = "36.0.0"
44
minSdkVersion = 24
5-
compileSdkVersion = 35
6-
targetSdkVersion = 35
5+
compileSdkVersion = 36
6+
targetSdkVersion = 36
77
ndkVersion = "27.1.12297006"
8-
kotlinVersion = "2.0.21"
8+
kotlinVersion = "2.1.20"
99
}
1010
repositories {
1111
google()

Example/testHotUpdate/android/gradle/wrapper/gradle-wrapper.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-8.13-bin.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.14.3-bin.zip
44
networkTimeout=10000
55
validateDistributionUrl=true
66
zipStoreBase=GRADLE_USER_HOME

Example/testHotUpdate/android/gradlew

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Example/testHotUpdate/android/gradlew.bat

Lines changed: 8 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Example/testHotUpdate/bun.lock

Lines changed: 70 additions & 982 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Example/testHotUpdate/package.json

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -16,37 +16,37 @@
1616
"dependencies": {
1717
"form-data": "^4.0.3",
1818
"patch-package": "^8.0.0",
19-
"react": "19.0.0",
20-
"react-native": "0.79.2",
19+
"react": "19.1.0",
20+
"react-native": "0.81.4",
2121
"react-native-camera-kit": "^15.1.0",
2222
"react-native-paper": "^5.14.5",
2323
"react-native-safe-area-context": "^5.5.0",
2424
"react-native-svg": "^15.12.0",
25-
"react-native-update": "^10.31.0-beta.0",
25+
"react-native-update": "^10.31.0-beta.2",
2626
"react-native-vector-icons": "^10.2.0"
2727
},
2828
"devDependencies": {
2929
"@babel/core": "^7.27.3",
3030
"@babel/preset-env": "^7.27.2",
3131
"@babel/runtime": "^7.27.3",
32-
"@react-native-community/cli": "18.0.0",
33-
"@react-native-community/cli-platform-android": "18.0.0",
34-
"@react-native-community/cli-platform-ios": "18.0.0",
35-
"@react-native/babel-preset": "0.79.2",
36-
"@react-native/eslint-config": "0.79.2",
37-
"@react-native/metro-config": "0.79.2",
38-
"@react-native/typescript-config": "0.79.2",
39-
"@types/react": "^19.0.0",
40-
"@types/react-test-renderer": "^19.0.0",
32+
"@react-native-community/cli": "20.0.0",
33+
"@react-native-community/cli-platform-android": "20.0.0",
34+
"@react-native-community/cli-platform-ios": "20.0.0",
35+
"@react-native/babel-preset": "0.81.4",
36+
"@react-native/eslint-config": "0.81.4",
37+
"@react-native/metro-config": "0.81.4",
38+
"@react-native/typescript-config": "0.81.4",
39+
"@types/react": "^19.1.0",
40+
"@types/react-test-renderer": "^19.1.0",
4141
"detox": "^20.39.0",
4242
"eslint": "^8.19.0",
4343
"jest": "^29.6.3",
4444
"prettier": "2.8.8",
45-
"react-test-renderer": "19.0.0",
45+
"react-test-renderer": "19.1.0",
4646
"typescript": "5.8.3"
4747
},
4848
"engines": {
49-
"node": ">=18"
49+
"node": ">=20"
5050
},
5151
"trustedDependencies": [
5252
"detox",

Example/testHotUpdate/src/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ function App() {
5252

5353
return (
5454
<View style={styles.container}>
55-
<Text style={styles.welcome}>欢迎xxx使用Pushy热更新服务</Text>
55+
<Text style={styles.welcome}>欢迎使用Pushy热更新服务</Text>
5656
<View style={{flexDirection: 'row'}}>
5757
<Text>
5858
{useDefaultAlert ? '当前使用' : '当前不使用'}默认的alert更新提示
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"extends": "@react-native/typescript-config",
3+
"include": ["**/*.ts", "**/*.tsx"],
4+
"exclude": ["**/node_modules", "**/Pods"]
5+
}

0 commit comments

Comments
 (0)