Skip to content

Commit edfb6b4

Browse files
Release: 2.20.1
1 parent 115b503 commit edfb6b4

File tree

11 files changed

+38
-17
lines changed

11 files changed

+38
-17
lines changed

CHANGELOG.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,15 @@
11
[Release Notes](https://docs.usercentrics.com/cmp_in_app_sdk/latest/about/history/)
22

3+
### 2.20.1 - May 7, 2025
4+
5+
## Improvements: Accessibility Enhancements - Enhanced accessibility features to provide a more inclusive user experience.
6+
* Android Bug Fixes:
7+
* Ensured minimum touch target size of 24dp for interactive elements.
8+
* Added status messages to announce additional content for screen readers.
9+
* iOS Bug Fixes:
10+
* Added status messages to announce additional content for screen readers.
11+
* Fixed dynamic type behavior to correctly resize text when accessibility text size is increased.
12+
313
### 2.20.0 - April 16, 2025
414

515
## Feature

android/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
def usercentrics_version = "2.20.0"
1+
def usercentrics_version = "2.20.1"
22

33
group 'com.usercentrics.sdk.flutter'
44
version usercentrics_version

android/src/main/kotlin/com/usercentrics/sdk/flutter/serializer/CMPDataSerializer.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,8 @@ private fun UsercentricsSettings.serialize(): Any {
5858
"dpsDisplayFormat" to (dpsDisplayFormat?.name ?: ""),
5959
"framework" to (framework?.name ?: ""),
6060
"publishedApps" to publishedApps?.map { it.serialize() },
61-
"renewConsentsTimestamp" to renewConsentsTimestamp
61+
"renewConsentsTimestamp" to renewConsentsTimestamp,
62+
"consentWebhook" to consentWebhook
6263
)
6364
}
6465

android/src/test/java/com/usercentrics/sdk/flutter/mock/GetCMPDataMock.kt

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -332,7 +332,8 @@ internal object GetCMPDataMock {
332332
publishedApps = listOf(
333333
PublishedApp(bundleId = "bundleId", platform = PublishedAppPlatform.ANDROID)
334334
),
335-
renewConsentsTimestamp = 1000L
335+
renewConsentsTimestamp = 1000L,
336+
consentWebhook = true
336337
)
337338

338339
val fakeTranslationAriaLabels = TranslationAriaLabels(
@@ -610,7 +611,8 @@ internal object GetCMPDataMock {
610611
"platform" to "ANDROID"
611612
)
612613
),
613-
"renewConsentsTimestamp" to 1000L
614+
"renewConsentsTimestamp" to 1000L,
615+
"consentWebhook" to true
614616
)
615617

616618
val expectedCategories = listOf(

example/ios/Podfile.lock

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
PODS:
22
- Flutter (1.0.0)
3-
- Usercentrics (2.20.0)
4-
- usercentrics_sdk (2.20.0):
3+
- Usercentrics (2.20.1)
4+
- usercentrics_sdk (2.20.1):
55
- Flutter
6-
- UsercentricsUI (= 2.20.0)
7-
- UsercentricsUI (2.20.0):
8-
- Usercentrics (= 2.20.0)
6+
- UsercentricsUI (= 2.20.1)
7+
- UsercentricsUI (2.20.1):
8+
- Usercentrics (= 2.20.1)
99
- webview_flutter_wkwebview (0.0.1):
1010
- Flutter
1111

ios/Classes/Serializer/CMPDataSerializer.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,8 @@ extension UsercentricsSettings {
4242
"dpsDisplayFormat": (self.dpsDisplayFormat?.name ?? "") as Any,
4343
"framework": (self.framework?.name ?? "") as Any,
4444
"publishedApps": (self.publishedApps?.map { $0.serialize() } ?? nil) as Any,
45-
"renewConsentsTimestamp": self.renewConsentsTimestamp as Any
45+
"renewConsentsTimestamp": self.renewConsentsTimestamp as Any,
46+
"consentWebhook": self.consentWebhook as Any
4647
]
4748
}
4849
}

ios/usercentrics_sdk.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Pod::Spec.new do |s|
22
s.name = 'usercentrics_sdk'
3-
s.version = '2.20.0'
3+
s.version = '2.20.1'
44
s.summary = 'Usercentrics Flutter SDK.'
55
s.description = <<-DESC
66
Usercentrics Flutter SDK.

lib/src/internal/serializer/settings_serializer.dart

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,8 @@ class SettingsSerializer {
4040
publishedApps: ((value['publishedApps'] ?? []) as List)
4141
.map((e) => PublishedAppSerializer.deserialize(e))
4242
.toList(),
43-
renewConsentsTimestamp: value['renewConsentsTimestamp']);
43+
renewConsentsTimestamp: value['renewConsentsTimestamp'],
44+
consentWebhook: value['consentWebhook']);
4445
}
4546
}
4647

lib/src/model/settings.dart

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ class UsercentricsSettings {
3434
required this.framework,
3535
required this.publishedApps,
3636
required this.renewConsentsTimestamp,
37+
required this.consentWebhook,
3738
});
3839

3940
final UsercentricsLabels labels;
@@ -63,6 +64,7 @@ class UsercentricsSettings {
6364
final USAFrameworks? framework;
6465
final List<PublishedApp>? publishedApps;
6566
final int? renewConsentsTimestamp;
67+
final bool? consentWebhook;
6668

6769
@override
6870
bool operator ==(Object other) =>
@@ -98,7 +100,8 @@ class UsercentricsSettings {
98100
dpsDisplayFormat == other.dpsDisplayFormat &&
99101
framework == other.framework &&
100102
listEquals(publishedApps, other.publishedApps) &&
101-
renewConsentsTimestamp == other.renewConsentsTimestamp;
103+
renewConsentsTimestamp == other.renewConsentsTimestamp &&
104+
consentWebhook == other.consentWebhook;
102105

103106
@override
104107
int get hashCode =>
@@ -128,7 +131,8 @@ class UsercentricsSettings {
128131
dpsDisplayFormat.hashCode +
129132
framework.hashCode +
130133
publishedApps.hashCode +
131-
renewConsentsTimestamp.hashCode;
134+
renewConsentsTimestamp.hashCode +
135+
consentWebhook.hashCode;
132136

133137
@override
134138
String toString() =>

pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ repository: https://github.com/Usercentrics/flutter-sdk/
99
# [X] android/build.gradle
1010
# [X] ios/usercentrics_sdk.podspec + pod install/update
1111
# [X] CHANGELOG.md
12-
version: 2.20.0
12+
version: 2.20.1
1313

1414
environment:
1515
sdk: ">=2.17.1 <4.0.0"

0 commit comments

Comments
 (0)