Skip to content

Commit 4ff4f5f

Browse files
Merge pull request #733 from CleverTap/develop
Release core v7.2.1
2 parents 9379c09 + 78f3e11 commit 4ff4f5f

File tree

9 files changed

+44
-11
lines changed

9 files changed

+44
-11
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
## CHANGE LOG.
22

3+
### January 16, 2025
4+
* [CleverTap Android SDK v7.2.1](docs/CTCORECHANGELOG.md)
5+
36
### January 7, 2025
47
* [CleverTap Android SDK v7.2.0](docs/CTCORECHANGELOG.md)
58
* [CleverTap Push Templates SDK v1.3.0](docs/CTPUSHTEMPLATESCHANGELOG.md).

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,15 +26,15 @@ We publish the SDK to `mavenCentral` as an `AAR` file. Just declare it as depend
2626

2727
```groovy
2828
dependencies {
29-
implementation "com.clevertap.android:clevertap-android-sdk:7.2.0"
29+
implementation "com.clevertap.android:clevertap-android-sdk:7.2.1"
3030
}
3131
```
3232

3333
Alternatively, you can download and add the AAR file included in this repo in your Module libs directory and tell gradle to install it like this:
3434

3535
```groovy
3636
dependencies {
37-
implementation (name: "clevertap-android-sdk-7.2.0", ext: 'aar')
37+
implementation (name: "clevertap-android-sdk-7.2.1", ext: 'aar')
3838
}
3939
```
4040

@@ -46,7 +46,7 @@ Add the Firebase Messaging library and Android Support Library v4 as dependencie
4646

4747
```groovy
4848
dependencies {
49-
implementation "com.clevertap.android:clevertap-android-sdk:7.2.0"
49+
implementation "com.clevertap.android:clevertap-android-sdk:7.2.1"
5050
implementation "androidx.core:core:1.13.0"
5151
implementation "com.google.firebase:firebase-messaging:24.0.0"
5252
implementation "com.google.android.gms:play-services-ads:23.6.0" // Required only if you enable Google ADID collection in the SDK (turned off by default).

clevertap-core/src/main/java/com/clevertap/android/sdk/inapp/evaluation/EvaluationManager.kt

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -555,7 +555,15 @@ internal class EvaluationManager(
555555
@WorkerThread
556556
fun loadSuppressedCSAndEvaluatedSSInAppsIds() {
557557
storeRegistry.inAppStore?.let { store ->
558-
evaluatedServerSideCampaignIds.putAll(JsonUtil.mapFromJson(store.readEvaluatedServerSideInAppIds()))
558+
// store.readEvaluatedServerSideInAppIds() returns list of Int or Long as InApp IDs
559+
val evaluatedSSInAppIdsMap =
560+
JsonUtil.mapFromJson<MutableList<Number>>(store.readEvaluatedServerSideInAppIds())
561+
// forcefully convert list of InApp IDs to Long as evaluatedServerSideCampaignIds expects Long
562+
val evaluatedSsInAppIdsMapWithLongList =
563+
evaluatedSSInAppIdsMap.mapValues { entry ->
564+
entry.value.map { number -> number.toLong() }.toMutableList()
565+
}
566+
evaluatedServerSideCampaignIds.putAll(evaluatedSsInAppIdsMapWithLongList)
559567
suppressedClientSideInApps.putAll(JsonUtil.mapFromJson(store.readSuppressedClientSideInAppIds()))
560568
}
561569
}

docs/CTCORECHANGELOG.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,17 @@
11
## CleverTap Android SDK CHANGE LOG
22

3+
### Version 7.2.1 (January 16, 2025)
4+
This hotfix release addresses the following issue in `v7.2.0`:
5+
6+
#### Bug Fixes
7+
* Fixes `ClassCastException` from `Integer` to `Long` for server side in-apps delivery. A bug occurs when the network is turned off, and the following steps are performed:
8+
* send event <event_name_1> (triggers campaign <campaign_id_1>)
9+
* stop the app
10+
* turn network on and then restart the app.
11+
312
### Version 7.2.0 (January 7, 2025)
13+
> ‼️ **NOTE**
14+
If you are using server side in-apps please use `7.2.1` instead. `7.2.0` has a bug related to server side in-apps.
415

516
#### New Features
617

docs/CTGEOFENCE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ Add the following dependencies to the `build.gradle`
1717

1818
```Groovy
1919
implementation "com.clevertap.android:clevertap-geofence-sdk:1.4.0"
20-
implementation "com.clevertap.android:clevertap-android-sdk:7.2.0" // 3.9.0 and above
20+
implementation "com.clevertap.android:clevertap-android-sdk:7.2.1" // 3.9.0 and above
2121
implementation "com.google.android.gms:play-services-location:21.3.0"
2222
implementation "androidx.work:work-runtime:2.9.1" // required for FETCH_LAST_LOCATION_PERIODIC
2323
implementation "androidx.concurrent:concurrent-futures:1.2.0" // required for FETCH_LAST_LOCATION_PERIODIC

