mirror of
https://gitcode.com/gh_mirrors/re/react-native-pushy.git
synced 2025-09-18 16:30:40 +08:00
Compare commits
6 Commits
Author | SHA1 | Date | |
---|---|---|---|
![]() |
a35c98ed4d | ||
![]() |
dcea576fff | ||
![]() |
201f11e770 | ||
![]() |
3a86218a48 | ||
![]() |
5a5e27037c | ||
![]() |
9b4016ba0a |
@@ -1,5 +1,9 @@
|
|||||||
### 最近更新
|
### 最近更新
|
||||||
|
|
||||||
|
## 5.5.2 (2019-12-06)
|
||||||
|
|
||||||
|
1. 修复使用use_frameworks时无法读取时间戳的问题
|
||||||
|
|
||||||
## 5.5.0 (2019-11-24)
|
## 5.5.0 (2019-11-24)
|
||||||
|
|
||||||
1. 打包时加入时间戳
|
1. 打包时加入时间戳
|
||||||
|
@@ -77,7 +77,17 @@ pod 'react-native-update', path: '../node_modules/react-native-update'
|
|||||||
2. 进入`node_modules` ➜ `react-native-update` ➜ `ios 并选中 `RCTPushy.xcodeproj`
|
2. 进入`node_modules` ➜ `react-native-update` ➜ `ios 并选中 `RCTPushy.xcodeproj`
|
||||||
3. 在XCode中的project navigator里,选中你的工程,在 `Build Phases` ➜ `Link Binary With Libraries` 中添加 `libRCTPushy.a`
|
3. 在XCode中的project navigator里,选中你的工程,在 `Build Phases` ➜ `Link Binary With Libraries` 中添加 `libRCTPushy.a`
|
||||||
4. 继续在`Build Settings`里搜索`Header Search Path`,添加$(SRCROOT)/../node_modules/react-native-update/ios
|
4. 继续在`Build Settings`里搜索`Header Search Path`,添加$(SRCROOT)/../node_modules/react-native-update/ios
|
||||||
5. 重新编译
|
5. 在`Build Phases`添加一个`New Run Script Phase`运行脚本,内容如下
|
||||||
|
```
|
||||||
|
#!/bin/bash
|
||||||
|
set -x
|
||||||
|
DEST="../node_modules/react-native-update/ios/"
|
||||||
|
date +%s > "$DEST/pushy_build_time.txt"
|
||||||
|
```
|
||||||
|
编译的时候就会在`../node_modules/react-native-update/ios/`文件夹下面生成一个`pushy_build_time.txt`文件。
|
||||||
|
然后在`Copy Bundle Resources`里把生成的`pushy_build_time.txt`文件添加进去。
|
||||||
|
|
||||||
|
6. 重新编译
|
||||||
|
|
||||||
</details>
|
</details>
|
||||||
|
|
||||||
|
@@ -128,6 +128,7 @@ async function compileHermesByteCode(bundleName, outputFolder) {
|
|||||||
: 'node_modules/hermesvm';
|
: 'node_modules/hermesvm';
|
||||||
execSync(
|
execSync(
|
||||||
`${hermesPath}/${getHermesOSBin()}/hermes -emit-binary -out ${outputFolder}/${bundleName} ${outputFolder}/${bundleName} -O`,
|
`${hermesPath}/${getHermesOSBin()}/hermes -emit-binary -out ${outputFolder}/${bundleName} ${outputFolder}/${bundleName} -O`,
|
||||||
|
{ stdio: 'ignore' },
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "react-native-update",
|
"name": "react-native-update",
|
||||||
"version": "5.5.2",
|
"version": "5.5.3",
|
||||||
"description": "react-native hot update",
|
"description": "react-native hot update",
|
||||||
"main": "lib/index.js",
|
"main": "lib/index.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
@@ -37,7 +37,7 @@
|
|||||||
"read": "^1.0.7",
|
"read": "^1.0.7",
|
||||||
"request": "^2.69.0",
|
"request": "^2.69.0",
|
||||||
"tty-table": "^2.7.0",
|
"tty-table": "^2.7.0",
|
||||||
"yauzl": "2.4.1",
|
"yauzl": "^2.10.0",
|
||||||
"yazl": "2.3.0"
|
"yazl": "2.3.0"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
|
14
yarn.lock
14
yarn.lock
@@ -996,12 +996,6 @@ extsprintf@1.0.2:
|
|||||||
version "1.0.2"
|
version "1.0.2"
|
||||||
resolved "http://registry.npm.taobao.org/extsprintf/download/extsprintf-1.0.2.tgz#e1080e0658e300b06294990cc70e1502235fd550"
|
resolved "http://registry.npm.taobao.org/extsprintf/download/extsprintf-1.0.2.tgz#e1080e0658e300b06294990cc70e1502235fd550"
|
||||||
|
|
||||||
fd-slicer@~1.0.1:
|
|
||||||
version "1.0.1"
|
|
||||||
resolved "http://registry.npm.taobao.org/fd-slicer/download/fd-slicer-1.0.1.tgz#8b5bcbd9ec327c5041bf9ab023fd6750f1177e65"
|
|
||||||
dependencies:
|
|
||||||
pend "~1.2.0"
|
|
||||||
|
|
||||||
fd-slicer@~1.1.0:
|
fd-slicer@~1.1.0:
|
||||||
version "1.1.0"
|
version "1.1.0"
|
||||||
resolved "https://registry.yarnpkg.com/fd-slicer/-/fd-slicer-1.1.0.tgz#25c7c89cb1f9077f8891bbe61d8f390eae256f1e"
|
resolved "https://registry.yarnpkg.com/fd-slicer/-/fd-slicer-1.1.0.tgz#25c7c89cb1f9077f8891bbe61d8f390eae256f1e"
|
||||||
@@ -2584,13 +2578,7 @@ yargs@~3.27.0:
|
|||||||
window-size "^0.1.2"
|
window-size "^0.1.2"
|
||||||
y18n "^3.2.0"
|
y18n "^3.2.0"
|
||||||
|
|
||||||
yauzl@2.4.1:
|
yauzl@^2.10.0, yauzl@^2.8.0:
|
||||||
version "2.4.1"
|
|
||||||
resolved "http://registry.npm.taobao.org/yauzl/download/yauzl-2.4.1.tgz#9528f442dab1b2284e58b4379bb194e22e0c4005"
|
|
||||||
dependencies:
|
|
||||||
fd-slicer "~1.0.1"
|
|
||||||
|
|
||||||
yauzl@^2.8.0:
|
|
||||||
version "2.10.0"
|
version "2.10.0"
|
||||||
resolved "https://registry.yarnpkg.com/yauzl/-/yauzl-2.10.0.tgz#c7eb17c93e112cb1086fa6d8e51fb0667b79a5f9"
|
resolved "https://registry.yarnpkg.com/yauzl/-/yauzl-2.10.0.tgz#c7eb17c93e112cb1086fa6d8e51fb0667b79a5f9"
|
||||||
integrity sha1-x+sXyT4RLLEIb6bY5R+wZnt5pfk=
|
integrity sha1-x+sXyT4RLLEIb6bY5R+wZnt5pfk=
|
||||||
|
Reference in New Issue
Block a user