mirror of
https://github.com/kuhyx/utils.git
synced 2026-11-22 11:52:27 +01:00
Move the Dart packages to very_good_analysis 11
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
2c195cda4d
commit
be4269ab79
@ -67,9 +67,9 @@ Future<FirebaseRestClient?> openSync(
|
|||||||
// A stored refresh token IS a signed-in device, even with no account
|
// A stored refresh token IS a signed-in device, even with no account
|
||||||
// marker beside it. Treating the marker as the source of truth made a
|
// marker beside it. Treating the marker as the source of truth made a
|
||||||
// phone with a live session sync over the mirror and fail forever.
|
// phone with a live session sync over the mirror and fail forever.
|
||||||
return _clientFromStoredSession(app, storage: storage);
|
return await _clientFromStoredSession(app, storage: storage);
|
||||||
}
|
}
|
||||||
return firebaseClientFor(
|
return await firebaseClientFor(
|
||||||
config: app.project.configFor(account.email),
|
config: app.project.configFor(account.email),
|
||||||
store: keystoreCredentialStore(storage: storage),
|
store: keystoreCredentialStore(storage: storage),
|
||||||
// A Google-provisioned account stores an empty password. Passing ''
|
// A Google-provisioned account stores an empty password. Passing ''
|
||||||
|
|||||||
@ -85,9 +85,9 @@ Future<String?> googleAnyIdToken({
|
|||||||
// flow, and whether any runs at all -- is pure and fully covered.
|
// flow, and whether any runs at all -- is pure and fully covered.
|
||||||
// coverage:ignore-start
|
// coverage:ignore-start
|
||||||
case GoogleFlow.plugin:
|
case GoogleFlow.plugin:
|
||||||
return googleIdToken(serverClientId: serverClientId);
|
return await googleIdToken(serverClientId: serverClientId);
|
||||||
case GoogleFlow.desktop:
|
case GoogleFlow.desktop:
|
||||||
return googleDesktopIdToken(clientId: desktopClientId);
|
return await googleDesktopIdToken(clientId: desktopClientId);
|
||||||
// coverage:ignore-end
|
// coverage:ignore-end
|
||||||
case GoogleFlow.none:
|
case GoogleFlow.none:
|
||||||
return null;
|
return null;
|
||||||
|
|||||||
@ -46,7 +46,7 @@ Future<String?> googleIdToken({
|
|||||||
required String serverClientId,
|
required String serverClientId,
|
||||||
Future<String?> Function()? signInFn,
|
Future<String?> Function()? signInFn,
|
||||||
}) async {
|
}) async {
|
||||||
if (signInFn != null) return signInFn();
|
if (signInFn != null) return await signInFn();
|
||||||
if (serverClientId.isEmpty) {
|
if (serverClientId.isEmpty) {
|
||||||
log(
|
log(
|
||||||
'Google sign-in unavailable: no server client id was compiled in; '
|
'Google sign-in unavailable: no server client id was compiled in; '
|
||||||
|
|||||||
@ -18,7 +18,7 @@ dependencies:
|
|||||||
crypto: 3.0.7
|
crypto: 3.0.7
|
||||||
flutter:
|
flutter:
|
||||||
sdk: flutter
|
sdk: flutter
|
||||||
flutter_secure_storage: 11.0.0
|
flutter_secure_storage: 11.1.1
|
||||||
# A real dependency, not a dev one: lib/testing/ ships the keystore fake so
|
# A real dependency, not a dev one: lib/testing/ ships the keystore fake so
|
||||||
# consuming apps can test their own sync wiring without rebuilding it.
|
# consuming apps can test their own sync wiring without rebuilding it.
|
||||||
flutter_test:
|
flutter_test:
|
||||||
@ -34,4 +34,4 @@ dependencies:
|
|||||||
uuid: 4.6.0
|
uuid: 4.6.0
|
||||||
|
|
||||||
dev_dependencies:
|
dev_dependencies:
|
||||||
very_good_analysis: ^10.3.0
|
very_good_analysis: ^11.0.0
|
||||||
|
|||||||
@ -17,6 +17,6 @@ dependencies:
|
|||||||
dev_dependencies:
|
dev_dependencies:
|
||||||
flutter_test:
|
flutter_test:
|
||||||
sdk: flutter
|
sdk: flutter
|
||||||
very_good_analysis: ^10.3.0
|
very_good_analysis: ^11.0.0
|
||||||
|
|
||||||
flutter:
|
flutter:
|
||||||
|
|||||||
@ -281,10 +281,10 @@ packages:
|
|||||||
dependency: "direct dev"
|
dependency: "direct dev"
|
||||||
description:
|
description:
|
||||||
name: very_good_analysis
|
name: very_good_analysis
|
||||||
sha256: "481af67ab5877af20325251dc215a4ebac7666a1c8cf09198ffd457bc612b33d"
|
sha256: "0bd5eb8d6be76aa0d71e70cbdae6cac8f784f761170568e3c2214a6948c7f6d3"
|
||||||
url: "https://pub.dev"
|
url: "https://pub.dev"
|
||||||
source: hosted
|
source: hosted
|
||||||
version: "10.3.0"
|
version: "11.0.0"
|
||||||
vm_service:
|
vm_service:
|
||||||
dependency: transitive
|
dependency: transitive
|
||||||
description:
|
description:
|
||||||
@ -302,5 +302,5 @@ packages:
|
|||||||
source: hosted
|
source: hosted
|
||||||
version: "1.1.1"
|
version: "1.1.1"
|
||||||
sdks:
|
sdks:
|
||||||
dart: ">=3.12.2 <4.0.0"
|
dart: ">=3.13.0 <4.0.0"
|
||||||
flutter: ">=3.44.0"
|
flutter: ">=3.44.0"
|
||||||
|
|||||||
@ -18,6 +18,6 @@ dependencies:
|
|||||||
dev_dependencies:
|
dev_dependencies:
|
||||||
flutter_test:
|
flutter_test:
|
||||||
sdk: flutter
|
sdk: flutter
|
||||||
very_good_analysis: ^10.3.0
|
very_good_analysis: ^11.0.0
|
||||||
|
|
||||||
flutter:
|
flutter:
|
||||||
|
|||||||
@ -22,6 +22,6 @@ dependencies:
|
|||||||
dev_dependencies:
|
dev_dependencies:
|
||||||
flutter_test:
|
flutter_test:
|
||||||
sdk: flutter
|
sdk: flutter
|
||||||
very_good_analysis: ^10.3.0
|
very_good_analysis: ^11.0.0
|
||||||
|
|
||||||
flutter:
|
flutter:
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user