From 15db9a9848eedcd52bb674e9db652f1cbd94006a Mon Sep 17 00:00:00 2001 From: Kamo Spertsyan Date: Tue, 7 May 2024 11:41:00 +0300 Subject: [PATCH 1/2] AppLifecycle handler is now subscribed after the complete initialization (#585) --- .../qonversion/android/sdk/internal/QonversionInternal.kt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sdk/src/main/java/com/qonversion/android/sdk/internal/QonversionInternal.kt b/sdk/src/main/java/com/qonversion/android/sdk/internal/QonversionInternal.kt index 5a4778b5..35f0e7e6 100644 --- a/sdk/src/main/java/com/qonversion/android/sdk/internal/QonversionInternal.kt +++ b/sdk/src/main/java/com/qonversion/android/sdk/internal/QonversionInternal.kt @@ -57,9 +57,6 @@ internal class QonversionInternal( override var appState = AppState.Background init { - val lifecycleHandler = AppLifecycleHandler(this) - postToMainThread { ProcessLifecycleOwner.get().lifecycle.addObserver(lifecycleHandler) } - QDependencyInjector.buildAppComponent(application, internalConfig, this) exceptionManager = QDependencyInjector.appComponent.exceptionManager().also { @@ -107,6 +104,9 @@ internal class QonversionInternal( userPropertiesManager.productCenterManager = productCenterManager userPropertiesManager.sendFacebookAttribution() + val lifecycleHandler = AppLifecycleHandler(this) + postToMainThread { ProcessLifecycleOwner.get().lifecycle.addObserver(lifecycleHandler) } + launch() } From 0b478a1138a683be73feec1e0708ff8eebcd6906 Mon Sep 17 00:00:00 2001 From: SpertsyanKM Date: Tue, 7 May 2024 08:41:52 +0000 Subject: [PATCH 2/2] [create-pull-request] automated change --- build.gradle | 2 +- fastlane/report.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/build.gradle b/build.gradle index 1a400598..f8f5143a 100644 --- a/build.gradle +++ b/build.gradle @@ -6,7 +6,7 @@ import io.gitlab.arturbosch.detekt.DetektCreateBaselineTask buildscript { ext { release = [ - versionName: "7.4.0", + versionName: "7.4.1", versionCode: 1 ] } diff --git a/fastlane/report.xml b/fastlane/report.xml index e963cf14..62c5fd4e 100644 --- a/fastlane/report.xml +++ b/fastlane/report.xml @@ -5,7 +5,7 @@ - +