Skip to content

Commit

Permalink
Require Dart 3.2, update and fix lints (#158)
Browse files Browse the repository at this point in the history
  • Loading branch information
kevmoo committed Jan 2, 2024
1 parent 63e9a90 commit f2efb98
Show file tree
Hide file tree
Showing 9 changed files with 17 additions and 13 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ jobs:
matrix:
# Add macos-latest and/or windows-latest if relevant for this package.
os: [ubuntu-latest]
sdk: [2.19.0, dev]
sdk: [3.2, dev]
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
- uses: dart-lang/setup-dart@b64355ae6ca0b5d484f0106a033dd1388965d06d
Expand Down
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 3.0.4-wip

* Require Dart 3.2

## 3.0.3

* Require Dart 2.19.0.
Expand Down
1 change: 0 additions & 1 deletion analysis_options.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,3 @@ linter:
- avoid_unused_constructor_parameters
- cancel_subscriptions
- package_api_docs
- test_types_in_equals
2 changes: 1 addition & 1 deletion lib/src/md5.dart
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ const _shiftAmounts = [
10, 15, 21, 06, 10, 15, 21
];

/// The concrete implementation of [MD5].
/// The concrete implementation of `MD5`.
///
/// This is separate so that it can extend [HashSink] without leaking additional
/// public members.
Expand Down
2 changes: 1 addition & 1 deletion lib/src/sha1.dart
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ class _Sha1 extends Hash {
ByteConversionSink.from(_Sha1Sink(sink));
}

/// The concrete implementation of [Sha1].
/// The concrete implementation of `Sha1`.
///
/// This is separate so that it can extend [HashSink] without leaking additional
/// public members.
Expand Down
4 changes: 2 additions & 2 deletions lib/src/sha256.dart
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ abstract class _Sha32BitSink extends HashSink {
}
}

/// The concrete implementation of [Sha256].
/// The concrete implementation of `Sha256`.
///
/// This is separate so that it can extend [HashSink] without leaking additional
/// public members.
Expand All @@ -164,7 +164,7 @@ class _Sha256Sink extends _Sha32BitSink {
]));
}

/// The concrete implementation of [Sha224].
/// The concrete implementation of `Sha224`.
///
/// This is separate so that it can extend [HashSink] without leaking additional
/// public members.
Expand Down
4 changes: 2 additions & 2 deletions lib/src/sha512_fastsinks.dart
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ abstract class _Sha64BitSink extends HashSink {
}
}

/// The concrete implementation of [Sha384].
/// The concrete implementation of `Sha384`.
///
/// This is separate so that it can extend [HashSink] without leaking additional
/// public members.
Expand All @@ -119,7 +119,7 @@ class Sha384Sink extends _Sha64BitSink {
]));
}

/// The concrete implementation of [Sha512].
/// The concrete implementation of `Sha512`.
///
/// This is separate so that it can extend [HashSink] without leaking additional
/// public members.
Expand Down
4 changes: 2 additions & 2 deletions lib/src/sha512_slowsinks.dart
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ abstract class _Sha64BitSink extends HashSink {
}
}

/// The concrete implementation of [Sha384].
/// The concrete implementation of `Sha384`.
///
/// This is separate so that it can extend [HashSink] without leaking additional
/// public members.
Expand Down Expand Up @@ -302,7 +302,7 @@ class Sha384Sink extends _Sha64BitSink {
]));
}

/// The concrete implementation of [Sha512].
/// The concrete implementation of `Sha512`.
///
/// This is separate so that it can extend [HashSink] without leaking additional
/// public members.
Expand Down
7 changes: 4 additions & 3 deletions pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,17 +1,18 @@
name: crypto
version: 3.0.3
version: 3.0.4-wip
description: Implementations of SHA, MD5, and HMAC cryptographic functions.
repository: https://github.com/dart-lang/crypto
topics:
- crypto
- cryptography

environment:
sdk: '>=2.19.0 <3.0.0'
sdk: ^3.2.0

dependencies:
typed_data: ^1.3.0

dev_dependencies:
convert: ^3.0.0
dart_flutter_team_lints: ^1.0.0
dart_flutter_team_lints: ^2.0.0
test: ^1.16.0

0 comments on commit f2efb98

Please sign in to comment.