Skip to content

Release: 2.28.2 - #231

Closed
uc-brunosilva wants to merge 2 commits into
masterfrom
bump/2.28.2
Closed

Release: 2.28.2#231
uc-brunosilva wants to merge 2 commits into
masterfrom
bump/2.28.2

Conversation

@uc-brunosilva

@uc-brunosilva uc-brunosilva commented Jul 23, 2026

Copy link
Copy Markdown
Collaborator

User description

Summary

  • Bump SDK version to 2.28.2 across package.json, package-lock.json, and android/build.gradle.kts
  • Update sample/ios/Podfile.lock to pin UsercentricsUI/Usercentrics 2.28.2
  • CHANGELOG entry for 2.28.2 fixes (iOS Xcode 26 build fix, PUR consent desync fix, TCF banner/second-layer fixes)

Test plan

  • yarn compile (TS build) passes
  • yarn test — 34/34 passing
  • yarn lint — pre-existing warnings/errors only, unrelated to this diff (verified via stash comparison)
  • pod install in sample/ios resolves UsercentricsUI (2.28.2) cleanly
  • Android ./gradlew :app:dependencies resolves com.usercentrics.sdk:usercentrics-ui:2.28.2 — BUILD SUCCESSFUL

🤖 Generated with Claude Code


CodeAnt-AI Description

Release 2.28.2 with iOS and consent-state fixes

What Changed

  • Bumped the SDK version to 2.28.2 across the package files and Android build settings
  • Updated the changelog with the 2.28.2 release notes
  • This release fixes iOS build failures on Xcode 26.6, keeps Consent-or-Pay consent state in sync with the saved TC string, and corrects TCF banner and second-layer consent display

Impact

✅ Successful installs on Xcode 26.6
✅ Fewer consent-state mismatches after app start
✅ Clearer TCF consent screens

💡 Usage Guide

Checking Your Pull Request

Every time you make a pull request, our system automatically looks through it. We check for security issues, mistakes in how you're setting up your infrastructure, and common code problems. We do this to make sure your changes are solid and won't cause any trouble later.

Talking to CodeAnt AI

Got a question or need a hand with something in your pull request? You can easily get in touch with CodeAnt AI right here. Just type the following in a comment on your pull request, and replace "Your question here" with whatever you want to ask:

@codeant-ai ask: Your question here

This lets you have a chat with CodeAnt AI about your pull request, making it easier to understand and improve your code.

Example

@codeant-ai ask: Can you suggest a safer alternative to storing this secret?

Preserve Org Learnings with CodeAnt

You can record team preferences so CodeAnt AI applies them in future reviews. Reply directly to the specific CodeAnt AI suggestion (in the same thread) and replace "Your feedback here" with your input:

@codeant-ai: Your feedback here

This helps CodeAnt AI learn and adapt to your team's coding style and standards.

Example

@codeant-ai: Do not flag unused imports.

Retrigger review

Ask CodeAnt AI to review the PR again, by typing:

@codeant-ai: review

Check Your Repository Health

To analyze the health of your code repository, visit our dashboard at https://app.codeant.ai. This tool helps you identify potential issues and areas for improvement in your codebase, ensuring your repository maintains high standards of code health.

Summary by CodeRabbit

  • Bug Fixes
    • Fixed Consent-or-Pay initialization so mandatory purposes no longer override the actual TCF consent state.
    • Removed Special Purposes from the first TCF consent banner layer.
    • Corrected second-layer disclosures and TC-string inclusion for purposes and special features when vendor declarations are unavailable.
    • Updated the iOS framework build for improved compatibility with the latest Xcode and Swift toolchain.
  • Chores
    • Updated the SDK release to version 2.28.2 across supported platforms.

uc-brunosilva and others added 2 commits July 23, 2026 10:41
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@codeant-ai

codeant-ai Bot commented Jul 23, 2026

Copy link
Copy Markdown

