@datalyr/react-native 1.4.0 → 1.4.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.
@@ -107,14 +107,15 @@ public class DatalyrNativeModule: Module {
107
107
 
108
108
  AsyncFunction("initializeTikTokSDK") { (appId: String, tiktokAppId: String, accessToken: String?, debug: Bool, promise: Promise) in
109
109
  DispatchQueue.main.async {
110
- let config = TikTokConfig(appId: appId, tiktokAppId: tiktokAppId)
111
-
110
+ let config: TikTokConfig?
112
111
  if let token = accessToken, !token.isEmpty {
113
- config?.accessToken = token
112
+ config = TikTokConfig(accessToken: token, appId: appId, tiktokAppId: tiktokAppId)
113
+ } else {
114
+ config = TikTokConfig(appId: appId, tiktokAppId: tiktokAppId)
114
115
  }
115
116
 
116
117
  if debug {
117
- config?.setLogLevel(.debug)
118
+ config?.setLogLevel(.verbose)
118
119
  }
119
120
 
120
121
  if let validConfig = config {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@datalyr/react-native",
3
- "version": "1.4.0",
3
+ "version": "1.4.2",
4
4
  "description": "Datalyr SDK for React Native & Expo - Server-side attribution tracking with bundled Meta and TikTok SDKs for iOS and Android",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",