File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
analytics-kotlin-live/src/main/java/com/segment/analytics/liveplugins/kotlin Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -22,6 +22,7 @@ import java.lang.ref.WeakReference
2222import java.util.concurrent.CopyOnWriteArrayList
2323import kotlin.coroutines.CoroutineContext
2424import androidx.core.content.edit
25+ import com.segment.analytics.substrata.kotlin.JSExceptionHandler
2526import kotlinx.serialization.json.decodeFromJsonElement
2627
2728interface LivePluginsDependent {
@@ -37,7 +38,8 @@ data class LivePluginsSettings(
3738
3839class LivePlugins (
3940 private val fallbackFile : InputStream ? = null ,
40- private val forceFallbackFile : Boolean = false
41+ private val forceFallbackFile : Boolean = false ,
42+ exceptionHandler : JSExceptionHandler ? = null
4143) : EventPlugin, WaitingPlugin {
4244 override val type: Plugin .Type = Plugin .Type .Utility
4345
@@ -50,9 +52,7 @@ class LivePlugins(
5052
5153 private lateinit var sharedPreferences: SharedPreferences
5254
53- val engine = JSScope {
54- it.printStackTrace()
55- }
55+ val engine = JSScope (exceptionHandler = exceptionHandler)
5656
5757 private lateinit var livePluginFile: File
5858
You can’t perform that action at this time.
0 commit comments