From 0c5fe2d333208d6661f4546cfcf68a63dc4ef0f4 Mon Sep 17 00:00:00 2001 From: Atsushi Eno Date: Wed, 5 Jul 2023 20:17:21 +0900 Subject: [PATCH] modernize project to the latest aap-lv2 structure. - bump aap-lv2 - use Compose native UI - AGP/Gradle migration with assistant. --- Makefile | 7 +---- app/build.gradle | 3 +- app/src/main/AndroidManifest.xml | 3 +- external/aap-lv2 | 2 +- gradle.properties | 3 ++ gradle/libs.versions.toml | 36 +++++++++++++----------- gradle/wrapper/gradle-wrapper.properties | 2 +- 7 files changed, 29 insertions(+), 27 deletions(-) diff --git a/Makefile b/Makefile index 2b94d81..5a2346c 100644 --- a/Makefile +++ b/Makefile @@ -12,7 +12,7 @@ build-all: \ build-native \ build-java -build-native: dependencies/stamp-fluidsynth dependencies/stamp-aap-aar +build-native: dependencies/stamp-fluidsynth external/fluidsynth/.patch-stamp: cd external/fluidsynth && patch -i ../../fluidsynth-ndk24.patch -p1 && touch .patch-stamp @@ -31,11 +31,6 @@ make-jniLibsDir: mkdir -p app/src/main/jniLibs/$$a ; \ done -dependencies/stamp-aap-aar: - cp external/aap-lv2/external/aap-core/androidaudioplugin/build/outputs/aar/androidaudioplugin-release.aar . - unzip androidaudioplugin-release.aar -d dependencies/androidaudioplugin-aar - touch dependencies/stamp-aap-aar - build-aap-lv2: cd external/aap-lv2 && make build-non-app diff --git a/app/build.gradle b/app/build.gradle index 30d1d1a..a7fc04b 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -52,7 +52,8 @@ android { jniLibs.useLegacyPackaging = true } - aaptOptions { + namespace 'org.androidaudioplugin.ports.lv2.aap_fluidsynth' + androidResources { noCompress 'sf3' } } diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml index 3ca2aef..cd1ea9f 100644 --- a/app/src/main/AndroidManifest.xml +++ b/app/src/main/AndroidManifest.xml @@ -1,7 +1,6 @@ + xmlns:tools="http://schemas.android.com/tools">