Browse Source

chore(android): Google Play渠道构建时排除高德地图.so以满足16KB页面对齐要求

根据.env中Channel=GLOBAL_GOOGLE自动排除libAMapSDK*.so,
高德SDK尚未发布支持16KB页面对齐的版本,海外版本不使用高德功能。

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
newdev_shunjiawei
lxm 7 months ago
parent
commit
fead29efbc
  1. 10
      android/app/build.gradle.kts

10
android/app/build.gradle.kts

@ -57,6 +57,16 @@ android {
}
jniLibs {
useLegacyPackaging = true
// Google Play 渠道排除高德地图 .so(尚未支持 16KB 页面对齐)
val envFile = rootProject.file("../.env")
if (envFile.exists()) {
val channel = envFile.readLines()
.firstOrNull { it.trim().startsWith("Channel=") }
?.substringAfter("=")?.trim()
if (channel == "GLOBAL_GOOGLE") {
excludes += setOf("**/libAMapSDK*.so")
}
}
}
}

Loading…
Cancel
Save