8000 [Core] Delegate UriCompat.toSafeString to platform on API 28+ by zanarellidev · Pull Request #903 · androidx/androidx · GitHub
[go: up one dir, main page]

Skip to content

[Core] Delegate UriCompat.toSafeString to platform on API 28+ - #903

Open
zanarellidev wants to merge 1 commit into
androidx:androidx-mainfrom
zanarellidev:feat/core-uricompat-platform-delegation
Open

zanarellidev wants to merge 1 commit into
androidx:androidx-mainfrom
zanarellidev:feat/core-uricompat-platform-delegation

Conversation

@zanarellidev
Copy link
Copy Markdown

Proposed Changes

  • Delegate UriCompat.toSafeString(@NonNull Uri uri) to platform android.net.Uri.toSafeString() via Api28Impl on API 28 and above.
  • Preserves the manual redaction algorithm as a backwards-compatible fallback on earlier API levels (SDK < 28).

Testing

Test: Existing UriCompatTest suite in :core:core.

Delegate to android.net.Uri.toSafeString() via Api28Impl on API 28 and
above, keeping the manual redaction algorithm as a backwards-compatible
fallback for earlier API levels.

Test: ./gradlew :core:core:test
@google-cla
google-cla Bot commented Aug 23, 2026
Copy link
Copy Markdown

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

@zanarellidev
Copy link
Copy Markdown
Author

@google-cla I signed it!

This branch has not been deployed

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

0