build!: drop armeabi-v7a abiFilters, restore 64-bit builds
背景: abiFilters=armeabi-v7a 的唯一成因是 Morse Expert 的 32 位 libnativedecoderjni.so, 该 .so 已在上一提交删除。此前整个应用被迫以 32 位运行: 64 位设备走兼容层、寻址受限, 且不满足应用市场的 64 位要求。 原注释称"用户设备为 32 位软件"已与实际不符 (测试机为 64 位)。 改动: - app/build.gradle.kts: 移除 defaultConfig.ndk.abiFilters 及相关注释 - feature/cw/build.gradle.kts: 移除 abiFilters; 移除 constraintlayout 依赖 (仅被已删除的 activity_main.xml 使用); 移除 UTF-8 JavaCompile 配置 (模块已无 Java 源码) - feature/cw 改为依赖 core:domain + core:data (DeepCW 前后处理落在 core) 验证: grep -rn 'abiFilters|jniLibs' --include=*.kts . (排除 build/) => 无匹配 APK ABI 覆盖将在 CI 产物中验证 (预期含 arm64-v8a)
This commit is contained in:
1 parent
e477851adf
commit
de6c964136
2 files changed
+2
-25
No files matched your search
@@ -1,4 +1,3 @@
|
||||
import com.android.build.api.dsl.LibraryExtension
|
||||
import com.android.build.api.variant.CanProduceConsumerProguardFiles
|
||||
|
||||
plugins {
|
||||
@@ -7,19 +6,8 @@ plugins {
|
||||
|
||||
android {
|
||||
namespace = "com.rtbishop.look4sat.feature.cw"
|
||||
compileOptions {
|
||||
encoding = "UTF-8"
|
||||
}
|
||||
// 照搬 Morse Expert 1.15: native 解码器仅 armeabi-v7a
|
||||
defaultConfig {
|
||||
ndk {
|
||||
abiFilters += listOf("armeabi-v7a")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// CW 类保持规则(JNI 按类名注册 + 照搬混淆类保逻辑), 由 app 的 R8 消费
|
||||
// AGP 9: consumer 规则走 variant 级 CanProduceConsumerProguardFiles
|
||||
androidComponents {
|
||||
onVariants(selector().all()) { variant ->
|
||||
(variant as? CanProduceConsumerProguardFiles)?.consumerProguardFiles?.add(
|
||||
@@ -29,10 +17,6 @@ androidComponents {
|
||||
}
|
||||
|
||||
dependencies {
|
||||
implementation("androidx.constraintlayout:constraintlayout:2.2.1")
|
||||
}
|
||||
|
||||
// 照搬的 Java 源码含中文注释, 强制 UTF-8 编译(compileOptions 在部分 AGP 版本不生效)
|
||||
tasks.withType<JavaCompile>().configureEach {
|
||||
options.encoding = "UTF-8"
|
||||
implementation(project(":core:domain"))
|
||||
implementation(project(":core:data"))
|
||||
}
|
||||
Reference in new issue
Block a user