Skip to content

chore: bump native SDK dependency to 2.31.1 - #246

Open
uc-brunosilva wants to merge 1 commit into
masterfrom
chore/2.31.1-bump
Open

uc-brunosilva wants to merge 1 commit into
masterfrom
chore/2.31.1-bump

Conversation

@uc-brunosilva

@uc-brunosilva uc-brunosilva commented Sep 16, 2026

Copy link
Copy Markdown
Collaborator

User description

Bumps the native Usercentrics SDK dependency from 2.31.0 to 2.31.1.

No RN-side API changes needed — 2.31.1 is fixes/compliance only, no public API changes.

Validated locally:

  • npm install (+ prepare/tsc compile) — clean
  • Sample app Android: ./gradlew :app:dependencies resolves com.usercentrics.sdk:usercentrics-ui:2.31.1usercentrics:2.31.1usercentrics-android:2.31.1
  • Sample app iOS: pod update UsercentricsUI resolves Usercentrics (2.31.1) / UsercentricsUI (2.31.1) against the real published CocoaPods trunk artifacts

🤖 Generated with Claude Code


CodeAnt-AI Description

Align the React Native package and native dependencies with SDK version 2.31.1

What Changed

  • Updates the Android native SDK to version 2.31.1
  • Publishes the React Native package and iOS dependency metadata as version 2.31.1
  • Keeps package-lock metadata aligned with the released package version

Impact

✅ Access to native SDK 2.31.1 fixes and compliance updates
✅ Consistent Android, iOS, and React Native package versions

💡 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

  • Chores
    • Updated the package release version to 2.31.1.
    • Synchronized Android and iOS platform configurations with the 2.31.1 release.

Validated: npm install, sample Android gradle dependency resolution
(usercentrics-ui:2.31.1), and sample iOS pod install/update all resolve
cleanly against the real published 2.31.1 artifacts.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@codeant-ai

codeant-ai Bot commented Sep 16, 2026

Copy link
Copy Markdown

🤖 CodeAnt AI — Review Status

Status Commit Started (UTC) Finished (UTC)
✅ Reviewed your PR 1b96fa6 Sep 16, 2026 · 14:01 14:02

@codeant-ai

codeant-ai Bot commented Sep 16, 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 Sep 16, 2026

Copy link
Copy Markdown

Review Change StackReview Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Advanced

Run ID: 3d547d19-849c-416d-9745-a8c9c80bea74

📥 Commits

Reviewing files that changed from the base of the PR and between ee0d62d and 1b96fa6.

⛔ 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 (2)
  • android/build.gradle.kts
  • package.json

Included review availability: Your plan provides up to 1 included review per hour; 0 remain after this review.


📝 Walkthrough

Walkthrough

The package metadata and Android Usercentrics dependency version were updated from 2.31.0 to 2.31.1.

Changes

Version alignment

Layer / File(s) Summary
Release version updates
package.json, android/build.gradle.kts
The npm package version, iOS package version, and Android usercentrics-ui dependency version now use 2.31.1.

Priority: ⬇️ Low

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

Change: Other

Suggested reviewers: islameldesoky95

Merge Risk: ⚪ Minimal · up to 1b96f

