status-mobile/scripts
Siddarth Kumar 42cab08553
chore: Improve DX for building the app locally (#18784)
After upgrading `react-native` to `0.72.5` we frequently started seeing the _red screen of death_ on both `Android` and `iOS` simulators right after the app was built and installed.
This used to happen because our workflow required us to do the following :
- `make run-clojure`
- `make run-metro`
- `make run-ios` OR `make run-android`

The problem with this approach was after `metro` was started the `iOS`, `Android` build step would change the files that `metro` couldn't handle and hence metro would go out of sync.
The quick fix back then was to restart `metro` terminal and to open the app again from the simulator.
This was however not a good DX.

This commit fixes that.
We no longer rely on `react-native` cli to generate and deploy debug builds on simulators. We take control of the process via our own script. The new workflow introduced in this commit will first build the app, then install the app on the simulators and then start metro terminal. When `metro` is successfully running the script will then open the app.

The new workflow now is :
- `make run-clojure`
- `make run-ios` OR `make run-android`
2024-02-14 19:58:45 +05:30
..
hooks hooks: fix newline injection on MacOS 2022-09-05 14:57:25 +02:00
lint refactor native modules into separate modules (#18385) 2024-01-15 18:57:35 +05:30
version ci: use full timestamp for iOS CFBundleVersion 2020-01-23 19:42:19 +01:00
adb_devices_abis.sh run-android: set build abis depending on connected devices abis 2023-08-31 13:01:24 +02:00
build-android.sh Wallet - Add support for Sepolia testnet and Rarible collectible provider (#18519) 2024-02-02 19:44:00 +05:30
check-metro-shadow-process.sh improve make component-test robustness (#17743) 2023-10-26 23:24:23 +05:30
check-nix-shell.sh fix shebang for NixOS usage in scheck-nix-shell.sh 2023-10-18 22:17:25 +02:00
colors.sh fdroid: add script that automates submissions 2021-10-13 12:13:38 +02:00
cut-release.sh Make cut release executable 2021-04-20 11:07:48 +02:00
diawi-upload.mjs ios: replace Diawi Fastlane plugin that disappered 2023-05-24 10:55:38 +02:00
encrypt-keychain.sh Add code-signing scripts and encrypted keychain 2018-09-11 12:10:33 +03:00
fdroid-pr.sh scripts/fdroid-pr.sh: fix version name log message 2022-09-29 12:54:48 +02:00
gen-random-passphrase.sh Add code-signing scripts and encrypted keychain 2018-09-11 12:10:33 +03:00
generate-keystore.sh generate-keystore: fix Permission denied error 2022-08-10 02:21:13 +02:00
inotify_fix.sh cleanup of shell scripts 2020-02-24 19:31:55 +01:00
list-pull-requests.sh rename status-react to status-mobile 2022-07-17 14:46:16 +02:00
merge-pr.sh rename status-react to status-mobile 2022-07-17 14:46:16 +02:00
pr-statistics.sh rename status-react to status-mobile 2022-07-17 14:46:16 +02:00
run-android.sh chore: Improve DX for building the app locally (#18784) 2024-02-14 19:58:45 +05:30
run-ios.sh chore: Improve DX for building the app locally (#18784) 2024-02-14 19:58:45 +05:30
run-metro.sh chore: Improve DX for building the app locally (#18784) 2024-02-14 19:58:45 +05:30
sign-android.sh nix: quote path uses to avoid issues with spaces 2022-07-27 16:11:28 +02:00
update-status-go.sh scripts: disable pipefail when greping for SHA 2023-06-24 15:55:58 +02:00
wait-for.sh narrow match with UID, print persistent matching processes 2019-11-30 14:47:06 +01:00