Trezor Suite native application.
It's good to have some tools installed before you begin:
- Android Studio - Useful especially because of the built-in emulator. Download here
adb
- Android debug bridge, needed for communication with real device or emulator. More info here. Could be also installed using Android studio. After installation, you should verify that it is working by running commandadb devices
, which should list connected devices or emulators.watchman
- Tool for watching file changes in Metro Bundler
- Connect device or run emulator. For a physical device, it's recommended to use adb over wifi because you will have free up a USB port to connect Trezor device.
- Run packager -
yarn start
- Run native build -
yarn android
You can build a release version of app using yarn build:android
. Output apk will be located in here: android/app/build/outputs/apk/release/app-release.apk
Transport layer not working for iOS but it's possible to run app. You will need Xcode and xcode-select.
- Install CocoaPods dependencies -
yarn pods
- Connect device or emulator
- Run packager -
yarn start
- Run iOS build -
yarn ios
Because of usage of new Fabric architecture, it is not possible to use Chrome debugger anymore. We are compiling our own version of Hermes core with added functions.
Best way how to debug app is download Flipper.
simple-plist
- some internal dependency of RN wants to use version1.3.0
, but in this version there is some error that dependabot doesn't like. Error is not valid for us, but adding1.3.1
to dev dependencies will fix this warning.
- Place updated fonts to
packages/theme/fonts
- Run
yarn react-native link
Fastlane is the easiest way to automate beta deployments and releases for iOS and Android apps.
More information about fastlane can be found on fastlane.tools.
The documentation of fastlane can be found on docs.fastlane.tools.
Make sure you have the latest version of the Xcode command line tools installed:
xcode-select --install
For fastlane installation instructions, see Installing fastlane
[bundle exec] fastlane ios develop
Push a new beta build to TestFlight for develop build schema.
[bundle exec] fastlane ios staging
Push a new beta build to TestFlight for staging build schema.
[bundle exec] fastlane ios production
TODO
[bundle exec] fastlane android develop
Build and upload the app (develop) to Firebase App Distribution for testing in a small group of testers.
[bundle exec] fastlane android staging
Build and upload the app (staging) to Google Play Store for internal testing.
[bundle exec] fastlane android production
Build and upload the app (production) to Google Play Store for internal testing.