File tree Expand file tree Collapse file tree 2 files changed +8
-5
lines changed Expand file tree Collapse file tree 2 files changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -25,9 +25,9 @@ repositories {
25
25
26
26
dependencies {
27
27
28
- def version = '1.0.10 '
28
+ def version = '1.0.11 '
29
29
30
- // add the basic analytics interface library
30
+ // add the basic analytics interface library - incl. LoggerDispatcher
31
31
compile "com.sofakingforever.analytics:analytics:version@aar"
32
32
33
33
// then add the kits you need
@@ -46,12 +46,15 @@ Initiate analytics and send events
46
46
47
47
``` kotlin
48
48
// init analytics
49
- analytics = Analytics (this , AnswersDispatcherImpl (), FirebaseDispatcherImpl ())
49
+ analytics = Analytics (context = context,
50
+ FirebaseDispatcherImpl (init = true ),
51
+ MixPanelDispatcherImpl (init = true , projectToken = " TOKEN" ),
52
+ AnswersDispatcherImpl (init = true ))
50
53
51
54
// send event
52
55
analytics.track(SimpleEvent ())
53
56
54
- // declare event - will be sent to both Answers and Firebase
57
+ // declare event - will be sent to both Firebase, MixPanel and Answers
55
58
class SimpleEvent : CustomEvent {
56
59
override fun getEventName (kit : AnalyticsKit ): String = " Simple Event"
57
60
Original file line number Diff line number Diff line change @@ -11,4 +11,4 @@ org.gradle.jvmargs=-Xmx1536m
11
11
# This option should only be used with decoupled projects. More details, visit
12
12
# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
13
13
# org.gradle.parallel=true
14
- version =1.0.10
14
+ version =1.0.11
You can’t perform that action at this time.
0 commit comments