Skip to content

Commit 1fa5fa5

Browse files
committed
Merge branch 'main' into TALAO
2 parents ed7be24 + 869cd1d commit 1fa5fa5

File tree

780 files changed

+13930
-13234
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

780 files changed

+13930
-13234
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,3 +141,5 @@ app.*.map.json
141141

142142
#case sensitive files issue on macOS
143143
doc/api/
144+
macos/Flutter/ephemeral/flutter_export_environment.sh
145+
macos/Flutter/ephemeral/Flutter-Generated.xcconfig

analysis_options.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,4 @@ linter:
1717
use_string_buffers: false
1818
always_put_required_named_parameters_first: false
1919
depend_on_referenced_packages: false
20+
use_super_parameters: true

android/app/build.gradle.kts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,10 @@ android {
8383
buildTypes {
8484
release {
8585
signingConfig = signingConfigs.getByName("release")
86-
}
86+
// Clear the automatically set filters.
87+
ndk.abiFilters.clear()
88+
// Set your custom filters.
89+
ndk.abiFilters.addAll(listOf("arm64-v8a", "armeabi-v7a")) }
8790
debug {
8891
signingConfig = signingConfigs.getByName("debug")
8992
}

ios/Podfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ source 'https://github.com/passbase/cocoapods-specs.git'
33
source 'https://github.com/passbase/microblink-cocoapods-specs.git'
44

55
# Uncomment this line to define a global platform for your project
6-
platform :ios, '14.0'
6+
platform :ios, '15.5'
77

88
# CocoaPods analytics sends network stats synchronously affecting flutter build latency.
99
ENV['COCOAPODS_DISABLE_STATS'] = 'true'

ios/Runner.xcodeproj/project.pbxproj

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -402,7 +402,7 @@
402402
ENABLE_BITCODE = NO;
403403
FLAVOR_APP_NAME = "TALAO Wallet";
404404
INFOPLIST_FILE = Runner/Info.plist;
405-
INFOPLIST_KEY_CFBundleDisplayName = "TALAO Wallet";
405+
IPHONEOS_DEPLOYMENT_TARGET = 16.6;
406406
LD_RUNPATH_SEARCH_PATHS = (
407407
"$(inherited)",
408408
"@executable_path/Frameworks",
@@ -544,7 +544,7 @@
544544
ENABLE_BITCODE = NO;
545545
FLAVOR_APP_NAME = "TALAO Wallet";
546546
INFOPLIST_FILE = Runner/Info.plist;
547-
INFOPLIST_KEY_CFBundleDisplayName = "TALAO Wallet";
547+
IPHONEOS_DEPLOYMENT_TARGET = 16.6;
548548
LD_RUNPATH_SEARCH_PATHS = (
549549
"$(inherited)",
550550
"@executable_path/Frameworks",
@@ -573,7 +573,7 @@
573573
ENABLE_BITCODE = NO;
574574
FLAVOR_APP_NAME = "TALAO Wallet";
575575
INFOPLIST_FILE = Runner/Info.plist;
576-
INFOPLIST_KEY_CFBundleDisplayName = "TALAO Wallet";
576+
IPHONEOS_DEPLOYMENT_TARGET = 16.6;
577577
LD_RUNPATH_SEARCH_PATHS = (
578578
"$(inherited)",
579579
"@executable_path/Frameworks",
@@ -660,7 +660,7 @@
660660
"EXCLUDED_ARCHS[sdk=iphonesimulator*]" = "i386 i386 arm64";
661661
FLAVOR_APP_NAME = "[DEV] Altme";
662662
INFOPLIST_FILE = Runner/Info.plist;
663-
INFOPLIST_KEY_CFBundleDisplayName = "Talao Wallet";
663+
IPHONEOS_DEPLOYMENT_TARGET = 16.6;
664664
LD_RUNPATH_SEARCH_PATHS = (
665665
"$(inherited)",
666666
"@executable_path/Frameworks",
@@ -744,7 +744,7 @@
744744
ENABLE_BITCODE = NO;
745745
FLAVOR_APP_NAME = "[DEV] Altme";
746746
INFOPLIST_FILE = Runner/Info.plist;
747-
INFOPLIST_KEY_CFBundleDisplayName = "Talao Wallet";
747+
IPHONEOS_DEPLOYMENT_TARGET = 16.6;
748748
LD_RUNPATH_SEARCH_PATHS = (
749749
"$(inherited)",
750750
"@executable_path/Frameworks",
@@ -825,7 +825,7 @@
825825
ENABLE_BITCODE = NO;
826826
FLAVOR_APP_NAME = "[DEV] Altme";
827827
INFOPLIST_FILE = Runner/Info.plist;
828-
INFOPLIST_KEY_CFBundleDisplayName = "Talao Wallet";
828+
IPHONEOS_DEPLOYMENT_TARGET = 16.6;
829829
LD_RUNPATH_SEARCH_PATHS = (
830830
"$(inherited)",
831831
"@executable_path/Frameworks",
@@ -910,7 +910,7 @@
910910
ENABLE_BITCODE = NO;
911911
FLAVOR_APP_NAME = "[STG] Altme";
912912
INFOPLIST_FILE = Runner/Info.plist;
913-
INFOPLIST_KEY_CFBundleDisplayName = "Talao Wallet";
913+
IPHONEOS_DEPLOYMENT_TARGET = 16.6;
914914
LD_RUNPATH_SEARCH_PATHS = (
915915
"$(inherited)",
916916
"@executable_path/Frameworks",
@@ -992,7 +992,7 @@
992992
ENABLE_BITCODE = NO;
993993
FLAVOR_APP_NAME = "[STG] Altme";
994994
INFOPLIST_FILE = Runner/Info.plist;
995-
INFOPLIST_KEY_CFBundleDisplayName = "Talao Wallet";
995+
IPHONEOS_DEPLOYMENT_TARGET = 16.6;
996996
LD_RUNPATH_SEARCH_PATHS = (
997997
"$(inherited)",
998998
"@executable_path/Frameworks",
@@ -1071,7 +1071,7 @@
10711071
ENABLE_BITCODE = NO;
10721072
FLAVOR_APP_NAME = "[STG] Altme";
10731073
INFOPLIST_FILE = Runner/Info.plist;
1074-
INFOPLIST_KEY_CFBundleDisplayName = "Talao Wallet";
1074+
IPHONEOS_DEPLOYMENT_TARGET = 16.6;
10751075
LD_RUNPATH_SEARCH_PATHS = (
10761076
"$(inherited)",
10771077
"@executable_path/Frameworks",

ios/Runner/Info.plist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@
120120
<key>CFBundleTypeRole</key>
121121
<string>Editor</string>
122122
<key>CFBundleURLName</key>
123-
<string>openid</string>
123+
<string>eudi-openid4vp</string>
124124
<key>CFBundleURLSchemes</key>
125125
<array>
126126
<string>eudi-openid4vp</string>

lib/activity_log/activity_log_manager.dart

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import 'package:secure_storage/secure_storage.dart';
55

66
class ActivityLogManager {
77
ActivityLogManager(SecureStorageProvider secureStorageProvider)
8-
: _secureStorageProvider = secureStorageProvider;
8+
: _secureStorageProvider = secureStorageProvider;
99

1010
final SecureStorageProvider _secureStorageProvider;
1111

@@ -19,9 +19,8 @@ class ActivityLogManager {
1919
final logStrings = logDataJson.split('\n');
2020
return logStrings
2121
.map(
22-
(logString) => LogData.fromJson(
23-
jsonDecode(logString) as Map<String, dynamic>,
24-
),
22+
(logString) =>
23+
LogData.fromJson(jsonDecode(logString) as Map<String, dynamic>),
2524
)
2625
.toList();
2726
}

lib/activity_log/log_class.dart

Lines changed: 5 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,8 @@ part 'log_class.g.dart';
66

77
@JsonSerializable()
88
class LogData extends Equatable {
9-
LogData({
10-
required this.type,
11-
DateTime? timestamp,
12-
this.vcInfo,
13-
}) : timestamp = timestamp ?? DateTime.now();
9+
LogData({required this.type, DateTime? timestamp, this.vcInfo})
10+
: timestamp = timestamp ?? DateTime.now();
1411

1512
factory LogData.fromJson(Map<String, dynamic> json) =>
1613
_$LogDataFromJson(json);
@@ -22,20 +19,12 @@ class LogData extends Equatable {
2219
Map<String, dynamic> toJson() => _$LogDataToJson(this);
2320

2421
@override
25-
List<Object?> get props => [
26-
type,
27-
timestamp,
28-
vcInfo,
29-
];
22+
List<Object?> get props => [type, timestamp, vcInfo];
3023
}
3124

3225
@JsonSerializable()
3326
class VCInfo extends Equatable {
34-
const VCInfo({
35-
required this.id,
36-
required this.name,
37-
this.domain,
38-
});
27+
const VCInfo({required this.id, required this.name, this.domain});
3928

4029
factory VCInfo.fromJson(Map<String, dynamic> json) => _$VCInfoFromJson(json);
4130

@@ -46,9 +35,5 @@ class VCInfo extends Equatable {
4635
Map<String, dynamic> toJson() => _$VCInfoToJson(this);
4736

4837
@override
49-
List<Object?> get props => [
50-
id,
51-
name,
52-
domain,
53-
];
38+
List<Object?> get props => [id, name, domain];
5439
}

lib/ai/widget/ai_analysis_page.dart

Lines changed: 4 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -6,20 +6,13 @@ import 'package:altme/l10n/l10n.dart';
66
import 'package:flutter/material.dart';
77

88
class AiAnalysisPage extends StatelessWidget {
9-
const AiAnalysisPage({
10-
super.key,
11-
required this.content,
12-
});
9+
const AiAnalysisPage({super.key, required this.content});
1310

1411
final String content;
1512

16-
static Route<dynamic> route({
17-
required String content,
18-
}) =>
13+
static Route<dynamic> route({required String content}) =>
1914
MaterialPageRoute<void>(
20-
builder: (_) => AiAnalysisPage(
21-
content: content,
22-
),
15+
builder: (_) => AiAnalysisPage(content: content),
2316
settings: const RouteSettings(name: '/AiAnalysisPage'),
2417
);
2518

@@ -45,9 +38,7 @@ class AiAnalysisPage extends StatelessWidget {
4538
),
4639
),
4740
navigation: Padding(
48-
padding: const EdgeInsets.all(
49-
Sizes.spaceSmall,
50-
),
41+
padding: const EdgeInsets.all(Sizes.spaceSmall),
5142
child: Column(
5243
mainAxisSize: MainAxisSize.min,
5344
children: [

lib/ai/widget/ai_credential_analysis_button.dart

Lines changed: 17 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,7 @@ import 'package:flutter_dotenv/flutter_dotenv.dart';
1616
import 'package:secure_storage/secure_storage.dart';
1717

1818
class AiCredentialAnalysisButton extends StatelessWidget {
19-
const AiCredentialAnalysisButton({
20-
super.key,
21-
required this.credential,
22-
});
19+
const AiCredentialAnalysisButton({super.key, required this.credential});
2320

2421
/// received credential is already in base64 format if it is a jwt and
2522
/// is converted to base64 if it is a json-ld
@@ -34,9 +31,7 @@ class AiCredentialAnalysisButton extends StatelessWidget {
3431
if (credential.aiCredentialAnalysis != null &&
3532
credential.aiCredentialAnalysis!.isNotEmpty) {
3633
await Navigator.of(context).push<void>(
37-
AiAnalysisPage.route(
38-
content: credential.aiCredentialAnalysis!,
39-
),
34+
AiAnalysisPage.route(content: credential.aiCredentialAnalysis!),
4035
);
4136
return;
4237
}
@@ -45,7 +40,8 @@ class AiCredentialAnalysisButton extends StatelessWidget {
4540
/// current link with talao.io. In the popup User can
4641
/// press on the accept button to continue or cancel
4742
/// to close the popup
48-
final acceptAnalysis = await showDialog<bool>(
43+
final acceptAnalysis =
44+
await showDialog<bool>(
4945
context: context,
5046
builder: (BuildContext context) {
5147
return ConfirmDialog(
@@ -62,9 +58,7 @@ class AiCredentialAnalysisButton extends StatelessWidget {
6258
if (acceptAnalysis) {
6359
LoadingView().show(context: context, text: l10n.aiPleaseWait);
6460
final encodedCredential = base64Encode(
65-
utf8.encode(
66-
credential.jwt ?? jsonEncode(credential.data),
67-
),
61+
utf8.encode(credential.jwt ?? jsonEncode(credential.data)),
6862
);
6963
final client = DioClient(
7064
secureStorageProvider: getSecureStorage,
@@ -81,27 +75,24 @@ class AiCredentialAnalysisButton extends StatelessWidget {
8175
'api-key': dotenv.get('WALLET_API_KEY_ID360'),
8276
};
8377
try {
84-
final response = await client.post(
85-
'https://talao.co/ai/wallet/vc',
86-
data: {
87-
'vc': encodedCredential,
88-
},
89-
headers: headers,
90-
timeout: 90,
91-
) as String;
78+
final response =
79+
await client.post(
80+
'https://talao.co/ai/wallet/vc',
81+
data: {'vc': encodedCredential},
82+
headers: headers,
83+
timeout: 90,
84+
)
85+
as String;
9286
if (response == '') {
9387
throw Exception('Ai analysis is null or empty');
9488
}
9589
LoadingView().hide();
9690
await context.read<CredentialsCubit>().updateCredential(
97-
credential:
98-
credential.copyWith(aiCredentialAnalysis: response),
99-
);
100-
await Navigator.of(context).push<void>(
101-
AiAnalysisPage.route(
102-
content: response,
103-
),
91+
credential: credential.copyWith(aiCredentialAnalysis: response),
10492
);
93+
await Navigator.of(
94+
context,
95+
).push<void>(AiAnalysisPage.route(content: response));
10596
} catch (e) {
10697
LoadingView().hide();
10798
Exception('Error during AI analysis: $e');

0 commit comments

Comments
 (0)