Add BannerInitCustomization support (init-time and show-time) - #187
Merged
Conversation
Exposes bannerCustomization (init-time, on UsercentricsOptions) and initCustomization (show-time, on BannerSettings) so Flutter apps can apply the same predefined-banner style overrides already available on native Android/iOS, matching CPD-109/MSDK-4161/4167-4170. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
…lues assert(false) crashes debug builds but is compiled out of release, silently returning nil there instead — collapse to a plain nil so behavior is consistent across build configurations. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
BannerInitCustomization was marked @deprecated in the same commit that introduced it, so internal plumbing referencing it (bridges, serializers, platform interface, test fakes) triggered deprecated_member_use_from_same_package, and flutter analyze fails CI on any reported issue. Suppress with the existing project convention and fix two test ignore-comments that used the wrong lint code. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Contributor
Author
|
AI review skipped on this PR. |
asadraza-usercentrics
approved these changes
Jul 15, 2026
islameldesoky95
approved these changes
Jul 15, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
bannerCustomizationon init (Usercentrics.initialize) andinitCustomizationon show-time (BannerSettings), mirroring the nativeBannerInitCustomizationAPI already shipped in usercentrics-android/iOS 2.28.0.BannerInitCustomizationis deprecated upstream (no removal date yet).Test plan
flutter analyze— cleanflutter test— 64/64 passing./gradlew :usercentrics_sdk:testDebugUnitTest— passing, no warningsxcodebuildrelease build — succeedsRunnerTests— 33/33 passing, including a round-trip assertion forinitCustomization🤖 Generated with Claude Code