diff --git a/README.md b/README.md index b8030af..a502536 100644 --- a/README.md +++ b/README.md @@ -8,6 +8,11 @@ # Improve compile times touch ~/.gradle/gradle.properties && echo -e "org.gradle.daemon=true\norg.gradle.jvmargs=-Xmx2048M" >> ~/.gradle/gradle.properties + # Run android emulator (first avd) + npm run emulator + + # Make sure you have hw.keyboard=yes in your avd config.ini (in $HOME/.android/avd/.../) for reloading when pressing R twice to work. + ## Create release build (Android) # Aquire the keystore and put it in android/app/dusken-client.keystore @@ -20,4 +25,5 @@ # Build cd android && ./gradlew assembleRelease - # Output is in android/app/build/outputs/apk \ No newline at end of file + # Output is in android/app/build/outputs/apk + diff --git a/package.json b/package.json index d71e22d..cbdd0cc 100644 --- a/package.json +++ b/package.json @@ -4,7 +4,8 @@ "private": true, "scripts": { "start": "node node_modules/react-native/local-cli/cli.js start", - "test": "jest" + "test": "jest", + "emulator": "emulator -avd $(emulator -list-avds | head)&" }, "dependencies": { "moment": "^2.18.1",