File tree Expand file tree Collapse file tree 9 files changed +44
-11
lines changed
clevertap-core/src/main/java/com/clevertap/android/sdk/inapp/evaluation Expand file tree Collapse file tree 9 files changed +44
-11
lines changed Original file line number Diff line number Diff line change 1
1
## CHANGE LOG.
2
2
3
+ ### January 16, 2025
4
+ * [ CleverTap Android SDK v7.2.1] ( docs/CTCORECHANGELOG.md )
5
+
3
6
### January 7, 2025
4
7
* [ CleverTap Android SDK v7.2.0] ( docs/CTCORECHANGELOG.md )
5
8
* [ CleverTap Push Templates SDK v1.3.0] ( docs/CTPUSHTEMPLATESCHANGELOG.md ) .
Original file line number Diff line number Diff line change @@ -26,15 +26,15 @@ We publish the SDK to `mavenCentral` as an `AAR` file. Just declare it as depend
26
26
27
27
``` groovy
28
28
dependencies {
29
- implementation "com.clevertap.android:clevertap-android-sdk:7.2.0 "
29
+ implementation "com.clevertap.android:clevertap-android-sdk:7.2.1 "
30
30
}
31
31
```
32
32
33
33
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:
34
34
35
35
``` groovy
36
36
dependencies {
37
- implementation (name: "clevertap-android-sdk-7.2.0 ", ext: 'aar')
37
+ implementation (name: "clevertap-android-sdk-7.2.1 ", ext: 'aar')
38
38
}
39
39
```
40
40
@@ -46,7 +46,7 @@ Add the Firebase Messaging library and Android Support Library v4 as dependencie
46
46
47
47
``` groovy
48
48
dependencies {
49
- implementation "com.clevertap.android:clevertap-android-sdk:7.2.0 "
49
+ implementation "com.clevertap.android:clevertap-android-sdk:7.2.1 "
50
50
implementation "androidx.core:core:1.13.0"
51
51
implementation "com.google.firebase:firebase-messaging:24.0.0"
52
52
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).
Original file line number Diff line number Diff line change @@ -555,7 +555,15 @@ internal class EvaluationManager(
555
555
@WorkerThread
556
556
fun loadSuppressedCSAndEvaluatedSSInAppsIds () {
557
557
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)
559
567
suppressedClientSideInApps.putAll(JsonUtil .mapFromJson(store.readSuppressedClientSideInAppIds()))
560
568
}
561
569
}
Original file line number Diff line number Diff line change 1
1
## CleverTap Android SDK CHANGE LOG
2
2
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
+
3
12
### 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.
4
15
5
16
#### New Features
6
17
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ Add the following dependencies to the `build.gradle`
17
17
18
18
``` Groovy
19
19
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
21
21
implementation "com.google.android.gms:play-services-location:21.3.0"
22
22
implementation "androidx.work:work-runtime:2.9.1" // required for FETCH_LAST_LOCATION_PERIODIC
23
23
implementation "androidx.concurrent:concurrent-futures:1.2.0" // required for FETCH_LAST_LOCATION_PERIODIC
Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ CleverTap Push Templates SDK helps you engage with your users using fancy push n
21
21
22
22
``` groovy
23
23
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
25
25
```
26
26
27
27
2 . Add the following line to your Application class before the ` onCreate() `
Original file line number Diff line number Diff line change @@ -54,7 +54,7 @@ coroutines_test = "1.7.3"
54
54
installreferrer = " 2.2"
55
55
56
56
# SDK Versions
57
- clevertap_android_sdk = " 7.2.0 "
57
+ clevertap_android_sdk = " 7.2.1 "
58
58
clevertap_rendermax_sdk = " 1.0.3"
59
59
clevertap_geofence_sdk = " 1.4.0"
60
60
clevertap_hms_sdk = " 1.4.0"
Original file line number Diff line number Diff line change @@ -18,8 +18,8 @@ android {
18
18
applicationId " com.clevertap.demo"
19
19
minSdkVersion 21
20
20
targetSdkVersion 35
21
- versionCode 7000020
22
- versionName " 7.2.0 "
21
+ versionCode 7000021
22
+ versionName " 7.2.1 "
23
23
multiDexEnabled true
24
24
testInstrumentationRunner " android.support.test.runner.AndroidJUnitRunner"
25
25
}
@@ -159,12 +159,12 @@ dependencies {
159
159
implementation "org.jetbrains.kotlin:kotlin-gradle-plugin:1.3.72"
160
160
implementation "org.sonarsource.scanner.gradle:sonarqube-gradle-plugin:3.1.1"*/
161
161
162
- remoteImplementation(" com.clevertap.android:clevertap-android-sdk:7.2.0 " )
162
+ remoteImplementation(" com.clevertap.android:clevertap-android-sdk:7.2.1 " )
163
163
remoteImplementation(" com.clevertap.android:clevertap-geofence-sdk:1.3.0" )
164
164
remoteImplementation(" com.clevertap.android:push-templates:1.2.4" )
165
165
remoteImplementation(" com.clevertap.android:clevertap-hms-sdk:1.3.4" )
166
166
167
- stagingImplementation(" com.clevertap.android:clevertap-android-sdk:7.2.0 " )
167
+ stagingImplementation(" com.clevertap.android:clevertap-android-sdk:7.2.1 " )
168
168
stagingImplementation(" com.clevertap.android:clevertap-geofence-sdk:1.3.0" )
169
169
stagingImplementation(" com.clevertap.android:push-templates:1.2.4" )
170
170
stagingImplementation(" com.clevertap.android:clevertap-hms-sdk:1.3.4" )
Original file line number Diff line number Diff line change 1
1
## CleverTap Android SDK CHANGE LOG
2
2
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
+
3
12
### 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.
4
15
5
16
#### New Features
6
17
You can’t perform that action at this time.
0 commit comments