Skip to content

Commit

Permalink
Merge pull request #7 from segment-integrations/wenxi/prepare-release…
Browse files Browse the repository at this point in the history
…-1.0.1

prepare release 1.0.1
  • Loading branch information
wenxi-zeng authored Jul 19, 2023
2 parents f224863 + 20767d1 commit 39d50a5
Show file tree
Hide file tree
Showing 5 changed files with 31 additions and 6 deletions.
4 changes: 2 additions & 2 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ kotlin.code.style=official
# Deployment variables
GROUP=com.segment.analytics.kotlin.destinations

VERSION_CODE=100
VERSION_NAME=1.0.1-SNAPSHOT
VERSION_CODE=101
VERSION_NAME=1.0.1

POM_ARTIFACT_ID=adjust
POM_NAME=adjust
Expand Down
5 changes: 1 addition & 4 deletions lib/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ val VERSION_NAME: String by project

android {
compileSdk = 33
buildToolsVersion = "33.0.1"

defaultConfig {
multiDexEnabled = true
Expand Down Expand Up @@ -40,9 +39,7 @@ android {
}

dependencies {
coreLibraryDesugaring("com.android.tools:desugar_jdk_libs:2.0.2")

implementation("com.segment.analytics.kotlin:android:1.10.3")
implementation("com.segment.analytics.kotlin:android:1.12.0")
implementation("androidx.multidex:multidex:2.0.1")
implementation("androidx.core:core-ktx:1.8.0")

Expand Down
1 change: 1 addition & 0 deletions testapp/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ android {
}

dependencies {
implementation("com.segment.analytics.kotlin:android:1.12.0")
implementation(project(mapOf("path" to ":lib")))

implementation("androidx.core:core-ktx:1.7.0")
Expand Down
1 change: 1 addition & 0 deletions testapp/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
package="com.segment.analytics.destinations.mydestination.testapp">

<application
android:name=".MainApplication"
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
package com.segment.analytics.destinations.mydestination.testapp

import android.app.Application
import com.segment.analytics.kotlin.android.Analytics
import com.segment.analytics.kotlin.core.Analytics
import com.segment.analytics.kotlin.core.manuallyEnableDestination
import com.segment.analytics.kotlin.destinations.adjust.AdjustDestination

class MainApplication : Application() {
companion object {
lateinit var analytics: Analytics
}

override fun onCreate() {
super.onCreate()

analytics = Analytics("<writekey>", applicationContext) {
flushAt = 1
flushInterval = 10
}

Analytics.debugLogsEnabled = true
val adjust = AdjustDestination()
analytics.add(adjust)
}
}

0 comments on commit 39d50a5

Please sign in to comment.