mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2025-12-21 01:36:02 +08:00
[flutter] Change package name to spine_flutter
This commit is contained in:
parent
ef3403d8ba
commit
f28f25da47
@ -1,3 +1,6 @@
|
|||||||
|
# 4.2.7
|
||||||
|
* Change package name from `esotericsoftware_spine_flutter` to `spine_flutter`.
|
||||||
|
|
||||||
# 4.2.6
|
# 4.2.6
|
||||||
* Fix analyzer errors, fix code style to adhere to Dart standards.
|
* Fix analyzer errors, fix code style to adhere to Dart standards.
|
||||||
|
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
// ignore_for_file: avoid_print
|
// ignore_for_file: avoid_print
|
||||||
import 'package:esotericsoftware_spine_flutter/spine_flutter.dart';
|
import 'package:spine_flutter/spine_flutter.dart';
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
|
|
||||||
class AnimationStateEvents extends StatelessWidget {
|
class AnimationStateEvents extends StatelessWidget {
|
||||||
|
|||||||
@ -1,4 +1,4 @@
|
|||||||
import 'package:esotericsoftware_spine_flutter/spine_flutter.dart';
|
import 'package:spine_flutter/spine_flutter.dart';
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
|
|
||||||
class DebugRendering extends StatelessWidget {
|
class DebugRendering extends StatelessWidget {
|
||||||
|
|||||||
@ -1,4 +1,4 @@
|
|||||||
import 'package:esotericsoftware_spine_flutter/spine_flutter.dart';
|
import 'package:spine_flutter/spine_flutter.dart';
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:flutter/painting.dart' as painting;
|
import 'package:flutter/painting.dart' as painting;
|
||||||
import 'package:raw_image_provider/raw_image_provider.dart';
|
import 'package:raw_image_provider/raw_image_provider.dart';
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
import 'dart:math';
|
import 'dart:math';
|
||||||
|
|
||||||
import 'package:esotericsoftware_spine_flutter/spine_flutter.dart';
|
import 'package:spine_flutter/spine_flutter.dart';
|
||||||
import 'package:flame/components.dart';
|
import 'package:flame/components.dart';
|
||||||
import 'package:flame/game.dart';
|
import 'package:flame/game.dart';
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
|
|||||||
@ -1,4 +1,4 @@
|
|||||||
import 'package:esotericsoftware_spine_flutter/spine_flutter.dart';
|
import 'package:spine_flutter/spine_flutter.dart';
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
|
|
||||||
class IkFollowing extends StatefulWidget {
|
class IkFollowing extends StatefulWidget {
|
||||||
|
|||||||
@ -1,4 +1,4 @@
|
|||||||
import 'package:esotericsoftware_spine_flutter/spine_flutter.dart';
|
import 'package:spine_flutter/spine_flutter.dart';
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:spine_flutter_example/debug_rendering.dart';
|
import 'package:spine_flutter_example/debug_rendering.dart';
|
||||||
|
|
||||||
|
|||||||
@ -1,4 +1,4 @@
|
|||||||
import 'package:esotericsoftware_spine_flutter/spine_flutter.dart';
|
import 'package:spine_flutter/spine_flutter.dart';
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
|
|
||||||
class PlayPauseAnimation extends StatefulWidget {
|
class PlayPauseAnimation extends StatefulWidget {
|
||||||
|
|||||||
@ -1,4 +1,4 @@
|
|||||||
import 'package:esotericsoftware_spine_flutter/spine_flutter.dart';
|
import 'package:spine_flutter/spine_flutter.dart';
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
|
|
||||||
class SimpleAnimation extends StatelessWidget {
|
class SimpleAnimation extends StatelessWidget {
|
||||||
|
|||||||
@ -6,7 +6,7 @@ list(APPEND FLUTTER_PLUGIN_LIST
|
|||||||
)
|
)
|
||||||
|
|
||||||
list(APPEND FLUTTER_FFI_PLUGIN_LIST
|
list(APPEND FLUTTER_FFI_PLUGIN_LIST
|
||||||
esotericsoftware_spine_flutter
|
spine_flutter
|
||||||
)
|
)
|
||||||
|
|
||||||
set(PLUGIN_BUNDLED_LIBRARIES)
|
set(PLUGIN_BUNDLED_LIBRARIES)
|
||||||
|
|||||||
@ -1,21 +1,21 @@
|
|||||||
PODS:
|
PODS:
|
||||||
- esotericsoftware_spine_flutter (0.0.1):
|
|
||||||
- FlutterMacOS
|
|
||||||
- FlutterMacOS (1.0.0)
|
- FlutterMacOS (1.0.0)
|
||||||
|
- spine_flutter (0.0.1):
|
||||||
|
- FlutterMacOS
|
||||||
|
|
||||||
DEPENDENCIES:
|
DEPENDENCIES:
|
||||||
- esotericsoftware_spine_flutter (from `Flutter/ephemeral/.symlinks/plugins/esotericsoftware_spine_flutter/macos`)
|
|
||||||
- FlutterMacOS (from `Flutter/ephemeral`)
|
- FlutterMacOS (from `Flutter/ephemeral`)
|
||||||
|
- spine_flutter (from `Flutter/ephemeral/.symlinks/plugins/spine_flutter/macos`)
|
||||||
|
|
||||||
EXTERNAL SOURCES:
|
EXTERNAL SOURCES:
|
||||||
esotericsoftware_spine_flutter:
|
|
||||||
:path: Flutter/ephemeral/.symlinks/plugins/esotericsoftware_spine_flutter/macos
|
|
||||||
FlutterMacOS:
|
FlutterMacOS:
|
||||||
:path: Flutter/ephemeral
|
:path: Flutter/ephemeral
|
||||||
|
spine_flutter:
|
||||||
|
:path: Flutter/ephemeral/.symlinks/plugins/spine_flutter/macos
|
||||||
|
|
||||||
SPEC CHECKSUMS:
|
SPEC CHECKSUMS:
|
||||||
esotericsoftware_spine_flutter: 9222ab83a8f5635976f03740fa1eb809809f2b4a
|
|
||||||
FlutterMacOS: 8f6f14fa908a6fb3fba0cd85dbd81ec4b251fb24
|
FlutterMacOS: 8f6f14fa908a6fb3fba0cd85dbd81ec4b251fb24
|
||||||
|
spine_flutter: 9cf72fc0088c2820e80a4d3dc83ba29ac58f40d1
|
||||||
|
|
||||||
PODFILE CHECKSUM: 353c8bcc5d5b0994e508d035b5431cfe18c1dea7
|
PODFILE CHECKSUM: 353c8bcc5d5b0994e508d035b5431cfe18c1dea7
|
||||||
|
|
||||||
|
|||||||
@ -41,13 +41,6 @@ packages:
|
|||||||
url: "https://pub.dev"
|
url: "https://pub.dev"
|
||||||
source: hosted
|
source: hosted
|
||||||
version: "1.0.5"
|
version: "1.0.5"
|
||||||
esotericsoftware_spine_flutter:
|
|
||||||
dependency: "direct main"
|
|
||||||
description:
|
|
||||||
path: ".."
|
|
||||||
relative: true
|
|
||||||
source: path
|
|
||||||
version: "4.2.6"
|
|
||||||
ffi:
|
ffi:
|
||||||
dependency: transitive
|
dependency: transitive
|
||||||
description:
|
description:
|
||||||
@ -170,6 +163,13 @@ packages:
|
|||||||
url: "https://pub.dev"
|
url: "https://pub.dev"
|
||||||
source: hosted
|
source: hosted
|
||||||
version: "1.9.1"
|
version: "1.9.1"
|
||||||
|
spine_flutter:
|
||||||
|
dependency: "direct main"
|
||||||
|
description:
|
||||||
|
path: ".."
|
||||||
|
relative: true
|
||||||
|
source: path
|
||||||
|
version: "4.2.7"
|
||||||
string_scanner:
|
string_scanner:
|
||||||
dependency: transitive
|
dependency: transitive
|
||||||
description:
|
description:
|
||||||
|
|||||||
@ -10,7 +10,7 @@ dependencies:
|
|||||||
flutter:
|
flutter:
|
||||||
sdk: flutter
|
sdk: flutter
|
||||||
|
|
||||||
esotericsoftware_spine_flutter:
|
spine_flutter:
|
||||||
path: ../
|
path: ../
|
||||||
cupertino_icons: ^1.0.2
|
cupertino_icons: ^1.0.2
|
||||||
flame: ^1.4.0
|
flame: ^1.4.0
|
||||||
|
|||||||
@ -6,7 +6,7 @@ list(APPEND FLUTTER_PLUGIN_LIST
|
|||||||
)
|
)
|
||||||
|
|
||||||
list(APPEND FLUTTER_FFI_PLUGIN_LIST
|
list(APPEND FLUTTER_FFI_PLUGIN_LIST
|
||||||
esotericsoftware_spine_flutter
|
spine_flutter
|
||||||
)
|
)
|
||||||
|
|
||||||
set(PLUGIN_BUNDLED_LIBRARIES)
|
set(PLUGIN_BUNDLED_LIBRARIES)
|
||||||
|
|||||||
@ -1,9 +1,9 @@
|
|||||||
#
|
#
|
||||||
# To learn more about a Podspec see http://guides.cocoapods.org/syntax/podspec.html.
|
# To learn more about a Podspec see http://guides.cocoapods.org/syntax/podspec.html.
|
||||||
# Run `pod lib lint esotericsoftware_spine_flutter.podspec` to validate before publishing.
|
# Run `pod lib lint spine_flutter.podspec` to validate before publishing.
|
||||||
#
|
#
|
||||||
Pod::Spec.new do |s|
|
Pod::Spec.new do |s|
|
||||||
s.name = 'esotericsoftware_spine_flutter'
|
s.name = 'spine_flutter'
|
||||||
s.version = '0.0.1'
|
s.version = '0.0.1'
|
||||||
s.summary = 'A new Flutter FFI plugin project.'
|
s.summary = 'A new Flutter FFI plugin project.'
|
||||||
s.description = <<-DESC
|
s.description = <<-DESC
|
||||||
@ -3,7 +3,7 @@ import 'dart:io';
|
|||||||
|
|
||||||
import 'package:ffi/ffi.dart';
|
import 'package:ffi/ffi.dart';
|
||||||
|
|
||||||
const String _libName = 'esotericsoftware_spine_flutter';
|
const String _libName = 'spine_flutter';
|
||||||
final DynamicLibrary _dylib = () {
|
final DynamicLibrary _dylib = () {
|
||||||
if (Platform.isMacOS || Platform.isIOS) {
|
if (Platform.isMacOS || Platform.isIOS) {
|
||||||
return DynamicLibrary.open('$_libName.framework/$_libName');
|
return DynamicLibrary.open('$_libName.framework/$_libName');
|
||||||
|
|||||||
@ -61,9 +61,9 @@ Future<SpineFlutterFFI> initSpineFlutterFFI() async {
|
|||||||
registerOpaqueType<spine_skin_entry_wrapper>();
|
registerOpaqueType<spine_skin_entry_wrapper>();
|
||||||
registerOpaqueType<spine_skin_entries_wrapper>();
|
registerOpaqueType<spine_skin_entries_wrapper>();
|
||||||
|
|
||||||
await js.importLibrary('assets/packages/esotericsoftware_spine_flutter/lib/assets/libspine_flutter.js');
|
await js.importLibrary('assets/packages/spine_flutter/lib/assets/libspine_flutter.js');
|
||||||
Uint8List wasmBinaries =
|
Uint8List wasmBinaries =
|
||||||
(await rootBundle.load('packages/esotericsoftware_spine_flutter/lib/assets/libspine_flutter.wasm')).buffer.asUint8List();
|
(await rootBundle.load('packages/spine_flutter/lib/assets/libspine_flutter.wasm')).buffer.asUint8List();
|
||||||
_module = await EmscriptenModule.compile(wasmBinaries, 'libspine_flutter');
|
_module = await EmscriptenModule.compile(wasmBinaries, 'libspine_flutter');
|
||||||
}
|
}
|
||||||
Module? m = _module;
|
Module? m = _module;
|
||||||
|
|||||||
@ -4,7 +4,7 @@
|
|||||||
cmake_minimum_required(VERSION 3.10)
|
cmake_minimum_required(VERSION 3.10)
|
||||||
|
|
||||||
# Project-level configuration.
|
# Project-level configuration.
|
||||||
set(PROJECT_NAME "esotericsoftware_spine_flutter")
|
set(PROJECT_NAME "spine_flutter")
|
||||||
project(${PROJECT_NAME} LANGUAGES CXX)
|
project(${PROJECT_NAME} LANGUAGES CXX)
|
||||||
|
|
||||||
# Invoke the build for native code shared with the other target platforms.
|
# Invoke the build for native code shared with the other target platforms.
|
||||||
@ -14,9 +14,9 @@ add_subdirectory("${CMAKE_CURRENT_SOURCE_DIR}/../src" "${CMAKE_CURRENT_BINARY_DI
|
|||||||
# List of absolute paths to libraries that should be bundled with the plugin.
|
# List of absolute paths to libraries that should be bundled with the plugin.
|
||||||
# This list could contain prebuilt libraries, or libraries created by an
|
# This list could contain prebuilt libraries, or libraries created by an
|
||||||
# external build triggered from this build file.
|
# external build triggered from this build file.
|
||||||
set(esotericsoftware_spine_flutter_bundled_libraries
|
set(spine_flutter_bundled_libraries
|
||||||
# Defined in ../src/CMakeLists.txt.
|
# Defined in ../src/CMakeLists.txt.
|
||||||
# This can be changed to accomodate different builds.
|
# This can be changed to accomodate different builds.
|
||||||
$<TARGET_FILE:esotericsoftware_spine_flutter>
|
$<TARGET_FILE:spine_flutter>
|
||||||
PARENT_SCOPE
|
PARENT_SCOPE
|
||||||
)
|
)
|
||||||
|
|||||||
@ -1,9 +1,9 @@
|
|||||||
#
|
#
|
||||||
# To learn more about a Podspec see http://guides.cocoapods.org/syntax/podspec.html.
|
# To learn more about a Podspec see http://guides.cocoapods.org/syntax/podspec.html.
|
||||||
# Run `pod lib lint esotericsoftware_spine_flutter.podspec` to validate before publishing.
|
# Run `pod lib lint spine_flutter.podspec` to validate before publishing.
|
||||||
#
|
#
|
||||||
Pod::Spec.new do |s|
|
Pod::Spec.new do |s|
|
||||||
s.name = 'esotericsoftware_spine_flutter'
|
s.name = 'spine_flutter'
|
||||||
s.version = '0.0.1'
|
s.version = '0.0.1'
|
||||||
s.summary = 'A new Flutter FFI plugin project.'
|
s.summary = 'A new Flutter FFI plugin project.'
|
||||||
s.description = <<-DESC
|
s.description = <<-DESC
|
||||||
@ -1,6 +1,6 @@
|
|||||||
name: esotericsoftware_spine_flutter
|
name: spine_flutter
|
||||||
description: The official Spine Flutter Runtime to load, display and interact with Spine animations.
|
description: The official Spine Flutter Runtime to load, display and interact with Spine animations.
|
||||||
version: 4.2.6
|
version: 4.2.7
|
||||||
homepage: https://esotericsoftware.com
|
homepage: https://esotericsoftware.com
|
||||||
repository: https://github.com/esotericsoftware/spine-runtimes
|
repository: https://github.com/esotericsoftware/spine-runtimes
|
||||||
issue_tracker: https://github.com/esotericsoftware/spine-runtimes/issues
|
issue_tracker: https://github.com/esotericsoftware/spine-runtimes/issues
|
||||||
|
|||||||
@ -3,21 +3,21 @@
|
|||||||
# the plugin to fail to compile for some customers of the plugin.
|
# the plugin to fail to compile for some customers of the plugin.
|
||||||
cmake_minimum_required(VERSION 3.10)
|
cmake_minimum_required(VERSION 3.10)
|
||||||
|
|
||||||
project(esotericsoftware_spine_flutter_library VERSION 0.0.1)
|
project(pine_flutter_library VERSION 0.0.1)
|
||||||
|
|
||||||
file(GLOB SPINE_SOURCES "spine-cpp/src/**/*.cpp")
|
file(GLOB SPINE_SOURCES "spine-cpp/src/**/*.cpp")
|
||||||
|
|
||||||
add_library(esotericsoftware_spine_flutter SHARED
|
add_library(spine_flutter SHARED
|
||||||
"spine_flutter.cpp"
|
"spine_flutter.cpp"
|
||||||
${SPINE_SOURCES}
|
${SPINE_SOURCES}
|
||||||
)
|
)
|
||||||
|
|
||||||
set_target_properties(esotericsoftware_spine_flutter PROPERTIES
|
set_target_properties(spine_flutter PROPERTIES
|
||||||
PUBLIC_HEADER spine_flutter.h
|
PUBLIC_HEADER spine_flutter.h
|
||||||
OUTPUT_NAME "esotericsoftware_spine_flutter"
|
OUTPUT_NAME "spine_flutter"
|
||||||
)
|
)
|
||||||
target_include_directories(esotericsoftware_spine_flutter PUBLIC spine-cpp/include)
|
target_include_directories(spine_flutter PUBLIC spine-cpp/include)
|
||||||
target_compile_definitions(esotericsoftware_spine_flutter PUBLIC DART_SHARED_LIB)
|
target_compile_definitions(spine_flutter PUBLIC DART_SHARED_LIB)
|
||||||
|
|
||||||
if(${SPINE_FLUTTER_TESTBED})
|
if(${SPINE_FLUTTER_TESTBED})
|
||||||
set (CMAKE_CXX_STANDARD 11)
|
set (CMAKE_CXX_STANDARD 11)
|
||||||
|
|||||||
@ -5,7 +5,7 @@
|
|||||||
cmake_minimum_required(VERSION 3.14)
|
cmake_minimum_required(VERSION 3.14)
|
||||||
|
|
||||||
# Project-level configuration.
|
# Project-level configuration.
|
||||||
set(PROJECT_NAME "esotericsoftware_spine_flutter")
|
set(PROJECT_NAME "spine_flutter")
|
||||||
project(${PROJECT_NAME} LANGUAGES CXX)
|
project(${PROJECT_NAME} LANGUAGES CXX)
|
||||||
|
|
||||||
# Invoke the build for native code shared with the other target platforms.
|
# Invoke the build for native code shared with the other target platforms.
|
||||||
@ -15,9 +15,9 @@ add_subdirectory("${CMAKE_CURRENT_SOURCE_DIR}/../src" "${CMAKE_CURRENT_BINARY_DI
|
|||||||
# List of absolute paths to libraries that should be bundled with the plugin.
|
# List of absolute paths to libraries that should be bundled with the plugin.
|
||||||
# This list could contain prebuilt libraries, or libraries created by an
|
# This list could contain prebuilt libraries, or libraries created by an
|
||||||
# external build triggered from this build file.
|
# external build triggered from this build file.
|
||||||
set(esotericsoftware_spine_flutter_bundled_libraries
|
set(spine_flutter_bundled_libraries
|
||||||
# Defined in ../src/CMakeLists.txt.
|
# Defined in ../src/CMakeLists.txt.
|
||||||
# This can be changed to accomodate different builds.
|
# This can be changed to accomodate different builds.
|
||||||
$<TARGET_FILE:esotericsoftware_spine_flutter>
|
$<TARGET_FILE:spine_flutter>
|
||||||
PARENT_SCOPE
|
PARENT_SCOPE
|
||||||
)
|
)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user