🤖 CodeAnt AI — Review Status

Status Commit Started (UTC) Finished (UTC)
✅ Reviewed your PR cb74f4b Jul 23, 2026 · 09:59 10:00

Updated in place by CodeAnt AI · last 5 reviews

@codeant-ai

codeant-ai Bot commented Jul 23, 2026

Copy link
Copy Markdown

Thanks for using CodeAnt! 🎉

We're free for open-source projects. if you're enjoying it, help us grow by sharing.

Share on X ·
Reddit ·
LinkedIn

@coderabbitai

coderabbitai Bot commented Jul 23, 2026

Copy link
Copy Markdown

Review Change Stack

📝 Walkthrough

Walkthrough

Version 2.28.2 release metadata was applied to the npm, iOS, and Android package configuration, and a changelog entry documents the included iOS and TCF consent behavior fixes.

Changes

2.28.2 Release Update

Layer / File(s) Summary
Version metadata and release notes
package.json, android/build.gradle.kts, CHANGELOG.md
Package, iOS package, and Android SDK versions were bumped from 2.28.1 to 2.28.2. The changelog records the associated iOS framework and TCF consent behavior fixes.

Estimated code review effort: 1 (Trivial) | ~2 minutes

Possibly related PRs

Suggested labels: Review effort 1/5

Suggested reviewers: asadraza-usercentrics

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly identifies the release version and matches the version bump in the changeset.
✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch bump/2.28.2

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@codeant-ai codeant-ai Bot added the size:S This PR changes 10-29 lines, ignoring generated files label Jul 23, 2026
@qodo-code-review

Copy link
Copy Markdown

PR Summary by Qodo

Release 2.28.2: bump SDK versions + update changelog

⚙️ Configuration changes 📝 Documentation 🕐 10-20 Minutes

Grey Divider

AI Description

• Bump React Native SDK version to 2.28.2 across JS, Android, and iOS sample pins.
• Update iOS Podfile.lock to resolve Usercentrics/UsercentricsUI 2.28.2.
• Add 2.28.2 changelog entry covering iOS, PUR, and TCF fixes.
Diagram

graph TD
  R["Release 2.28.2"] --> PJ["package.json"] --> PL["package-lock.json"] --> AG["android/build.gradle.kts"] --> PF["sample/ios/Podfile.lock"] --> CL["CHANGELOG.md"]
Loading
High-Level Assessment

The PR follows the standard, low-risk release procedure: bump the version consistently across JS metadata, Android pin, and iOS Pod lockfile, and record the release notes. Alternatives (e.g., not committing lockfile changes) would reduce reproducibility for consumers and samples, so the current approach is appropriate.

Files changed (5) +20 / -13

Documentation (1) +7 / -0
CHANGELOG.mdAdd 2.28.2 release notes (iOS/PUR/TCF fixes) +7/-0

Add 2.28.2 release notes (iOS/PUR/TCF fixes)

• Adds a new 2.28.2 section describing fixes for Xcode 26 build compatibility, Consent-or-Pay consent desync on init, and multiple TCF banner/second-layer disclosure issues.

CHANGELOG.md

Other (4) +13 / -13
build.gradle.ktsBump Android Usercentrics version constant to 2.28.2 +1/-1

Bump Android Usercentrics version constant to 2.28.2

• Updates the shared 'usercentricsVersion' used by Android dependency resolution from 2.28.1 to 2.28.2.

android/build.gradle.kts

package-lock.jsonUpdate lockfile version to 2.28.2 +2/-2

Update lockfile version to 2.28.2

• Aligns 'package-lock.json' root package version fields to 2.28.2 to match the release.

package-lock.json

package.jsonBump NPM package + iOS package version to 2.28.2 +2/-2

Bump NPM package + iOS package version to 2.28.2

• Updates the published package version and 'iosPackageVersion' metadata from 2.28.1 to 2.28.2.

package.json

