Skip to content

Commit b4b9c54

Browse files
cortinicofacebook-github-bot
authored andcommitted
Make test_android_template work regardless of the version (facebook#32841)
Summary: Fixes facebook#32835 ## Changelog [Internal] - Make `test_android_template` work regardless of the version Pull Request resolved: facebook#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
1 parent 8487470 commit b4b9c54

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.circleci/config.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -585,7 +585,8 @@ jobs:
585585
name: Setup the Android Template
586586
command: |
587587
cd template
588-
sed -i 's/1000\.0\.0/file\:\.\./g' package.json
588+
# We replace the "react-native" dependency version with file:.. so we use it from source.
589+
sed -i 's/\"react-native\"\:.*/\"react-native\"\: \"file\:\.\.\"/g' package.json
589590
npm install
590591
# react-native-community/cli is needed as the Android template is referencing a .gradle file inside it.
591592
npm i @react-native-community/cli

0 commit comments

Comments
 (0)