Skip to content

Commit

Permalink
Merge branch 'main' into TALAO
Browse files Browse the repository at this point in the history
  • Loading branch information
hawkbee1 committed Mar 6, 2024
2 parents 3ee1968 + 5ec65a0 commit e3608b5
Show file tree
Hide file tree
Showing 120 changed files with 5,440 additions and 5,998 deletions.
6 changes: 6 additions & 0 deletions android/app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,12 @@
<category android:name="android.intent.category.BROWSABLE" />
<data android:scheme="wc-altme" />
</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="configuration" />
</intent-filter>
<intent-filter android:autoVerify="true">
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
Expand Down
10 changes: 10 additions & 0 deletions ios/Runner/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,16 @@
<string>wc-altme</string>
</array>
</dict>
<dict>
<key>CFBundleTypeRole</key>
<string>Editor</string>
<key>CFBundleURLName</key>
<string>configuration</string>
<key>CFBundleURLSchemes</key>
<array>
<string>configuration</string>
</array>
</dict>
<dict>
<key>CFBundleTypeRole</key>
<string>Editor</string>
Expand Down
1 change: 0 additions & 1 deletion lib/app/shared/constants/constants.dart
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
export 'accentuations.dart';
export 'altme_strings.dart';
export 'constants_json.dart';
export 'enterprise.dart';
export 'icon_strings.dart';
export 'image_strings.dart';
export 'parameters.dart';
Expand Down
3 changes: 0 additions & 3 deletions lib/app/shared/constants/enterprise.dart

This file was deleted.

