Conversation
There was a problem hiding this comment.
Pull request overview
This PR upgrades the Android/Gradle toolchain (Gradle/AGP/Kotlin/Java), migrates tests away from deprecated PowerMock/old Mockito matchers toward modern Mockito APIs, and updates CI/docs accordingly.
Changes:
- Upgrade build tooling to Gradle 8.x / AGP 8.x / Kotlin 2.0.x and move compilation to Java 17.
- Update Android manifests/build scripts for AGP 8 namespace requirements and modern DSL (lint/jacoco).
- Refactor and update unit tests and GitHub Actions workflows to align with the new toolchain.
Reviewed changes
Copilot reviewed 1 out of 1 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| sample/src/main/AndroidManifest.xml | Removes package attribute in preparation for AGP 8 namespace usage. |
| sample/build.gradle | Adds namespace, updates DSL (compileSdk/minSdk/targetSdk) and sets Java/Kotlin target to 17. |
| gradle/wrapper/gradle-wrapper.properties | Upgrades Gradle wrapper to 8.10.2. |
| gradle/jacoco.gradle | Updates JaCoCo version and report DSL for newer Gradle/AGP. |
| gradle.properties | Removes obsolete/temporary properties and cleans up configuration. |
| build.gradle | Updates Kotlin version and AGP plugin version (toolchain bump). |
| auth0/src/test/java/com/auth0/android/request/internal/TLS12SocketFactoryTest.java | Migrates deprecated Mockito matchers to ArgumentMatchers. |
| auth0/src/test/java/com/auth0/android/request/internal/CommonThreadSwitcherDelegateTest.kt | Switches from deprecated mockito-kotlin2 package to org.mockito.kotlin. |
| auth0/src/test/java/com/auth0/android/request/internal/BaseRequestTest.kt | Updates mockito-kotlin import package and replaces deprecated Mockito verification helpers. |
| auth0/src/test/java/com/auth0/android/request/internal/BaseAuthenticationRequestTest.kt | Switches to org.mockito.kotlin imports. |
| auth0/src/test/java/com/auth0/android/request/RetryInterceptorTest.kt | Updates to org.mockito.kotlin APIs. |
| auth0/src/test/java/com/auth0/android/provider/WebAuthProviderTest.kt | Updates to org.mockito.kotlin APIs. |
| auth0/src/test/java/com/auth0/android/provider/PermissionHandlerTest.java | Migrates deprecated Mockito matchers to ArgumentMatchers. |
| auth0/src/test/java/com/auth0/android/provider/PasskeyManagerTest.kt | Updates to org.mockito.kotlin APIs. |
| auth0/src/test/java/com/auth0/android/provider/PKCETest.java | Migrates deprecated Mockito matchers to ArgumentMatchers. |
| auth0/src/test/java/com/auth0/android/provider/OAuthManagerStateTest.kt | Updates to org.mockito.kotlin APIs. |
| auth0/src/test/java/com/auth0/android/provider/CustomTabsOptionsTest.java | Migrates deprecated Mockito matchers to ArgumentMatchers. |
| auth0/src/test/java/com/auth0/android/provider/CustomTabsControllerTest.java | Removes PowerMock usage and refactors a test to avoid private-method mocking. |
| auth0/src/test/java/com/auth0/android/provider/BrowserPickerTest.java | Migrates deprecated Mockito matchers to ArgumentMatchers. |
| auth0/src/test/java/com/auth0/android/provider/AuthenticationActivityTest.kt | Updates to org.mockito.kotlin APIs. |
| auth0/src/test/java/com/auth0/android/myaccount/MyAccountAPIClientTest.kt | Updates to org.mockito.kotlin APIs. |
| auth0/src/test/java/com/auth0/android/management/UsersAPIClientTest.kt | Updates to org.mockito.kotlin APIs. |
| auth0/src/test/java/com/auth0/android/dpop/DPoPUtilTest.kt | Updates to org.mockito.kotlin APIs and adds Robolectric runner. |
| auth0/src/test/java/com/auth0/android/dpop/DPoPTest.kt | Updates to org.mockito.kotlin APIs. |
| auth0/src/test/java/com/auth0/android/dpop/DPoPKeyStoreTest.kt | Refactors away from PowerMock to Mockito static mocking + Robolectric config. |
| auth0/src/test/java/com/auth0/android/authentication/storage/SharedPreferencesStorageTest.java | Migrates deprecated Mockito matchers to ArgumentMatchers. |
| auth0/src/test/java/com/auth0/android/authentication/storage/SecureCredentialsManagerTest.kt | Updates to org.mockito.kotlin APIs. |
| auth0/src/test/java/com/auth0/android/authentication/storage/SecureCredentialsManagerBiometricPolicyTest.kt | Updates to org.mockito.kotlin APIs. |
| auth0/src/test/java/com/auth0/android/authentication/storage/LocalAuthenticationManagerTest.kt | Updates to org.mockito.kotlin APIs. |
| auth0/src/test/java/com/auth0/android/authentication/storage/CryptoUtilTest.java | Large refactor to remove PowerMock, using Mockito static/constructor mocking + Robolectric. |
| auth0/src/test/java/com/auth0/android/authentication/storage/CredentialsManagerTest.kt | Updates to org.mockito.kotlin APIs and replaces deprecated Mockito verification helpers. |
| auth0/src/test/java/com/auth0/android/authentication/request/SignUpRequestTest.java | Migrates deprecated Mockito matchers to ArgumentMatchers. |
| auth0/src/test/java/com/auth0/android/authentication/request/ProfileRequestTest.java | Migrates deprecated Mockito matchers to ArgumentMatchers. |
| auth0/src/test/java/com/auth0/android/authentication/AuthenticationAPIClientTest.kt | Updates to org.mockito.kotlin APIs. |
| auth0/src/test/java/com/auth0/android/Auth0Test.java | Migrates deprecated Mockito matchers to ArgumentMatchers. |
| auth0/src/main/AndroidManifest.xml | Removes package attribute to align with AGP 8 namespace. |
| auth0/build.gradle | Adds namespace, updates DSL, bumps Java target to 17, updates test dependencies and removes PowerMock. |
| README.md | Updates documented Java requirement and Gradle config examples to Java 17. |
| AGP_UPGRADE_PLAN.md | Adds an upgrade plan document for AGP/Gradle 8 migration. |
| .github/workflows/release.yml | Updates release workflows to run with Java 17. |
| .github/workflows/codeql.yml | Updates CodeQL workflow to use Java 17. |
| .github/actions/setup/action.yml | Updates CI setup defaults (Java/Gradle/Kotlin) for the new toolchain. |
| .github/actions/maven-publish/action.yml | Updates publishing action to use Java 17. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| Android API version 31 or later and Java 17+. | ||
|
|
||
| > :warning: Applications targeting Android SDK version 30 (`targetSdkVersion = 30`) and below should use version 2.9.0. | ||
|
|
||
| Here’s what you need in `build.gradle` to target Java 8 byte code for Android and Kotlin plugins respectively. | ||
| Here’s what you need in `build.gradle` to target Java 17 byte code for Android and Kotlin plugins respectively. |
There was a problem hiding this comment.
PR metadata (title/description) says this is a README-only update, but the diff includes a Gradle/AGP/Kotlin toolchain upgrade plus large test refactors and CI workflow changes. Please update the PR title/description to reflect the real scope so reviewers and release notes are accurate.
Changes
This PR updates the Readme file
Checklist
I have read the Auth0 general contribution guidelines
I have read the Auth0 Code of Conduct
All existing and new tests complete without errors