docs/CTPUSHTEMPLATES.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ CleverTap Push Templates SDK helps you engage with your users using fancy push n
2121

2222
```groovy
2323
implementation "com.clevertap.android:push-templates:1.3.0"
24-
implementation "com.clevertap.android:clevertap-android-sdk:7.2.0" // 4.4.0 and above
24+
implementation "com.clevertap.android:clevertap-android-sdk:7.2.1" // 4.4.0 and above
2525
```
2626

2727
2. Add the following line to your Application class before the `onCreate()`

gradle/libs.versions.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ coroutines_test = "1.7.3"
5454
installreferrer = "2.2"
5555

5656
#SDK Versions
57-
clevertap_android_sdk = "7.2.0"
57+
clevertap_android_sdk = "7.2.1"
5858
clevertap_rendermax_sdk = "1.0.3"
5959
clevertap_geofence_sdk = "1.4.0"
6060
clevertap_hms_sdk = "1.4.0"

sample/build.gradle

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ android {
1818
applicationId "com.clevertap.demo"
1919
minSdkVersion 21
2020
targetSdkVersion 35
21-
versionCode 7000020
22-
versionName "7.2.0"
21+
versionCode 7000021
22+
versionName "7.2.1"
2323
multiDexEnabled true
2424
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
2525
}
@@ -159,12 +159,12 @@ dependencies {
159159
implementation "org.jetbrains.kotlin:kotlin-gradle-plugin:1.3.72"
160160
implementation "org.sonarsource.scanner.gradle:sonarqube-gradle-plugin:3.1.1"*/
161161

162-
remoteImplementation("com.clevertap.android:clevertap-android-sdk:7.2.0")
162+
remoteImplementation("com.clevertap.android:clevertap-android-sdk:7.2.1")
163163
remoteImplementation("com.clevertap.android:clevertap-geofence-sdk:1.3.0")
164164
remoteImplementation("com.clevertap.android:push-templates:1.2.4")
165165
remoteImplementation("com.clevertap.android:clevertap-hms-sdk:1.3.4")
166166

167-
stagingImplementation("com.clevertap.android:clevertap-android-sdk:7.2.0")
167+
stagingImplementation("com.clevertap.android:clevertap-android-sdk:7.2.1")
168168
stagingImplementation("com.clevertap.android:clevertap-geofence-sdk:1.3.0")
169169
stagingImplementation("com.clevertap.android:push-templates:1.2.4")
170170
stagingImplementation("com.clevertap.android:clevertap-hms-sdk:1.3.4")

templates/CTCORECHANGELOG.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,17 @@
11
## CleverTap Android SDK CHANGE LOG
22

3+
### Version 7.2.1 (January 16, 2025)
4+
This hotfix release addresses the following issue in `v7.2.0`:
5+
6+
#### Bug Fixes
7+
* Fixes `ClassCastException` from `Integer` to `Long` for server side in-apps delivery. A bug occurs when the network is turned off, and the following steps are performed:
8+
* send event <event_name_1> (triggers campaign <campaign_id_1>)
9+
* stop the app
10+
* turn network on and then restart the app.
11+
312
### Version 7.2.0 (January 7, 2025)
13+
> ‼️ **NOTE**
14+
If you are using server side in-apps please use `7.2.1` instead. `7.2.0` has a bug related to server side in-apps.
415

516
#### New Features
617

0 commit comments

Comments
 (0)