Switch to GameActivity and gradle build

Fixes: https://github.com/damus-io/notedeck/issues/189
Fixes: https://github.com/damus-io/notedeck/issues/190
Signed-off-by: William Casarin <jb55@jb55.com>
This commit is contained in:
William Casarin
2025-01-27 14:10:45 -08:00
parent 478603e16e
commit 5d4548d3f7
14 changed files with 533 additions and 8 deletions

View File

@@ -1,6 +1,7 @@
.DEFAULT_GOAL := check
.PHONY: fake
all:
cargo check
ANDROID_DIR := crates/notedeck_chrome/android
check:
cargo check
@@ -8,4 +9,13 @@ check:
tags: fake
find . -type d -name target -prune -o -type f -name '*.rs' -print | xargs ctags
.PHONY: fake
jni: fake
cargo ndk --target arm64-v8a -o $(ANDROID_DIR)/app/src/main/jniLibs/ build --profile release
apk: jni
cd $(ANDROID_DIR) && ./gradlew build
android: jni
cd $(ANDROID_DIR) && ./gradlew installDebug
adb shell am start -n com.damus.notedeck/.MainActivity
adb logcat -v color -s notedeck RustStdoutStderr