Skip to content

Commit 60db96a

Browse files
Version 1.0.11
1 parent 6599f08 commit 60db96a

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed

README.md

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,9 @@ repositories {
2525
2626
dependencies {
2727
28-
def version = '1.0.10'
28+
def version = '1.0.11'
2929
30-
// add the basic analytics interface library
30+
// add the basic analytics interface library - incl. LoggerDispatcher
3131
compile "com.sofakingforever.analytics:analytics:version@aar"
3232
3333
// then add the kits you need
@@ -46,12 +46,15 @@ Initiate analytics and send events
4646

4747
```kotlin
4848
// 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))
5053

5154
// send event
5255
analytics.track(SimpleEvent())
5356

54-
// declare event - will be sent to both Answers and Firebase
57+
// declare event - will be sent to both Firebase, MixPanel and Answers
5558
class SimpleEvent : CustomEvent {
5659
override fun getEventName(kit: AnalyticsKit): String = "Simple Event"
5760

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,4 @@ org.gradle.jvmargs=-Xmx1536m
1111
# This option should only be used with decoupled projects. More details, visit
1212
# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
1313
# org.gradle.parallel=true
14-
version=1.0.10
14+
version=1.0.11

0 commit comments

Comments
 (0)