Skip to content

Commit 655f4c8

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

File tree

13 files changed

+114
-1022
lines changed

13 files changed

+114
-1022
lines changed
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
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ case "$( uname )" in #(
114114
NONSTOP* ) nonstop=true ;;
115115
esac
116116

117-
CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar
117+
CLASSPATH="\\\"\\\""
118118

119119

120120
# Determine the Java command to use to start the JVM.
@@ -205,15 +205,15 @@ fi
205205
DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"'
206206

207207
# Collect all arguments for the java command:
208-
# * DEFAULT_JVM_OPTS, JAVA_OPTS, JAVA_OPTS, and optsEnvironmentVar are not allowed to contain shell fragments,
208+
# * DEFAULT_JVM_OPTS, JAVA_OPTS, and optsEnvironmentVar are not allowed to contain shell fragments,
209209
# and any embedded shellness will be escaped.
210210
# * For example: A user cannot expect ${Hostname} to be expanded, as it is an environment variable and will be
211211
# treated as '${Hostname}' itself on the command line.
212212

213213
set -- \
214214
"-Dorg.gradle.appname=$APP_BASE_NAME" \
215215
-classpath "$CLASSPATH" \
216-
org.gradle.wrapper.GradleWrapperMain \
216+
-jar "$APP_HOME/gradle/wrapper/gradle-wrapper.jar" \
217217
"$@"
218218

219219
# Stop when "xargs" is not available.
@@ -248,4 +248,4 @@ eval "set -- $(
248248
tr '\n' ' '
249249
)" '"$@"'
250250

251-
exec "$JAVACMD" "$@"
251+
exec "$JAVACMD" "$@"

Example/testHotUpdate/android/gradlew.bat

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
@REM Copyright (c) Meta Platforms, Inc. and affiliates.
2+
@REM
3+
@REM This source code is licensed under the MIT license found in the
4+
@REM LICENSE file in the root directory of this source tree.
5+
16
@rem
27
@rem Copyright 2015 the original author or authors.
38
@rem
@@ -70,11 +75,11 @@ goto fail
7075
:execute
7176
@rem Setup the command line
7277

73-
set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
78+
set CLASSPATH=
7479

7580

7681
@rem Execute Gradle
77-
"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %*
82+
"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" -jar "%APP_HOME%\gradle\wrapper\gradle-wrapper.jar" %*
7883

7984
:end
8085
@rem End local scope for the variables with windows NT shell
@@ -91,4 +96,4 @@ exit /b %EXIT_CODE%
9196
:mainEnd
9297
if "%OS%"=="Windows_NT" endlocal
9398

94-
:omega
99+
:omega

Example/testHotUpdate/bun.lock

Lines changed: 70 additions & 982 deletions
Large diffs are not rendered by default.

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)