Open andycall opened 3 years ago
现有的 kraken bridge 集成链路是独立构建出 libkraken.dylib 或者 kraken_bridge.framework,然后通过 pod 和 gradle 集成到 App 中。
这样的方式可以正常运行 App,但是会导致 flutter 的工具链无法识别这个单独的动态库,从而无法被 flutter build ios-framework 给集成进去。
flutter build ios-framework
将 bridge 的 cpp 源代码与 plugins 代码一块编译,并生成同一份产物。同时这样也可以自动获取到 flutter engine 的依赖,
看上去可以直接调用 Flutter Engine Public API,从而开启一些额外的一些新能力
plugin 不是目标没有 cpp 代码吗
把 cpp 和现有 plugins 的代码一块编译也是一种新的思路
使用场景 | Use case
现有的 kraken bridge 集成链路是独立构建出 libkraken.dylib 或者 kraken_bridge.framework,然后通过 pod 和 gradle 集成到 App 中。
这样的方式可以正常运行 App,但是会导致 flutter 的工具链无法识别这个单独的动态库,从而无法被
flutter build ios-framework
给集成进去。提案 | Proposal
将 bridge 的 cpp 源代码与 plugins 代码一块编译,并生成同一份产物。同时这样也可以自动获取到 flutter engine 的依赖,
看上去可以直接调用 Flutter Engine Public API,从而开启一些额外的一些新能力