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
2323# Deployment variables
2424GROUP =com.segment.analytics.kotlin.destinations
2525
26- VERSION_CODE =100
27- VERSION_NAME =1.0.1-SNAPSHOT
26+ VERSION_CODE =101
27+ VERSION_NAME =1.0.1
2828
2929POM_ARTIFACT_ID =adjust
3030POM_NAME =adjust
Original file line number Diff line number Diff line change @@ -10,7 +10,6 @@ val VERSION_NAME: String by project
1010
1111android {
1212 compileSdk = 33
13- buildToolsVersion = " 33.0.1"
1413
1514 defaultConfig {
1615 multiDexEnabled = true
@@ -40,9 +39,7 @@ android {
4039}
4140
4241dependencies {
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" )
4643 implementation(" androidx.multidex:multidex:2.0.1" )
4744 implementation(" androidx.core:core-ktx:1.8.0" )
4845
Original file line number Diff line number Diff line change @@ -35,6 +35,7 @@ android {
3535}
3636
3737dependencies {
38+ implementation(" com.segment.analytics.kotlin:android:1.12.0" )
3839 implementation(project(mapOf (" path" to " :lib" )))
3940
4041 implementation(" androidx.core:core-ktx:1.7.0" )
Original file line number Diff line number Diff line change 33 package =" com.segment.analytics.destinations.mydestination.testapp" >
44
55 <application
6+ android : name =" .MainApplication"
67 android : allowBackup =" true"
78 android : icon =" @mipmap/ic_launcher"
89 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