Skip to content

Commit

Permalink
upgrade dependencies. fix warnings.
Browse files Browse the repository at this point in the history
  • Loading branch information
hpoul committed Jan 16, 2025
1 parent 4e89302 commit 444377e
Show file tree
Hide file tree
Showing 4 changed files with 36 additions and 27 deletions.
46 changes: 27 additions & 19 deletions example/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,10 @@ packages:
dependency: transitive
description:
name: dio
sha256: "0dfb6b6a1979dac1c1245e17cef824d7b452ea29bd33d3467269f9bef3715fb0"
sha256: "5598aa796bbf4699afd5c67c0f5f6e2ed542afc956884b9cd58c306966efc260"
url: "https://pub.dev"
source: hosted
version: "5.6.0"
version: "5.7.0"
dio_web_adapter:
dependency: transitive
description:
Expand Down Expand Up @@ -89,10 +89,10 @@ packages:
dependency: "direct dev"
description:
name: flutter_lints
sha256: "3f41d009ba7172d5ff9be5f6e6e6abb4300e263aab8866d2a0842ed2a70f8f0c"
sha256: "5398f14efa795ffb7a33e9b6a08798b26a180edac4ad7db3f231e40f82ce11e1"
url: "https://pub.dev"
source: hosted
version: "4.0.0"
version: "5.0.0"
flutter_test:
dependency: "direct dev"
description: flutter
Expand All @@ -103,22 +103,30 @@ packages:
description: flutter
source: sdk
version: "0.0.0"
http:
dependency: transitive
description:
name: http
sha256: b9c29a161230ee03d3ccf545097fccd9b87a5264228c5d348202e0f0c28f9010
url: "https://pub.dev"
source: hosted
version: "1.2.2"
http_parser:
dependency: transitive
description:
name: http_parser
sha256: "2aa08ce0341cc9b354a498388e30986515406668dbcc4f7c950c3e715496693b"
sha256: "178d74305e7866013777bab2c3d8726205dc5a4dd935297175b19a23a2e66571"
url: "https://pub.dev"
source: hosted
version: "4.0.2"
version: "4.1.2"
intl:
dependency: transitive
description:
name: intl
sha256: d6f56758b7d3014a48af9701c085700aac781a92a87a62b1333b46d8879661cf
sha256: "00f33b908655e606b86d2ade4710a231b802eec6f11e87e4ea3783fd72077a50"
url: "https://pub.dev"
source: hosted
version: "0.19.0"
version: "0.20.1"
leak_tracker:
dependency: transitive
description:
Expand Down Expand Up @@ -147,18 +155,18 @@ packages:
dependency: transitive
description:
name: lints
sha256: "976c774dd944a42e83e2467f4cc670daef7eed6295b10b36ae8c85bcbf828235"
sha256: c35bb79562d980e9a453fc715854e1ed39e24e7d0297a880ef54e17f9874a9d7
url: "https://pub.dev"
source: hosted
version: "4.0.0"
version: "5.1.1"
logging:
dependency: "direct main"
description:
name: logging
sha256: "623a88c9594aa774443aa3eb2d41807a48486b5613e67599fb4c41c0ad47c340"
sha256: c8245ada5f1717ed44271ed1c26b8ce85ca3228fd2ffdb75468ab01979309d61
url: "https://pub.dev"
source: hosted
version: "1.2.0"
version: "1.3.0"
logging_appenders:
dependency: "direct main"
description:
Expand Down Expand Up @@ -264,10 +272,10 @@ packages:
dependency: transitive
description:
name: typed_data
sha256: facc8d6582f16042dd49f2463ff1bd6e2c9ef9f3d5da3d9b087e244a7b564b3c
sha256: f9049c039ebfeb4cf7a7104a675823cd72dba8297f264b6637062516699fa006
url: "https://pub.dev"
source: hosted
version: "1.3.2"
version: "1.4.0"
vector_math:
dependency: transitive
description:
Expand All @@ -288,18 +296,18 @@ packages:
dependency: transitive
description:
name: web
sha256: d43c1d6b787bf0afad444700ae7f4db8827f701bc61c255ac8d328c6f4d52062
sha256: cd3543bd5798f6ad290ea73d210f423502e71900302dde696f8bff84bf89a1cb
url: "https://pub.dev"
source: hosted
version: "1.0.0"
version: "1.1.0"
win32:
dependency: transitive
description:
name: win32
sha256: "68d1e89a91ed61ad9c370f9f8b6effed9ae5e0ede22a270bdfa6daf79fc2290a"
sha256: "154360849a56b7b67331c21f09a386562d88903f90a1099c5987afc1912e1f29"
url: "https://pub.dev"
source: hosted
version: "5.5.4"
version: "5.10.0"
sdks:
dart: ">=3.4.0 <4.0.0"
dart: ">=3.6.0 <4.0.0"
flutter: ">=3.18.0-18.0.pre.54"
2 changes: 1 addition & 1 deletion example/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ dependencies:
dev_dependencies:
flutter_test:
sdk: flutter
flutter_lints: ^4.0.0
flutter_lints: ^5.0.0

