Commit 123b9aaa410bc9289f7de1b02c0f3c5cbcf372f2

staphen 2022-03-15T23:34:27

Adjust gradle dependencies to enable the build to position assets for the APK

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
diff --git a/android-project/app/build.gradle b/android-project/app/build.gradle
index 8e59d9e..baa0edc 100644
--- a/android-project/app/build.gradle
+++ b/android-project/app/build.gradle
@@ -35,6 +35,10 @@ android {
             proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
         }
     }
+    applicationVariants.all { variant ->
+        tasks["merge${variant.name.capitalize()}Assets"]
+            .dependsOn("externalNativeBuild${variant.name.capitalize()}")
+    }
     if (!project.hasProperty('EXCLUDE_NATIVE_LIBS')) {
         sourceSets.main {
             jniLibs.srcDir 'libs'