File tree Expand file tree Collapse file tree 2 files changed +11
-2
lines changed
src/main/java/com/segment/analytics/kotlin/destinations/appsflyer Expand file tree Collapse file tree 2 files changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -6,6 +6,8 @@ plugins {
66 id(" mvn-publish" )
77}
88
9+ val VERSION_NAME : String by project
10+
911android {
1012 compileSdk = 31
1113 buildToolsVersion = " 31.0.0"
@@ -17,6 +19,8 @@ android {
1719
1820 testInstrumentationRunner = " android.support.test.runner.AndroidJUnitRunner"
1921 consumerProguardFiles(" proguard-consumer-rules.pro" )
22+
23+ buildConfigField(" String" , " VERSION_NAME" , " \" $VERSION_NAME \" " )
2024 }
2125
2226 buildTypes {
@@ -38,7 +42,7 @@ android {
3842dependencies {
3943 coreLibraryDesugaring(" com.android.tools:desugar_jdk_libs:1.1.5" )
4044
41- implementation(" com.segment.analytics.kotlin:android:1.4.3 " )
45+ implementation(" com.segment.analytics.kotlin:android:1.5.0 " )
4246 implementation(" androidx.multidex:multidex:2.0.1" )
4347
4448 implementation(" androidx.core:core-ktx:1.7.0" )
Original file line number Diff line number Diff line change @@ -13,6 +13,7 @@ import android.os.Bundle
1313import com.appsflyer.AFInAppEventParameterName
1414import com.segment.analytics.kotlin.android.plugins.AndroidLifecycle
1515import com.appsflyer.deeplink.DeepLinkListener
16+ import com.segment.analytics.kotlin.core.platform.VersionedPlugin
1617import com.segment.analytics.kotlin.core.platform.plugins.logger.*
1718import com.segment.analytics.kotlin.core.utilities.getString
1819import com.segment.analytics.kotlin.core.utilities.mapTransform
@@ -61,7 +62,7 @@ data class AppsFlyerSettings(
6162class AppsFlyerDestination (
6263 private val applicationContext : Context ,
6364 private var isDebug : Boolean = false
64- ) : DestinationPlugin(), AndroidLifecycle {
65+ ) : DestinationPlugin(), AndroidLifecycle, VersionedPlugin {
6566
6667 internal var settings: AppsFlyerSettings ? = null
6768 internal var appsflyer: AppsFlyerLib ? = null
@@ -237,4 +238,8 @@ class AppsFlyerDestination(
237238 }
238239 }
239240
241+ override fun version (): String {
242+ return BuildConfig .VERSION_NAME
243+ }
244+
240245}
You can’t perform that action at this time.
0 commit comments