chore: force stop android app before restart
This commit is contained in:
parent
8bd32adc51
commit
654134e2d0
5
Makefile
5
Makefile
|
@ -46,7 +46,6 @@ build-android: tools/gogio/bin/gogio deps ## Build executable
|
||||||
CGO_ENABLED=1 GOOS=android CGO_CFLAGS="-I${JDK_PATH}/include -I${JDK_PATH}/include/linux -w" tools/gogio/bin/gogio -target android -buildmode archive -o android/app/libs/mobile.aar -x ./cmd/mobile
|
CGO_ENABLED=1 GOOS=android CGO_CFLAGS="-I${JDK_PATH}/include -I${JDK_PATH}/include/linux -w" tools/gogio/bin/gogio -target android -buildmode archive -o android/app/libs/mobile.aar -x ./cmd/mobile
|
||||||
( cd android && ./gradlew assembleDebug )
|
( cd android && ./gradlew assembleDebug )
|
||||||
|
|
||||||
|
|
||||||
$(ANDROID_KEYSTORE_FILE):
|
$(ANDROID_KEYSTORE_FILE):
|
||||||
keytool -genkey -noprompt \
|
keytool -genkey -noprompt \
|
||||||
-alias $(ANDROID_KEYSTORE_KEY_ALIAS) \
|
-alias $(ANDROID_KEYSTORE_KEY_ALIAS) \
|
||||||
|
@ -73,6 +72,10 @@ release-android: $(ANDROID_KEYSTORE_FILE) tools/gogio/bin/gogio deps ## Build ex
|
||||||
install-android: build-android
|
install-android: build-android
|
||||||
adb uninstall com.cadoles.arcast_player
|
adb uninstall com.cadoles.arcast_player
|
||||||
adb install android/app/build/outputs/apk/debug/app-debug.apk
|
adb install android/app/build/outputs/apk/debug/app-debug.apk
|
||||||
|
$(MAKE) run-android
|
||||||
|
|
||||||
|
run-android:
|
||||||
|
adb shell am force-stop com.cadoles.arcast_player
|
||||||
adb shell monkey -p com.cadoles.arcast_player -c android.intent.category.LAUNCHER 1
|
adb shell monkey -p com.cadoles.arcast_player -c android.intent.category.LAUNCHER 1
|
||||||
|
|
||||||
debug-android:
|
debug-android:
|
||||||
|
|
Loading…
Reference in New Issue