Atlas配置bundle打包产物至assets目录

Atlas支持配置一个开关,将所有bundle打包到assets目录下。这样就不会导致bundle的apk产物被认为是动态链接库so。

1
atlas.tBuildConfig.keepInLibSoNames = null

附:Android获取手机cpu架构,支持的指令集

1
2
3
4
5
6
7
8
9
10
11
12
String[] abis = new String[]{};
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {
abis = Build.SUPPORTED_ABIS;
} else {
abis = new String[]{Build.CPU_ABI, Build.CPU_ABI2};
}
StringBuilder abiStr = new StringBuilder();
for (String abi : abis) {
abiStr.append(abi);
abiStr.append(', ');
}
Log.i("yezhou", "架构: " + abiStr.toString());

Powered by AppBlog.CN     浙ICP备14037229号

Copyright © 2012 - 2020 APP开发技术博客 All Rights Reserved.

访客数 : | 访问量 :