build(android): release 包显式剔除 x86_64 原生库
This commit is contained in:
1 parent
91a622733c
commit
86588d7faa
1 file changed
+7
@@ -46,6 +46,13 @@ kotlin {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 生产包不允许出现 x86_64:部分插件 AAR 会带入少量 x86_64 原生库,这里显式剔除。
|
||||||
|
androidComponents {
|
||||||
|
onVariants(selector().withBuildType("release")) { variant ->
|
||||||
|
variant.packaging.jniLibs.excludes.add("lib/x86_64/**")
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
flutter {
|
flutter {
|
||||||
source = "../.."
|
source = "../.."
|
||||||
}
|
}
|
||||||
Reference in new issue
Block a user