зеркало из https://github.com/mozilla/notes.git
26 строки
727 B
Markdown
26 строки
727 B
Markdown
# Notes for Android
|
|
|
|
## Contributing
|
|
|
|
* Use node 8 and run `npm install`
|
|
* Plugin an Android phone (or use a device from Android AVD) and make sure it is visible via `adb devices`
|
|
* Run `npm start`
|
|
|
|
## Useful commands
|
|
|
|
`npm run dm` - when the app is open this opens the debug menu
|
|
|
|
Use `npx` (from npm 5) to run commands for `react-native`
|
|
|
|
`npx react-native upgrade` - regenerates Android files from React Native
|
|
`npx react-native start --reset-cache` - resets app cache
|
|
|
|
`adb logcat *:S ReactNative:V ReactNativeJS:V` - Logger from Android LogCat
|
|
|
|
|
|
## Release
|
|
|
|
> Read [Generating Signed APK](https://facebook.github.io/react-native/docs/signed-apk-android.html)
|
|
|
|
Creating a release: `cd android && ./gradlew assembleRelease`
|