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

main
staphen 2022-03-15 23:34:27 -04:00 committed by Sam Lantinga
parent 5905696e66
commit 123b9aaa41
1 changed files with 4 additions and 0 deletions

View File

@ -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'