# For information on the generic Dart part of this file, see the
# following page: https://dart.dev/tools/pub/pubspec
Expand Down
13 changes: 7 additions & 6 deletions lib/src/biometric_storage_win32.dart
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,10 @@ class Win32BiometricStoragePlugin extends BiometricStorage {
) async {
final namePointer = TEXT(name);
try {
final result = CredDelete(namePointer, CRED_TYPE_GENERIC, 0);
final result = CredDelete(namePointer, CRED_TYPE.CRED_TYPE_GENERIC, 0);
if (result != TRUE) {
final errorCode = GetLastError();
if (errorCode == ERROR_NOT_FOUND) {
if (errorCode == WIN32_ERROR.ERROR_NOT_FOUND) {
_logger.fine('Unable to find credential of name $name');
} else {
_logger.warning('Error ($result): $errorCode');
Expand All @@ -71,9 +71,10 @@ class Win32BiometricStoragePlugin extends BiometricStorage {
final credPointer = calloc<Pointer<CREDENTIAL>>();
final namePointer = TEXT(name);
try {
if (CredRead(namePointer, CRED_TYPE_GENERIC, 0, credPointer) != TRUE) {
if (CredRead(namePointer, CRED_TYPE.CRED_TYPE_GENERIC, 0, credPointer) !=
TRUE) {
final errorCode = GetLastError();
if (errorCode == ERROR_NOT_FOUND) {
if (errorCode == WIN32_ERROR.ERROR_NOT_FOUND) {
_logger.fine('Unable to find credential of name $name');
} else {
_logger.warning('Error: $errorCode ',
Expand Down Expand Up @@ -110,9 +111,9 @@ class Win32BiometricStoragePlugin extends BiometricStorage {
final userNamePointer = TEXT('flutter.biometric_storage');

final credential = calloc<CREDENTIAL>()
..ref.Type = CRED_TYPE_GENERIC
..ref.Type = CRED_TYPE.CRED_TYPE_GENERIC
..ref.TargetName = namePointer
..ref.Persist = CRED_PERSIST_LOCAL_MACHINE
..ref.Persist = CRED_PERSIST.CRED_PERSIST_LOCAL_MACHINE
..ref.UserName = userNamePointer
..ref.CredentialBlob = blob
..ref.CredentialBlobSize = examplePassword.length;
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ dependencies:
dev_dependencies:
flutter_test:
sdk: flutter
flutter_lints: ^4.0.0
flutter_lints: ^5.0.0

# For information on the generic Dart part of this file, see the
# following page: https://dart.dev/tools/pub/pubspec
Expand Down

0 comments on commit 444377e

Please sign in to comment.