Skip to content

fix(core.manager): 修复插件解压so的错误逻辑#740

Merged
shifujun merged 1 commit into
Tencent:masterfrom
shifujun:fixGetAbi
Jan 4, 2022
Merged

fix(core.manager): 修复插件解压so的错误逻辑#740
shifujun merged 1 commit into
Tencent:masterfrom
shifujun:fixGetAbi

Conversation

@shifujun
Copy link
Copy Markdown
Collaborator

根据ApplicationInfo.nativeLibraryDir后缀获得的其实是instructionSet,而不是ABI。

插件也不需要跟宿主采用完全一样的ABI,只需要保持32位或64位相同就可以了。

现根据instructionSet确定是否为64位,再匹配插件中包含的ABI,按Build.CPU_ABI等字段优先级决定。

允许override getPluginPreferredAbi方法,以应对没有考虑到的情况。

fix #724
fix #729

根据ApplicationInfo.nativeLibraryDir后缀获得的其实是instructionSet,而不是ABI。

插件也不需要跟宿主采用完全一样的ABI,只需要保持32位或64位相同就可以了。

现根据instructionSet确定是否为64位,再匹配插件中包含的ABI,按Build.CPU_ABI等字段优先级决定。

允许override getPluginPreferredAbi方法,以应对没有考虑到的情况。

fix Tencent#724
fix Tencent#729
@shifujun shifujun merged commit 307800c into Tencent:master Jan 4, 2022
@shifujun shifujun deleted the fixGetAbi branch January 4, 2022 03:22
@shifujun
Copy link
Copy Markdown
Collaborator Author

shifujun commented Jan 4, 2022

fix 97b1d84

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

插件中集成arcgis for android 100.8.0地图报错 插件中集成高德地图sdk,地图显示黑屏,直接运行sample-app运行正常

1 participant