@log-drop/react-native 2.0.1 → 2.0.2
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/ios/LogDropReactNative.swift +23 -22
- package/package.json +1 -1
|
@@ -19,29 +19,30 @@ class LogDropReactNative: NSObject, CLLocationManagerDelegate {
|
|
|
19
19
|
|
|
20
20
|
@objc
|
|
21
21
|
func initLogDrop(_ config: NSDictionary) {
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
22
|
+
DispatchQueue.main.async {
|
|
23
|
+
let builder = LogDropConfig.Builder()
|
|
24
|
+
|
|
25
|
+
if let apiKey = config["apiKey"] as? String {
|
|
26
|
+
builder.setApiKey(apiKey)
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
if let baseUrl = config["baseUrl"] as? String {
|
|
30
|
+
builder.setBaseUrl(baseUrl)
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
if let defaultSDKDisabled = config["defaultSDKDisabled"] as? Bool {
|
|
34
|
+
builder.setDefaultSDKDisabledValue(defaultSDKDisabled)
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
if let isLoggingEnabled = config["isLoggingEnabled"] as? Bool {
|
|
38
|
+
builder.setLoggingEnabled(isLoggingEnabled)
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
builder.setFrameworkType(.reactNative)
|
|
42
|
+
|
|
43
|
+
let logDropConfig = builder.build()
|
|
44
|
+
LogDrop.initialize(with: logDropConfig)
|
|
38
45
|
}
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
builder.setFrameworkType(.reactNative)
|
|
42
|
-
|
|
43
|
-
let logDropConfig = builder.build()
|
|
44
|
-
LogDrop.initialize(with: logDropConfig)
|
|
45
46
|
}
|
|
46
47
|
|
|
47
48
|
@objc
|