From 75c736709dd064107e37db028baac9710f59b714 Mon Sep 17 00:00:00 2001 From: Jules Aguillon Date: Mon, 7 Feb 2022 01:11:55 +0100 Subject: build: Use d8 instead of dx dx have been removed in android build tools >30.0.3 in favor of d8. Lift the version constraint on the build tools. --- CONTRIBUTING.md | 2 +- Makefile | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 33253b1..5caaa7e 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -9,7 +9,7 @@ Android Studio. Fortunately, there's not many dependencies: - OpenJDK 8 -- Android SDK: build tools `30.0.3`, platform `30` +- Android SDK: build tools (minimum `28.0.1`), platform `30` - Make sure to have the `$ANDROID_HOME` environment variable set. For Nix users, there's a `shell.nix` for setting-up the right environment. diff --git a/Makefile b/Makefile index 10f7fb4..7a8f7f8 100644 --- a/Makefile +++ b/Makefile @@ -105,4 +105,4 @@ _build/classes.dex: $(JAVA_FILES) $(R_FILE) -classpath $(ANDROID_PLATFORM)/android.jar:$(EXTRA_JARS) \ -sourcepath $(SRC_DIR):$(GEN_DIR) \ $^ - $(ANDROID_BUILD_TOOLS)/dx --dex --output="$@" $(OBJ_DIR) $(subst :, ,$(EXTRA_JARS)) + $(ANDROID_BUILD_TOOLS)/d8 --output $(@D) $(OBJ_DIR)/*/*/* $(subst :, ,$(EXTRA_JARS)) -- cgit v1.2.3