chore: force stop android app before restart

This commit is contained in:
wpetit 2024-04-24 11:58:10 +02:00
parent 8bd32adc51
commit 654134e2d0
1 changed files with 4 additions and 1 deletions

View File

@ -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: