@screeb/react-native 2.0.16 → 2.0.17

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.
@@ -123,6 +123,6 @@ def kotlin_version = getExtOrDefault('kotlinVersion')
123
123
  dependencies {
124
124
  // noinspection GradleDynamicVersion
125
125
  api 'com.facebook.react:react-native:+'
126
- implementation "app.screeb.sdk:survey:2.0.25"
126
+ implementation "app.screeb.sdk:survey:2.0.26"
127
127
  implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.8.22"
128
128
  }
@@ -13,6 +13,7 @@ import java.util.HashMap
13
13
  import androidx.annotation.NonNull
14
14
  import android.content.Context
15
15
  import android.util.Log
16
+ import app.screeb.sdk.InitOptions
16
17
  import app.screeb.sdk.Screeb
17
18
  import android.os.Handler
18
19
  import android.os.Looper
@@ -50,7 +51,7 @@ class ScreebModuleModule(reactContext: ReactApplicationContext) :
50
51
  }
51
52
 
52
53
  // TODO: pass to pluginInit
53
- var initOptions = Screeb.InitOptions()
54
+ var initOptions = InitOptions()
54
55
 
55
56
  Handler(Looper.getMainLooper()).post {
56
57
  Screeb.pluginInit(channelId, userId, map, mapHooks)
@@ -30,7 +30,7 @@ class ScreebModule: RCTEventEmitter {
30
30
  var initOptions = InitOptions()
31
31
  initOptions_?.forEach{ option in
32
32
  if (option.key == "isDebugMode") {
33
- initOptions = InitOptions(isDebugMode: option.value as! Bool)
33
+ initOptions = InitOptions(isDebugMode: option.value as? Bool)
34
34
  }
35
35
  }
36
36
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@screeb/react-native",
3
- "version": "2.0.16",
3
+ "version": "2.0.17",
4
4
  "description": "Continuous Product Discovery",
5
5
  "scripts": {
6
6
  "clean": "rm -rf lib/",
@@ -16,5 +16,5 @@ Pod::Spec.new do |s|
16
16
  s.source_files = "ios/**/*.{h,m,mm,swift}"
17
17
 
18
18
  s.dependency "React-Core"
19
- s.dependency "Screeb", '~> 2.0.5'
19
+ s.dependency "Screeb", '~> 2.0.7'
20
20
  end