-
Notifications
You must be signed in to change notification settings - Fork 376
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Wallet] Make it easier to build and run the different envs (#5191)
### Description This PR makes it easier to build the app in the different envs we have. - We now have the following env files, which are mapped to Xcode schemes/Android flavors: - `.env.alfajores` - `.env.alfajoresdev` - `.env.mainnet` - `.env.mainnetdev` - `.env.test` - Supports both `debug`/`release` for all envs (for release builds, the js bundle and assets are included in the app package) - Supports "dev" variants for day-to-day use by developers, can be installed alongside the store apps - Usage: `yarn dev:ios -e %envName%` or `yarn dev:android -e %envName%`, (`%envName%` can be `alfajores`, `alfajoresdev`, `mainnet`, `mainnetdev` or `test`), add the `-r` flag to produce a release build which doesn't need the packager running - Other `run_app.sh` script improvements: - can build iOS too from the command line (no need to have Xcode running 🎉) and now launches the packager in a different terminal window respecting the user choice of terminal - doesn't need to dynamically update the google services plist anymore. This should prevent using the wrong firebase db - App can still be launched through Xcode: <img width="382" alt="Screenshot 2020-09-25 at 10 57 28" src="https://user-images.githubusercontent.com/57791/94270913-2233d200-ff41-11ea-98d3-bcc875b7a98e.png"> - App can also be run from Android Studio if needed: <img width="50%" alt="Screenshot 2020-09-25 at 15 22 02" src="https://user-images.githubusercontent.com/57791/94272139-f1549c80-ff42-11ea-989c-36ff1cac71a8.png"> - Removed unused `pilot` and `integration` networks - Removed google service configs referencing the deprecated `celo-org-mobile` Firebase project. Finally it is relatively simple to add new envs if needed. ### Other changes - Upgraded `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 - Part of #4841 - Fixes #5294 ### Backwards compatibility Yes
- Loading branch information
1 parent
41d3d03
commit 8283f0e
Showing
54 changed files
with
176 additions
and
333 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
DEFAULT_TESTNET=mainnet | ||
# Generated using co.clabs.valora.dev and the debug keystore | ||
# This means Android auto-read feature will only work from debug builds | ||
SMS_RETRIEVER_APP_SIGNATURE=g9YQFjScXBz | ||
# If FORNO_ENABLED_INITIALLY, local geth will not run initially. | ||
# If toggled on, it will use DEFAULT_SYNC_MODE. See src/geth/consts.ts for more info | ||
FORNO_ENABLED_INITIALLY=false | ||
DEFAULT_SYNC_MODE=5 | ||
DEV_SETTINGS_ACTIVE_INITIALLY=true | ||
# Enable for true hot reloading while dev-ing UI | ||
DEV_RESTORE_NAV_STATE_ON_RELOAD=false | ||
FIREBASE_ENABLED=true | ||
SECRETS_KEY=debug | ||
SHOW_TESTNET_BANNER=false | ||
SHOW_GET_INVITE_LINK=false | ||
APP_BUNDLE_ID=co.clabs.valora.dev | ||
APP_STORE_ID=1520414263 | ||
APP_DISPLAY_NAME=Valora (dev) | ||
IOS_GOOGLE_SERVICE_PLIST=GoogleService-Info.mainnetdev.plist | ||
DYNAMIC_LINK_DOMAIN=https://vlra.app | ||
GETH_USE_FULL_NODE_DISCOVERY=true | ||
GETH_USE_STATIC_NODES=true | ||
# Only for development, use with caution | ||
GETH_START_HTTP_RPC_SERVER=false |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
export default { | ||
DEV_SETTINGS_ACTIVE_INITIALLY: 'false', | ||
SHOW_TESTNET_BANNER: 'true', | ||
DEFAULT_TESTNET: 'alfajores', | ||
DEFAULT_SYNC_MODE: 5, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file added
BIN
+1.41 KB
packages/mobile/android/app/src/alfajoresdev/google-services.json.enc
Binary file not shown.
Binary file not shown.
Binary file removed
BIN
-1.1 KB
packages/mobile/android/app/src/integration/google-services.json.enc
Binary file not shown.
Binary file removed
BIN
-6.99 KB
packages/mobile/android/app/src/integration/res/mipmap-hdpi/ic_launcher.png
Binary file not shown.
Binary file removed
BIN
-3.7 KB
packages/mobile/android/app/src/integration/res/mipmap-mdpi/ic_launcher.png
Binary file not shown.
Binary file removed
BIN
-9.76 KB
packages/mobile/android/app/src/integration/res/mipmap-xhdpi/ic_launcher.png
Binary file not shown.
Binary file removed
BIN
-18.9 KB
packages/mobile/android/app/src/integration/res/mipmap-xxhdpi/ic_launcher.png
Binary file not shown.
Binary file removed
BIN
-32 KB
packages/mobile/android/app/src/integration/res/mipmap-xxxhdpi/ic_launcher.png
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed
BIN
-6.13 KB
packages/mobile/android/app/src/pilot/res/mipmap-hdpi/ic_launcher.png
Binary file not shown.
Binary file removed
BIN
-3.27 KB
packages/mobile/android/app/src/pilot/res/mipmap-mdpi/ic_launcher.png
Binary file not shown.
Binary file removed
BIN
-8.5 KB
packages/mobile/android/app/src/pilot/res/mipmap-xhdpi/ic_launcher.png
Binary file not shown.
Binary file removed
BIN
-15.1 KB
packages/mobile/android/app/src/pilot/res/mipmap-xxhdpi/ic_launcher.png
Binary file not shown.
Binary file removed
BIN
-24 KB
packages/mobile/android/app/src/pilot/res/mipmap-xxxhdpi/ic_launcher.png
Binary file not shown.
Binary file not shown.
Binary file removed
BIN
-7.67 KB
packages/mobile/android/app/src/staging/res/mipmap-hdpi/ic_launcher.png
Binary file not shown.
Binary file removed
BIN
-4.01 KB
packages/mobile/android/app/src/staging/res/mipmap-mdpi/ic_launcher.png
Binary file not shown.
Binary file removed
BIN
-11.1 KB
packages/mobile/android/app/src/staging/res/mipmap-xhdpi/ic_launcher.png
Binary file not shown.
Binary file removed
BIN
-21 KB
packages/mobile/android/app/src/staging/res/mipmap-xxhdpi/ic_launcher.png
Binary file not shown.
Binary file removed
BIN
-33.2 KB
packages/mobile/android/app/src/staging/res/mipmap-xxxhdpi/ic_launcher.png
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.