最新 spine 4.3 flutter 适配鸿蒙

已适配地址: https://gitcode.com/bigmolihuan/spine-runtimes

步骤

  1. 克隆官方仓库:https://github.com/EsotericSoftware/spine-runtimes

  2. 移动c和c++源文件,在spine-flutter目录执行

    复制代码
    ./setup.sh
  3. 删除忽略文件(我们需要用git的方式直接拉取依赖则必须包含c和c++源文件)

    • 删除spine-flutter目录.gitignore中的 src/spine-c
    • 删除项目主目录中.gitignore中的 spine-flutter/src/spine-cpp (有多个)
  4. 在spine-flutter目录执行

    复制代码
    flutter create . --platforms ohos --org com.esotericsoftware.spine
  5. 在spine-flutter目录的pubspec.yaml中对应位置添加

    复制代码
          ohos:
            ffiPlugin: true
  6. 在spine-flutter目录lib/spine_dart_init.dart对应位置添加

    复制代码
    || Platform.operatingSystem == 'ohos'
  7. 提交到仓库即可

相关推荐
恋猫de小郭5 小时前
Flutter THLC 的 WebView 滚动终于从 70 FPS 提升到 120 FPS
android·前端·flutter
贾伟康5 小时前
HarmonyOS API 26 HMAF Skill 端侧 A2A 消息去重与上下文最小化
harmonyos·arkts·skill·a2a·hmaf
贾伟康5 小时前
HarmonyOS API 26 HMAF Skill 多 Skill 冲突仲裁与可恢复执行
harmonyos·arkts·智能体·skill·hmaf
钉先生贾5 小时前
毕业项目:从上游更新到回归发布的完整维护闭环
华为·harmonyos
行者-全栈开发6 小时前
【鸿蒙心迹】权限申请全流程——从声明到用户授权的完整链路(HarmonyOS 7.x)
华为·harmonyos
好的佩奇16 小时前
Dart 之扩展类型
android·flutter·dart
KevinChaos1 天前
阳台小花园开发手记 01|HarmonyOS 7.0 互动卡片:小花园为何要两套界面
华为·harmonyos
Ranger09291 天前
下一代鸿蒙打包工具链:arkdown
harmonyos
程序猿追1 天前
一个工程面向手机与二合一:HarmonyOS 6 部署配置和本地手记
华为·智能手机·harmonyos
恋猫de小郭1 天前
Flutter 下 AOT 一个你怎么都想不出来的 Bug ,JIT 正常的计算,在 AOT 居然算错了
android·前端·flutter