@velocitycareerlabs/vcl-react-native 1.14.7 → 1.14.8
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/src/main/java/io/velocitycareerlabs/reactnative/.DS_Store +0 -0
- package/android/src/main/java/io/velocitycareerlabs/reactnative/extensions/MapExtensions.kt +8 -8
- package/android/src/main/java/io/velocitycareerlabs/reactnative/utlis/Converter.kt +2 -2
- package/ios/.DS_Store +0 -0
- package/ios/GlobalConfig.swift +22 -0
- package/ios/VclReactNative.xcodeproj/project.pbxproj +2 -0
- package/ios/VclReactNative.xcodeproj/project.xcworkspace/contents.xcworkspacedata +7 -0
- package/ios/VclReactNative.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist +8 -0
- package/ios/VclReactNative.xcodeproj/project.xcworkspace/xcuserdata/michaelavoyan.xcuserdatad/UserInterfaceState.xcuserstate +0 -0
- package/ios/VclReactNative.xcodeproj/xcuserdata/michaelavoyan.xcuserdatad/xcschemes/xcschememanagement.plist +14 -0
- package/package.json +1 -1
|
@@ -23,7 +23,7 @@ fun ReadableMap.getBooleanOpt(key: String): Boolean? {
|
|
|
23
23
|
return try {
|
|
24
24
|
this.getBoolean(key)
|
|
25
25
|
} catch (e: Exception) {
|
|
26
|
-
e.printStackTrace()
|
|
26
|
+
// e.printStackTrace()
|
|
27
27
|
null
|
|
28
28
|
}
|
|
29
29
|
}
|
|
@@ -36,7 +36,7 @@ fun ReadableMap.getDoubleOpt(key: String): Double? {
|
|
|
36
36
|
return try {
|
|
37
37
|
this.getDouble(key)
|
|
38
38
|
} catch (e: Exception) {
|
|
39
|
-
e.printStackTrace()
|
|
39
|
+
// e.printStackTrace()
|
|
40
40
|
null
|
|
41
41
|
}
|
|
42
42
|
}
|
|
@@ -49,7 +49,7 @@ fun ReadableMap.getIntOpt(key: String): Int? {
|
|
|
49
49
|
return try {
|
|
50
50
|
this.getInt(key)
|
|
51
51
|
} catch (e: Exception) {
|
|
52
|
-
e.printStackTrace()
|
|
52
|
+
// e.printStackTrace()
|
|
53
53
|
null
|
|
54
54
|
}
|
|
55
55
|
}
|
|
@@ -62,7 +62,7 @@ fun ReadableMap.getStringOpt(key: String): String? {
|
|
|
62
62
|
return try {
|
|
63
63
|
this.getString(key)
|
|
64
64
|
} catch (e: Exception) {
|
|
65
|
-
e.printStackTrace()
|
|
65
|
+
// e.printStackTrace()
|
|
66
66
|
null
|
|
67
67
|
}
|
|
68
68
|
}
|
|
@@ -75,7 +75,7 @@ fun ReadableMap.getArrayOpt(key: String): ReadableArray? {
|
|
|
75
75
|
return try {
|
|
76
76
|
this.getArray(key)
|
|
77
77
|
} catch (e: Exception) {
|
|
78
|
-
e.printStackTrace()
|
|
78
|
+
// e.printStackTrace()
|
|
79
79
|
null
|
|
80
80
|
}
|
|
81
81
|
}
|
|
@@ -88,7 +88,7 @@ fun ReadableMap.getMapOpt(key: String): ReadableMap? {
|
|
|
88
88
|
return try {
|
|
89
89
|
this.getMap(key)
|
|
90
90
|
} catch (e: Exception) {
|
|
91
|
-
e.printStackTrace()
|
|
91
|
+
// e.printStackTrace()
|
|
92
92
|
null
|
|
93
93
|
}
|
|
94
94
|
}
|
|
@@ -101,7 +101,7 @@ fun ReadableMap.toJsonObject(): JSONObject {
|
|
|
101
101
|
return try {
|
|
102
102
|
JSONObject(this.toHashMap())
|
|
103
103
|
} catch (e: Exception) {
|
|
104
|
-
e.printStackTrace()
|
|
104
|
+
// e.printStackTrace()
|
|
105
105
|
JSONObject()
|
|
106
106
|
}
|
|
107
107
|
}
|
|
@@ -114,7 +114,7 @@ fun ReadableArray.toJsonArray(): JSONArray {
|
|
|
114
114
|
return try {
|
|
115
115
|
JSONArray(this.toArrayList())
|
|
116
116
|
} catch (e: Exception) {
|
|
117
|
-
e.printStackTrace()
|
|
117
|
+
// e.printStackTrace()
|
|
118
118
|
JSONArray()
|
|
119
119
|
}
|
|
120
120
|
}
|
|
@@ -445,9 +445,9 @@ object Converter {
|
|
|
445
445
|
fun mapToServiceCredentialAgentIssuer(
|
|
446
446
|
serviceMap: ReadableMap?
|
|
447
447
|
): VCLServiceCredentialAgentIssuer {
|
|
448
|
-
var payload = JSONObject(
|
|
448
|
+
var payload = JSONObject()
|
|
449
449
|
try {
|
|
450
|
-
payload =
|
|
450
|
+
payload = serviceMap?.getMapOpt("payload")?.toJsonObject() ?: JSONObject()
|
|
451
451
|
} catch (ex: Exception) {
|
|
452
452
|
ex.printStackTrace()
|
|
453
453
|
}
|
package/ios/.DS_Store
CHANGED
|
Binary file
|
|
@@ -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
|
+
}
|
|
@@ -28,6 +28,7 @@
|
|
|
28
28
|
134814201AA4EA6300B7C361 /* libVclReactNative.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = libVclReactNative.a; sourceTree = BUILT_PRODUCTS_DIR; };
|
|
29
29
|
289FEEA127DE121D00E58425 /* Converter.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = Converter.swift; sourceTree = "<group>"; };
|
|
30
30
|
289FEEA327DE121D00E58425 /* StringExtensions.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = StringExtensions.swift; sourceTree = "<group>"; };
|
|
31
|
+
28ADE5EF2A82C7EA001A8453 /* GlobalConfig.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = GlobalConfig.swift; sourceTree = "<group>"; };
|
|
31
32
|
B3E7B5891CC2AC0600A0062D /* VclReactNative.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = VclReactNative.m; sourceTree = "<group>"; };
|
|
32
33
|
F4FF95D5245B92E700C19C63 /* VclReactNative-Bridging-Header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "VclReactNative-Bridging-Header.h"; sourceTree = "<group>"; };
|
|
33
34
|
F4FF95D6245B92E800C19C63 /* VclReactNative.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = VclReactNative.swift; sourceTree = "<group>"; };
|
|
@@ -73,6 +74,7 @@
|
|
|
73
74
|
children = (
|
|
74
75
|
289FEEA227DE121D00E58425 /* Extensions */,
|
|
75
76
|
289FEEA027DE121D00E58425 /* Utils */,
|
|
77
|
+
28ADE5EF2A82C7EA001A8453 /* GlobalConfig.swift */,
|
|
76
78
|
F4FF95D6245B92E800C19C63 /* VclReactNative.swift */,
|
|
77
79
|
B3E7B5891CC2AC0600A0062D /* VclReactNative.m */,
|
|
78
80
|
F4FF95D5245B92E700C19C63 /* VclReactNative-Bridging-Header.h */,
|
|
Binary file
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
|
3
|
+
<plist version="1.0">
|
|
4
|
+
<dict>
|
|
5
|
+
<key>SchemeUserState</key>
|
|
6
|
+
<dict>
|
|
7
|
+
<key>VclReactNative.xcscheme_^#shared#^_</key>
|
|
8
|
+
<dict>
|
|
9
|
+
<key>orderHint</key>
|
|
10
|
+
<integer>0</integer>
|
|
11
|
+
</dict>
|
|
12
|
+
</dict>
|
|
13
|
+
</dict>
|
|
14
|
+
</plist>
|