android: improve make commands

Signed-off-by: William Casarin <jb55@jb55.com>
This commit is contained in:
William Casarin
2025-03-11 10:11:13 -07:00
parent 1dec07afe8
commit 0a2a3f2bff

View File

@@ -12,10 +12,19 @@ tags: fake
jni: fake jni: fake
cargo ndk --target arm64-v8a -o $(ANDROID_DIR)/app/src/main/jniLibs/ build --profile release cargo ndk --target arm64-v8a -o $(ANDROID_DIR)/app/src/main/jniLibs/ build --profile release
jni-check: fake
cargo ndk --target arm64-v8a -o $(ANDROID_DIR)/app/src/main/jniLibs/ check --profile release
apk: jni apk: jni
cd $(ANDROID_DIR) && ./gradlew build cd $(ANDROID_DIR) && ./gradlew build
gradle:
cd $(ANDROID_DIR) && ./gradlew build
push-android-config:
adb push android-config.json /sdcard/Android/data/com.damus.notedeck/files/android-config.json
android: jni android: jni
cd $(ANDROID_DIR) && ./gradlew installDebug cd $(ANDROID_DIR) && ./gradlew installDebug
adb shell am start -n com.damus.notedeck/.MainActivity adb shell am start -n com.damus.notedeck/.MainActivity
adb logcat -v color | tee logcat.txt adb logcat -v color -s RustStdoutStderr | tee logcat.txt