5 changes: 4 additions & 1 deletion lib/app/shared/constants/secure_storage_keys.dart
Original file line number Diff line number Diff line change
Expand Up @@ -68,5 +68,8 @@ class SecureStorageKeys {
static const String customProfileSettings = 'customProfileSettings';
static const String enterpriseProfileSetting = 'enterpriseProfileSetting';

static const String walletProviderType = 'walletProviderType';
static const String enterpriseEmail = 'enterpriseEmail';
static const String enterprisePassword = 'enterprisePassword';
static const String enterpriseWalletProvider = 'enterpriseWalletProvider';
static const String language = 'language';
}
55 changes: 2 additions & 53 deletions lib/app/shared/constants/urls.dart
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,6 @@ class Urls {

/// email pass
static const String emailPassUrl = 'https://issuer.talao.co/emailpass';
static const String emailPassUrlJWTVCJSON =
'https://issuer.talao.co/emailpass?format=jwt_vc_json';

/// tezotopia voucher
static const String tezotopiaVoucherUrl =
Expand All @@ -32,11 +30,8 @@ class Urls {
static const String tezotopiaMembershipCardUrl =
'https://issuer.talao.co/tezotopia/membershipcard/';

/// liveness
static const String livenessCardUrl =
'https://talao.co/id360/oidc4vc?format=ldp_vc&type=liveness';
static const String livenessCardJWTVCJSON =
'https://talao.co/id360/oidc4vc?format=jwt_vc_json&type=liveness';
/// id360 url
static const String id360Url = 'https://talao.co/id360/oidc4vc';

/// polygon
static const String defaultPolygonIdCardUrl =
Expand Down Expand Up @@ -65,52 +60,6 @@ class Urls {
/// twitter card
static const String twitterCardUrl = 'https://issuer.talao.co/twitter/';

/// verifiableIdCard
static const String verifiableIdCardUrlLDPVC =
'https://talao.co/id360/oidc4vc?format=ldp_vc&type=verifiableid';

static const String verifiableIdCardUrlJWTVCJSON =
'https://talao.co/id360/oidc4vc?format=jwt_vc_json&type=verifiableid';

static const String verifiableIdCardUrlVCSDJWT =
'https://talao.co/id360/oidc4vc?format=vcsd-jwt&type=identitycredential';

/// over 13
static const String over13Url =
'https://talao.co/id360/oidc4vc?format=ldp_vc&type=over13';
static const String over13JWTVCJSON =
'https://talao.co/id360/oidc4vc?format=jwt_vc_json&type=over13';

/// over 15
static const String over15Url =
'https://talao.co/id360/oidc4vc?format=ldp_vc&type=over15';
static const String over15JWTVCJSON =
'https://talao.co/id360/oidc4vc?format=jwt_vc_json&type=over15';

/// over 18
static const String over18Url =
'https://talao.co/id360/oidc4vc?format=ldp_vc&type=over18';
static const String over18JWTVCJSON =
'https://talao.co/id360/oidc4vc?format=jwt_vc_json&type=over18';

/// over 21
static const String over21Url =
'https://talao.co/id360/oidc4vc?format=ldp_vc&type=over21';
static const String over21JWTVCJSON =
'https://talao.co/id360/oidc4vc?format=jwt_vc_json&type=over21';

/// over 50
static const String over50Url =
'https://talao.co/id360/oidc4vc?format=ldp_vc&type=over50';
static const String over50JWTVCJSON =
'https://talao.co/id360/oidc4vc?format=jwt_vc_json&type=over50';

/// over 65
static const String over65Url =
'https://talao.co/id360/oidc4vc?format=ldp_vc&type=over65';
static const String over65JWTVCJSON =
'https://talao.co/id360/oidc4vc?format=jwt_vc_json&type=over65';

/// linkedin card
static const String linkedinCardUrl =
'https://issuer.talao.co/passbase/endpoint/linkedincard/';
Expand Down
6 changes: 3 additions & 3 deletions lib/app/shared/enum/credential_category.dart
Original file line number Diff line number Diff line change
Expand Up @@ -62,10 +62,10 @@ extension CredentialCategoryX on CredentialCategory {

bool get showInHomeIfListEmpty {
switch (this) {
case CredentialCategory.advantagesCards:
case CredentialCategory.identityCards:
return true;
case CredentialCategory.professionalCards:
case CredentialCategory.advantagesCards:
case CredentialCategory.contactInfoCredentials:
case CredentialCategory.blockchainAccountsCards:
case CredentialCategory.educationCards:
Expand Down Expand Up @@ -115,8 +115,8 @@ extension CredentialCategoryX on CredentialCategory {
return CredentialCategoryConfig(
homeTitle: '${l10n.my} ${l10n.blockchainAccounts.toLowerCase()}',
homeSubTitle: l10n.blockchainAccountsCredentialHomeSubtitle,
discoverTitle: '${l10n.get} ${l10n.blockchainAccounts.toLowerCase()}',
discoverSubTitle: '',
discoverTitle: l10n.blockchainCardsDiscoverTitle,
discoverSubTitle: l10n.blockchainCardsDiscoverSubtitle,
);
case CredentialCategory.educationCards:
return CredentialCategoryConfig(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -155,4 +155,7 @@ enum ResponseString {
RESPONSE_STRING_theCredentialOfferIsInvalid,
RESPONSE_STRING_theServiceIsNotAvailable,
RESPONSE_STRING_theIssuanceOfThisCredentialIsPending,
RESPONSE_STRING_successfullyAddedEnterpriseAccount,
RESPONSE_STRING_successfullyUpdatedEnterpriseAccount,
RESPONSE_STRING_thisWalleIsAlreadyConfigured,
}
Original file line number Diff line number Diff line change
Expand Up @@ -490,6 +490,16 @@ extension ResponseStringX on ResponseString {
case ResponseString.RESPONSE_STRING_theIssuanceOfThisCredentialIsPending:
return globalMessage
.RESPONSE_STRING_theIssuanceOfThisCredentialIsPending;

case ResponseString.RESPONSE_STRING_successfullyAddedEnterpriseAccount:
return globalMessage.RESPONSE_STRING_successfullyAddedEnterpriseAccount;

case ResponseString.RESPONSE_STRING_successfullyUpdatedEnterpriseAccount:
return globalMessage
.RESPONSE_STRING_successfullyUpdatedEnterpriseAccount;

case ResponseString.RESPONSE_STRING_thisWalleIsAlreadyConfigured:
return globalMessage.RESPONSE_STRING_thisWalleIsAlreadyConfigured;
}
}
}
1 change: 1 addition & 0 deletions lib/app/shared/enum/status/qr_scan_status.dart
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,5 @@ enum QrScanStatus {
error,
success,
goBack,
pauseForDialog,
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import 'package:altme/app/app.dart';
import 'package:altme/dashboard/home/home.dart';
import 'package:altme/dashboard/dashboard.dart';
import 'package:flutter/material.dart';
import 'package:oidc4vc/oidc4vc.dart';

Expand Down
Loading

0 comments on commit e3608b5

Please sign in to comment.