@velocitycareerlabs/vcl-react-native 1.12.4 → 1.12.6

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.
@@ -428,9 +428,9 @@ object Converter {
428
428
  fun mapToServiceCredentialAgentIssuer(
429
429
  serviceMap: ReadableMap?
430
430
  ): VCLServiceCredentialAgentIssuer {
431
- var payload = JSONObject("{}")
431
+ var payload = JSONObject()
432
432
  try {
433
- payload = JSONObject(serviceMap?.getMapOpt("payload").toString()).getJSONObject("NativeMap")
433
+ payload = serviceMap?.getMapOpt("payload")?.toJsonObject() ?: JSONObject()
434
434
  } catch (ex: Exception) {
435
435
  ex.printStackTrace()
436
436
  }
@@ -0,0 +1,22 @@
1
+ //
2
+ // GlobalConfig.swift
3
+ // vcl-react-native
4
+ //
5
+ // Created by Michael Avoyan on 08/08/2023.
6
+ //
7
+ // Copyright 2022 Velocity Career Labs inc.
8
+ // SPDX-License-Identifier: Apache-2.0
9
+
10
+ import Foundation
11
+ import VCL
12
+
13
+ struct GlobalConfig {
14
+
15
+ static var CurrentEnvironment = VCLEnvironment.PROD
16
+
17
+ static var IsDebugOn = false
18
+
19
+ static let LogTagPrefix = "VCL RN iOS "
20
+
21
+ static var IsLoggerOn: Bool { get { CurrentEnvironment != VCLEnvironment.PROD || GlobalConfig.IsDebugOn } }
22
+ }
@@ -137,9 +137,9 @@ class VclReactNative: NSObject {
137
137
  credentialManifestDescriptorDictionary: [String: Any],
138
138
  resolve: @escaping RCTPromiseResolveBlock, reject: @escaping RCTPromiseRejectBlock
139
139
  ) {
140
- VCLLog.d("credentialManifestDescriptorDictionary: \(credentialManifestDescriptorDictionary)")
140
+ VCLLog.d("credentialManifestDescriptorDictionary dictionary: \(credentialManifestDescriptorDictionary)")
141
141
  if let credentialManifestDescriptor = dictionaryToCredentialManifestDescriptor(credentialManifestDescriptorDictionary) {
142
- VCLLog.d("credentialManifestDescriptor: \(credentialManifestDescriptor.toPropsString())")
142
+ VCLLog.d("credentialManifestDescriptor VCL entity: \(credentialManifestDescriptor.toPropsString())")
143
143
  vcl.getCredentialManifest(
144
144
  credentialManifestDescriptor: credentialManifestDescriptor,
145
145
  successHandler: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@velocitycareerlabs/vcl-react-native",
3
- "version": "1.12.4",
3
+ "version": "1.12.6",
4
4
  "description": "Velocity Career Labs React Native SDK",
5
5
  "main": "lib/commonjs/index",
6
6
  "module": "lib/module/index",