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:
16
Makefile
16
Makefile
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user