Skip to content

Commit

Permalink
Merge branch 'main' into main_android
Browse files Browse the repository at this point in the history
  • Loading branch information
hawkbee1 committed Sep 30, 2023
2 parents 54f5239 + de7cf94 commit be29adf
Show file tree
Hide file tree
Showing 105 changed files with 3,821 additions and 3,270 deletions.
4 changes: 2 additions & 2 deletions .fvm/fvm_config.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"flutterSdkVersion": "3.13.4",
"flutterSdkVersion": "3.13.6",
"flavors": {}
}
}
18 changes: 18 additions & 0 deletions android/app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,18 @@
<category android:name="android.intent.category.BROWSABLE" />
<data android:scheme="openid" />
</intent-filter>
<intent-filter android:autoVerify="true">
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
<data android:scheme="siopv2" />
</intent-filter>
<intent-filter android:autoVerify="true">
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
<data android:scheme="openid-vc" />
</intent-filter>
<intent-filter android:autoVerify="true">
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
Expand All @@ -94,6 +106,12 @@
<category android:name="android.intent.category.BROWSABLE" />
<data android:scheme="openid-initiate-issuance" />
</intent-filter>
<intent-filter android:autoVerify="true">
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
<data android:scheme="openid-credential-offer" />
</intent-filter>
</activity><meta-data
android:name="flutterEmbedding"
android:value="2" />
Expand Down
Binary file added assets/image/liveness-card.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/image/liveness-dummy.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets/splash/splash_image.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
30 changes: 30 additions & 0 deletions ios/Runner/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,16 @@
<string>openid-initiate-issuance</string>
</array>
</dict>
<dict>
<key>CFBundleTypeRole</key>
<string>Editor</string>
<key>CFBundleURLName</key>
<string>openid-credential-offer</string>
<key>CFBundleURLSchemes</key>
<array>
<string>openid-credential-offer</string>
</array>
</dict>
<dict>
<key>CFBundleTypeRole</key>
<string>Editor</string>
Expand All @@ -76,6 +86,26 @@
<string>openid</string>
</array>
</dict>
<dict>
<key>CFBundleTypeRole</key>
<string>Editor</string>
<key>CFBundleURLName</key>
<string>openid</string>
<key>CFBundleURLSchemes</key>
<array>
<string>siopv2</string>
</array>
</dict>
<dict>
<key>CFBundleTypeRole</key>
<string>Editor</string>
<key>CFBundleURLName</key>
<string>openid</string>
<key>CFBundleURLSchemes</key>
<array>
<string>openid-vc</string>
</array>
</dict>
<dict>
<key>CFBundleTypeRole</key>
<string>Editor</string>
Expand Down
7 changes: 3 additions & 4 deletions lib/app/shared/alert_message/alert_message.dart
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,10 @@ class AlertMessage {
if (stateMessage.showDialog) {
showDialog<bool>(
context: context,
builder: (context) => ConfirmDialog(
builder: (context) => ErrorDialog(
title: message,
yes: context.l10n.ok,
showNoButton: false,
//icon: stateMessage.type.iconPath,
erroDescription: stateMessage.erroDescription,
erroUrl: stateMessage.erroUrl,
),
);
} else {
Expand Down
2 changes: 2 additions & 0 deletions lib/app/shared/constants/image_strings.dart
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ class ImageStrings {
static const String walletCertificateAndroid =
'$imagePath/wallet-certificate-android.png';
static const String bloometaPass = '$imagePath/bloometa-pass.png';
static const String livenessCard = '$imagePath/liveness-card.png';
static const String tezotopiaMemberShip =
'$imagePath/tezotopia-membership.png';
static const String chainbornMemberShip =
Expand Down Expand Up @@ -114,6 +115,7 @@ class ImageStrings {
static const String tezotopiaMemberShipDummy =
'$imagePath/tezotopia-membership-dummy.png';
static const String bloometaDummy = '$imagePath/bloometa-dummy.png';
static const String livenessDummy = '$imagePath/liveness-dummy.png';
static const String chainbornMemberShipDummy =
'$imagePath/chainborn-membership-dummy.png';
static const String twitterCardDummy = '$imagePath/twitter-card-dummy.png';
Expand Down
5 changes: 4 additions & 1 deletion lib/app/shared/constants/parameters.dart
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,10 @@ class Parameters {
);

static const oidc4vcUniversalLink =
'https://app.altme.io/app/download/oidc4vc';
'https://app.altme.io/app/download/callback';

static const authorizeEndPoint =
'https://app.altme.io/app/download/authorize';

static const web3RpcMainnetUrl = 'https://mainnet.infura.io/v3/';

Expand Down
6 changes: 2 additions & 4 deletions lib/app/shared/constants/secure_storage_keys.dart
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,14 @@ class SecureStorageKeys {
static const String isWalletIntegrityEnabled = 'isWalletIntegrityEnabled';
static const String isBiometricEnabled = 'fingerprintEnabled';

static const String alertEnabled = 'alertEnabled';
static const String userConsentForIssuerAccess = 'userConsentForIssuerAccess';
static const String userConsentForVerifierAccess =
'userConsentForVerifierAccess';
static const String userPINCodeForAuthentication =
'userPINCodeForAuthentication';

static const String isSecurityLow = 'isSecurityLow';
static const String userPinDigitsLength = 'userPinDigitsLength';

static const String pinCode = 'pinCode';
static const String data = 'data';
Expand Down Expand Up @@ -59,7 +59,7 @@ class SecureStorageKeys {
static const String ssiMnemonic = 'ssi/mnemonic';
static const String ssiKey = 'ssi/key';

static const String p256PrivateKey = 'ssi/p256PrivateKey';
static const String p256PrivateKey = 'p256PrivateKey';

static const String cryptoAccount = 'cryptoAccount';
static const String cryptoAccounTrackingIndex = 'cryptoAccounTrackingIndex';
Expand All @@ -84,6 +84,4 @@ class SecureStorageKeys {
static const String buildNumber = 'buildNumber';

static const String hasVerifiedMnemonics = 'hasVerifiedMnemonics';

static const String oidc4vcType = 'oidc4vcType';
}
3 changes: 3 additions & 0 deletions lib/app/shared/constants/urls.dart
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,9 @@ class Urls {

static const String bloometaCardUrl = 'https://issuer.talao.co/bloometa';

static const String livenessCardUrl =
'https://issuer.talao.co/passbase/endpoint/liveness';

static const String defaultPolygonIdCardUrl =
'https://issuer.talao.co/credential-manifest/polygonid/default';

Expand Down
3 changes: 2 additions & 1 deletion lib/app/shared/enum/credential_category.dart
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ extension CredentialCategoryX on CredentialCategory {
return [
CredentialSubjectType.tezotopiaMembership,
CredentialSubjectType.chainbornMembership,
CredentialSubjectType.bloometaPass,
//CredentialSubjectType.bloometaPass,
// CredentialSubjectType.troopezPass,
// CredentialSubjectType.pigsPass,
// CredentialSubjectType.matterlightPass,
Expand All @@ -84,6 +84,7 @@ extension CredentialCategoryX on CredentialCategory {
CredentialSubjectType.over13,
// CredentialSubjectType.passportFootprint,
CredentialSubjectType.verifiableIdCard,
CredentialSubjectType.livenessCard,
];
case CredentialCategory.contactInfoCredentials:
return [
Expand Down
11 changes: 11 additions & 0 deletions lib/app/shared/enum/message/response_string/response_string.dart
Original file line number Diff line number Diff line change
Expand Up @@ -136,9 +136,13 @@ enum ResponseString {
RESPONSE_STRING_bloometaPassExpirationDate,
RESPONSE_STRING_bloometaPassWhyGetThisCard,
RESPONSE_STRING_bloometaPassHowToGetIt,
RESPONSE_STRING_livenessCardExpirationDate,
RESPONSE_STRING_livenessCardWhyGetThisCard,
RESPONSE_STRING_livenessCardHowToGetIt,
RESPONSE_STRING_tezotopiaMembershipLongDescription,
RESPONSE_STRING_chainbornMembershipLongDescription,
RESPONSE_STRING_bloometaPassLongDescription,
RESPONSE_STRING_livenessCardLongDescription,
RESPONSE_STRING_succesfullyAuthenticated,
RESPONSE_STRING_authenticationFailed,
RESPONSE_STRING_deviceIncompatibilityMessage,
Expand All @@ -155,4 +159,11 @@ enum ResponseString {
RESPONSE_STRING_theCredentialIsNoMoreReady,
RESPONSE_STRING_theRequestIsRejected,
RESPONSE_STRING_userPinIsIncorrect,
RESPONSE_STRING_responseTypeNotSupported,
RESPONSE_STRING_invalidRequest,
RESPONSE_STRING_subjectSyntaxTypeNotSupported,
RESPONSE_STRING_accessDenied,
RESPONSE_STRING_thisRequestIsNotSupported,
RESPONSE_STRING_unsupportedCredential,
RESPONSE_STRING_credentialIssuanceNotAllowedToTheWallet,
}
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,15 @@ extension ResponseStringX on ResponseString {
case ResponseString.RESPONSE_STRING_bloometaPassWhyGetThisCard:
return globalMessage.RESPONSE_STRING_bloometaPassWhyGetThisCard;

case ResponseString.RESPONSE_STRING_livenessCardHowToGetIt:
return globalMessage.RESPONSE_STRING_livenessCardHowToGetIt;

case ResponseString.RESPONSE_STRING_livenessCardExpirationDate:
return globalMessage.RESPONSE_STRING_livenessCardExpirationDate;

case ResponseString.RESPONSE_STRING_livenessCardWhyGetThisCard:
return globalMessage.RESPONSE_STRING_livenessCardWhyGetThisCard;

case ResponseString.RESPONSE_STRING_BALANCE_TOO_LOW:
return globalMessage.RESPONSE_STRING_BALANCE_TOO_LOW;

Expand Down Expand Up @@ -431,6 +440,9 @@ extension ResponseStringX on ResponseString {
case ResponseString.RESPONSE_STRING_bloometaPassLongDescription:
return globalMessage.RESPONSE_STRING_bloometaPassLongDescription;

case ResponseString.RESPONSE_STRING_livenessCardLongDescription:
return globalMessage.RESPONSE_STRING_livenessCardLongDescription;

case ResponseString.RESPONSE_STRING_succesfullyAuthenticated:
return globalMessage.RESPONSE_STRING_succesfullyAuthenticated;

Expand Down Expand Up @@ -489,6 +501,29 @@ extension ResponseStringX on ResponseString {

case ResponseString.RESPONSE_STRING_userPinIsIncorrect:
return globalMessage.RESPONSE_STRING_userPinIsIncorrect;

case ResponseString.RESPONSE_STRING_responseTypeNotSupported:
return globalMessage.RESPONSE_STRING_responseTypeNotSupported;

case ResponseString.RESPONSE_STRING_invalidRequest:
return globalMessage.RESPONSE_STRING_invalidRequest;

case ResponseString.RESPONSE_STRING_subjectSyntaxTypeNotSupported:
return globalMessage.RESPONSE_STRING_subjectSyntaxTypeNotSupported;

case ResponseString.RESPONSE_STRING_accessDenied:
return globalMessage.RESPONSE_STRING_accessDenied;

case ResponseString.RESPONSE_STRING_thisRequestIsNotSupported:
return globalMessage.RESPONSE_STRING_thisRequestIsNotSupported;

case ResponseString.RESPONSE_STRING_unsupportedCredential:
return globalMessage.RESPONSE_STRING_unsupportedCredential;

case ResponseString
.RESPONSE_STRING_credentialIssuanceNotAllowedToTheWallet:
return globalMessage
.RESPONSE_STRING_credentialIssuanceNotAllowedToTheWallet;
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ enum CredentialSubjectType {
binanceAssociatedWallet,
binancePooAddress,
bloometaPass,
livenessCard,
bunnyPass,
certificateOfEmployment,
chainbornMembership,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ extension CredentialSubjectTypeExtension on CredentialSubjectType {
return const Color(0xff8247E5);
case CredentialSubjectType.walletCredential:
case CredentialSubjectType.bloometaPass:
case CredentialSubjectType.livenessCard:
case CredentialSubjectType.nationality:
case CredentialSubjectType.tezotopiaMembership:
case CredentialSubjectType.chainbornMembership:
Expand Down Expand Up @@ -108,6 +109,8 @@ extension CredentialSubjectTypeExtension on CredentialSubjectType {
return 'DefiCompliance';
case CredentialSubjectType.bloometaPass:
return 'BloometaPass';
case CredentialSubjectType.livenessCard:
return 'Liveness';
case CredentialSubjectType.troopezPass:
return 'TroopezPass';
case CredentialSubjectType.pigsPass:
Expand Down Expand Up @@ -235,6 +238,8 @@ extension CredentialSubjectTypeExtension on CredentialSubjectType {
return DefiComplianceModel.fromJson(json);
case CredentialSubjectType.bloometaPass:
return BloometaPassModel.fromJson(json);
case CredentialSubjectType.livenessCard:
return LivenessCardModel.fromJson(json);
case CredentialSubjectType.troopezPass:
return TroopezPassModel.fromJson(json);
case CredentialSubjectType.pigsPass:
Expand Down Expand Up @@ -361,7 +366,8 @@ extension CredentialSubjectTypeExtension on CredentialSubjectType {
this == CredentialSubjectType.over13 ||
this == CredentialSubjectType.over15 ||
this == CredentialSubjectType.ageRange ||
this == CredentialSubjectType.defiCompliance) {
this == CredentialSubjectType.defiCompliance ||
this == CredentialSubjectType.livenessCard) {
return true;
}
return false;
Expand Down Expand Up @@ -443,6 +449,8 @@ extension CredentialSubjectTypeExtension on CredentialSubjectType {
return 'Defi Compliance';
case CredentialSubjectType.bloometaPass:
return 'Bloometa';
case CredentialSubjectType.livenessCard:
return 'Liveness';
case CredentialSubjectType.troopezPass:
return 'Troopez Pass';
case CredentialSubjectType.pigsPass:
Expand Down Expand Up @@ -568,6 +576,7 @@ extension CredentialSubjectTypeExtension on CredentialSubjectType {
switch (this) {
case CredentialSubjectType.defiCompliance:
case CredentialSubjectType.bloometaPass:
case CredentialSubjectType.livenessCard:
case CredentialSubjectType.tezotopiaMembership:
case CredentialSubjectType.chainbornMembership:
case CredentialSubjectType.ageRange:
Expand Down Expand Up @@ -639,6 +648,8 @@ extension CredentialSubjectTypeExtension on CredentialSubjectType {
return 0;
case CredentialSubjectType.bloometaPass:
return 76;
case CredentialSubjectType.livenessCard:
return 75;
case CredentialSubjectType.troopezPass:
return 73;
case CredentialSubjectType.pigsPass:
Expand Down
Loading

0 comments on commit be29adf

Please sign in to comment.