From 0a2a3f2bffa9e76f16861b3ceca3ab6f6ad33adc Mon Sep 17 00:00:00 2001 From: William Casarin Date: Tue, 11 Mar 2025 10:11:13 -0700 Subject: [PATCH] android: improve make commands Signed-off-by: William Casarin --- Makefile | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 06337815..b426cecf 100644 --- a/Makefile +++ b/Makefile @@ -12,10 +12,19 @@ tags: fake jni: fake 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 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 cd $(ANDROID_DIR) && ./gradlew installDebug 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