From 236f769e70398e4e58927b80bbcfe6b23c1fae29 Mon Sep 17 00:00:00 2001 From: sneurlax Date: Wed, 9 Sep 2026 12:37:53 -0500 Subject: [PATCH 1/5] fix: remove residual Flutter SDK constraint from environment --- pubspec.yaml | 1 - 1 file changed, 1 deletion(-) diff --git a/pubspec.yaml b/pubspec.yaml index 52c0186..0720cdc 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -5,7 +5,6 @@ homepage: environment: sdk: ">=3.0.0 <4.0.0" - flutter: ">=3.10.2" dependencies: collection: ^1.16.0 From 2b54e7da3afd1bd92b783a1da6482d30615f49a2 Mon Sep 17 00:00:00 2001 From: sneurlax Date: Wed, 9 Sep 2026 12:38:10 -0500 Subject: [PATCH 2/5] docs: correct stale template package description --- pubspec.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pubspec.yaml b/pubspec.yaml index 0720cdc..42f1bda 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,5 +1,5 @@ name: stack_wallet_backup -description: A new Flutter plugin project. +description: Create and restore secure encrypted backups using a passphrase. version: 0.0.1 homepage: From 584030c09ae98cb52cae098498f15f3f83653d55 Mon Sep 17 00:00:00 2001 From: sneurlax Date: Wed, 9 Sep 2026 12:38:31 -0500 Subject: [PATCH 3/5] chore(release): bump version to 0.1.0 --- CHANGELOG.md | 6 ++++++ pubspec.yaml | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 41cc7d8..ac220e3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,9 @@ +## 0.1.0 + +* Convert from a Flutter plugin to a pure Dart package; platform-specific code was never used. +* BREAKING: remove the `StackWalletBackup` class and the method channel / platform interface scaffolding, which only exposed `getPlatformVersion`. +* Migrate tests from `flutter_test` to `package:test`. + ## 0.0.1 * TODO: Describe initial release. diff --git a/pubspec.yaml b/pubspec.yaml index 42f1bda..33379f8 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,6 +1,6 @@ name: stack_wallet_backup description: Create and restore secure encrypted backups using a passphrase. -version: 0.0.1 +version: 0.1.0 homepage: environment: From 9358ea34d4ac51a2528de55ef78ebb0bcf4cae52 Mon Sep 17 00:00:00 2001 From: sneurlax Date: Wed, 9 Sep 2026 12:38:58 -0500 Subject: [PATCH 4/5] docs: add pure Dart usage example --- example/main.dart | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 example/main.dart diff --git a/example/main.dart b/example/main.dart new file mode 100644 index 0000000..f27ff9d --- /dev/null +++ b/example/main.dart @@ -0,0 +1,18 @@ +import 'dart:convert'; +import 'dart:typed_data'; + +import 'package:stack_wallet_backup/stack_wallet_backup.dart'; + +Future main() async { + const String passphrase = 'correct horse battery staple'; + final Uint8List plaintext = + Uint8List.fromList(utf8.encode('A secret message to be backed up')); + + // Encrypt with a passphrase + final Uint8List blob = await encryptWithPassphrase(passphrase, plaintext); + print('Encrypted ${plaintext.length} bytes to a ${blob.length} byte blob'); + + // Decrypt with the same passphrase + final Uint8List decrypted = await decryptWithPassphrase(passphrase, blob); + print('Decrypted: ${utf8.decode(decrypted)}'); +} From 05188c99e3fba255583c44e7cbff45ad97499254 Mon Sep 17 00:00:00 2001 From: sneurlax Date: Wed, 9 Sep 2026 12:39:17 -0500 Subject: [PATCH 5/5] chore(deps): raise minimum test package constraint to 1.24.0 --- pubspec.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pubspec.yaml b/pubspec.yaml index 33379f8..f601e72 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -12,5 +12,5 @@ dependencies: tuple: ^2.0.0 dev_dependencies: - test: ^1.0.0 + test: ^1.24.0 lints: ^6.0.0