Skip to content

Commit 831ffcb

Browse files
authored
Merge pull request #633 from mindbox-cloud/release/2.14.1
Release 2.14.1
2 parents e9cf272 + 1c9cada commit 831ffcb

31 files changed

+662
-90
lines changed

example/app/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,12 +87,12 @@ dependencies {
8787
implementation 'com.google.firebase:firebase-analytics-ktx'
8888
implementation 'com.google.firebase:firebase-messaging-ktx'
8989
implementation 'com.huawei.hms:push:6.11.0.300'
90-
implementation 'ru.rustore.sdk:pushclient:6.5.1'
90+
implementation 'ru.rustore.sdk:pushclient:6.10.0'
9191

9292
implementation 'com.google.code.gson:gson:2.11.0'
9393

9494
//Mindbox
95-
implementation 'cloud.mindbox:mobile-sdk:2.14.0'
95+
implementation 'cloud.mindbox:mobile-sdk:2.14.1'
9696
implementation 'cloud.mindbox:mindbox-firebase'
9797
implementation 'cloud.mindbox:mindbox-huawei'
9898
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.14.0
23+
SDK_VERSION_NAME=2.14.1
2424
android.nonTransitiveRClass=false

gradle/libs.versions.toml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,27 @@
11
[versions]
22
compile_sdk = "35"
3-
build_tools = "34.0.0"
3+
build_tools = "35.0.0"
44
min_sdk = "21"
55
target_sdk = "35"
66

77
mindbox_common = "1.0.2"
88

9-
firebase_bom = "32.7.2"
10-
hms_push = "6.11.0.300"
9+
firebase_bom = "33.7.0"
10+
hms_push = "6.13.0.300"
1111
room = "2.6.1"
1212
kotlin = "1.9.22"
13-
gradle_plugin = "8.6.0"
14-
gms_play_services_basement = "18.1.0"
13+
gradle_plugin = "8.8.0"
14+
gms_play_services_basement = "18.3.0"
1515
gms_play_services_base = "18.0.1"
1616
gms_play_services_ads_identifier = "18.0.1"
17-
google_services = "4.3.10"
18-
hms_ads_identifier = "3.4.39.302"
17+
google_services = "4.4.0"
18+
hms_ads_identifier = "3.4.62.300"
1919
kotlinx_coroutines_bom = "1.6.4"
2020
volley = "1.2.1"
2121
gson = "2.8.9"
2222
work_manager = "2.7.1"
2323
androidx_lifecycle = "2.8.7"
24-
androidx_core_ktx = "1.7.0"
24+
androidx_core_ktx = "1.13.0"
2525
androidx_annotations = "1.3.0"
2626
constraint_layout = "2.1.4"
2727
threetenapb = "1.4.6"
@@ -36,12 +36,12 @@ robolectric = "4.14"
3636
test_core = "1.5.0"
3737
turbine = "0.12.1"
3838

39-
agcp = "1.6.0.300"
39+
agcp = "1.9.1.300"
4040
ktlint-plugin = "12.1.1"
4141
ksp = "1.9.22-1.0.17"
4242
maven_publish = "0.32.0"
4343

44-
pushclient = "6.5.1"
44+
pushclient = "6.10.0"
4545

4646
[bundles]
4747
buildscript-plugins = [
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#Mon Nov 07 16:21:11 YEKT 2022
22
distributionBase=GRADLE_USER_HOME
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-8.7-bin.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.10.2-bin.zip
44
distributionPath=wrapper/dists
55
zipStorePath=wrapper/dists
66
zipStoreBase=GRADLE_USER_HOME

modulesCommon.gradle

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,12 @@ android {
3434
}
3535

3636
compileOptions {
37-
sourceCompatibility JavaVersion.VERSION_1_8
38-
targetCompatibility JavaVersion.VERSION_1_8
37+
sourceCompatibility JavaVersion.VERSION_11
38+
targetCompatibility JavaVersion.VERSION_11
3939
}
4040

4141
kotlinOptions {
42-
jvmTarget = '1.8'
42+
jvmTarget = '11'
4343
}
4444

4545
kotlin {

sdk/consumer-rules.pro

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,6 @@
44
-keep class cloud.mindbox.mobile_sdk.MindboxConfiguration { *; }
55
-keep class cloud.mindbox.mobile_sdk.pushes.PushAction { *; }
66
-keep class cloud.mindbox.mobile_sdk.inapp.data** { *; }
7+
-keep class cloud.mindbox.mobile_sdk.inapp.domain.models** { *; }
78

89
-keep public class * extends android.preference.Preference

sdk/src/main/java/cloud/mindbox/mobile_sdk/Extensions.kt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -226,6 +226,10 @@ internal inline fun <reified T> Gson.fromJson(json: JsonElement?): Result<T> = r
226226
fromJson(json, object : TypeToken<T>() {}.type)
227227
}
228228

229+
internal inline fun <reified T> Gson.fromJson(json: String?): Result<T> = runCatching {
230+
fromJson(json, object : TypeToken<T>() {}.type)
231+
}
232+
229233
internal fun JsonObject.getOrNull(memberName: String?): JsonElement? = runCatching {
230234
this.get(memberName)
231235
}.getOrNull()

sdk/src/main/java/cloud/mindbox/mobile_sdk/di/modules/DataModule.kt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -295,6 +295,9 @@ internal fun DataModule(
295295
).registerSubtype(
296296
PayloadBlankDto.SnackBarBlankDto::class.java,
297297
PayloadDto.SnackbarDto.SNACKBAR_JSON_NAME
298+
).registerSubtype(
299+
PayloadBlankDto.WebViewBlankDto::class.java,
300+
PayloadDto.WebViewDto.WEBVIEW_JSON_NAME
298301
)
299302
).registerTypeAdapterFactory(
300303
RuntimeTypeAdapterFactory
@@ -337,6 +340,9 @@ internal fun DataModule(
337340
).registerSubtype(
338341
BackgroundDto.LayerDto.ImageLayerDto::class.java,
339342
BackgroundDto.LayerDto.ImageLayerDto.IMAGE_TYPE_JSON_NAME
343+
).registerSubtype(
344+
BackgroundDto.LayerDto.WebViewLayerDto::class.java,
345+
BackgroundDto.LayerDto.WebViewLayerDto.WEBVIEW_TYPE_JSON_NAME
340346
)
341347
).registerTypeAdapterFactory(
342348
RuntimeTypeAdapterFactory

sdk/src/main/java/cloud/mindbox/mobile_sdk/inapp/data/dto/BackgroundDto.kt

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,5 +59,20 @@ internal data class BackgroundDto(
5959
}
6060
}
6161
}
62+
63+
internal data class WebViewLayerDto(
64+
@SerializedName("baseUrl")
65+
val baseUrl: String?,
66+
@SerializedName("contentUrl")
67+
val contentUrl: String?,
68+
@SerializedName("${"$"}type")
69+
val type: String?,
70+
@SerializedName("params")
71+
val params: Map<String, String>?,
72+
) : LayerDto() {
73+
internal companion object {
74+
const val WEBVIEW_TYPE_JSON_NAME = "webview"
75+
}
76+
}
6277
}
6378
}

sdk/src/main/java/cloud/mindbox/mobile_sdk/inapp/data/dto/FormBlankDto.kt

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,20 @@ internal sealed class PayloadBlankDto {
6767
val elements: List<JsonObject?>?
6868
)
6969
}
70+
71+
data class WebViewBlankDto(
72+
@SerializedName("content")
73+
val content: ContentBlankDto?,
74+
@SerializedName("${"$"}type")
75+
val type: String?
76+
) : PayloadBlankDto() {
77+
internal data class ContentBlankDto(
78+
@SerializedName("background")
79+
val background: BackgroundBlankDto?,
80+
@SerializedName("elements")
81+
val elements: List<JsonObject?>?
82+
)
83+
}
7084
}
7185

7286
internal data class BackgroundBlankDto(

0 commit comments

Comments
 (0)