Podfile.lockPin iOS sample pods to Usercentrics/UsercentricsUI 2.28.2 +8/-8

Pin iOS sample pods to Usercentrics/UsercentricsUI 2.28.2

• Updates the sample app lockfile to resolve 'react-native-usercentrics' 2.28.2 and pins 'Usercentrics'/'UsercentricsUI' to 2.28.2, including updated spec checksums.

sample/ios/Podfile.lock

@pantoaibot

pantoaibot Bot commented Jul 23, 2026

Copy link
Copy Markdown

PR Summary:

Release 2.28.2: bump package versions and changelog; fixes for iOS build issues and TCF/Consent-or-Pay consent state handling.

  • Changelog: added 2.28.2 release notes describing fixes.
    • iOS: Rebuilt UsercentricsUI.xcframework with Xcode 26 / Swift 6.3.3 toolchain to fix build failures on Xcode 26.6 (affects apps using 2.27.1/2.28.0, including React Native bridge).
    • PUR (Consent-or-Pay): fixed bug where mandatory purposes silently overrode the user's real TCF consent on SDK initialization, causing a desync between SDK getters and the persisted TC string.
    • TCF:
      • Removed Special Purposes from the first-layer banner (no longer shown there).
      • Fixed incorrect disclosure/inclusion of purposes and special features in the second layer (and TC string) when no vendor declared them while Stacks are enabled.
  • Version bumps:
    • android/build.gradle.kts: usercentricsVersion -> 2.28.2.
    • package.json: version and iosPackageVersion -> 2.28.2.
  • Notes/behavioral impact:
    • UI/consent display change: Special Purposes removed from first layer may alter what users see on initial banner.
    • Toolchain change for iOS framework rebuild; consumers building with Xcode 26.6 should see resolved build failures.

Reviewed by Panto AI

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@CHANGELOG.md`:
- Around line 2-3: Update the Fixes heading under release 2.28.2 from level-two
to level-four Markdown heading, preserving the release heading as level three
and maintaining consistent changelog hierarchy.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: b2fa42d6-d304-4d00-8623-e65e1473a6bb

📥 Commits

Reviewing files that changed from the base of the PR and between b197309 and cb74f4b.

⛔ Files ignored due to path filters (2)
  • package-lock.json is excluded by !**/package-lock.json
  • sample/ios/Podfile.lock is excluded by !**/*.lock
📒 Files selected for processing (3)
  • CHANGELOG.md
  • android/build.gradle.kts
  • package.json

Comment thread CHANGELOG.md
Comment on lines +2 to +3
### 2.28.2 – Jul 22, 2026
## Fixes

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

📐 Maintainability & Code Quality | 🟡 Minor | ⚡ Quick win

Keep the changelog heading hierarchy consistent.

The release is a ### heading, so Fixes should be a child heading such as #### Fixes, not ## Fixes. This prevents the subsection from appearing above its release in document navigation.

Suggested fix
 ### 2.28.2 – Jul 22, 2026
-## Fixes
+#### Fixes
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
### 2.28.2 – Jul 22, 2026
## Fixes
### 2.28.2 – Jul 22, 2026
#### Fixes
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@CHANGELOG.md` around lines 2 - 3, Update the Fixes heading under release
2.28.2 from level-two to level-four Markdown heading, preserving the release
heading as level three and maintaining consistent changelog hierarchy.

@qodo-code-review

Copy link
Copy Markdown

Code Review by Qodo

🐞 Bugs (1) 📘 Rule violations (0) 📜 Skill insights (0)

Grey Divider


Informational

1. Changelog heading hierarchy 🐞 Bug ⚙ Maintainability
Description
In CHANGELOG.md, the 2.28.2 release header is ### but the following Fixes header is ##, which
makes Fixes a higher-level section than the release itself (outline-wise it becomes a peer/parent
rather than a subsection). This weakens changelog structure (TOC/navigation/readability) and
continues an existing pattern in prior entries.
Code

