From 4856072d3ed44662fcd22911597c287d88ecc639 Mon Sep 17 00:00:00 2001 From: Andrew Reed Date: Wed, 10 May 2023 09:30:42 +0100 Subject: [PATCH] Added stop function to appsflyer lib --- library/gradle.properties | 2 +- .../androidMain/kotlin/com/myunidays/segmenkt/AppsFlyerLib.kt | 1 + .../commonMain/kotlin/com/myunidays/segmenkt/AppsFlyerLib.kt | 1 + .../src/iosMain/kotlin/com/myunidays/segmenkt/AppsFlyerLib.kt | 1 + .../src/jsMain/kotlin/com/myunidays/segmenkt/AppsFlyerLib.kt | 3 +++ 5 files changed, 7 insertions(+), 1 deletion(-) diff --git a/library/gradle.properties b/library/gradle.properties index b4356d0..d72856c 100644 --- a/library/gradle.properties +++ b/library/gradle.properties @@ -5,7 +5,7 @@ signing.keyId="" signing.password="" MODULE_PACKAGE_NAME=com.myunidays -MODULE_VERSION_NUMBER=0.1.0 +MODULE_VERSION_NUMBER=0.1.1 MODULE_NAME=segmenkt OPEN_SOURCE_REPO=https://oss.sonatype.org/service/local/staging/deploy/maven2/ diff --git a/library/src/androidMain/kotlin/com/myunidays/segmenkt/AppsFlyerLib.kt b/library/src/androidMain/kotlin/com/myunidays/segmenkt/AppsFlyerLib.kt index d5828d1..a228359 100644 --- a/library/src/androidMain/kotlin/com/myunidays/segmenkt/AppsFlyerLib.kt +++ b/library/src/androidMain/kotlin/com/myunidays/segmenkt/AppsFlyerLib.kt @@ -13,4 +13,5 @@ actual class AppsFlyerLib internal constructor(val android: com.appsflyer.AppsFl actual fun getAppsFlyerUID(context: Any?): String? = android.getAppsFlyerUID(context as Context) actual fun start(context: Any?) = android.start(context as Context) actual fun setDebug(isDebug: Boolean) = android.setDebugLog(isDebug) + actual fun stop(shouldStop: Boolean, context: Any?) = android.stop(shouldStop, context as Context) } diff --git a/library/src/commonMain/kotlin/com/myunidays/segmenkt/AppsFlyerLib.kt b/library/src/commonMain/kotlin/com/myunidays/segmenkt/AppsFlyerLib.kt index 0eba07a..8106463 100644 --- a/library/src/commonMain/kotlin/com/myunidays/segmenkt/AppsFlyerLib.kt +++ b/library/src/commonMain/kotlin/com/myunidays/segmenkt/AppsFlyerLib.kt @@ -7,5 +7,6 @@ expect class AppsFlyerLib { val isStopped: Boolean fun getAppsFlyerUID(context: Any? = null): String? fun start(context: Any? = null) + fun stop(shouldStop: Boolean, context: Any? = null) fun setDebug(isDebug: Boolean) } diff --git a/library/src/iosMain/kotlin/com/myunidays/segmenkt/AppsFlyerLib.kt b/library/src/iosMain/kotlin/com/myunidays/segmenkt/AppsFlyerLib.kt index 20eeda2..ae572ec 100644 --- a/library/src/iosMain/kotlin/com/myunidays/segmenkt/AppsFlyerLib.kt +++ b/library/src/iosMain/kotlin/com/myunidays/segmenkt/AppsFlyerLib.kt @@ -15,4 +15,5 @@ actual class AppsFlyerLib internal constructor(val ios: cocoapods.Analytics.Apps actual fun getAppsFlyerUID(context: Any?): String? = ios.getAppsFlyerUID() actual fun start(context: Any?) = ios.start() actual fun setDebug(isDebug: Boolean) = ios.setIsDebug(isDebug) + actual fun stop(shouldStop: Boolean, context: Any?) = ios.setIsStopped(shouldStop) } diff --git a/library/src/jsMain/kotlin/com/myunidays/segmenkt/AppsFlyerLib.kt b/library/src/jsMain/kotlin/com/myunidays/segmenkt/AppsFlyerLib.kt index 7d10ceb..c8c7a93 100644 --- a/library/src/jsMain/kotlin/com/myunidays/segmenkt/AppsFlyerLib.kt +++ b/library/src/jsMain/kotlin/com/myunidays/segmenkt/AppsFlyerLib.kt @@ -13,4 +13,7 @@ actual class AppsFlyerLib { actual fun setDebug(isDebug: Boolean) { } + + actual fun stop(shouldStop: Boolean, context: Any?) { + } }