Skip to content

Commit c6b3b45

Browse files
authored
Merge pull request #898 from CleverTap/develop
Release Core v7.6.0 and PushTempaltes v2.2.0
2 parents 5b7826d + 4583495 commit c6b3b45

File tree

94 files changed

+8239
-1942
lines changed

Some content is hidden

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

94 files changed

+8239
-1942
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
11
## CHANGE LOG.
2+
3+
### October 17, 2025
4+
* [CleverTap Android SDK v7.6.0](docs/CTCORECHANGELOG.md).
5+
* [CleverTap Push Templates SDK v2.2.0](docs/CTPUSHTEMPLATESCHANGELOG.md).
6+
27
### September 29, 2025
38
* [CleverTap Huawei Push SDK v1.5.1](docs/CTHUAWEIPUSHCHANGELOG.md)
49

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.5.2"
29+
implementation "com.clevertap.android:clevertap-android-sdk:7.6.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.5.2", ext: 'aar')
37+
implementation (name: "clevertap-android-sdk-7.6.0", 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.5.2"
49+
implementation "com.clevertap.android:clevertap-android-sdk:7.6.0"
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/AndroidManifest.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
<activity
2424
android:name="com.clevertap.android.sdk.inbox.CTInboxActivity"
2525
android:configChanges="keyboardHidden"
26-
android:theme="@style/Theme.AppCompat.DayNight.DarkActionBar" />
26+
android:theme="@style/CTInboxActivityTheme" />
2727

2828
<receiver
2929
android:name=".pushnotification.CTPushNotificationReceiver"

clevertap-core/src/main/java/com/clevertap/android/sdk/Constants.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -217,6 +217,8 @@ public interface Constants {
217217
String WZRK_BADGE_COUNT = "wzrk_bc";
218218
String WZRK_SUBTITLE = "wzrk_st";
219219
String WZRK_COLOR = "wzrk_clr";
220+
String WZRK_DISMISS = "wzrk_dismiss";
221+
String WZRK_STICKY = "wzrk_sticky";
220222
String WZRK_SOUND = "wzrk_sound";
221223
String WZRK_TIME_TO_LIVE = "wzrk_ttl";
222224
String WZRK_TIME_TO_LIVE_OFFSET = "wzrk_ttl_offset";

clevertap-core/src/main/java/com/clevertap/android/sdk/inbox/CTInboxListViewFragment.java

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
import android.os.Handler;
1111
import android.os.Looper;
1212
import android.os.Parcelable;
13-
import android.util.Log;
1413
import android.view.LayoutInflater;
1514
import android.view.View;
1615
import android.view.ViewGroup;
@@ -20,9 +19,6 @@
2019
import androidx.annotation.Nullable;
2120
import androidx.annotation.RestrictTo;
2221
import androidx.annotation.RestrictTo.Scope;
23-
import androidx.core.graphics.Insets;
24-
import androidx.core.view.ViewCompat;
25-
import androidx.core.view.WindowInsetsCompat;
2622
import androidx.fragment.app.Fragment;
2723
import androidx.recyclerview.widget.DefaultItemAnimator;
2824
import androidx.recyclerview.widget.LinearLayoutManager;
@@ -137,7 +133,6 @@ public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup c
137133
mediaRecyclerView.setLayoutManager(linearLayoutManager);
138134
mediaRecyclerView.addItemDecoration(new VerticalSpaceItemDecoration(18));
139135
mediaRecyclerView.setItemAnimator(new DefaultItemAnimator());
140-
applySystemBarsInsets(mediaRecyclerView);
141136

142137
mediaRecyclerView.setAdapter(inboxMessageAdapter);
143138
inboxMessageAdapter.notifyDataSetChanged();
@@ -159,24 +154,12 @@ public void run() {
159154
recyclerView.setLayoutManager(linearLayoutManager);
160155
recyclerView.addItemDecoration(new VerticalSpaceItemDecoration(18));
161156
recyclerView.setItemAnimator(new DefaultItemAnimator());
162-
applySystemBarsInsets(recyclerView);
163157
recyclerView.setAdapter(inboxMessageAdapter);
164158
inboxMessageAdapter.notifyDataSetChanged();
165159
}
166160
return allView;
167161
}
168162

169-
private void applySystemBarsInsets(RecyclerView view) {
170-
view.setClipToPadding(false);
171-
ViewCompat.setOnApplyWindowInsetsListener(view, (v, insets) -> {
172-
Insets bars = insets.getInsets(
173-
WindowInsetsCompat.Type.systemBars()
174-
);
175-
v.setPadding(bars.left, 0, bars.right, bars.bottom);
176-
return WindowInsetsCompat.CONSUMED;
177-
});
178-
}
179-
180163
@Override
181164
public void onViewStateRestored(@Nullable Bundle savedInstanceState) {
182165
super.onViewStateRestored(savedInstanceState);

clevertap-core/src/main/java/com/clevertap/android/sdk/pushnotification/CoreNotificationRenderer.java

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,21 @@ private Builder finalizeBuilder(Builder nb, Bundle extras, Context context,
178178
nb.setColorized(true);
179179
}// uncommon
180180

181+
String dismissValue = extras.getString(Constants.WZRK_DISMISS);
182+
if (dismissValue != null) {
183+
try {
184+
long dismissAfter = Long.parseLong(dismissValue) * 1000L;
185+
nb.setTimeoutAfter(dismissAfter);
186+
} catch (NumberFormatException e) {
187+
config.getLogger().verbose(config.getAccountId(), "Failed to parse timeout dismiss value", e);
188+
}
189+
}
190+
191+
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.UPSIDE_DOWN_CAKE) {
192+
boolean isSticky = "true".equalsIgnoreCase(extras.getString(Constants.WZRK_STICKY));
193+
nb.setOngoing(isSticky);
194+
}
195+
181196
// uncommon
182197
nb.setContentTitle(notifTitle)
183198
.setContentText(notifMessage)

clevertap-core/src/main/res/layout/inbox_activity.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,15 @@
22
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
33
android:layout_width="match_parent"
44
android:layout_height="match_parent"
5+
android:fitsSystemWindows="true"
56
android:orientation="vertical">
67

78
<androidx.appcompat.widget.Toolbar
89
android:id="@+id/toolbar"
910
android:layout_width="match_parent"
1011
android:layout_height="wrap_content"
1112
android:elevation="4dp"
12-
android:minHeight="56dp"
13-
android:fitsSystemWindows="true"/>
13+
android:minHeight="56dp"/>
1414

1515
<LinearLayout
1616
android:id="@+id/inbox_linear_layout"
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<resources>
3+
<!-- Theme for CTInboxActivity in dark mode -->
4+
<style name="CTInboxActivityTheme" parent="Theme.AppCompat.DayNight">
5+
<item name="android:windowLightStatusBar">false</item>
6+
</style>
7+
</resources>
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<resources>
3+
<!-- Theme for CTInboxActivity with proper status bar configuration -->
4+
<style name="CTInboxActivityTheme" parent="Theme.AppCompat.DayNight">
5+
<item name="android:windowLightStatusBar">true</item>
6+
</style>
7+
</resources>

clevertap-pushtemplates/build.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ dependencies {
3030

3131
implementation (libs.androidx.core.ktx)
3232
implementation (libs.androidx.appcompat)
33+
implementation (libs.android.gif.drawable)
3334

3435
testImplementation (libs.test.junit)
3536
testImplementation project(':clevertap-core')

0 commit comments

Comments
 (0)