Skip to content

Commit

Permalink
Merge pull request #733 from CleverTap/develop
Browse files Browse the repository at this point in the history
Release core v7.2.1
  • Loading branch information
piyush-kukadiya authored Jan 16, 2025
2 parents 9379c09 + 78f3e11 commit 4ff4f5f
Show file tree
Hide file tree
Showing 9 changed files with 44 additions and 11 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
## CHANGE LOG.

### January 16, 2025
* [CleverTap Android SDK v7.2.1](docs/CTCORECHANGELOG.md)

### January 7, 2025
* [CleverTap Android SDK v7.2.0](docs/CTCORECHANGELOG.md)
* [CleverTap Push Templates SDK v1.3.0](docs/CTPUSHTEMPLATESCHANGELOG.md).
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,15 +26,15 @@ We publish the SDK to `mavenCentral` as an `AAR` file. Just declare it as depend

```groovy
dependencies {
implementation "com.clevertap.android:clevertap-android-sdk:7.2.0"
implementation "com.clevertap.android:clevertap-android-sdk:7.2.1"
}
```

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:

```groovy
dependencies {
implementation (name: "clevertap-android-sdk-7.2.0", ext: 'aar')
implementation (name: "clevertap-android-sdk-7.2.1", ext: 'aar')
}
```

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

```groovy
dependencies {
implementation "com.clevertap.android:clevertap-android-sdk:7.2.0"
implementation "com.clevertap.android:clevertap-android-sdk:7.2.1"
implementation "androidx.core:core:1.13.0"
implementation "com.google.firebase:firebase-messaging:24.0.0"
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).
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -555,7 +555,15 @@ internal class EvaluationManager(
@WorkerThread
fun loadSuppressedCSAndEvaluatedSSInAppsIds() {
storeRegistry.inAppStore?.let { store ->
evaluatedServerSideCampaignIds.putAll(JsonUtil.mapFromJson(store.readEvaluatedServerSideInAppIds()))
// store.readEvaluatedServerSideInAppIds() returns list of Int or Long as InApp IDs
val evaluatedSSInAppIdsMap =
JsonUtil.mapFromJson<MutableList<Number>>(store.readEvaluatedServerSideInAppIds())
// forcefully convert list of InApp IDs to Long as evaluatedServerSideCampaignIds expects Long
val evaluatedSsInAppIdsMapWithLongList =
evaluatedSSInAppIdsMap.mapValues { entry ->
entry.value.map { number -> number.toLong() }.toMutableList()
}
evaluatedServerSideCampaignIds.putAll(evaluatedSsInAppIdsMapWithLongList)
suppressedClientSideInApps.putAll(JsonUtil.mapFromJson(store.readSuppressedClientSideInAppIds()))
}
}
Expand Down
11 changes: 11 additions & 0 deletions docs/CTCORECHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,17 @@
## CleverTap Android SDK CHANGE LOG

### Version 7.2.1 (January 16, 2025)
This hotfix release addresses the following issue in `v7.2.0`:

#### Bug Fixes
* 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:
* send event <event_name_1> (triggers campaign <campaign_id_1>)
* stop the app
* turn network on and then restart the app.

### Version 7.2.0 (January 7, 2025)
> ‼️ **NOTE**
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.

#### New Features

Expand Down
2 changes: 1 addition & 1 deletion docs/CTGEOFENCE.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ Add the following dependencies to the `build.gradle`

```Groovy
implementation "com.clevertap.android:clevertap-geofence-sdk:1.4.0"
implementation "com.clevertap.android:clevertap-android-sdk:7.2.0" // 3.9.0 and above
implementation "com.clevertap.android:clevertap-android-sdk:7.2.1" // 3.9.0 and above
implementation "com.google.android.gms:play-services-location:21.3.0"
implementation "androidx.work:work-runtime:2.9.1" // required for FETCH_LAST_LOCATION_PERIODIC
implementation "androidx.concurrent:concurrent-futures:1.2.0" // required for FETCH_LAST_LOCATION_PERIODIC
Expand Down
2 changes: 1 addition & 1 deletion docs/CTPUSHTEMPLATES.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ CleverTap Push Templates SDK helps you engage with your users using fancy push n

```groovy
implementation "com.clevertap.android:push-templates:1.3.0"
implementation "com.clevertap.android:clevertap-android-sdk:7.2.0" // 4.4.0 and above
implementation "com.clevertap.android:clevertap-android-sdk:7.2.1" // 4.4.0 and above
```

2. Add the following line to your Application class before the `onCreate()`
Expand Down
2 changes: 1 addition & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ coroutines_test = "1.7.3"
installreferrer = "2.2"

#SDK Versions
clevertap_android_sdk = "7.2.0"
clevertap_android_sdk = "7.2.1"
clevertap_rendermax_sdk = "1.0.3"
clevertap_geofence_sdk = "1.4.0"
clevertap_hms_sdk = "1.4.0"
Expand Down
8 changes: 4 additions & 4 deletions sample/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ android {
applicationId "com.clevertap.demo"
minSdkVersion 21
targetSdkVersion 35
versionCode 7000020
versionName "7.2.0"
versionCode 7000021
versionName "7.2.1"
multiDexEnabled true
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
Expand Down Expand Up @@ -159,12 +159,12 @@ dependencies {
implementation "org.jetbrains.kotlin:kotlin-gradle-plugin:1.3.72"
implementation "org.sonarsource.scanner.gradle:sonarqube-gradle-plugin:3.1.1"*/

remoteImplementation("com.clevertap.android:clevertap-android-sdk:7.2.0")
remoteImplementation("com.clevertap.android:clevertap-android-sdk:7.2.1")
remoteImplementation("com.clevertap.android:clevertap-geofence-sdk:1.3.0")
remoteImplementation("com.clevertap.android:push-templates:1.2.4")
remoteImplementation("com.clevertap.android:clevertap-hms-sdk:1.3.4")

stagingImplementation("com.clevertap.android:clevertap-android-sdk:7.2.0")
stagingImplementation("com.clevertap.android:clevertap-android-sdk:7.2.1")
stagingImplementation("com.clevertap.android:clevertap-geofence-sdk:1.3.0")
stagingImplementation("com.clevertap.android:push-templates:1.2.4")
stagingImplementation("com.clevertap.android:clevertap-hms-sdk:1.3.4")
Expand Down
11 changes: 11 additions & 0 deletions templates/CTCORECHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,17 @@
## CleverTap Android SDK CHANGE LOG

### Version 7.2.1 (January 16, 2025)
This hotfix release addresses the following issue in `v7.2.0`:

#### Bug Fixes
* 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:
* send event <event_name_1> (triggers campaign <campaign_id_1>)
* stop the app
* turn network on and then restart the app.

### Version 7.2.0 (January 7, 2025)
> ‼️ **NOTE**
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.

#### New Features

Expand Down

0 comments on commit 4ff4f5f

Please sign in to comment.