@velocitycareerlabs/vcl-react-native 1.11.6 → 1.12.1
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 +1 -1
- package/android/src/main/java/io/velocitycareerlabs/reactnative/utlis/Converter.kt +9 -4
- package/ios/Utils/Converter.swift +6 -2
- package/lib/commonjs/api/entities/VCLJwtVerifiableCredentials.js.map +1 -1
- package/lib/module/api/entities/VCLJwtVerifiableCredentials.js.map +1 -1
- package/lib/typescript/api/entities/VCLJwtVerifiableCredentials.d.ts +2 -1
- package/package.json +1 -1
- package/src/api/entities/VCLJwtVerifiableCredentials.ts +2 -1
- package/vcl-react-native.podspec +4 -2
package/android/build.gradle
CHANGED
|
@@ -531,11 +531,16 @@ object Converter {
|
|
|
531
531
|
jwtVerifiableCredentials: VCLJwtVerifiableCredentials
|
|
532
532
|
): ReadableMap {
|
|
533
533
|
val jwtVerifiableCredentialsMap = Arguments.createMap()
|
|
534
|
-
val
|
|
535
|
-
|
|
536
|
-
|
|
534
|
+
val passedCredentials = Arguments.createArray()
|
|
535
|
+
val failedCredentials = Arguments.createArray()
|
|
536
|
+
jwtVerifiableCredentials.passedCredentials.forEach {
|
|
537
|
+
passedCredentials.pushString(it.signedJwt.serialize())
|
|
537
538
|
}
|
|
538
|
-
|
|
539
|
+
jwtVerifiableCredentials.failedCredentials.forEach {
|
|
540
|
+
failedCredentials.pushString(it.signedJwt.serialize())
|
|
541
|
+
}
|
|
542
|
+
jwtVerifiableCredentialsMap.putArray("passedCredentials", passedCredentials)
|
|
543
|
+
jwtVerifiableCredentialsMap.putArray("failedCredentials", failedCredentials)
|
|
539
544
|
return jwtVerifiableCredentialsMap
|
|
540
545
|
}
|
|
541
546
|
|
|
@@ -494,10 +494,14 @@ func jwtVerifiableCredentialsToDictionary(
|
|
|
494
494
|
_ jwtVerifiableCredentials: VCLJwtVerifiableCredentials
|
|
495
495
|
) -> [String: Any] {
|
|
496
496
|
var jwtVerifiableCredentialsDictionary = [String: Any]()
|
|
497
|
-
let
|
|
497
|
+
let passedCredentials = jwtVerifiableCredentials.passedCredentials.map {
|
|
498
498
|
$0.encodedJwt
|
|
499
499
|
}
|
|
500
|
-
|
|
500
|
+
let failedCredentials = jwtVerifiableCredentials.failedCredentials.map {
|
|
501
|
+
$0.encodedJwt
|
|
502
|
+
}
|
|
503
|
+
jwtVerifiableCredentialsDictionary["passedCredentials"] = passedCredentials
|
|
504
|
+
jwtVerifiableCredentialsDictionary["failedCredentials"] = failedCredentials
|
|
501
505
|
return jwtVerifiableCredentialsDictionary
|
|
502
506
|
}
|
|
503
507
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":[],"sources":["VCLJwtVerifiableCredentials.ts"],"sourcesContent":["/**\n * Created by Michael Avoyan.\n *\n * Copyright 2022 Velocity Career Labs inc.\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport type { VCLJwt } from './VCLJwt';\n\nexport interface VCLJwtVerifiableCredentials {\n
|
|
1
|
+
{"version":3,"names":[],"sources":["VCLJwtVerifiableCredentials.ts"],"sourcesContent":["/**\n * Created by Michael Avoyan.\n *\n * Copyright 2022 Velocity Career Labs inc.\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport type { VCLJwt } from './VCLJwt';\n\nexport interface VCLJwtVerifiableCredentials {\n passedCredentials: VCLJwt[];\n failedCredentials: VCLJwt[];\n}\n"],"mappings":""}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":[],"sources":["VCLJwtVerifiableCredentials.ts"],"sourcesContent":["/**\n * Created by Michael Avoyan.\n *\n * Copyright 2022 Velocity Career Labs inc.\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport type { VCLJwt } from './VCLJwt';\n\nexport interface VCLJwtVerifiableCredentials {\n
|
|
1
|
+
{"version":3,"names":[],"sources":["VCLJwtVerifiableCredentials.ts"],"sourcesContent":["/**\n * Created by Michael Avoyan.\n *\n * Copyright 2022 Velocity Career Labs inc.\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport type { VCLJwt } from './VCLJwt';\n\nexport interface VCLJwtVerifiableCredentials {\n passedCredentials: VCLJwt[];\n failedCredentials: VCLJwt[];\n}\n"],"mappings":""}
|
package/package.json
CHANGED
package/vcl-react-native.podspec
CHANGED
|
@@ -10,13 +10,15 @@ Pod::Spec.new do |s|
|
|
|
10
10
|
s.license = package["license"]
|
|
11
11
|
s.authors = package["author"]
|
|
12
12
|
|
|
13
|
-
s.platforms = { :ios => "
|
|
13
|
+
s.platforms = { :ios => "13" }
|
|
14
14
|
s.source = { :git => "https://github.com/velocitycareerlabs/vcl-react-native.git", :tag => "#{s.version}" }
|
|
15
15
|
|
|
16
16
|
s.source_files = "ios/**/*.{h,m,mm,swift}"
|
|
17
17
|
|
|
18
18
|
s.swift_version = "5.0"
|
|
19
19
|
|
|
20
|
+
s.static_framework = true
|
|
21
|
+
|
|
20
22
|
s.dependency "React"
|
|
21
|
-
s.dependency "VCL", "1.
|
|
23
|
+
s.dependency "VCL", "1.12.1"
|
|
22
24
|
end
|