mirror of
https://github.com/facebook/react-native.git
synced 2024-11-22 06:29:46 +00:00
Make test_android_template
work regardless of the version (#32841)
Summary: Fixes https://github.com/facebook/react-native/issues/32835 ## Changelog [Internal] - Make `test_android_template` work regardless of the version Pull Request resolved: https://github.com/facebook/react-native/pull/32841 Test Plan: Tested locally. Will wait for `test_android_template` to be green. Reviewed By: hramos Differential Revision: D33476511 Pulled By: cortinico fbshipit-source-id: 29a96683afae64cadc9ae4332410cd4d5d9d3e6d
This commit is contained in:
parent
8487470476
commit
b4b9c54978
@ -585,7 +585,8 @@ jobs:
|
||||
name: Setup the Android Template
|
||||
command: |
|
||||
cd template
|
||||
sed -i 's/1000\.0\.0/file\:\.\./g' package.json
|
||||
# We replace the "react-native" dependency version with file:.. so we use it from source.
|
||||
sed -i 's/\"react-native\"\:.*/\"react-native\"\: \"file\:\.\.\"/g' package.json
|
||||
npm install
|
||||
# react-native-community/cli is needed as the Android template is referencing a .gradle file inside it.
|
||||
npm i @react-native-community/cli
|
||||
|
Loading…
Reference in New Issue
Block a user