最新 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. 提交到仓库即可

相关推荐
用户294694054481610 小时前
DSH Desktop - Electron on HarmonyOS Edition
harmonyos·deepseek
好的佩奇10 小时前
Dart 之类型系统
flutter·dart
年少无知且疯狂11 小时前
【Unity】Shader spine动画冻结效果
unity·spine
IsITGirl12 小时前
HarmonyOS 鸿蒙 WuKong 稳定性测试报错 Failed to connect to AAMS(已解决)
华为·harmonyos
万物智能信息科技13 小时前
鸿蒙RS232驱动开发—【万物智能之开源鸿蒙OpenHarmony系统实战开发系列教程】
驱动开发·华为·开源·harmonyos·鸿蒙
less_1213815 小时前
鸿蒙 WPS Open SDK 接入指南:凭据申请、HAR 集成与 registerApp 校验
华为·harmonyos·wps
恋猫de小郭17 小时前
Dart 3.15 新特性:this 终于支持类型提升了
android·前端·flutter
威哥爱编程1 天前
HarmonyOS 7 Agent 开发实战 07:多 Agent 任务分解与反思
agent·harmonyos
威哥爱编程1 天前
HarmonyOS 7 Agent 开发实战 06:Agent 记忆与上下文管理
agent·harmonyos
HarmonyOS_SDK1 天前
【HarmonyOS SDK Skills】扫码能力一键构建,系统级高精度扫码秒实现
harmonyos