@velocitycareerlabs/vcl-react-native 2.6.1 → 2.6.3

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.
@@ -92,7 +92,7 @@ dependencies {
92
92
  implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
93
93
 
94
94
  //--------- Must: be added:
95
- implementation "io.velocitycareerlabs:vcl:2.6.0"
95
+ implementation "io.velocitycareerlabs:vcl:2.6.3"
96
96
  implementation 'com.nimbusds:nimbus-jose-jwt:9.41.2'
97
97
  implementation "androidx.security:security-crypto:1.1.0-alpha06"
98
98
  //-------------------------
@@ -11,17 +11,17 @@ class VclReactNative: NSObject {
11
11
 
12
12
  private let vcl = VCLProvider.vclInstance()
13
13
 
14
- private func initGlobalConfigurations(
14
+ @MainActor private func initGlobalConfigurations(
15
15
  _ initializationDescriptor: VCLInitializationDescriptor
16
16
  ) {
17
17
  GlobalConfig.CurrentEnvironment = initializationDescriptor.environment
18
18
  GlobalConfig.IsDebugOn = initializationDescriptor.isDebugOn
19
19
  }
20
20
 
21
- @objc(initialize:withResolver:withRejecter:)
21
+ @MainActor @objc(initialize:withResolver:withRejecter:)
22
22
  func initialize(
23
23
  initializationDescriptorDictionary: [String: Sendable],
24
- resolve: @escaping @Sendable RCTPromiseResolveBlock, reject: @escaping @Sendable RCTPromiseRejectBlock
24
+ resolve: @escaping RCTPromiseResolveBlock, reject: @escaping RCTPromiseRejectBlock
25
25
  ) {
26
26
  let initializationDescriptor = dictionaryToInitializationDescriptor(initializationDescriptorDictionary)
27
27
  initGlobalConfigurations(initializationDescriptor)
@@ -35,9 +35,9 @@ class VclReactNative: NSObject {
35
35
  })
36
36
  }
37
37
 
38
- @objc(getCountries:withRejecter:)
38
+ @MainActor @objc(getCountries:withRejecter:)
39
39
  func getCountries(
40
- resolve: @escaping @Sendable RCTPromiseResolveBlock, reject: @escaping @Sendable RCTPromiseRejectBlock
40
+ resolve: @escaping RCTPromiseResolveBlock, reject: @escaping RCTPromiseRejectBlock
41
41
  ) {
42
42
  if let countries = vcl.countries {
43
43
  resolve(countriesToDictionary(countries))
@@ -47,9 +47,9 @@ class VclReactNative: NSObject {
47
47
  }
48
48
  }
49
49
 
50
- @objc(getCredentialTypeSchemas:withRejecter:)
50
+ @MainActor @objc(getCredentialTypeSchemas:withRejecter:)
51
51
  func getCredentialTypeSchemas(
52
- resolve: @escaping @Sendable RCTPromiseResolveBlock, reject: @escaping @Sendable RCTPromiseRejectBlock
52
+ resolve: @escaping RCTPromiseResolveBlock, reject: @escaping RCTPromiseRejectBlock
53
53
  ) {
54
54
  if let credentialTypeSchemas = vcl.credentialTypeSchemas {
55
55
  resolve(credentialTypeSchemasToDictionary(credentialTypeSchemas))
@@ -59,9 +59,9 @@ class VclReactNative: NSObject {
59
59
  }
60
60
  }
61
61
 
62
- @objc(getCredentialTypes:withRejecter:)
62
+ @MainActor @objc(getCredentialTypes:withRejecter:)
63
63
  func getCredentialTypes(
64
- resolve: @escaping @Sendable RCTPromiseResolveBlock, reject: @escaping @Sendable RCTPromiseRejectBlock
64
+ resolve: @escaping RCTPromiseResolveBlock, reject: @escaping RCTPromiseRejectBlock
65
65
  ) {
66
66
  if let credentialTypes = vcl.credentialTypes {
67
67
  resolve(credentialTypesToDictionary(credentialTypes))
@@ -71,10 +71,10 @@ class VclReactNative: NSObject {
71
71
  }
72
72
  }
73
73
 
74
- @objc(getPresentationRequest:withResolver:withRejecter:)
74
+ @MainActor @objc(getPresentationRequest:withResolver:withRejecter:)
75
75
  func getPresentationRequest(
76
76
  presentationRequestDescriptorDictionary: [String: Sendable],
77
- resolve: @escaping @Sendable RCTPromiseResolveBlock, reject: @escaping @Sendable RCTPromiseRejectBlock
77
+ resolve: @escaping RCTPromiseResolveBlock, reject: @escaping RCTPromiseRejectBlock
78
78
  ) {
79
79
  vcl.getPresentationRequest(
80
80
  presentationRequestDescriptor: dictionaryTopPresentationRequestDescriptor(presentationRequestDescriptorDictionary),
@@ -87,10 +87,10 @@ class VclReactNative: NSObject {
87
87
  )
88
88
  }
89
89
 
90
- @objc(submitPresentation:withResolver:withRejecter:)
90
+ @MainActor @objc(submitPresentation:withResolver:withRejecter:)
91
91
  func submitPresentation(
92
92
  presentationSubmissionDictionary: [String: Sendable],
93
- resolve: @escaping @Sendable RCTPromiseResolveBlock, reject: @escaping @Sendable RCTPromiseRejectBlock
93
+ resolve: @escaping RCTPromiseResolveBlock, reject: @escaping RCTPromiseRejectBlock
94
94
  ) {
95
95
  vcl.submitPresentation(
96
96
  presentationSubmission: dictionaryToPresentationSubmission(
@@ -104,10 +104,10 @@ class VclReactNative: NSObject {
104
104
  })
105
105
  }
106
106
 
107
- @objc(getExchangeProgress:withResolver:withRejecter:)
107
+ @MainActor @objc(getExchangeProgress:withResolver:withRejecter:)
108
108
  func getExchangeProgress(
109
109
  exchangeDescriptorDictionary: [String: Sendable],
110
- resolve: @escaping @Sendable RCTPromiseResolveBlock, reject: @escaping @Sendable RCTPromiseRejectBlock
110
+ resolve: @escaping RCTPromiseResolveBlock, reject: @escaping RCTPromiseRejectBlock
111
111
  ) {
112
112
  vcl.getExchangeProgress(
113
113
  exchangeDescriptor: dictionaryToExchangeDescriptor(exchangeDescriptorDictionary),
@@ -119,10 +119,10 @@ class VclReactNative: NSObject {
119
119
  })
120
120
  }
121
121
 
122
- @objc(searchForOrganizations:withResolver:withRejecter:)
122
+ @MainActor @objc(searchForOrganizations:withResolver:withRejecter:)
123
123
  func searchForOrganizations(
124
124
  organizationsSearchDescriptorDictionary: [String: Sendable],
125
- resolve: @escaping @Sendable RCTPromiseResolveBlock, reject: @escaping @Sendable RCTPromiseRejectBlock
125
+ resolve: @escaping RCTPromiseResolveBlock, reject: @escaping RCTPromiseRejectBlock
126
126
  ) {
127
127
  vcl.searchForOrganizations(
128
128
  organizationsSearchDescriptor: dictionayToOrganizationsSearchDescriptor(organizationsSearchDescriptorDictionary),
@@ -134,10 +134,10 @@ class VclReactNative: NSObject {
134
134
  })
135
135
  }
136
136
 
137
- @objc(getCredentialManifest:withResolver:withRejecter:)
137
+ @MainActor @objc(getCredentialManifest:withResolver:withRejecter:)
138
138
  func getCredentialManifest(
139
139
  credentialManifestDescriptorDictionary: [String: Sendable],
140
- resolve: @escaping @Sendable RCTPromiseResolveBlock, reject: @escaping @Sendable RCTPromiseRejectBlock
140
+ resolve: @escaping RCTPromiseResolveBlock, reject: @escaping RCTPromiseRejectBlock
141
141
  ) {
142
142
  VCLLog.d("credentialManifestDescriptorDictionary dictionary: \(credentialManifestDescriptorDictionary)")
143
143
  if let credentialManifestDescriptor = dictionaryToCredentialManifestDescriptor(credentialManifestDescriptorDictionary) {
@@ -155,10 +155,10 @@ class VclReactNative: NSObject {
155
155
  }
156
156
  }
157
157
 
158
- @objc(generateOffers:withResolver:withRejecter:)
158
+ @MainActor @objc(generateOffers:withResolver:withRejecter:)
159
159
  func generateOffers(
160
160
  generateOffersDescriptorDictionary: [String: Sendable],
161
- resolve: @escaping @Sendable RCTPromiseResolveBlock, reject: @escaping @Sendable RCTPromiseRejectBlock
161
+ resolve: @escaping RCTPromiseResolveBlock, reject: @escaping RCTPromiseRejectBlock
162
162
  ) {
163
163
  vcl.generateOffers(
164
164
  generateOffersDescriptor: dictionaryToGenerateOffersDescriptor(generateOffersDescriptorDictionary),
@@ -170,11 +170,11 @@ class VclReactNative: NSObject {
170
170
  })
171
171
  }
172
172
 
173
- @objc(checkForOffers:withtSessionTokenDictionary:withResolver:withRejecter:)
173
+ @MainActor @objc(checkForOffers:withtSessionTokenDictionary:withResolver:withRejecter:)
174
174
  func checkForOffers(
175
175
  generateOffersDescriptorDictionary: [String: Sendable],
176
176
  sessionTokenDictionary: [String: Sendable],
177
- resolve: @escaping @Sendable RCTPromiseResolveBlock, reject: @escaping @Sendable RCTPromiseRejectBlock
177
+ resolve: @escaping RCTPromiseResolveBlock, reject: @escaping RCTPromiseRejectBlock
178
178
  ) {
179
179
  vcl.checkForOffers(
180
180
  generateOffersDescriptor: dictionaryToGenerateOffersDescriptor(generateOffersDescriptorDictionary),
@@ -187,11 +187,11 @@ class VclReactNative: NSObject {
187
187
  })
188
188
  }
189
189
 
190
- @objc(finalizeOffers:withSessionTokenDictionary:withResolver:withRejecter:)
190
+ @MainActor @objc(finalizeOffers:withSessionTokenDictionary:withResolver:withRejecter:)
191
191
  func finalizeOffers(
192
192
  finalizeOffersDescriptorDictionary: [String: Sendable],
193
193
  sessionTokenDictionary: [String: Sendable],
194
- resolve: @escaping @Sendable RCTPromiseResolveBlock, reject: @escaping @Sendable RCTPromiseRejectBlock
194
+ resolve: @escaping RCTPromiseResolveBlock, reject: @escaping RCTPromiseRejectBlock
195
195
  ) {
196
196
  vcl.finalizeOffers(
197
197
  finalizeOffersDescriptor: dictionaryToFinalizedOffersDescriptor(finalizeOffersDescriptorDictionary),
@@ -204,10 +204,10 @@ class VclReactNative: NSObject {
204
204
  })
205
205
  }
206
206
 
207
- @objc(getCredentialTypesUIFormSchema:withResolver:withRejecter:)
207
+ @MainActor @objc(getCredentialTypesUIFormSchema:withResolver:withRejecter:)
208
208
  func getCredentialTypesUIFormSchema(
209
209
  credentialTypesUIFormSchemaDescriptorDictionary: [String: Sendable],
210
- resolve: @escaping @Sendable RCTPromiseResolveBlock, reject: @escaping @Sendable RCTPromiseRejectBlock
210
+ resolve: @escaping RCTPromiseResolveBlock, reject: @escaping RCTPromiseRejectBlock
211
211
  ) {
212
212
  vcl.getCredentialTypesUIFormSchema(
213
213
  credentialTypesUIFormSchemaDescriptor: readableMapToCredentialTypesUIFormSchemaDescriptor(credentialTypesUIFormSchemaDescriptorDictionary),
@@ -220,10 +220,10 @@ class VclReactNative: NSObject {
220
220
  )
221
221
  }
222
222
 
223
- @objc(getVerifiedProfile:withResolver:withRejecter:)
223
+ @MainActor @objc(getVerifiedProfile:withResolver:withRejecter:)
224
224
  func getVerifiedProfile(
225
225
  verifiedProfileDescriptorDictionary: [String: Sendable],
226
- resolve: @escaping @Sendable RCTPromiseResolveBlock, reject: @escaping @Sendable RCTPromiseRejectBlock
226
+ resolve: @escaping RCTPromiseResolveBlock, reject: @escaping RCTPromiseRejectBlock
227
227
  ) {
228
228
  vcl.getVerifiedProfile(
229
229
  verifiedProfileDescriptor: dictionaryToVerifiedProfileDescriptor(verifiedProfileDescriptorDictionary),
@@ -235,12 +235,12 @@ class VclReactNative: NSObject {
235
235
  })
236
236
  }
237
237
 
238
- @objc(verifyJwt:withPublicJwkDictionary:withRemoteCryptoServicesTokenDictionary:withResolver:withRejecter:)
238
+ @MainActor @objc(verifyJwt:withPublicJwkDictionary:withRemoteCryptoServicesTokenDictionary:withResolver:withRejecter:)
239
239
  func verifyJwt(
240
240
  jwtDictionary: [String: Sendable],
241
241
  publicJwkDictionary: [String: Sendable],
242
242
  remoteCryptoServicesTokenDictionary: [String: Sendable]? = nil,
243
- resolve: @escaping @Sendable RCTPromiseResolveBlock, reject: @escaping @Sendable RCTPromiseRejectBlock
243
+ resolve: @escaping RCTPromiseResolveBlock, reject: @escaping RCTPromiseRejectBlock
244
244
  ) {
245
245
  vcl.verifyJwt(
246
246
  jwt: dictionaryToJwt(jwtDictionary),
@@ -254,12 +254,12 @@ class VclReactNative: NSObject {
254
254
  })
255
255
  }
256
256
 
257
- @objc(generateSignedJwt:withDidJwkDictionary:withRemoteCryptoServicesTokenDictionary:withResolver:withRejecter:)
257
+ @MainActor @objc(generateSignedJwt:withDidJwkDictionary:withRemoteCryptoServicesTokenDictionary:withResolver:withRejecter:)
258
258
  func generateSignedJwt(
259
259
  jwtDescriptorDictionary: [String: Sendable],
260
260
  didJwkDictionary: [String: Sendable],
261
261
  remoteCryptoServicesTokenDictionary: [String: Sendable]? = nil,
262
- resolve: @escaping @Sendable RCTPromiseResolveBlock, reject: @escaping @Sendable RCTPromiseRejectBlock
262
+ resolve: @escaping RCTPromiseResolveBlock, reject: @escaping RCTPromiseRejectBlock
263
263
  ) {
264
264
  vcl.generateSignedJwt(
265
265
  jwtDescriptor: dictionaryToJwtDescriptor(jwtDescriptorDictionary),
@@ -273,10 +273,10 @@ class VclReactNative: NSObject {
273
273
  })
274
274
  }
275
275
 
276
- @objc(generateDidJwk:withResolver:withRejecter:)
276
+ @MainActor @objc(generateDidJwk:withResolver:withRejecter:)
277
277
  func generateDidJwk(
278
278
  didJwkDescriptorDictionary: [String: Sendable]? = nil,
279
- resolve: @escaping @Sendable RCTPromiseResolveBlock, reject: @escaping @Sendable RCTPromiseRejectBlock
279
+ resolve: @escaping RCTPromiseResolveBlock, reject: @escaping RCTPromiseRejectBlock
280
280
  ) {
281
281
  vcl.generateDidJwk(
282
282
  didJwkDescriptor: dictionaryToDidJwkDescriptor(didJwkDescriptorDictionary),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@velocitycareerlabs/vcl-react-native",
3
- "version": "2.6.1",
3
+ "version": "2.6.3",
4
4
  "description": "Velocity Career Labs React Native SDK",
5
5
  "main": "lib/commonjs/index",
6
6
  "module": "lib/module/index",
@@ -19,7 +19,9 @@ 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.6.0"
22
+ s.swift_version = "5.9"
23
+
24
+ s.dependency "VCL", "2.6.3"
23
25
 
24
26
  # Use install_modules_dependencies helper to install the dependencies if React Native version >=0.71.0.
25
27
  # See https://github.com/facebook/react-native/blob/febf6b7f33fdb4904669f99d795eba4c0f95d7bf/scripts/cocoapods/new_architecture.rb#L79.