Skip to content

Commit b6193ee

Browse files
authored
Merge pull request #715 from CleverTap/develop
Core SDK 7.1.0 release
2 parents 5124bed + 053713c commit b6193ee

File tree

58 files changed

+4690
-1316
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

58 files changed

+4690
-1316
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+
### December 24, 2024
4+
* [CleverTap Android SDK v7.1.0](docs/CTCORECHANGELOG.md)
5+
36
### November 29, 2024
47
* [CleverTap Android SDK v7.0.3](docs/CTCORECHANGELOG.md)
58

README.md

Lines changed: 5 additions & 5 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.0.3"
29+
implementation "com.clevertap.android:clevertap-android-sdk:7.1.0"
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.0.3", ext: 'aar')
37+
implementation (name: "clevertap-android-sdk-7.1.0", ext: 'aar')
3838
}
3939
```
4040

@@ -46,10 +46,10 @@ 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.0.3"
49+
implementation "com.clevertap.android:clevertap-android-sdk:7.1.0"
5050
implementation "androidx.core:core:1.9.0"
5151
implementation "com.google.firebase:firebase-messaging:23.0.6"
52-
implementation "com.google.android.gms:play-services-ads:22.3.0" // Required only if you enable Google ADID collection in the SDK (turned off by default).
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).
5353
}
5454
```
5555

@@ -70,7 +70,7 @@ Also be sure to include the `google-services.json` classpath in your Project lev
7070
7171
}
7272
dependencies {
73-
classpath "com.android.tools.build:gradle:8.2.2"
73+
classpath "com.android.tools.build:gradle:8.7.0"
7474
classpath "com.google.gms:google-services:4.4.0"
7575
7676
// NOTE: Do not place your application dependencies here; they belong

clevertap-core/src/androidTest/kotlin/PIFlushWorkInstrumentationTest.kt

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,13 @@ import androidx.work.WorkInfo
1212
import androidx.work.WorkManager
1313
import androidx.work.testing.SynchronousExecutor
1414
import androidx.work.testing.WorkManagerTestInitHelper
15+
import com.clevertap.android.sdk.AnalyticsManagerBundler.notificationViewedJson
16+
import com.clevertap.android.sdk.AnalyticsManagerBundler.wzrkBundleToJson
1517
import com.clevertap.android.sdk.CleverTapAPI
1618
import com.clevertap.android.sdk.CleverTapAPI.LogLevel.VERBOSE
1719
import com.clevertap.android.sdk.CleverTapInstanceConfig
1820
import com.clevertap.android.sdk.Constants
1921
import com.clevertap.android.sdk.pushnotification.work.CTFlushPushImpressionsWork
20-
import com.clevertap.android.sdk.utils.CTJsonConverter
2122
import org.hamcrest.CoreMatchers.*
2223
import org.hamcrest.MatcherAssert.*
2324
import org.json.JSONObject
@@ -83,14 +84,7 @@ class PIFlushWorkInstrumentationTest{
8384
}
8485

8586
listOf(Pair(defaultInstance,bundle),Pair(ctInstance1,bundle1), Pair(ctInstance2,bundle2)).map {
86-
val event = JSONObject()
87-
try {
88-
val notif: JSONObject = CTJsonConverter.getWzrkFields(it.second)
89-
event.put("evtName", Constants.NOTIFICATION_VIEWED_EVENT_NAME)
90-
event.put("evtData", notif)
91-
} catch (ignored: Throwable) {
92-
//no-op
93-
}
87+
val event = notificationViewedJson(it.second)
9488
Pair(it.first,event)
9589
}.forEach {
9690
it.first!!.coreState!!.databaseManager.queuePushNotificationViewedEventToDB(myContext, it.second)

0 commit comments

Comments
 (0)