diff --git a/.github/workflows/e2e_ios.yml b/.github/workflows/e2e_ios.yml index ea95755..5b95e21 100644 --- a/.github/workflows/e2e_ios.yml +++ b/.github/workflows/e2e_ios.yml @@ -159,6 +159,18 @@ jobs: key: ${{ runner.os }}-metro-v1-${{ github.run_id }} restore-keys: ${{ runner.os }}-metro-v1 + - name: Pre-fetch Javascript bundle + run: | + nohup yarn tests:packager:jet-ci & + printf 'Waiting for packager to come online' + until curl --output /dev/null --silent --head --fail http://localhost:8081/status; do + printf '.' + sleep 2 + done + echo "Packager is online! Preparing bundle..." + curl --output /dev/null --silent --head --fail "http://localhost:8081/index.bundle?platform=ios&dev=true&minify=false&inlineSourceMap=true" + echo "...javascript bundle ready" + - name: Create Simulator Log # With a little delay so the detox test below has time to spawn it, missing the first part of boot is fine # If you boot the simulator separately from detox, some other race fails and detox testee never sends ready to proxy diff --git a/.gitignore b/.gitignore index f44e1fb..acc10ce 100644 --- a/.gitignore +++ b/.gitignore @@ -41,7 +41,6 @@ local.properties node_modules/ npm-debug.log -Example/**/update.json Example/**/.update Example/**/.pushy yarn-error.log diff --git a/Example/testHotUpdate/.eslintrc.js b/Example/testHotUpdate/.eslintrc.js deleted file mode 100644 index 40c6dcd..0000000 --- a/Example/testHotUpdate/.eslintrc.js +++ /dev/null @@ -1,4 +0,0 @@ -module.exports = { - root: true, - extends: '@react-native-community', -}; diff --git a/Example/testHotUpdate/update.json b/Example/testHotUpdate/update.json new file mode 100644 index 0000000..02ba04d --- /dev/null +++ b/Example/testHotUpdate/update.json @@ -0,0 +1,10 @@ +{ + "ios": { + "appId": 10976, + "appKey": "p5q_rPYNOE0WdCf-i9ZCGPw-DUGUCMvY" + }, + "android": { + "appId": 10977, + "appKey": "bUYKfZgtC9VirZsQbAt8qken2Gq2uxe3" + } +} \ No newline at end of file diff --git a/README.md b/README.md index 836b004..7b53211 100644 --- a/README.md +++ b/README.md @@ -33,3 +33,4 @@ $ yarn start 本组件由[React Native 中文网](https://reactnative.cn/)独家发布,如有定制需求可以[联系我们](https://reactnative.cn/about.html#content)。 关于此插件发现任何问题,可以前往[Issues](https://github.com/reactnativecn/react-native-pushy/issues)发帖提问。 +