Skip to content

Commit

Permalink
update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
Skycoder42 committed Sep 6, 2023
1 parent e621152 commit 1b601bb
Show file tree
Hide file tree
Showing 7 changed files with 47 additions and 36 deletions.
9 changes: 8 additions & 1 deletion packages/sodium/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@ 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.1.2] - 2023-09-06
### Changed
- Update min required dart SDK to 3.1.0
- Update dependencies
- Update formatting

## [2.1.1] - 2023-06-06
### Changed
- Update dependencies
Expand Down Expand Up @@ -138,6 +144,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Added
- Initial stable release

[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
[2.1.0]: https://github.com/Skycoder42/libsodium_dart_bindings/compare/sodium%2Fv2.0.1...sodium-v2.1.0
[2.0.1]: https://github.com/Skycoder42/libsodium_dart_bindings/compare/sodium%2Fv2.0.0...sodium%2Fv2.0.1
Expand All @@ -154,4 +161,4 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
[1.1.2]: https://github.com/Skycoder42/libsodium_dart_bindings/compare/sodium%2Fv1.1.1...sodium%2Fv1.1.2
[1.1.1]: https://github.com/Skycoder42/libsodium_dart_bindings/compare/sodium%2Fv1.1.0...sodium%2Fv1.1.1
[1.1.0]: https://github.com/Skycoder42/libsodium_dart_bindings/compare/sodium%2Fv1.0.0...sodium%2Fv1.1.0
[1.0.0]: https://github.com/Skycoder42/libsodium_dart_bindings/releases/tag/sodium%2Fv1.0.0
[1.0.0]: https://github.com/Skycoder42/libsodium_dart_bindings/releases/tag/sodium%2Fv1.0.0
2 changes: 1 addition & 1 deletion packages/sodium/example/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: sodium_example
description: Sample dart program for web and native

environment:
sdk: ">=2.18.2 <3.0.0"
sdk: ^3.1.0

dependencies:
sodium:
Expand Down
36 changes: 20 additions & 16 deletions packages/sodium/lib/src/ffi/bindings/libsodium.ffi.dart
Original file line number Diff line number Diff line change
Expand Up @@ -8088,9 +8088,9 @@ class LibSodiumFFI {
}

late final _randombytes_bufPtr = _lookup<
ffi.NativeFunction<
ffi.Void Function(
ffi.Pointer<ffi.Void>, ffi.Size)>>('randombytes_buf');
ffi
.NativeFunction<ffi.Void Function(ffi.Pointer<ffi.Void>, ffi.Size)>>(
'randombytes_buf');
late final _randombytes_buf = _randombytes_bufPtr
.asFunction<void Function(ffi.Pointer<ffi.Void>, int)>();

Expand Down Expand Up @@ -8336,9 +8336,9 @@ class LibSodiumFFI {
}

late final _sodium_memzeroPtr = _lookup<
ffi.NativeFunction<
ffi.Void Function(
ffi.Pointer<ffi.Void>, ffi.Size)>>('sodium_memzero');
ffi
.NativeFunction<ffi.Void Function(ffi.Pointer<ffi.Void>, ffi.Size)>>(
'sodium_memzero');
late final _sodium_memzero = _sodium_memzeroPtr
.asFunction<void Function(ffi.Pointer<ffi.Void>, int)>();

Expand Down Expand Up @@ -8630,8 +8630,9 @@ class LibSodiumFFI {
}

late final _sodium_mlockPtr = _lookup<
ffi.NativeFunction<
ffi.Int Function(ffi.Pointer<ffi.Void>, ffi.Size)>>('sodium_mlock');
ffi
.NativeFunction<ffi.Int Function(ffi.Pointer<ffi.Void>, ffi.Size)>>(
'sodium_mlock');
late final _sodium_mlock =
_sodium_mlockPtr.asFunction<int Function(ffi.Pointer<ffi.Void>, int)>();

Expand All @@ -8646,8 +8647,9 @@ class LibSodiumFFI {
}

late final _sodium_munlockPtr = _lookup<
ffi.NativeFunction<
ffi.Int Function(ffi.Pointer<ffi.Void>, ffi.Size)>>('sodium_munlock');
ffi
.NativeFunction<ffi.Int Function(ffi.Pointer<ffi.Void>, ffi.Size)>>(
'sodium_munlock');
late final _sodium_munlock =
_sodium_munlockPtr.asFunction<int Function(ffi.Pointer<ffi.Void>, int)>();

Expand Down Expand Up @@ -8676,9 +8678,9 @@ class LibSodiumFFI {
}

late final _sodium_allocarrayPtr = _lookup<
ffi.NativeFunction<
ffi.Pointer<ffi.Void> Function(
ffi.Size, ffi.Size)>>('sodium_allocarray');
ffi
.NativeFunction<ffi.Pointer<ffi.Void> Function(ffi.Size, ffi.Size)>>(
'sodium_allocarray');
late final _sodium_allocarray = _sodium_allocarrayPtr
.asFunction<ffi.Pointer<ffi.Void> Function(int, int)>();

Expand Down Expand Up @@ -9283,7 +9285,8 @@ class LibSodiumFFI {

late final _crypto_box_curve25519xchacha20poly1305_open_easy_afternmPtr =
_lookup<
ffi.NativeFunction<
ffi
.NativeFunction<
ffi.Int Function(
ffi.Pointer<ffi.UnsignedChar>,
ffi.Pointer<ffi.UnsignedChar>,
Expand Down Expand Up @@ -11054,8 +11057,9 @@ final class randombytes_implementation extends ffi.Struct {

external ffi.Pointer<ffi.NativeFunction<ffi.Void Function()>> stir;

external ffi.Pointer<
ffi.NativeFunction<ffi.Uint32 Function(ffi.Uint32 upper_bound)>> uniform;
external ffi
.Pointer<ffi.NativeFunction<ffi.Uint32 Function(ffi.Uint32 upper_bound)>>
uniform;

external ffi.Pointer<
ffi.NativeFunction<
Expand Down
30 changes: 15 additions & 15 deletions packages/sodium/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,32 +1,32 @@
name: sodium
description: Dart bindings for libsodium, for the Dart-VM and for the Web
version: 2.1.1
version: 2.1.2
homepage: https://github.com/Skycoder42/libsodium_dart_bindings

environment:
sdk: ^3.0.0
sdk: ^3.1.0

dependencies:
ffi: ^2.0.2
freezed_annotation: ^2.2.0
ffi: ^2.1.0
freezed_annotation: ^2.4.1
js: ^0.6.7
meta: ^1.9.1

dev_dependencies:
args: ^2.4.2
build_runner: ^2.4.4
cider: ">=0.1.5 <0.3.0"
collection: ^1.17.2
build_runner: ^2.4.6
cider: ^0.2.3
collection: ^1.18.0
coverage: ^1.6.3
custom_lint: ">=0.4.0 <0.6.0"
dart_pre_commit: ^5.1.0+1
dart_test_tools: ^5.1.1
ffigen: ">=8.0.2 <10.0.0"
freezed: ^2.3.5
mocktail: ">=0.3.0 <2.0.0"
custom_lint: ^0.5.3
dart_pre_commit: ^5.2.1
dart_test_tools: ^5.3.0
ffigen: ^9.0.1
freezed: ^2.4.2
mocktail: ^1.0.0
path: ^1.8.3
test: ^1.24.3
tuple: ^2.0.1
test: ^1.24.6
tuple: ^2.0.2

ffigen:
output: "lib/src/ffi/bindings/libsodium.ffi.dart"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ void main() {
),
() => mockLibSodiumFFI.sodium_mprotect_noaccess(
Pointer.fromAddress(testNativeHandle[0]),
)
),
]);

expect(result.publicKey, testPublicKey);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ void main() {
),
() => mockLibSodiumFFI.sodium_mprotect_noaccess(
Pointer.fromAddress(testNativeHandle[0]),
)
),
]);

expect(result.detach(), testNativeHandle);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1010,7 +1010,7 @@ void main() {
1.100000023841858,
2.200000047683716,
3.299999952316284,
testData[4]
testData[4],
],
);
});
Expand Down

0 comments on commit 1b601bb

Please sign in to comment.