From adcd57b6b5e25427c300b0c2982f0ba24d705b6e Mon Sep 17 00:00:00 2001 From: sunnylqm Date: Sun, 28 Jul 2024 21:57:33 +0800 Subject: [PATCH] update example --- Example/testHotUpdate/android/app/build.gradle | 2 +- .../android/app/src/main/AndroidManifest.xml | 10 ++++++++-- Example/testHotUpdate/package.json | 2 +- Example/testHotUpdate/yarn.lock | 8 ++++---- README.md | 3 +-- 5 files changed, 15 insertions(+), 10 deletions(-) diff --git a/Example/testHotUpdate/android/app/build.gradle b/Example/testHotUpdate/android/app/build.gradle index 8bf9ec27..394d4a9d 100644 --- a/Example/testHotUpdate/android/app/build.gradle +++ b/Example/testHotUpdate/android/app/build.gradle @@ -141,7 +141,7 @@ android { minSdkVersion rootProject.ext.minSdkVersion targetSdkVersion rootProject.ext.targetSdkVersion versionCode 1 - versionName "1.0" + versionName "2.0" testBuildType System.getProperty('testBuildType', 'debug') testInstrumentationRunner 'androidx.test.runner.AndroidJUnitRunner' buildConfigField "boolean", "IS_NEW_ARCHITECTURE_ENABLED", isNewArchitectureEnabled().toString() diff --git a/Example/testHotUpdate/android/app/src/main/AndroidManifest.xml b/Example/testHotUpdate/android/app/src/main/AndroidManifest.xml index c62962f0..18a8d3f7 100644 --- a/Example/testHotUpdate/android/app/src/main/AndroidManifest.xml +++ b/Example/testHotUpdate/android/app/src/main/AndroidManifest.xml @@ -21,8 +21,14 @@ android:windowSoftInputMode="adjustResize" android:exported="true"> - - + + + + + + + + diff --git a/Example/testHotUpdate/package.json b/Example/testHotUpdate/package.json index 20088187..e02b801d 100644 --- a/Example/testHotUpdate/package.json +++ b/Example/testHotUpdate/package.json @@ -20,7 +20,7 @@ "react-native-camera-kit": "^14.0.0-beta15", "react-native-paper": "^5.12.1", "react-native-safe-area-context": "^4.8.2", - "react-native-update": "^10.10.0", + "react-native-update": "^10.11.0", "react-native-vector-icons": "^10.0.3" }, "devDependencies": { diff --git a/Example/testHotUpdate/yarn.lock b/Example/testHotUpdate/yarn.lock index 0c34fc9c..d2f84b20 100644 --- a/Example/testHotUpdate/yarn.lock +++ b/Example/testHotUpdate/yarn.lock @@ -6236,10 +6236,10 @@ react-native-safe-area-context@^4.8.2: resolved "https://registry.yarnpkg.com/react-native-safe-area-context/-/react-native-safe-area-context-4.8.2.tgz#e6b3d8acf3c6afcb4b5db03a97f9c37df7668f65" integrity sha512-ffUOv8BJQ6RqO3nLml5gxJ6ab3EestPiyWekxdzO/1MQ7NF8fW1Mzh1C5QE9yq573Xefnc7FuzGXjtesZGv7cQ== -react-native-update@^10.10.0: - version "10.10.0" - resolved "https://registry.yarnpkg.com/react-native-update/-/react-native-update-10.10.0.tgz#5861f0c217d1ed194e1a8aba81fed5430178795c" - integrity sha512-qZd5kJ9UlNh5Y0zU5vLdIviYwLvTPqdgIynmt4DQ1wEUu2/F6RrI17dICq54em5ValQWB6ua/tdj2lyTVPvADg== +react-native-update@^10.11.0: + version "10.11.0" + resolved "https://registry.yarnpkg.com/react-native-update/-/react-native-update-10.11.0.tgz#29f7a4dd847d2b9b7dbc720ccfaa1eabae82616d" + integrity sha512-YPnJPGN38LqZvNgDEeqyjJqHs6sRGL2vxUt9pW0jRUx8wrTjBSf29bGQ55EonKa2Dsl8cqikr/zefImWqTLoMg== dependencies: nanoid "^3.3.3" diff --git a/README.md b/README.md index 64239fd4..db26243a 100644 --- a/README.md +++ b/README.md @@ -8,7 +8,7 @@ ### 优势 -1. 基于阿里云高速 CDN 分发,对比其他服务器在国外的热更新服务,分发更稳定,更新成功率极高。 +1. 对中国用户使用阿里云高速 CDN 分发,对比其他服务器在国外的热更新服务,分发更稳定,更新成功率极高。对国外用户则智能分流至 cloudflare,同样享受高速更新服务。 2. 基于 bsdiff/hdiff 算法创建的**超小更新包**,通常版本迭代后在几十 KB 级别(其他全量热更新服务所需流量通常在几十 MB 级别)。 3. 始终跟进 RN 最新正式版本,第一时间提供支持。支持 hermes 字节码格式。支持新架构。 4. 跨越多个版本进行更新时,只需要下载**一个更新包**,不需要逐版本依次更新。 @@ -33,4 +33,3 @@ $ yarn start 本组件由[React Native 中文网](https://reactnative.cn/)独家发布,如有定制需求可以[联系我们](https://reactnative.cn/about.html#content)。 关于此插件发现任何问题,可以前往[Issues](https://github.com/reactnativecn/react-native-pushy/issues)发帖提问。 -