Skip to content

Commit d18a75c

Browse files
author
Evan Greer
committed
Merge branch 'master' into feature/itbl-track-anon-user
# Conflicts: # CHANGELOG.md # iterableapi-ui/build.gradle # iterableapi/build.gradle # sample-apps/inbox-customization/app/build.gradle
2 parents 5f2df82 + 9576367 commit d18a75c

29 files changed

+264
-259
lines changed

CHANGELOG.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,23 @@ This project adheres to [Semantic Versioning](http://semver.org/).
44

55
## [Unreleased]
66

7+
## [3.5.16]
8+
### Added
9+
- Added offline support for disable push API requests, allowing requests to be queued and processed when network connectivity is restored
10+
11+
### Fixed
12+
- Fixed KeyStoreException crash on Nexus 5 devices by adding proper error handling for SecretKeyEntry operations
13+
- Added graceful fallback to plaintext storage when encryption initialization fails
14+
15+
## [3.5.15]
16+
### Fixed
17+
- Fixed JWT token refresh issues when app is in background, ensuring reliable token refresh in all app states
18+
- Fixed inbox metadata null check issues to prevent crashes in inbox display
19+
20+
### Changed
21+
- Migrated embedded message OOTB views to use Material Design buttons for better UI consistency
22+
- Updated sample app Gradle configuration to use newer versions for better compatibility
23+
724
## [3.6.0-beta3]
825

926
### Added

iterableapi-ui/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ dependencies {
6161

6262
ext {
6363
libraryName = 'iterableapi-ui'
64-
libraryVersion = '3.6.0-beta3'
64+
libraryVersion = '3.5.16'
6565
}
6666

6767
if (hasProperty("mavenPublishEnabled")) {

iterableapi-ui/src/main/java/com/iterable/iterableapi/ui/embedded/IterableEmbeddedView.kt

Lines changed: 4 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -94,23 +94,11 @@ class IterableEmbeddedView(
9494
val titleText = view.findViewById<TextView>(R.id.embedded_message_title)
9595
val bodyText = view.findViewById<TextView>(R.id.embedded_message_body)
9696

97-
if(config?.primaryBtnBackgroundColor != null) {
98-
val primaryBtnBackgroundDrawable = if(viewType == IterableEmbeddedViewType.NOTIFICATION)
99-
ContextCompat.getDrawable(requireContext(), R.drawable.primary_notification_button_background) as? GradientDrawable
100-
else ContextCompat.getDrawable(requireContext(), R.drawable.primary_banner_button_background) as? GradientDrawable
101-
primaryBtnBackgroundDrawable?.setColor(primaryBtnBackgroundColor)
102-
103-
firstButton.background = primaryBtnBackgroundDrawable
104-
}
105-
106-
if(config?.secondaryBtnBackgroundColor != null) {
107-
val secondaryBtnBackgroundDrawable = if(viewType == IterableEmbeddedViewType.NOTIFICATION)
108-
ContextCompat.getDrawable(requireContext(), R.drawable.secondary_notification_button_background) as? GradientDrawable
109-
else ContextCompat.getDrawable(requireContext(), R.drawable.secondary_banner_button_background) as? GradientDrawable
110-
secondaryBtnBackgroundDrawable?.setColor(secondaryBtnBackgroundColor)
97+
firstButton.setBackgroundColor(primaryBtnBackgroundColor)
98+
firstButton.setTextColor(primaryBtnTextColor)
11199

112-
secondButton.background = secondaryBtnBackgroundDrawable
113-
}
100+
secondButton.setBackgroundColor(secondaryBtnBackgroundColor)
101+
secondButton.setTextColor(secondaryBtnTextColor)
114102

115103
firstButton.setTextColor(primaryBtnTextColor)
116104
secondButton.setTextColor(secondaryBtnTextColor)

iterableapi-ui/src/main/java/com/iterable/iterableapi/ui/inbox/IterableInboxAdapter.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -70,14 +70,14 @@ public void onBindViewHolder(@NonNull ViewHolder holder, int position) {
7070
IterableInAppMessage.InboxMetadata inboxMetadata = inboxRow.inboxMetadata;
7171

7272
if (holder.title != null) {
73-
holder.title.setText(inboxMetadata.title);
73+
holder.title.setText(inboxMetadata != null && inboxMetadata.title != null ? inboxMetadata.title : "");
7474
}
7575

7676
if (holder.subtitle != null) {
77-
holder.subtitle.setText(inboxMetadata.subtitle);
77+
holder.subtitle.setText(inboxMetadata != null && inboxMetadata.subtitle != null ? inboxMetadata.subtitle : "");
7878
}
7979

80-
if (holder.icon != null) {
80+
if (holder.icon != null && inboxMetadata != null && inboxMetadata.icon != null) {
8181
BitmapLoader.loadBitmap(holder.icon, Uri.parse(inboxMetadata.icon));
8282
}
8383

iterableapi-ui/src/main/res/drawable/primary_banner_button_background.xml

Lines changed: 0 additions & 9 deletions
This file was deleted.

iterableapi-ui/src/main/res/drawable/primary_card_button_background.xml

Lines changed: 0 additions & 13 deletions
This file was deleted.

iterableapi-ui/src/main/res/drawable/primary_notification_button_background.xml

Lines changed: 0 additions & 13 deletions
This file was deleted.

iterableapi-ui/src/main/res/drawable/secondary_banner_button_background.xml

Lines changed: 0 additions & 13 deletions
This file was deleted.

iterableapi-ui/src/main/res/drawable/secondary_card_button_background.xml

Lines changed: 0 additions & 13 deletions
This file was deleted.

iterableapi-ui/src/main/res/drawable/secondary_notification_button_background.xml

Lines changed: 0 additions & 13 deletions
This file was deleted.

0 commit comments

Comments
 (0)