File tree Expand file tree Collapse file tree 5 files changed +31
-6
lines changed
java/com/segment/analytics/destinations/mydestination/testapp Expand file tree Collapse file tree 5 files changed +31
-6
lines changed Original file line number Diff line number Diff line change @@ -23,8 +23,8 @@ kotlin.code.style=official
23
23
# Deployment variables
24
24
GROUP =com.segment.analytics.kotlin.destinations
25
25
26
- VERSION_CODE =100
27
- VERSION_NAME =1.0.1-SNAPSHOT
26
+ VERSION_CODE =101
27
+ VERSION_NAME =1.0.1
28
28
29
29
POM_ARTIFACT_ID =adjust
30
30
POM_NAME =adjust
Original file line number Diff line number Diff line change @@ -10,7 +10,6 @@ val VERSION_NAME: String by project
10
10
11
11
android {
12
12
compileSdk = 33
13
- buildToolsVersion = " 33.0.1"
14
13
15
14
defaultConfig {
16
15
multiDexEnabled = true
@@ -40,9 +39,7 @@ android {
40
39
}
41
40
42
41
dependencies {
43
- coreLibraryDesugaring(" com.android.tools:desugar_jdk_libs:2.0.2" )
44
-
45
- implementation(" com.segment.analytics.kotlin:android:1.10.3" )
42
+ implementation(" com.segment.analytics.kotlin:android:1.12.0" )
46
43
implementation(" androidx.multidex:multidex:2.0.1" )
47
44
implementation(" androidx.core:core-ktx:1.8.0" )
48
45
Original file line number Diff line number Diff line change @@ -35,6 +35,7 @@ android {
35
35
}
36
36
37
37
dependencies {
38
+ implementation(" com.segment.analytics.kotlin:android:1.12.0" )
38
39
implementation(project(mapOf (" path" to " :lib" )))
39
40
40
41
implementation(" androidx.core:core-ktx:1.7.0" )
Original file line number Diff line number Diff line change 3
3
package =" com.segment.analytics.destinations.mydestination.testapp" >
4
4
5
5
<application
6
+ android : name =" .MainApplication"
6
7
android : allowBackup =" true"
7
8
android : icon =" @mipmap/ic_launcher"
8
9
android : label =" @string/app_name"
Original file line number Diff line number Diff line change
1
+ package com.segment.analytics.destinations.mydestination.testapp
2
+
3
+ import android.app.Application
4
+ import com.segment.analytics.kotlin.android.Analytics
5
+ import com.segment.analytics.kotlin.core.Analytics
6
+ import com.segment.analytics.kotlin.core.manuallyEnableDestination
7
+ import com.segment.analytics.kotlin.destinations.adjust.AdjustDestination
8
+
9
+ class MainApplication : Application () {
10
+ companion object {
11
+ lateinit var analytics: Analytics
12
+ }
13
+
14
+ override fun onCreate () {
15
+ super .onCreate()
16
+
17
+ analytics = Analytics (" <writekey>" , applicationContext) {
18
+ flushAt = 1
19
+ flushInterval = 10
20
+ }
21
+
22
+ Analytics .debugLogsEnabled = true
23
+ val adjust = AdjustDestination ()
24
+ analytics.add(adjust)
25
+ }
26
+ }
You can’t perform that action at this time.
0 commit comments