Skip to content

Commit

Permalink
release libsodium 1.0.19 update
Browse files Browse the repository at this point in the history
  • Loading branch information
Skycoder42 committed Sep 23, 2023
1 parent 29103ed commit 6d127bf
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 4 deletions.
9 changes: 9 additions & 0 deletions packages/sodium/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,14 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [2.3.0] - 2023-09-23
### Changed
- Update supported libsodium version to 1.0.19
- The library will still work with older versions, but it is recommended to upgrade your binaries to 1.0.19
- Any modifications to the API in future versions may not be compatible with older versions of libsodium
- Update dependencies
- Update tooling for building libsodium in the CI

## [2.2.0] - 2023-09-12
### Added
- Add implementation for `crypto_aead_chacha20poly1305` as `sodium.crypto.aeadChaCha20Poly1305`. (#61)
Expand Down Expand Up @@ -155,6 +163,7 @@ changed, only the name of the getter. (#61)
### Added
- Initial stable release

[2.3.0]: https://github.com/Skycoder42/libsodium_dart_bindings/compare/sodium-v2.2.0...sodium-v2.3.0
[2.2.0]: https://github.com/Skycoder42/libsodium_dart_bindings/compare/sodium-v2.1.2...sodium-v2.2.0
[2.1.2]: https://github.com/Skycoder42/libsodium_dart_bindings/compare/sodium-v2.1.1...sodium-v2.1.2
[2.1.1]: https://github.com/Skycoder42/libsodium_dart_bindings/compare/sodium-v2.1.0...sodium-v2.1.1
Expand Down
2 changes: 1 addition & 1 deletion packages/sodium/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: sodium
description: Dart bindings for libsodium, for the Dart-VM and for the Web
version: 2.2.0
version: 2.3.0
homepage: https://github.com/Skycoder42/libsodium_dart_bindings

environment:
Expand Down
8 changes: 5 additions & 3 deletions packages/sodium/test/integration/vm_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,13 @@ class VmTestRunner extends SumoTestRunner {
fail('Operating system ${Platform.operatingSystem} not supported');
}

expect(File(libSodiumPath).existsSync(), isTrue);
final libSodiumFile = File(libSodiumPath).absolute;

expect(libSodiumFile.existsSync(), isTrue);
// ignore: avoid_print
print('Found libsodium at: $libSodiumPath');
print('Found libsodium at: ${libSodiumFile.path}');
return SodiumSumoInit.init2(
() => DynamicLibrary.open(libSodiumPath),
() => DynamicLibrary.open(libSodiumFile.path),
);
}
}
Expand Down

0 comments on commit 6d127bf

Please sign in to comment.