Difference between revisions of "Android"

From Wasya Wiki
Jump to: navigation, search
 
(4 intermediate revisions by the same user not shown)
Line 1: Line 1:
  
== Develop ==
+
How do you create a local keystore?
  
* pi_native, that's the newsitems app
+
From: https://coderwall.com/p/r09hoq/android-generate-release-debug-keystores
* wasya_native, that's the main one right now
+
  
=== Run Emulator ===
+
  keytool -genkey -v -keystore ~/.android/debug.keystore -alias debug_keystore -keyalg RSA -keysize 2048 -validity 10000
 
+
  /Users/piousbox/Library/Android/sdk/tools/emulator -avd Nexus_5X_API_26
+
 
+
This launches wasya_native 20180829
+
 
+
  ./node_modules/.bin/react-native run-android
+
 
+
=== Reload App in Emulator ===
+
 
+
adb shell input keyevent 82
+
 
+
R+R
+
 
+
== Build ==
+
From: https://facebook.github.io/react-native/docs/signed-apk-android
+
 
+
Generate key, then
+
 
+
  ./gradlew assembleRelease
+
 
+
It's here: /Users/piousbox/projects/react/pi_native/android/app/build/outputs/apk
+
 
+
From: https://docs.expo.io/versions/latest/guides/building-standalone-apps.html
+
npm install -g exp
+
exp build:android
+

Latest revision as of 16:38, 25 March 2019

How do you create a local keystore?

From: https://coderwall.com/p/r09hoq/android-generate-release-debug-keystores

keytool -genkey -v -keystore ~/.android/debug.keystore -alias debug_keystore -keyalg RSA -keysize 2048 -validity 10000