@velocitycareerlabs/vcl-react-native 2.4.6 → 2.5.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/android/build.gradle +5 -3
- package/android/src/main/java/io/velocitycareerlabs/reactnative/utlis/Converter.kt +1 -1
- package/ios/Utils/Converter.swift +1 -1
- package/lib/typescript/src/api/entities/VCLFinalizeOffersDescriptor.d.ts +1 -2
- package/lib/typescript/src/api/entities/VCLFinalizeOffersDescriptor.d.ts.map +1 -1
- package/lib/typescript/src/api/entities/VCLOffers.d.ts +1 -1
- package/lib/typescript/src/api/entities/VCLOffers.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/api/entities/VCLFinalizeOffersDescriptor.ts +1 -2
- package/src/api/entities/VCLOffers.ts +1 -1
- package/velocitycareerlabs-vcl-react-native.podspec +1 -1
package/android/build.gradle
CHANGED
|
@@ -91,8 +91,10 @@ dependencies {
|
|
|
91
91
|
implementation "com.facebook.react:react-native:+"
|
|
92
92
|
implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
|
|
93
93
|
|
|
94
|
-
|
|
95
|
-
implementation "
|
|
96
|
-
implementation
|
|
94
|
+
//--------- Must: be added:
|
|
95
|
+
implementation "io.velocitycareerlabs:vcl:2.5.4"
|
|
96
|
+
implementation 'com.nimbusds:nimbus-jose-jwt:9.40'
|
|
97
|
+
implementation "androidx.security:security-crypto:1.1.0-alpha06"
|
|
98
|
+
//-------------------------
|
|
97
99
|
}
|
|
98
100
|
|
|
@@ -647,7 +647,7 @@ object Converter {
|
|
|
647
647
|
finalizedOffersDescriptorMap: ReadableMap
|
|
648
648
|
) = VCLFinalizeOffersDescriptor(
|
|
649
649
|
credentialManifest = mapToCredentialManifest(finalizedOffersDescriptorMap.getMapOpt("credentialManifest")),
|
|
650
|
-
|
|
650
|
+
challenge = finalizedOffersDescriptorMap.getString("challenge"),
|
|
651
651
|
approvedOfferIds = (finalizedOffersDescriptorMap.getArrayOpt("approvedOfferIds")?.toArrayList()
|
|
652
652
|
?.toList() as? List<String>) ?: listOf(),
|
|
653
653
|
rejectedOfferIds = (finalizedOffersDescriptorMap.getArrayOpt("rejectedOfferIds")?.toArrayList()
|
|
@@ -592,7 +592,7 @@ func dictionaryToFinalizedOffersDescriptor(
|
|
|
592
592
|
) -> VCLFinalizeOffersDescriptor {
|
|
593
593
|
return VCLFinalizeOffersDescriptor(
|
|
594
594
|
credentialManifest: dictionaryToCredentialManifest(finalizedOffersDescriptorDictionary["credentialManifest"] as? [String : Any]),
|
|
595
|
-
|
|
595
|
+
challenge: finalizedOffersDescriptorDictionary["challenge"] as? String,
|
|
596
596
|
approvedOfferIds: finalizedOffersDescriptorDictionary["approvedOfferIds"] as? [String] ?? [String](),
|
|
597
597
|
rejectedOfferIds: finalizedOffersDescriptorDictionary["rejectedOfferIds"] as? [String] ?? [String]()
|
|
598
598
|
)
|
|
@@ -5,10 +5,9 @@
|
|
|
5
5
|
* SPDX-License-Identifier: Apache-2.0
|
|
6
6
|
*/
|
|
7
7
|
import type { VCLCredentialManifest } from './VCLCredentialManifest';
|
|
8
|
-
import type { VCLOffers } from './VCLOffers';
|
|
9
8
|
export interface VCLFinalizeOffersDescriptor {
|
|
10
9
|
credentialManifest: VCLCredentialManifest;
|
|
11
|
-
|
|
10
|
+
challenge?: string;
|
|
12
11
|
rejectedOfferIds: string[];
|
|
13
12
|
approvedOfferIds: string[];
|
|
14
13
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"VCLFinalizeOffersDescriptor.d.ts","sourceRoot":"","sources":["../../../../../src/api/entities/VCLFinalizeOffersDescriptor.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;
|
|
1
|
+
{"version":3,"file":"VCLFinalizeOffersDescriptor.d.ts","sourceRoot":"","sources":["../../../../../src/api/entities/VCLFinalizeOffersDescriptor.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAErE,MAAM,WAAW,2BAA2B;IAC1C,kBAAkB,EAAE,qBAAqB,CAAC;IAC1C,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,gBAAgB,EAAE,MAAM,EAAE,CAAC;IAC3B,gBAAgB,EAAE,MAAM,EAAE,CAAC;CAC5B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"VCLOffers.d.ts","sourceRoot":"","sources":["../../../../../src/api/entities/VCLOffers.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAChD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAC3C,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAE3C,MAAM,WAAW,SAAS;IACxB,OAAO,EAAE,UAAU,CAAC,GAAG,CAAC,CAAC;IACzB,GAAG,EAAE,QAAQ,EAAE,CAAC;IAChB,YAAY,EAAE,MAAM,CAAC;IACrB,YAAY,EAAE,QAAQ,CAAC;IACvB,SAAS,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"VCLOffers.d.ts","sourceRoot":"","sources":["../../../../../src/api/entities/VCLOffers.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAChD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAC3C,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAE3C,MAAM,WAAW,SAAS;IACxB,OAAO,EAAE,UAAU,CAAC,GAAG,CAAC,CAAC;IACzB,GAAG,EAAE,QAAQ,EAAE,CAAC;IAChB,YAAY,EAAE,MAAM,CAAC;IACrB,YAAY,EAAE,QAAQ,CAAC;IACvB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB"}
|
package/package.json
CHANGED
|
@@ -6,11 +6,10 @@
|
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
8
|
import type { VCLCredentialManifest } from './VCLCredentialManifest';
|
|
9
|
-
import type { VCLOffers } from './VCLOffers';
|
|
10
9
|
|
|
11
10
|
export interface VCLFinalizeOffersDescriptor {
|
|
12
11
|
credentialManifest: VCLCredentialManifest;
|
|
13
|
-
|
|
12
|
+
challenge?: string;
|
|
14
13
|
rejectedOfferIds: string[];
|
|
15
14
|
approvedOfferIds: string[];
|
|
16
15
|
}
|
|
@@ -19,7 +19,7 @@ Pod::Spec.new do |s|
|
|
|
19
19
|
# https://github.com/CocoaPods/CocoaPods/issues/7234#issuecomment-346136322
|
|
20
20
|
# s.static_framework = true
|
|
21
21
|
|
|
22
|
-
s.dependency "VCL", "2.4
|
|
22
|
+
s.dependency "VCL", "2.5.4"
|
|
23
23
|
|
|
24
24
|
# Use install_modules_dependencies helper to install the dependencies if React Native version >=0.71.0.
|
|
25
25
|
# See https://github.com/facebook/react-native/blob/febf6b7f33fdb4904669f99d795eba4c0f95d7bf/scripts/cocoapods/new_architecture.rb#L79.
|