Skip to content

Commit 39ef5dd

Browse files
release/2.13.0
1 parent b7875ee commit 39ef5dd

File tree

8 files changed

+21
-17
lines changed

8 files changed

+21
-17
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ To integrate Mindbox SDK into your Android app, follow the installation process
2525
}
2626
```
2727

28-
### Initialization
28+
### Initialization
2929

3030
Initialize the Mindbox SDK in your Activity or Application class. Check documentation [here](https://developers.mindbox.ru/docs/android-sdk-initialization) for more details.
3131

example/app/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ dependencies {
7575
implementation 'com.google.code.gson:gson:2.11.0'
7676

7777
//Mindbox
78-
implementation 'cloud.mindbox:mobile-sdk:2.12.0'
78+
implementation 'cloud.mindbox:mobile-sdk:2.13.0'
7979
implementation 'cloud.mindbox:mindbox-firebase'
8080
implementation 'cloud.mindbox:mindbox-huawei'
8181
implementation 'cloud.mindbox:mindbox-rustore'

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,5 +20,5 @@ android.enableJetifier=true
2020
# Kotlin code style for this project: "official" or "obsolete":
2121
kotlin.code.style=official
2222
# SDK version property
23-
SDK_VERSION_NAME=2.12.0
23+
SDK_VERSION_NAME=2.13.0
2424
android.nonTransitiveRClass = false

gradle/libs.versions.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
[versions]
2-
compile_sdk = "34"
2+
compile_sdk = "35"
33
build_tools = "34.0.0"
44
min_sdk = "21"
5-
target_sdk = "34"
5+
target_sdk = "35"
66

77
firebase_bom = "32.7.2"
88
hms_push = "6.11.0.300"
@@ -29,7 +29,7 @@ junit = "4.13.2"
2929
androidx_junit = "1.1.3"
3030
espresso = "3.4.0"
3131
mockk = "1.13.13"
32-
robolectric = "4.11"
32+
robolectric = "4.14"
3333
test_core = "1.5.0"
3434
turbine = "0.12.1"
3535

sdk/src/main/java/cloud/mindbox/mobile_sdk/inapp/presentation/InAppMessageManagerImpl.kt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,9 @@ internal class InAppMessageManagerImpl(
140140

141141
override fun handleSessionExpiration() {
142142
inAppScope.launch {
143-
inAppMessageViewDisplayer.hideCurrentInApp()
143+
withContext(Dispatchers.Main) {
144+
inAppMessageViewDisplayer.hideCurrentInApp()
145+
}
144146
processingJob?.cancel()
145147
inAppInteractor.resetInAppConfigAndEvents()
146148
sessionStorageManager.clearSessionData()

sdk/src/main/java/cloud/mindbox/mobile_sdk/inapp/presentation/InAppMessageViewDisplayerImpl.kt

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ import cloud.mindbox.mobile_sdk.logger.mindboxLogW
1919
import cloud.mindbox.mobile_sdk.postDelayedAnimation
2020
import cloud.mindbox.mobile_sdk.root
2121
import cloud.mindbox.mobile_sdk.utils.Stopwatch
22+
import cloud.mindbox.mobile_sdk.utils.loggingRunCatching
23+
2224
import java.util.LinkedList
2325

2426
internal interface MindboxView {
@@ -189,11 +191,13 @@ internal class InAppMessageViewDisplayerImpl(private val inAppImageSizeStorage:
189191
}
190192

191193
override fun hideCurrentInApp() {
192-
currentHolder?.hide()
193-
pausedHolder?.hide()
194-
currentHolder = null
195-
pausedHolder = null
196-
inAppQueue.clear()
197-
mindboxLogI("Hide active in-app if it's present")
194+
loggingRunCatching {
195+
currentHolder?.hide()
196+
currentHolder = null
197+
pausedHolder?.hide()
198+
pausedHolder = null
199+
inAppQueue.clear()
200+
isActionExecuted = false
201+
}
198202
}
199203
}

sdk/src/main/java/cloud/mindbox/mobile_sdk/inapp/presentation/view/AbstractInAppViewHolder.kt

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,6 @@ internal abstract class AbstractInAppViewHolder<T : InAppType> : InAppViewHolder
3737

3838
protected val preparedImages: MutableMap<ImageView, Boolean> = mutableMapOf()
3939

40-
private var isActionExecuted: Boolean = false
41-
4240
private val mindboxNotificationManager by mindboxInject {
4341
mindboxNotificationManager
4442
}
@@ -184,7 +182,7 @@ internal abstract class AbstractInAppViewHolder<T : InAppType> : InAppViewHolder
184182

185183
override fun hide() {
186184
(currentDialog.parent as? ViewGroup?)?.apply {
187-
post { removeView(currentDialog) }
185+
removeView(_currentDialog)
188186
}
189187
mindboxLogI("hide ${wrapper.inAppType.inAppId} on ${this.hashCode()}")
190188
restoreKeyboard()

sdk/src/main/java/cloud/mindbox/mobile_sdk/inapp/presentation/view/ModalWindowInAppViewHolder.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ internal class ModalWindowInAppViewHolder(
8888

8989
override fun hide() {
9090
(currentDialog.parent as? ViewGroup?)?.apply {
91-
post { removeView(currentBackground) }
91+
removeView(currentBackground)
9292
}
9393
super.hide()
9494
}

0 commit comments

Comments
 (0)