-
Notifications
You must be signed in to change notification settings - Fork 376
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Wallet] Make it easier to build and run the different envs #5191
Conversation
- Supports both debug/release for all envs (js bundle is generated for release builds) - Supports "dev" variants for day-to-day use, can be installed alongside the store apps - run_app.sh script can build iOS too and now launches the packager in a different terminal window respecting the user choice of terminal
Also tentative to make it work in release mode
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks amazing!! Do you think we'll be able to use release builds for e2e tests now? That would reduce some of the flakiness that is caused by intermittent warnings that cover the bottom of the screen.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is awesome! Please open an github issue for this to close.
Yes, iOS e2e tests in release mode already works! |
### Description Following the switch to Android flavors in #5191, the mapping path became incorrect. ### Tested `bundle exec fastlane android alfajores` works. ### Related issues - Discussed on Slack ### Backwards compatibility Yes.
Description
This PR makes it easier to build the app in the different envs we have.
.env.alfajores
.env.alfajoresdev
.env.mainnet
.env.mainnetdev
.env.test
debug
/release
for all envs (for release builds, the js bundle and assets are included in the app package)yarn dev:ios -e %envName%
oryarn dev:android -e %envName%
, (%envName%
can bealfajores
,alfajoresdev
,mainnet
,mainnetdev
ortest
), add the-r
flag to produce a release build which doesn't need the packager runningrun_app.sh
script improvements:pilot
andintegration
networkscelo-org-mobile
Firebase project.Finally it is relatively simple to add new envs if needed.
Other changes
react-native-config
Tested
Successfully ran:
yarn dev:ios
yarn dev:ios -e aflajoresdev
yarn dev:ios -e aflajores
yarn dev:ios -e mainnetdev
yarn dev:ios -e mainnet
yarn dev:ios -r
yarn dev:android
yarn dev:android -e aflajoresdev
yarn dev:android -e aflajores
yarn dev:android -e mainnetdev
yarn dev:android -e mainnet
yarn dev:android -r
yarn test:e2e:ios
yarn test:e2e:ios -r
yarn test:e2e:android
(release mode (-r
) option doesn't work yet as it fails at runtime due to proguard not keeping some Kotlin classes used by detox).bundle exec fastlane ios mainnet
(though manually disabling upload)bundle exec fastlane android mainnet
(though manually disabling upload)Related issues
Backwards compatibility
Yes