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

From 123b9aaa410bc9289f7de1b02c0f3c5cbcf372f2 Mon Sep 17 00:00:00 2001
From: staphen <[EMAIL REDACTED]>
Date: Tue, 15 Mar 2022 23:34:27 -0400
Subject: [PATCH] Adjust gradle dependencies to enable the build to position
 assets for the APK

---
 android-project/app/build.gradle | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/android-project/app/build.gradle b/android-project/app/build.gradle
index 8e59d9eb49c..baa0edc8de1 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'