Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,12 @@ This project follows [Semantic Versioning 2.0.0](https://semver.org/spec/v2.0.0.

## [Unreleased]

## [0.0.3] - 2026-05-21

### Changed

- **`xml` constraint downgraded `^7.0.0` -> `^6.5.0`** (`pubspec.yaml`): pub.dev resolution now intersects with `image ^4.0.0` (used by `fluttersdk_dusk`'s `ext_screenshot.dart` via `xml ^6.0.1`). The 0.0.2 cut pinned `xml ^7.0.0`, which made `fluttersdk_dusk` unresolvable as a hosted dep alongside `fluttersdk_artisan 0.0.2` because no `image 5.x` exists to satisfy the upper bound. Reverted the 8 `XmlName.parts('localname')` migration sites in `lib/src/helpers/plist_writer.dart` back to `XmlName('localname')` so the file compiles cleanly against xml 6.x (where `.parts` did not yet exist). xml 7 migration is deferred until `image` ships a release on the xml 7 line.

## [0.0.2] - 2026-05-20

### Breaking
Expand Down
22 changes: 11 additions & 11 deletions example/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ packages:
path: ".."
relative: true
source: path
version: "0.0.1"
version: "0.0.3"
frontend_server_client:
dependency: transitive
description:
Expand Down Expand Up @@ -262,10 +262,10 @@ packages:
dependency: transitive
description:
name: meta
sha256: "23f08335362185a5ea2ad3a4e597f1375e78bce8a040df5c600c8d3552ef2394"
sha256: "1741988757a65eb6b36abe716829688cf01910bbf91c34354ff7ec1c3de2b349"
url: "https://pub.dev"
source: hosted
version: "1.17.0"
version: "1.18.0"
mime:
dependency: transitive
description:
Expand Down Expand Up @@ -427,26 +427,26 @@ packages:
dependency: transitive
description:
name: test
sha256: "280d6d890011ca966ad08df7e8a4ddfab0fb3aa49f96ed6de56e3521347a9ae7"
sha256: "8d9ceddbab833f180fbefed08afa76d7c03513dfdba87ffcec2718b02bbcbf20"
url: "https://pub.dev"
source: hosted
version: "1.30.0"
version: "1.31.0"
test_api:
dependency: transitive
description:
name: test_api
sha256: "8161c84903fd860b26bfdefb7963b3f0b68fee7adea0f59ef805ecca346f0c7a"
sha256: "949a932224383300f01be9221c39180316445ecb8e7547f70a41a35bf421fb9e"
url: "https://pub.dev"
source: hosted
version: "0.7.10"
version: "0.7.11"
test_core:
dependency: transitive
description:
name: test_core
sha256: "0381bd1585d1a924763c308100f2138205252fb90c9d4eeaf28489ee65ccde51"
sha256: "1991d4cfe85d5043241acac92962c3977c8d2f2add1ee73130c7b286417d1d34"
url: "https://pub.dev"
source: hosted
version: "0.6.16"
version: "0.6.17"
typed_data:
dependency: transitive
description:
Expand Down Expand Up @@ -515,10 +515,10 @@ packages:
dependency: transitive
description:
name: xml
sha256: "67f0aff7be013d107995e9b75bf4e7f2c3ef2dfdb2c8e68024bba0a7fd5756a4"
sha256: "971043b3a0d3da28727e40ed3e0b5d18b742fa5a68665cca88e74b7876d5e025"
url: "https://pub.dev"
source: hosted
version: "7.0.1"
version: "6.6.1"
yaml:
dependency: transitive
description:
Expand Down
17 changes: 8 additions & 9 deletions lib/src/helpers/plist_writer.dart
Original file line number Diff line number Diff line change
Expand Up @@ -63,13 +63,13 @@ class PlistWriter {
return;
}
// 2. Different value: replace the sibling in place.
final replacement = XmlElement(XmlName.parts('string'))
final replacement = XmlElement(XmlName('string'))
..children.add(XmlText(value));
existing.replace(replacement);
} else {
// 3. Key is absent: append the pair.
_appendPair(dict, key,
XmlElement(XmlName.parts('string'))..children.add(XmlText(value)));
XmlElement(XmlName('string'))..children.add(XmlText(value)));
}

_write(plistPath, doc);
Expand Down Expand Up @@ -98,10 +98,10 @@ class PlistWriter {
return;
}
// 2. Different value: replace in place.
existing.replace(XmlElement(XmlName.parts(tagName)));
existing.replace(XmlElement(XmlName(tagName)));
} else {
// 3. Key is absent: append the pair.
_appendPair(dict, key, XmlElement(XmlName.parts(tagName)));
_appendPair(dict, key, XmlElement(XmlName(tagName)));
}

_write(plistPath, doc);
Expand Down Expand Up @@ -179,7 +179,7 @@ class PlistWriter {

// 3. Append the new <string> child.
existing.children
.add(XmlElement(XmlName.parts('string'))..children.add(XmlText(value)));
.add(XmlElement(XmlName('string'))..children.add(XmlText(value)));
_write(plistPath, doc);
}

Expand Down Expand Up @@ -266,18 +266,17 @@ class PlistWriter {
/// Build an `<array>` element whose children are `<string>` elements, one
/// per entry in [values].
static XmlElement _buildArray(List<String> values) {
final array = XmlElement(XmlName.parts('array'));
final array = XmlElement(XmlName('array'));
for (final v in values) {
array.children
.add(XmlElement(XmlName.parts('string'))..children.add(XmlText(v)));
.add(XmlElement(XmlName('string'))..children.add(XmlText(v)));
}
return array;
}

/// Append a `<key>` + [valueEl] pair to [dict].
static void _appendPair(XmlElement dict, String key, XmlElement valueEl) {
dict.children
.add(XmlElement(XmlName.parts('key'))..children.add(XmlText(key)));
dict.children.add(XmlElement(XmlName('key'))..children.add(XmlText(key)));
dict.children.add(valueEl);
}

Expand Down
4 changes: 2 additions & 2 deletions pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: fluttersdk_artisan
description: "Composable Dart CLI framework and stdio MCP server for Flutter. Scaffolding, code generation, transactional plugin installs, hot reload, REPL, and AI agent tooling."
version: 0.0.2
version: 0.0.3
homepage: https://fluttersdk.com/artisan
repository: https://github.com/fluttersdk/artisan
issue_tracker: https://github.com/fluttersdk/artisan/issues
Expand All @@ -26,7 +26,7 @@ dependencies:
path: ^1.9.0
stream_channel: ^2.1.0
vm_service: ^15.2.0
xml: ^7.0.0
xml: ^6.5.0
yaml: ^3.1.3
yaml_edit: ^2.2.3

Expand Down