CHANGELOG.md[R2-4]

+### 2.28.2 – Jul 22, 2026
+## Fixes
+* **[iOS]** Rebuilt `UsercentricsUI.xcframework` with the Xcode 26 / Swift 6.3.3 toolchain, fixing build failures on Xcode 26.6 for apps consuming 2.27.1/2.28.0 (including via the React Native bridge)
Evidence
The current file content shows ### 2.28.2 followed by ## Fixes, meaning the Fixes heading is
higher-level than the release heading; the same structure appears for 2.28.1, indicating this is an
existing convention being continued.

CHANGELOG.md[1-15]

Agent prompt
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution

### Issue description
`CHANGELOG.md` uses a level-3 release heading (`### 2.28.2 …`) followed immediately by a level-2 section heading (`## Fixes`), which breaks heading nesting and makes sections harder to navigate/parse.

### Issue Context
The same pattern is present in older entries (e.g., 2.28.1), so this PR is not introducing a new pattern but is adding another instance of it.

### Fix Focus Areas
- CHANGELOG.md[2-11]

### Suggested fix
Choose a consistent hierarchy and apply it (ideally across the whole changelog):
- Option A: Make releases `## 2.28.2 …` and subsections `### Fixes`, `### Chores`, etc.
- Option B: Keep releases as `### …` and change subsections to `#### Fixes`, `#### Chores`, etc.

Apply the chosen option at least to the newly added 2.28.2 entry (and preferably to the rest of the file for consistency).

ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools


Grey Divider

Qodo Logo

Comment thread CHANGELOG.md
Comment on lines +2 to +4
### 2.28.2 – Jul 22, 2026
## Fixes
* **[iOS]** Rebuilt `UsercentricsUI.xcframework` with the Xcode 26 / Swift 6.3.3 toolchain, fixing build failures on Xcode 26.6 for apps consuming 2.27.1/2.28.0 (including via the React Native bridge)

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Informational

1. Changelog heading hierarchy 🐞 Bug ⚙ Maintainability

In CHANGELOG.md, the 2.28.2 release header is ### but the following Fixes header is ##, which
makes Fixes a higher-level section than the release itself (outline-wise it becomes a peer/parent
rather than a subsection). This weakens changelog structure (TOC/navigation/readability) and
continues an existing pattern in prior entries.
Agent Prompt
### Issue description
`CHANGELOG.md` uses a level-3 release heading (`### 2.28.2 …`) followed immediately by a level-2 section heading (`## Fixes`), which breaks heading nesting and makes sections harder to navigate/parse.

### Issue Context
The same pattern is present in older entries (e.g., 2.28.1), so this PR is not introducing a new pattern but is adding another instance of it.

### Fix Focus Areas
- CHANGELOG.md[2-11]

### Suggested fix
Choose a consistent hierarchy and apply it (ideally across the whole changelog):
- Option A: Make releases `## 2.28.2 …` and subsections `### Fixes`, `### Chores`, etc.
- Option B: Keep releases as `### …` and change subsections to `#### Fixes`, `#### Chores`, etc.

Apply the chosen option at least to the newly added 2.28.2 entry (and preferably to the rest of the file for consistency).

ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools

Comment thread package.json
Comment on lines +3 to +10
"version": "2.28.2",
"description": "Usercentrics SDK",
"homepage": "https://usercentrics.com",
"main": "lib/index.js",
"types": "lib/index.d.ts",
"author": "Usercentrics <developer@usercentrics.com>",
"iosPackageName": "react-native-usercentrics",
"iosPackageVersion": "2.28.1",
"iosPackageVersion": "2.28.2",

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[CRITICAL_BUG] You updated both "version" and "iosPackageVersion" in package.json (lines 3 and 10) — ensure the lockfile and all published artefacts are consistent: 1) Commit the corresponding package-lock.json / yarn.lock changes to this PR so consumers and CI install the exact bumped package. 2) Verify the npm publish / release pipeline will include the updated react-native-usercentrics.podspec (it reads package['iosPackageVersion']) and that the external iOS binary (UsercentricsUI 2.28.2) is published to CocoaPods / your internal repo before pushing this release. See react-native-usercentrics.podspec which references package['iosPackageVersion'] and s.version (reference: react-native-usercentrics.podspec lines 6-36). If the CocoaPods artifact is not available, consumers will fail on pod install.

