You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if (params.isEmpty() || params[0] !isAnalytics|| params[1] !isKey) {
65
+
throwIllegalArgumentException("Invalid parameters for ConcreteStorageProvider. ConcreteStorageProvider requires at least 1 parameter and the first argument has to be an instance of Analytics")
66
+
}
67
+
68
+
val analytics = params[0] asAnalytics
69
+
val key = params[1] asKey
70
+
val config = analytics.configuration
71
+
72
+
val directory =File("/tmp/analytics-kotlin/${config.writeKey}")
73
+
val eventDirectory =File(directory, "events")
74
+
val fileIndexKey ="segment.events.file.index.${config.writeKey}"
75
+
val userPrefs =File(directory, "analytics-kotlin-${config.writeKey}.properties")
76
+
77
+
val propertiesFile =PropertiesFile(userPrefs)
78
+
val eventStream =EncryptedEventStream(eventDirectory, key)
0 commit comments