Skip to content

refactor : Deprecated the UsersAPIClient#930

Merged
pmathew92 merged 1 commit intomainfrom
management_deprecate
Mar 4, 2026
Merged

refactor : Deprecated the UsersAPIClient#930
pmathew92 merged 1 commit intomainfrom
management_deprecate

Conversation

@pmathew92
Copy link
Contributor

Changes

This PR deprecates the UsersAPIClient. This will be removed from the SDK in the next major version

Checklist

Copilot AI review requested due to automatic review settings March 4, 2026 05:29
@pmathew92 pmathew92 requested a review from a team as a code owner March 4, 2026 05:29
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR marks legacy Management API surface as deprecated ahead of removal in the next major SDK version.

Changes:

  • Added @Deprecated annotation to UsersAPIClient.
  • Added @Deprecated annotation to ManagementException.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.

File Description
auth0/src/main/java/com/auth0/android/management/UsersAPIClient.kt Deprecates the Management Users API client class.
auth0/src/main/java/com/auth0/android/management/ManagementException.kt Deprecates the exception type used by Management API requests.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +7 to +10
@Deprecated(
"""ManagementException is deprecated and will be removed in the next major version of the SDK. """,
level = DeprecationLevel.WARNING
)
Copy link

Copilot AI Mar 4, 2026

Choose a reason for hiding this comment

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

Deprecating ManagementException will also effectively deprecate any public APIs that expose it (e.g., com.auth0.android.callback.ManagementCallback uses it in its signature). Consider deprecating those related types in the same PR or adjusting them to use a non-deprecated exception type to avoid surprising warnings for consumers.

Copilot uses AI. Check for mistakes.


@Deprecated(
"""ManagementException is deprecated and will be removed in the next major version of the SDK. """,
Copy link

Copilot AI Mar 4, 2026

Choose a reason for hiding this comment

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

The deprecation message string has a trailing space before the closing quotes, which will show up in the compiler warning text ("SDK. "). Remove the extra whitespace so the warning message is clean.

Suggested change
"""ManagementException is deprecated and will be removed in the next major version of the SDK. """,
"""ManagementException is deprecated and will be removed in the next major version of the SDK.""",

Copilot uses AI. Check for mistakes.
Comment on lines +7 to +10
@Deprecated(
"""ManagementException is deprecated and will be removed in the next major version of the SDK. """,
level = DeprecationLevel.WARNING
)
Copy link

Copilot AI Mar 4, 2026

Choose a reason for hiding this comment

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

The PR description/title mention deprecating UsersAPIClient, but this change also deprecates ManagementException. Please update the PR description (or split the change) so release notes and reviewers don't miss this additional public API deprecation.

Copilot uses AI. Check for mistakes.
@pmathew92 pmathew92 merged commit 146448c into main Mar 4, 2026
10 checks passed
@pmathew92 pmathew92 deleted the management_deprecate branch March 4, 2026 05:44
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.

3 participants