The supported Android, iOS, and package version metadata are aligned to 2.31.1, with no confirmed merge-blocking risk.

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 1 functions across 1 files. (1 skipped: 1 … Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly and concisely describes the main change: updating the native SDK dependency to version 2.31.1.
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.
Full details: Docstring Coverage

Explanation

Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 1 functions across 1 files. (1 skipped: 1 unsupported.)

  • Fix all pre-merge checks with AI
✨ Finishing Touches 💡 1
📝 Generate docstrings 💡
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch chore/2.31.1-bump

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:XS This PR changes 0-9 lines, ignoring generated files label Sep 16, 2026
@qodo-code-review

Copy link
Copy Markdown

PR Summary by Qodo

Bump native Usercentrics SDKs to 2.31.1

⚙️ Configuration changes 🕐 Less than 10 minutes

Grey Divider

AI Description

• Bumps Android and iOS Usercentrics native SDK dependencies to 2.31.1.
• Aligns React Native package metadata and lockfiles with the patch release.
• Preserves the React Native API while incorporating fixes and compliance updates.
Diagram

graph TD
  PKG["package.json"] -->|"provides versions"| PODSPEC["iOS Podspec"] -->|"pins 2.31.1"| PODLOCK["iOS Pod lock"] -->|"resolves"| IOS["iOS SDK 2.31.1"]
  ANDROID["Android Gradle"] -->|"pins 2.31.1"| GRADLE["Gradle resolver"] -->|"resolves"| ANDSDK["Android SDK 2.31.1"]
  PKG -->|"synchronizes"| NPM["npm lock"]
Loading
High-Level Assessment

Directly updating each platform's consumed version and regenerating committed lockfiles is the appropriate approach. A shared cross-platform version source would add build integration complexity, while omitting the sample lockfile would remove evidence of successful CocoaPods resolution.

Files changed (4) +70 / -70

Other (4) +70 / -70
build.gradle.ktsPin the Android Usercentrics SDK to 2.31.1 +1/-1

Pin the Android Usercentrics SDK to 2.31.1

• Updates the shared Android dependency version used by the Usercentrics UI Gradle declaration from 2.31.0 to 2.31.1.

android/build.gradle.kts

package-lock.jsonSynchronize the npm package lock version +2/-2

Synchronize the npm package lock version

• Updates the root package and workspace metadata from version 2.31.0 to 2.31.1 without changing JavaScript dependencies.

package-lock.json

package.jsonAlign package and iOS SDK versions at 2.31.1 +2/-2

Align package and iOS SDK versions at 2.31.1

• Bumps the React Native package version and the iOS UsercentricsUI version consumed by the podspec to 2.31.1.

package.json

Podfile.lockLock sample iOS dependencies to Usercentrics 2.31.1 +65/-65

Lock sample iOS dependencies to Usercentrics 2.31.1

• Records react-native-usercentrics, UsercentricsUI, and Usercentrics at version 2.31.1. CocoaPods-generated spec checksums are refreshed for the resolved dependency graph.

sample/ios/Podfile.lock

@qodo-code-review

Copy link
Copy Markdown

Code Review by Qodo

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

Grey Divider


Action required

1. Readers miss the 2.31.1 release notes 📘 Rule violation ⚙ Maintainability
Description
package.json advances the distributable package version to 2.31.1, but CHANGELOG.md still
begins with 2.31.0 and has no entry documenting the native dependency bump. When the release
workflow publishes this version, consumers and maintainers have no repository record of the fixes
and compliance changes included in the release.
Code

package.json[3]

+  "version": "2.31.1",
Evidence
The package metadata identifies 2.31.1 as the version the release workflow will publish, while the
changelog's newest entry remains 2.31.0. This conflicts with compliance rule 2 and the
repository's documented release process, which require the target release to be the newest changelog
section and include the changelog among the files in a release commit.

CLAUDE.md: Maintain the Required CHANGELOG Release Entry Format
package.json[3-3]
CHANGELOG.md[1-2]
package.json[1-10]
CHANGELOG.md[1-16]
CLAUDE.md[9-16]
CLAUDE.md[74-86]
.github/workflows/release.yml[14-21]

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

## Issue description
The package version is being advanced to `2.31.1`, but the changelog has no corresponding newest-first entry documenting the fixes and compliance changes in the release.

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

## Recommended Fix
Add `### 2.31.1 – Sep 16, 2026` above the `2.31.0` entry, following the existing heading and component-entry formats. Use only approved native `2.31.1` fixes and compliance release notes, such as a `## Chores` entry recording the native Usercentrics SDK bump to `2.31.1`; do not invent wording if approved release-note content is unavailable.

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


Grey Divider

Context sources
Review mode: ⚖️ Balanced: This is a dependency and native-platform lockfile update affecting Android and iOS runtime artifacts, so it has meaningful integration and compatibility risk despite being a small, localized change.

Grey Divider

Tip of the day
💡 Did you know, you can group findings by type and pick your Finding display, from Minimal to Full

More tips ↗ | Customize Qodo ↗ | Qodo docs ↗

Grey Divider

Qodo Logo

Comment thread package.json
{
"name": "@usercentrics/react-native-sdk",
"version": "2.31.0",
"version": "2.31.1",

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Action required

1. Readers miss the 2.31.1 release notes 📘 Rule violation ⚙ Maintainability

package.json advances the distributable package version to 2.31.1, but CHANGELOG.md still
begins with 2.31.0 and has no entry documenting the native dependency bump. When the release
workflow publishes this version, consumers and maintainers have no repository record of the fixes
and compliance changes included in the release.
Agent Prompt
## Issue description
The package version is being advanced to `2.31.1`, but the changelog has no corresponding newest-first entry documenting the fixes and compliance changes in the release.

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

## Recommended Fix
Add `### 2.31.1 – Sep 16, 2026` above the `2.31.0` entry, following the existing heading and component-entry formats. Use only approved native `2.31.1` fixes and compliance release notes, such as a `## Chores` entry recording the native Usercentrics SDK bump to `2.31.1`; do not invent wording if approved release-note content is unavailable.

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

@pantoaibot

pantoaibot Bot commented Sep 16, 2026

Copy link
Copy Markdown

PR Summary:

Bumps the native Usercentrics SDK version to 2.31.1 across project metadata.

  • android/build.gradle.kts: usercentricsVersion updated 2.31.0 -> 2.31.1
  • package.json: package "version" and "iosPackageVersion" updated 2.31.0 -> 2.31.1
  • No code, logic, or behavior changes in source files — only dependency/version metadata updated
  • No breaking changes expected; recommend rebuilding and running integration smoke tests before publish/release.

Reviewed by Panto AI

Comment thread package.json
{
"name": "@usercentrics/react-native-sdk",
"version": "2.31.0",
"version": "2.31.1",

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] Regenerate and commit the lockfile after this package.json version bump (run npm install or yarn install depending on repo policy) so package-lock.json (or yarn.lock) contains the new version. Also run the prepare/compile step (npm/yarn install triggers prepare) locally to ensure tsc succeeds and produced lib/ artifacts are valid before pushing the bump.

@pantoaibot

pantoaibot Bot commented Sep 16, 2026

Copy link
Copy Markdown

Reviewed up to commit:1b96fa64a4c89eb13648292a9422453297d322ce

Additional Suggestion
Others - Before merging, verify the bumped native artifacts (Android Maven artifact com.usercentrics.sdk:usercentrics-ui:2.31.1 and iOS pods Usercentrics(2.31.1)/UsercentricsUI(2.31.1)) are published and resolvable from your CI/dev machines. The CLAUDE.md pre-flight checklist requires confirming the native SDK is published (see CLAUDE.md pre-flight steps). Merging this bump when the native artifacts are not yet available will break Gradle sync / pod install in CI and for consumers. - Run the CocoaPods update step described in the release checklist to update the sample app's Podfile.lock: cd sample/ios && bundle exec pod repo update && bundle exec pod update UsercentricsUI. Commit the updated Podfile.lock so the sample app points to 2.31.1 (react-native podspec pulls iosPackageVersion from package.json; see react-native-usercentrics.podspec which depends on UsercentricsUI "#{package['iosPackageVersion']}" at lines 6-36). Failing to update Podfile.lock can cause confusion and CI failures when validating the sample app.
cd sample/ios
bundle exec pod repo update
bundle exec pod update UsercentricsUI

After running these commands, commit the updated sample/ios/Podfile.lock so it reflects UsercentricsUI (2.31.1) and Usercentrics (2.31.1) resolved via the react-native-usercentrics.podspec that reads iosPackageVersion from package.json.

  • Add a CHANGELOG entry for 2.31.1 at the top of CHANGELOG.md (date + short notes). The repo's release process expects the changelog entry to exist before the version bump (see CLAUDE.md checklist).
### 2.31.1 – Sep 16, 2026
## Fixes
* **[Core]** Bumped native Usercentrics SDK to 2.31.1 (compliance and bugfix release; no React Native API changes)

Reviewed by Panto AI

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:XS This PR changes 0-9 lines, ignoring generated files

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant