From e6543af9cf9ebbba5430d90190f6f997117345aa Mon Sep 17 00:00:00 2001 From: hawkbee1 Date: Wed, 21 Feb 2024 15:17:23 +0000 Subject: [PATCH] Over18: enable id360 issuer --- ios/fastlane/.Appfile | 8 -------- .../credential_subject_type_extension.dart | 6 +++++- .../helper_functions/discover_credential.dart | 9 --------- 3 files changed, 5 insertions(+), 18 deletions(-) delete mode 100644 ios/fastlane/.Appfile diff --git a/ios/fastlane/.Appfile b/ios/fastlane/.Appfile deleted file mode 100644 index 96fa9d60d..000000000 --- a/ios/fastlane/.Appfile +++ /dev/null @@ -1,8 +0,0 @@ -app_identifier("The bundle identifier of your app") -apple_id("Your Apple Developer Portal username") - -itc_team_id("App Store Connect Team ID") -team_id("Developer Portal Team ID") - -# For more information about the Appfile, see: -# https://docs.fastlane.tools/advanced/#appfile diff --git a/lib/app/shared/enum/type/credential_subject_type/credential_subject_type_extension.dart b/lib/app/shared/enum/type/credential_subject_type/credential_subject_type_extension.dart index d7c213a58..68e5ef9d5 100644 --- a/lib/app/shared/enum/type/credential_subject_type/credential_subject_type_extension.dart +++ b/lib/app/shared/enum/type/credential_subject_type/credential_subject_type_extension.dart @@ -779,7 +779,11 @@ extension CredentialSubjectTypeExtension on CredentialSubjectType { image = ImageStrings.dummyOver18Card; switch (vcFormatType) { case VCFormatType.ldpVc: - link = ''; // handle by aivalidation url + + /// id360 link use to oidc4vc over18 credential. + /// another link is automatically used when getting the credential + /// through yoti. + link = 'https://talao.co/id360/oidc4vc?format=ldp_vc&type=over18'; case VCFormatType.jwtVcJson: link = Urls.over18JWTVCJSON; case VCFormatType.jwtVc: diff --git a/lib/dashboard/home/tab_bar/credentials/helper_functions/discover_credential.dart b/lib/dashboard/home/tab_bar/credentials/helper_functions/discover_credential.dart index 3dbeed2cc..6a18924b3 100644 --- a/lib/dashboard/home/tab_bar/credentials/helper_functions/discover_credential.dart +++ b/lib/dashboard/home/tab_bar/credentials/helper_functions/discover_credential.dart @@ -36,15 +36,6 @@ Future discoverCredential({ /// AI KYC if (vcFormatType == VCFormatType.ldpVc && dummyCredential.credentialSubjectType.checkForAIKYC) { - /// temporary: For Over18 with VCFormatType.ldpVc let's go directly for yoti - if (dummyCredential.credentialSubjectType == - CredentialSubjectType.over18) { - await Navigator.of(context).push( - VerifyAgePage.route( - credentialSubjectType: dummyCredential.credentialSubjectType, - ), - ); - } /// For DefiCompliance, it is not necessary to use Yoti. Instead, /// we can directly proceed with Id360.