mirror of
https://gitcode.com/gh_mirrors/re/react-native-pushy.git
synced 2025-09-18 00:36:10 +08:00
Compare commits
7 Commits
Author | SHA1 | Date | |
---|---|---|---|
![]() |
679b02ea73 | ||
![]() |
3b69156c4a | ||
![]() |
5a13f82f2e | ||
![]() |
617fb0c1a2 | ||
![]() |
00c1eac457 | ||
![]() |
84ffaa7f5a | ||
![]() |
1e5d73c0d3 |
35
CHANGELOG.MD
35
CHANGELOG.MD
@@ -1,39 +1,44 @@
|
||||
### 最近更新
|
||||
|
||||
### 最新更新
|
||||
## 5.2.9 (2019-09-18)
|
||||
|
||||
## 5.2.5
|
||||
1. 添加 proguard 混淆规则以解决开启混淆后闪退的问题
|
||||
|
||||
1. 改进windows端打更新包的兼容性(部分windows机器上会产生空ppk文件)
|
||||
## 5.2.8
|
||||
|
||||
1. 解决某些情形下 Android 调用 switchVersion 不能重启的问题
|
||||
|
||||
## 5.2.7
|
||||
|
||||
1. 改进 windows 端打更新包的兼容性(部分 windows 机器上会产生空 ppk 文件)
|
||||
|
||||
## 5.2.4
|
||||
|
||||
1. 支持RN 0.61的hermes(路径变化)
|
||||
2. iOS端使用第三方的SSZipArchive以减少重名冲突
|
||||
1. 支持 RN 0.61 的 hermes(路径变化)
|
||||
2. iOS 端使用第三方的 SSZipArchive 以减少重名冲突
|
||||
|
||||
## 5.2.2
|
||||
|
||||
1. 修复一处导致iOS回滚的问题
|
||||
1. 修复一处导致 iOS 回滚的问题
|
||||
|
||||
## 5.2.1
|
||||
|
||||
1. 检测如果开启了hermes,则自动编译为hermes字节码格式
|
||||
1. 检测如果开启了 hermes,则自动编译为 hermes 字节码格式
|
||||
|
||||
## 5.2.0
|
||||
|
||||
1. 添加typescript声明
|
||||
2. 支持cocoapods
|
||||
1. 添加 typescript 声明
|
||||
2. 支持 cocoapods
|
||||
|
||||
## 5.1.9
|
||||
|
||||
1. 重写bundle命令以提升版本兼容性
|
||||
1. 重写 bundle 命令以提升版本兼容性
|
||||
2. 改进命令行的输出样式
|
||||
|
||||
|
||||
## 5.1.8
|
||||
|
||||
1. 服务器迁移到https
|
||||
2. android支持64位
|
||||
|
||||
1. 服务器迁移到 https
|
||||
2. android 支持 64 位
|
||||
|
||||
## 5.1.6
|
||||
|
||||
@@ -41,4 +46,4 @@
|
||||
|
||||
同一个项目中放置了多个完全相同的文件,在 5.1.0 至 5.1.5 之间的版本中,更新后有时会出现其中的部分无法显示。此问题在 5.1.6 版本修复。
|
||||
|
||||
修复此问题涉及原生部分,需要重新打包。
|
||||
修复此问题涉及原生部分,需要重新打包。
|
||||
|
@@ -2,6 +2,10 @@
|
||||
|
||||
本组件是面向 React Native 提供热更新功能的组件,建议结合[Update 服务](https://update.reactnative.cn/)使用。
|
||||
|
||||
### 最近更新
|
||||
|
||||
请查阅[最近更新文档](CHANGELOG.md)。
|
||||
|
||||
### 优势
|
||||
|
||||
1. 命令行工具&网页双端管理,版本发布过程简单便捷,完全可以集成 CI。
|
||||
|
@@ -14,6 +14,7 @@ android {
|
||||
targetSdkVersion safeExtGet('targetSdkVersion', 27)
|
||||
versionCode 1
|
||||
versionName "1.0"
|
||||
consumerProguardFiles "proguard.pro"
|
||||
}
|
||||
sourceSets {
|
||||
main {
|
||||
|
2
android/proguard.pro
vendored
Normal file
2
android/proguard.pro
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
-keepnames class cn.reactnative.modules.update.DownloadTask { *; }
|
||||
-keepnames class com.facebook.react.ReactInstanceManager { *; }
|
@@ -135,13 +135,12 @@ public class UpdateModule extends ReactContextBaseJavaModule{
|
||||
loadField.set(instanceManager, loader);
|
||||
}
|
||||
|
||||
final Method recreateMethod = instanceManager.getClass().getMethod("recreateReactContextInBackground");
|
||||
try {
|
||||
instanceManager.recreateReactContextInBackground();
|
||||
} catch(Throwable err) {
|
||||
activity.recreate();
|
||||
}
|
||||
|
||||
final ReactInstanceManager finalizedInstanceManager = instanceManager;
|
||||
|
||||
recreateMethod.invoke(finalizedInstanceManager);
|
||||
|
||||
activity.recreate();
|
||||
} catch (Throwable err) {
|
||||
Log.e("pushy", "Failed to restart application", err);
|
||||
}
|
||||
|
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "react-native-update",
|
||||
"version": "5.2.6",
|
||||
"version": "5.2.9",
|
||||
"description": "react-native hot update",
|
||||
"main": "lib/index.js",
|
||||
"scripts": {
|
||||
|
Reference in New Issue
Block a user