Skip to content

Commit

Permalink
Maintenance (#667)
Browse files Browse the repository at this point in the history
Revert "Android: removing deprecated armeabi-v7a"
  • Loading branch information
Shchvova committed Dec 17, 2023
1 parent 9aa29aa commit bbb709c
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 7 deletions.
28 changes: 24 additions & 4 deletions platform/android/app/build.gradle.kts
Expand Up @@ -200,9 +200,6 @@ android {
versionCode = coronaVersionCode
versionName = coronaVersionName
multiDexEnabled = true
ndk {
abiFilters += listOf("arm64-v8a", "x86", "x86_64")
}
}
compileOptions {
sourceCompatibility = JavaVersion.VERSION_11
Expand Down Expand Up @@ -727,9 +724,32 @@ fun downloadAndProcessCoronaPlugins(reDownloadPlugins: Boolean = true) {
}
}

logger.lifecycle("Clean up libraries")
logger.lifecycle("Collecting native libraries")
run {
delete(generatedPluginNativeLibsDir)
file(coronaPlugins).walk().maxDepth(1).forEach {
if (it == coronaPlugins) return@forEach
if (pluginDisabledNative.contains(it.name)) return@forEach

val hasJniLibs = !fileTree(it) {
include("**/jniLibs/**/*.so")
}.isEmpty
val armeabiV7Libs = fileTree(it) {
include("**/*.so")
}
val hasArm32Libs = !armeabiV7Libs.isEmpty
if (!hasJniLibs && hasArm32Libs) {
logger.error("WARNING: Plugin '$it' contain native library for armeabi-v7a but not for arm64.")
copy {
from(armeabiV7Libs)
into(generatedPluginNativeLibsDir)
eachFile {
path = "armeabi-v7a/$name"
}
includeEmptyDirs = false
}
}
}
}

logger.lifecycle("Collecting legacy jar libraries")
Expand Down
3 changes: 0 additions & 3 deletions platform/android/sdk/build.gradle.kts
Expand Up @@ -10,9 +10,6 @@ android {
minSdk = 15
targetSdk = 33
version = 1
ndk {
abiFilters += listOf("arm64-v8a", "x86", "x86_64")
}
}
sourceSets["main"].manifest.srcFile(file("AndroidManifest-New.xml"))
sourceSets["main"].java.srcDirs(file("src"), file("../../../external/JNLua/src/main"), file("../../../plugins/network/android/src"))
Expand Down

0 comments on commit bbb709c

Please sign in to comment.