yarn install
(ornpm install
) from root foldercd ios bundle exec pod install --repo-update
- only for ios
- if you not install dependencies, check ## Install dependencies
- open emulator from Android Studio 1.1 Open Android Studio 1.2 Open virtual device manager 1.3 create or statr exist emulator
- from terminal(if app already exist at emulator - you see icon of our app at emulator) run
yarn run start
- it will start metro bundle and start project - if you doesn't have app at emulator, then run
yarn run android
- it will create debug apk and install it on emulator , then start metro bundle. You can usenpx react-native run-android --variant=release
- to create release apk and install it on emulator - after you start project, you can open developer menu by press
d
. - if you want open debuger at browser, then just tap on
Debug
, or if you want open it at react-native-debugger, then open react-native-debugger and only then tap onDebug
.
- if you not install dependencies, check ## Install dependencies
- Open project at xcode
- choose emulator iOS device
- start it (it will create apk and start emulator with app)
- change versionCode at android/app/build.gradle
cd android
gradlew assembleDebug
(for debug) orgradlew assembleRelease
(for release)
cd ios bundle exec pod install --repo-update
- install all dependency, use at root folder of project(you can use terminal or vscode)- open project at xcode (from vscode: cd ios, xed .)
- choose any iOS device
- up bundle version:
- If current version is already approved in App Store, up version number and set build number to 1
- If current version is not approved in App Store, up build number by 1
- create archive (Product -> Archive)
- upload archive (Distribute App), make sure that the last version is active
- need license testers for google or sanbox testers for ios
- login at google play with
license testers
or login at appleid withsanbox tester
- test subscriptions: (on ios only at real device).
- usefull links:
https://developer.android.com/google/play/billing/test#subs
https://help.apple.com/app-store-connect/#/dev7e89e149d
https://developer.apple.com/apple-pay/sandbox-testing/
We follow the conventional commits specification for our commit messages:
fix
: bug fixes, e.g. fix crash due to deprecated method.feat
: new features, e.g. add new method to the module.refactor
: code refactor, e.g. migrate from class components to hooks.docs
: changes into documentation, e.g. add usage example for the module..test
: adding or updating tests, eg add integration tests using detox.chore
: tooling changes, e.g. change CI config.
The package.json
file contains various scripts for common tasks:
yarn run android
: setup project for android.yarn run ios
: setup project for ios.yarn run start
: start metro bundleyarn run lint
: lint files with ESLint.yarn run test
: run unit tests with Jest.yarn run post-build
: produce source-maps for android and upload it to sentry