diff --git a/lib/app/shared/constants/urls.dart b/lib/app/shared/constants/urls.dart index ab0cba5b1..e4f4ab8ed 100644 --- a/lib/app/shared/constants/urls.dart +++ b/lib/app/shared/constants/urls.dart @@ -3,7 +3,6 @@ class Urls { static const String checkIssuerTalaoUrl = 'https://talao.co/trusted-issuers-registry/v1/issuers'; - // TODO(all): update the issuer url for polygon static const String checkIssuerPolygonTestnetUrl = 'https://issuer-demo.polygonid.me/'; static const String checkIssuerPolygonUrl = 'checkIssuerPolygonUrl'; @@ -91,7 +90,6 @@ class Urls { static const objktUrl = 'https://objkt.com/'; static const raribleUrl = 'https://rarible.com/'; - // TODO(all): remember to update all below urls. static const String bunnyPassCardUrl = 'https://issuer.tezotopia.altme.io'; static const String dogamiPassCardUrl = 'https://issuer.tezotopia.altme.io'; static const String matterlightPassCardUrl = @@ -99,7 +97,6 @@ class Urls { static const String pigsPassCardUrl = 'https://issuer.tezotopia.altme.io'; static const String trooperzPassCardUrl = 'https://issuer.tezotopia.altme.io'; - // static const over13AIValidationUrl = 'https://issuer.talao.co/ai/over13'; static const over15AIValidationUrl = 'https://issuer.talao.co/ai/over15'; static const over18AIValidationUrl = 'https://issuer.talao.co/ai/over18'; diff --git a/lib/app/shared/enum/message/response_string/response_string.dart b/lib/app/shared/enum/message/response_string/response_string.dart index d8d456f42..97c8bf8c8 100644 --- a/lib/app/shared/enum/message/response_string/response_string.dart +++ b/lib/app/shared/enum/message/response_string/response_string.dart @@ -148,7 +148,7 @@ enum ResponseString { RESPONSE_STRING_successfullyGeneratingProof, RESPONSE_STRING_pleaseAddXtoConnectToTheDapp, RESPONSE_STRING_pleaseSwitchPolygonNetwork, - RESPONSE_STRING_pleaseSwitchToCorrectOIDC4VCProfile, + RESPONSE_STRING_pleaseSwitchToRightOIDC4VCProfile, RESPONSE_STRING_authenticationSuccess, RESPONSE_STRING_youcanSelectOnlyXCredential, } diff --git a/lib/app/shared/enum/message/response_string/response_string_extension.dart b/lib/app/shared/enum/message/response_string/response_string_extension.dart index 0c6db1b43..dc47f95b9 100644 --- a/lib/app/shared/enum/message/response_string/response_string_extension.dart +++ b/lib/app/shared/enum/message/response_string/response_string_extension.dart @@ -466,7 +466,7 @@ extension ResponseStringX on ResponseString { injectedMessage ?? '', ); - case ResponseString.RESPONSE_STRING_pleaseSwitchToCorrectOIDC4VCProfile: + case ResponseString.RESPONSE_STRING_pleaseSwitchToRightOIDC4VCProfile: return globalMessage .RESPONSE_STRING_pleaseSwitchToCorrectOIDC4VCProfile; diff --git a/lib/app/shared/helper_functions/helper_functions.dart b/lib/app/shared/helper_functions/helper_functions.dart index c8a56d829..449563f9c 100644 --- a/lib/app/shared/helper_functions/helper_functions.dart +++ b/lib/app/shared/helper_functions/helper_functions.dart @@ -221,7 +221,6 @@ Future getStoragePermission() async { if (await Permission.storage.request().isGranted) { return true; } else if (await Permission.storage.request().isPermanentlyDenied) { - // TODO(all): show dialog to choose this option await openAppSettings(); } else if (await Permission.storage.request().isDenied) { return false; diff --git a/lib/app/shared/message_handler/response_message.dart b/lib/app/shared/message_handler/response_message.dart index 6f2606ac0..ba6e0bb0e 100644 --- a/lib/app/shared/message_handler/response_message.dart +++ b/lib/app/shared/message_handler/response_message.dart @@ -689,9 +689,9 @@ class ResponseMessage with MessageHandler { injectedMessage: injectedMessage, ); - case ResponseString.RESPONSE_STRING_pleaseSwitchToCorrectOIDC4VCProfile: + case ResponseString.RESPONSE_STRING_pleaseSwitchToRightOIDC4VCProfile: return ResponseString - .RESPONSE_STRING_pleaseSwitchToCorrectOIDC4VCProfile.localise( + .RESPONSE_STRING_pleaseSwitchToRightOIDC4VCProfile.localise( context, ); diff --git a/lib/app/shared/widget/base/page.dart b/lib/app/shared/widget/base/page.dart index 307f1d91c..430d6c487 100644 --- a/lib/app/shared/widget/base/page.dart +++ b/lib/app/shared/widget/base/page.dart @@ -86,6 +86,7 @@ class _BasePageState extends State with WidgetsBindingObserver { secureApplicationController.lock(); } + case AppLifecycleState.hidden: case AppLifecycleState.detached: break; // TODO(all): Handle this case. diff --git a/lib/dashboard/drawer/wallet_security/wallet_security/view/wallet_security_menu.dart b/lib/dashboard/drawer/wallet_security/wallet_security/view/wallet_security_menu.dart index e12801c4c..d1e2d4e23 100644 --- a/lib/dashboard/drawer/wallet_security/wallet_security/view/wallet_security_menu.dart +++ b/lib/dashboard/drawer/wallet_security/wallet_security/view/wallet_security_menu.dart @@ -125,7 +125,7 @@ class WalletSecurityView extends StatelessWidget { builder: (context) => ConfirmDialog( title: l10n.biometricsNotSupported, subtitle: l10n - .yourDeviceDoseNotSupportBiometricsAuthentication, // ignore: lines_longer_than_80_chars + .deviceDoNotSupportBiometricsAuthentication, // ignore: lines_longer_than_80_chars yes: l10n.ok, ), ); diff --git a/lib/dashboard/qr_code/qr_code_scan/cubit/qr_code_scan_cubit.dart b/lib/dashboard/qr_code/qr_code_scan/cubit/qr_code_scan_cubit.dart index 978428c6e..483d47667 100644 --- a/lib/dashboard/qr_code/qr_code_scan/cubit/qr_code_scan_cubit.dart +++ b/lib/dashboard/qr_code/qr_code_scan/cubit/qr_code_scan_cubit.dart @@ -194,7 +194,7 @@ class QRCodeScanCubit extends Cubit { message: StateMessage.error( messageHandler: ResponseMessage( ResponseString - .RESPONSE_STRING_pleaseSwitchToCorrectOIDC4VCProfile, + .RESPONSE_STRING_pleaseSwitchToRightOIDC4VCProfile, ), showDialog: false, duration: const Duration(seconds: 20), diff --git a/lib/l10n/arb/app_en.arb b/lib/l10n/arb/app_en.arb index 5990b441f..d041c4a12 100644 --- a/lib/l10n/arb/app_en.arb +++ b/lib/l10n/arb/app_en.arb @@ -316,7 +316,7 @@ "yourPinCodeChangedSuccessfully": "Your pin code changed successfully", "advantagesCards": "Advantages cards", "advantagesDiscoverCards": "Unlock exclusive rewards", - "identityCards": "Identity cards", + "identityCards": "Identity cards", "identityDiscoverCards": "Simplify ID verification", "contactInfoCredentials": "Contact information", "contactInfoDiscoverCredentials": "Verify your contact information", @@ -353,7 +353,7 @@ "termsOfUse": "Terms of Use & Confidentiality", "scanFingerprintToAuthenticate": "Scan Fingerprint to Authenticate", "biometricsNotSupported": "Biometrics not supported", - "yourDeviceDoseNotSupportBiometricsAuthentication": "Your device dose not supports biometrics authentication", + "deviceDoNotSupportBiometricsAuthentication": "Your device dose not supports biometrics authentication", "biometricsEnabledMessage": "You can now unlock app with your biometrics.", "biometricsDisabledMessage": "Your biometrics has been disabled.", "exportSecretKey": "Export secret key", @@ -560,7 +560,7 @@ "advantagesCredentialHomeSubtitle": "Benefit from exclusive advantages in Web3", "advantagesCredentialDiscoverSubtitle": "Discover loyalty cards and exclusive passes", "identityCredentialHomeSubtitle": "Prove things about yourself while protecting your data", - "identityCredentialDiscoverSubtitle": "Get reusable KYC and age verification credentials", + "identityCredentialDiscoverSubtitle": "Get reusable KYC and age verification credentials", "myProfessionalCredentialDiscoverSubtitle": "Use your professional cards securely", "blockchainAccountsCredentialHomeSubtitle": "Prove your blockchain accounts ownership", "educationCredentialHomeSubtitle": "Prove your education background instantly", diff --git a/lib/l10n/arb/app_fr.arb b/lib/l10n/arb/app_fr.arb index 70aa76ec4..a51e8ce91 100644 --- a/lib/l10n/arb/app_fr.arb +++ b/lib/l10n/arb/app_fr.arb @@ -347,7 +347,7 @@ "termsOfUse": "Conditions d'utilisation et confidentialité", "scanFingerprintToAuthenticate": "Scanner l'empreinte digitale pour s'authentifier", "biometricsNotSupported": "La biométrie n'est pas prise en charge", - "yourDeviceDoseNotSupportBiometricsAuthentication": "Votre appareil ne prend pas en charge l'authentification biométrique", + "deviceDoNotSupportBiometricsAuthentication": "Votre appareil ne prend pas en charge l'authentification biométrique", "biometricsEnabledMessage": "Vous pouvez maintenant déverrouiller l'application avec vos données biométriques.", "biometricsDisabledMessage": "Votre biométrie a été désactivée.", "exportSecretKey": "Exporter la clé secrète", diff --git a/lib/l10n/untranslated.json b/lib/l10n/untranslated.json index 4dd5b41d7..eefd973f3 100644 --- a/lib/l10n/untranslated.json +++ b/lib/l10n/untranslated.json @@ -303,7 +303,7 @@ "termsOfUse", "scanFingerprintToAuthenticate", "biometricsNotSupported", - "yourDeviceDoseNotSupportBiometricsAuthentication", + "deviceDoNotSupportBiometricsAuthentication", "biometricsEnabledMessage", "biometricsDisabledMessage", "exportSecretKey", @@ -1154,7 +1154,7 @@ "termsOfUse", "scanFingerprintToAuthenticate", "biometricsNotSupported", - "yourDeviceDoseNotSupportBiometricsAuthentication", + "deviceDoNotSupportBiometricsAuthentication", "biometricsEnabledMessage", "biometricsDisabledMessage", "exportSecretKey", @@ -2159,7 +2159,7 @@ "termsOfUse", "scanFingerprintToAuthenticate", "biometricsNotSupported", - "yourDeviceDoseNotSupportBiometricsAuthentication", + "deviceDoNotSupportBiometricsAuthentication", "biometricsEnabledMessage", "biometricsDisabledMessage", "exportSecretKey", diff --git a/lib/onboarding/activate_biometircs/view/activate_biometrics_page.dart b/lib/onboarding/activate_biometircs/view/activate_biometrics_page.dart index 66b87e3e2..364eae6a7 100644 --- a/lib/onboarding/activate_biometircs/view/activate_biometrics_page.dart +++ b/lib/onboarding/activate_biometircs/view/activate_biometrics_page.dart @@ -156,8 +156,8 @@ class ActivateBiometricsView extends StatelessWidget { context: context, builder: (context) => ConfirmDialog( title: l10n.biometricsNotSupported, - subtitle: l10n - .yourDeviceDoseNotSupportBiometricsAuthentication, + subtitle: + l10n.deviceDoNotSupportBiometricsAuthentication, yes: l10n.ok, ), ); diff --git a/lib/scan/cubit/scan_cubit.dart b/lib/scan/cubit/scan_cubit.dart index 0018040a4..a9511147e 100644 --- a/lib/scan/cubit/scan_cubit.dart +++ b/lib/scan/cubit/scan_cubit.dart @@ -130,7 +130,7 @@ class ScanCubit extends Cubit { message: StateMessage.error( messageHandler: ResponseMessage( ResponseString - .RESPONSE_STRING_pleaseSwitchToCorrectOIDC4VCProfile, + .RESPONSE_STRING_pleaseSwitchToRightOIDC4VCProfile, ), showDialog: false, duration: const Duration(seconds: 20), diff --git a/packages/oidc4vc/lib/src/oidc4vc.dart b/packages/oidc4vc/lib/src/oidc4vc.dart index b42b0157c..2d62f0c24 100644 --- a/packages/oidc4vc/lib/src/oidc4vc.dart +++ b/packages/oidc4vc/lib/src/oidc4vc.dart @@ -362,7 +362,8 @@ class OIDC4VC { } Future readTokenEndPoint( - Map openidConfigurationResponse) async { + Map openidConfigurationResponse, + ) async { late String tokenEndPoint; final authorizationServer = diff --git a/packages/oidc4vc/test/src/issuer_token_parameters/issuer_token_parameters_class.dart b/packages/oidc4vc/test/src/issuer_token_parameters/issuer_token_parameters_class.dart index 958026828..9cfff064d 100644 --- a/packages/oidc4vc/test/src/issuer_token_parameters/issuer_token_parameters_class.dart +++ b/packages/oidc4vc/test/src/issuer_token_parameters/issuer_token_parameters_class.dart @@ -38,15 +38,4 @@ class IssuerTokenParameterTest extends TokenParameterTest { final tokenParameters = IssuerTokenParameters(keyWithAlg, '', '', ''); expect(tokenParameters.alg, HS256Alg); } - - // @override - // void thumprintOfKey() { - // expect(tokenParameters.thumbprint, thumbprint); - // } - - // @override - // void thumprintOfKeyForrfc7638() { - // final tokenParameters2 = IssuerTokenParameters(rfc7638Jwk, '', '', '', ''); - // expect(tokenParameters2.thumbprint, expectedThumbprintForrfc7638Jwk); - // } } diff --git a/packages/oidc4vc/test/src/oidc4vc_test.dart b/packages/oidc4vc/test/src/oidc4vc_test.dart index 853c80941..2a570573c 100644 --- a/packages/oidc4vc/test/src/oidc4vc_test.dart +++ b/packages/oidc4vc/test/src/oidc4vc_test.dart @@ -1,3 +1,4 @@ +// ignore_for_file: lines_longer_than_80_chars // // Copyright (c) 2022, Very Good Ventures // // https://verygood.ventures // // diff --git a/packages/oidc4vc/test/src/token_parameters/token_parameters_test.dart b/packages/oidc4vc/test/src/token_parameters/token_parameters_test.dart index c638c2d62..a443a5713 100644 --- a/packages/oidc4vc/test/src/token_parameters/token_parameters_test.dart +++ b/packages/oidc4vc/test/src/token_parameters/token_parameters_test.dart @@ -7,6 +7,8 @@ // license that can be found in the LICENSE file or at // https://opensource.org/licenses/MIT. +// ignore_for_file: lines_longer_than_80_chars + import 'package:dio/dio.dart'; import 'package:flutter_test/flutter_test.dart'; import 'package:mocktail/mocktail.dart'; diff --git a/packages/polygonid/lib/src/polygonid.dart b/packages/polygonid/lib/src/polygonid.dart index 4e2fa8071..4f17a6fe8 100644 --- a/packages/polygonid/lib/src/polygonid.dart +++ b/packages/polygonid/lib/src/polygonid.dart @@ -499,7 +499,9 @@ class PolygonId { final String to = body.transactionData.contractAddress; final Iden3commProofEntity proof = response.first; + // ignore: lines_longer_than_80_chars const ABI = + // ignore: lines_longer_than_80_chars '[ { "inputs": [ { "internalType": "uint64", "name": "requestId", "type": "uint64" }, { "internalType": "uint256[]", "name": "inputs", "type": "uint256[]" }, { "internalType": "uint256[2]", "name": "a", "type": "uint256[2]" }, { "internalType": "uint256[2][2]", "name": "b", "type": "uint256[2][2]" }, { "internalType": "uint256[2]", "name": "c", "type": "uint256[2]" } ], "name": "submitZKPResponse", "outputs": [ { "internalType": "bool", "name": "", "type": "bool" } ], "stateMutability": "nonpayable", "type": "function" } ]'; final ContractAbi cAbi = ContractAbi.fromJson(ABI, to); diff --git a/pubspec.lock b/pubspec.lock index dd66a271f..224c5f37d 100644 --- a/pubspec.lock +++ b/pubspec.lock @@ -390,10 +390,10 @@ packages: dependency: transitive description: name: collection - sha256: "4a07be6cb69c84d677a6c3096fcf960cc3285a8330b4603e0d463d15d9bd934c" + sha256: f092b211a4319e98e5ff58223576de6c2803db36221657b46c82574721240687 url: "https://pub.dev" source: hosted - version: "1.17.1" + version: "1.17.2" confetti: dependency: "direct main" description: @@ -1421,18 +1421,18 @@ packages: dependency: transitive description: name: matcher - sha256: "6501fbd55da300384b768785b83e5ce66991266cec21af89ab9ae7f5ce1c4cbb" + sha256: "1803e76e6653768d64ed8ff2e1e67bea3ad4b923eb5c56a295c3e634bad5960e" url: "https://pub.dev" source: hosted - version: "0.12.15" + version: "0.12.16" material_color_utilities: dependency: transitive description: name: material_color_utilities - sha256: d92141dc6fe1dad30722f9aa826c7fbc896d021d792f80678280601aff8cf724 + sha256: "9528f2f296073ff54cb9fee677df673ace1218163c3bc7628093e7eed5203d41" url: "https://pub.dev" source: hosted - version: "0.2.0" + version: "0.5.0" matrix: dependency: "direct main" description: @@ -2176,10 +2176,10 @@ packages: dependency: transitive description: name: source_span - sha256: dd904f795d4b4f3b870833847c461801f6750a9fa8e61ea5ac53f9422b31f250 + sha256: "53e943d4206a5e30df338fd4c6e7a077e02254531b138a15aec3bd143c1a8b3c" url: "https://pub.dev" source: hosted - version: "1.9.1" + version: "1.10.0" sqflite: dependency: transitive description: @@ -2264,26 +2264,26 @@ packages: dependency: transitive description: name: test - sha256: "3dac9aecf2c3991d09b9cdde4f98ded7b30804a88a0d7e4e7e1678e78d6b97f4" + sha256: "13b41f318e2a5751c3169137103b60c584297353d4b1761b66029bae6411fe46" url: "https://pub.dev" source: hosted - version: "1.24.1" + version: "1.24.3" test_api: dependency: transitive description: name: test_api - sha256: eb6ac1540b26de412b3403a163d919ba86f6a973fe6cc50ae3541b80092fdcfb + sha256: "75760ffd7786fffdfb9597c35c5b27eaeec82be8edfb6d71d32651128ed7aab8" url: "https://pub.dev" source: hosted - version: "0.5.1" + version: "0.6.0" test_core: dependency: transitive description: name: test_core - sha256: "5138dbffb77b2289ecb12b81c11ba46036590b72a64a7a90d6ffb880f1a29e93" + sha256: "99806e9e6d95c7b059b7a0fc08f07fc53fabe54a829497f0d9676299f1e8637e" url: "https://pub.dev" source: hosted - version: "0.5.1" + version: "0.5.3" tezart: dependency: "direct main" description: @@ -2509,6 +2509,14 @@ packages: url: "https://pub.dev" source: hosted version: "1.0.2" + web: + dependency: transitive + description: + name: web + sha256: dc8ccd225a2005c1be616fe02951e2e342092edf968cf0844220383757ef8f10 + url: "https://pub.dev" + source: hosted + version: "0.1.4-beta" web3dart: dependency: "direct overridden" description: @@ -2638,5 +2646,5 @@ packages: source: hosted version: "2.1.1" sdks: - dart: ">=3.0.0 <3.7.0" + dart: ">=3.1.0-185.0.dev <3.7.0" flutter: ">=3.10.0"