Skip to content

Commit

Permalink
refactor: Handle .vc for all
Browse files Browse the repository at this point in the history
  • Loading branch information
bibash28 committed Mar 15, 2024
1 parent 9102931 commit 07b68ae
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 25 deletions.
13 changes: 2 additions & 11 deletions lib/scan/cubit/scan_cubit.dart
Original file line number Diff line number Diff line change
Expand Up @@ -974,21 +974,12 @@ class ScanCubit extends Cubit<ScanState> {
in presentationDefinition.inputDescriptors) {
final filterList = inputDescriptor.constraints?.fields ?? <Field>[];

/// There is issue in EBSI conformance test which for modification of filterList
/// We apply this rule only with EBSI v3 profile
final List<Field> compatibleFilterList =
profileCubit.state.model.profileType != ProfileType.ebsiV3
? List.from(filterList)
: getEbsiV3CompatibleFilterList(filterList);
final credential = getCredentialsFromFilterList(
filterList: compatibleFilterList,
filterList: filterList,
credentialList: [credentialsToBePresented[i]],
);

final pathNested = {
'id': inputDescriptor.id,
'format': vcFormat,
};
final pathNested = {'id': inputDescriptor.id, 'format': vcFormat};

if (credential.isNotEmpty) {
if (credentialsToBePresented.length == 1) {
Expand Down
1 change: 0 additions & 1 deletion packages/credential_manifest/lib/credential_manifest.dart
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ library credential_manifest;
export 'src/credential_manifest.dart';
export 'src/helpers/get_color_from_credential.dart';
export 'src/helpers/get_credential_manifest.dart';
export 'src/helpers/get_ebsi_v3_compatible_filter_list.dart';
export 'src/helpers/get_text_from_credential.dart';
export 'src/models/color_object.dart';
export 'src/models/constraints.dart';
Expand Down

This file was deleted.

0 comments on commit 07b68ae

Please sign in to comment.