Comment thread android/build.gradle.kts
@@ -1,4 +1,4 @@
val usercentricsVersion = "2.28.1"
val usercentricsVersion = "2.28.2"

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[REFACTORING] You bumped usercentricsVersion to "2.28.2" (line 1). Consider centralizing this SDK version in a single shared location (or Gradle ext/value file) if multiple modules or sample apps reference it, to avoid drift and duplicate edits in future releases. Also double-check other build files (sample app build.gradle, CI scripts) that may hardcode the older version so nothing is left referencing 2.28.1. The dependency usage occurs in the dependencies block (see android/build.gradle.kts dependency declarations).

Comment thread CHANGELOG.md
Comment on lines +2 to +7
### 2.28.2 – Jul 22, 2026
## Fixes
* **[iOS]** Rebuilt `UsercentricsUI.xcframework` with the Xcode 26 / Swift 6.3.3 toolchain, fixing build failures on Xcode 26.6 for apps consuming 2.27.1/2.28.0 (including via the React Native bridge)
* **[PUR]** Fixed Consent-or-Pay mandatory purposes silently overriding the user's real TCF consent state on SDK initialization, causing a desync between the SDK's consent getters and the persisted TC string
* **[TCF]** Removed Special Purposes from the first layer of the TCF banner — not a first-layer requirement
* **[TCF]** Fixed purposes and special features being disclosed in the second layer (and included in the TC string) even when no vendor declared them, when Stacks are enabled

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[VALIDATION] Changelog entry for 2.28.2 describes an iOS xcframework rebuild and fixes that rely on published native artefacts. Please add a short upgrade note to the entry indicating that apps must use UsercentricsUI 2.28.2 (and the date it was published), and confirm the package was pushed to CocoaPods/your binary distribution before release. This will help integrators who hit pod install / build issues after upgrading.

### 2.28.2 – Jul 22, 2026
## Fixes
* **[iOS]** Rebuilt `UsercentricsUI.xcframework` with the Xcode 26 / Swift 6.3.3 toolchain, fixing build failures on Xcode 26.6 for apps consuming 2.27.1/2.28.0 (including via the React Native bridge)
* **[PUR]** Fixed Consent-or-Pay mandatory purposes silently overriding the user's real TCF consent state on SDK initialization, causing a desync between the SDK's consent getters and the persisted TC string
* **[TCF]** Removed Special Purposes from the first layer of the TCF banner — not a first-layer requirement
* **[TCF]** Fixed purposes and special features being disclosed in the second layer (and included in the TC string) even when no vendor declared them, when Stacks are enabled

#### Upgrade notes
* iOS integrators must use `UsercentricsUI` **2.28.2** (published to CocoaPods on **Jul 22, 2026**) when upgrading to `@usercentrics/react-native-sdk` 2.28.2 to avoid Xcode 26.x build issues.
* Ensure `pod repo update` has been run so that CocoaPods can resolve `UsercentricsUI (2.28.2)` correctly.

@pantoaibot

pantoaibot Bot commented Jul 23, 2026

Copy link
Copy Markdown

Reviewed up to commit:cb74f4b2d3924ff4444dbc8112833c4af49d5e53

Reviewed by Panto AI

@uc-brunosilva
uc-brunosilva deleted the bump/2.28.2 branch July 23, 2026 10:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:S This PR changes 10-29 lines, ignoring generated files

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant