@log-drop/react-native 2.0.1 → 2.0.3-alpha1
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/ios/LogDropReactNative.swift +23 -22
- package/package.json +1 -1
package/android/build.gradle
CHANGED
|
@@ -77,6 +77,6 @@ def kotlin_version = getExtOrDefault("kotlinVersion")
|
|
|
77
77
|
dependencies {
|
|
78
78
|
implementation "com.facebook.react:react-android"
|
|
79
79
|
implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
|
|
80
|
-
implementation "io.logdrop:sdk:2.0.
|
|
80
|
+
implementation "io.logdrop:sdk:2.0.6-alpha2"
|
|
81
81
|
}
|
|
82
82
|
|
|
@@ -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
|