From 7c76c5803c086b04065bfceee323f948ce9a3c7c Mon Sep 17 00:00:00 2001 From: Mario Zechner Date: Wed, 8 Mar 2023 15:02:11 +0100 Subject: [PATCH 1/2] [flutter] Add publishing script, fix changelog. --- spine-flutter/CHANGELOG.md | 5 +++++ spine-flutter/example/pubspec.yaml | 2 +- spine-flutter/publish.sh | 6 ++++++ spine-flutter/pubspec.yaml | 2 +- 4 files changed, 13 insertions(+), 2 deletions(-) create mode 100755 spine-flutter/publish.sh diff --git a/spine-flutter/CHANGELOG.md b/spine-flutter/CHANGELOG.md index 877ac40a7..13d41cc75 100644 --- a/spine-flutter/CHANGELOG.md +++ b/spine-flutter/CHANGELOG.md @@ -1,3 +1,8 @@ +# 4.1.1 +* Backport to 4.1 spine-runtimes branch. +* Blend mode support. +* Hot-reload support. The underlying `SkeletonDrawable` will be retained if the asset file names and type provided to the `SpineWidget` constructor has not changed. + # 4.2.11 * Update README.md with setup and development instructions. diff --git a/spine-flutter/example/pubspec.yaml b/spine-flutter/example/pubspec.yaml index e5b6927aa..64ddec812 100644 --- a/spine-flutter/example/pubspec.yaml +++ b/spine-flutter/example/pubspec.yaml @@ -4,7 +4,7 @@ publish_to: 'none' version: 1.0.0+1 environment: - sdk: ">=2.17.6 <3.0.0" + sdk: '>=2.17.6 <4.0.0' flutter: ">=3.7.3" dependencies: diff --git a/spine-flutter/publish.sh b/spine-flutter/publish.sh new file mode 100755 index 000000000..fe160ffd7 --- /dev/null +++ b/spine-flutter/publish.sh @@ -0,0 +1,6 @@ +#!/bin/sh +set -e +./setup.sh +./compile-wasm.sh +dart pub publish --dry-run +dart pub publish \ No newline at end of file diff --git a/spine-flutter/pubspec.yaml b/spine-flutter/pubspec.yaml index d6ba5f4eb..a2e50cd2a 100644 --- a/spine-flutter/pubspec.yaml +++ b/spine-flutter/pubspec.yaml @@ -7,7 +7,7 @@ issue_tracker: https://github.com/esotericsoftware/spine-runtimes/issues documentation: https://esotericsoftware.com/spine-flutter environment: - sdk: ">=2.17.6 <3.0.0" + sdk: '>=2.17.6 <4.0.0' flutter: ">=3.7.6" dependencies: From f09f5b73a0e5fe9efbb9b1f5f4ade35ad73e4aa0 Mon Sep 17 00:00:00 2001 From: Harald Csaszar Date: Mon, 13 Mar 2023 16:24:56 +0100 Subject: [PATCH 2/2] [unity] Fixed texture preset not being applied when more atlas pages are added later. Fixed atlas page count not being updated immediately after change. Closes #2266. --- .../Spine/Editor/spine-unity/Editor/Utility/AssetUtility.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/spine-unity/Assets/Spine/Editor/spine-unity/Editor/Utility/AssetUtility.cs b/spine-unity/Assets/Spine/Editor/spine-unity/Editor/Utility/AssetUtility.cs index 2261ec2b9..80d9ab792 100644 --- a/spine-unity/Assets/Spine/Editor/spine-unity/Editor/Utility/AssetUtility.cs +++ b/spine-unity/Assets/Spine/Editor/spine-unity/Editor/Utility/AssetUtility.cs @@ -634,6 +634,7 @@ namespace Spine.Unity.Editor { atlasAsset.atlasFile = atlasText; List pageFiles = new List(); + atlasAsset.Clear(); // force reload Atlas atlas = atlasAsset.GetAtlas(onlyMetaData: true); if (atlas != null) { foreach (AtlasPage page in atlas.Pages)