-
Notifications
You must be signed in to change notification settings - Fork 167
doc: updated the readme and created a new placeholder migration guide for v4 #901
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
592ac41
0bfafaa
dd48fc2
23911a9
ec23701
f703f0f
7d3ade9
df63bbf
daf3a5e
63a879b
5abda8a
ce9a43e
696b2d6
c9d5896
74ee6c9
9e83b29
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,38 +1,29 @@ | ||
| name: Configure CI | ||
| description: Performs the initial configuration of the CI environment | ||
|
|
||
| inputs: | ||
| java: | ||
| description: The Java version to use | ||
| required: false | ||
| default: '17' | ||
| gradle: | ||
| description: The Gradle version to use | ||
| required: false | ||
| default: 8.10.2 | ||
| kotlin: | ||
| description: The Kotlin version to use | ||
| required: false | ||
| default: 2.0.21 | ||
|
|
||
| runs: | ||
| using: composite | ||
|
|
||
| steps: | ||
| - name: Set up Java | ||
| uses: actions/setup-java@v4 | ||
| - name: Set up JDK 17 | ||
| uses: actions/setup-java@c1e323688fd81a25caa38c78aa6df2d33d3e20d9 # v4.8.0 | ||
| with: | ||
| distribution: 'temurin' | ||
| java-version: '17' | ||
|
|
||
| - run: | | ||
| curl -s "https://get.sdkman.io" | bash | ||
| source "/home/runner/.sdkman/bin/sdkman-init.sh" | ||
| sdk install gradle ${{ inputs.gradle }} && sdk default gradle ${{ inputs.gradle }} | ||
| sdk install kotlin ${{ inputs.kotlin }} && sdk default kotlin ${{ inputs.kotlin }} | ||
| - name: Make gradlew executable | ||
| shell: bash | ||
| run: chmod +x ./gradlew | ||
|
|
||
| - name: Setup Gradle | ||
| uses: gradle/actions/setup-gradle@473878a77f1b98e2b5ac4af93489d1656a80a5ed # v4.2.0 | ||
|
|
||
| - name: Set up Android | ||
| uses: android-actions/setup-android@9fc6c4e9069bf8d3d10b2204b1fb8f6ef7065407 # v3.2.2 | ||
|
|
||
| - run: ./gradlew androidDependencies | ||
| - name: Download Android dependencies | ||
| run: ./gradlew androidDependencies | ||
| shell: bash | ||
|
|
||
| - uses: gradle/wrapper-validation-action@56b90f209b02bf6d1deae490e9ef18b21a389cd4 # pin@1.1.0 | ||
| - name: Validate Gradle wrapper | ||
| uses: gradle/wrapper-validation-action@56b90f209b02bf6d1deae490e9ef18b21a389cd4 # pin@1.1.0 |
| Original file line number | Diff line number | Diff line change | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| @@ -0,0 +1,70 @@ | ||||||||||
| # Migration Guide from SDK v3 to v4 | ||||||||||
|
|
||||||||||
| ## Overview | ||||||||||
|
|
||||||||||
| v4 of the Auth0 Android SDK includes significant build toolchain updates to support the latest Android development environment. This guide documents the changes required when migrating from v3 to v4. | ||||||||||
|
|
||||||||||
| ## Requirements Changes | ||||||||||
|
|
||||||||||
| ### Java Version | ||||||||||
|
|
||||||||||
| v4 requires **Java 17** or later (previously Java 11). | ||||||||||
|
|
||||||||||
| Update your `build.gradle` to target Java 17: | ||||||||||
|
|
||||||||||
| ```groovy | ||||||||||
| android { | ||||||||||
| compileOptions { | ||||||||||
| sourceCompatibility JavaVersion.VERSION_17 | ||||||||||
| targetCompatibility JavaVersion.VERSION_17 | ||||||||||
| } | ||||||||||
|
|
||||||||||
| kotlinOptions { | ||||||||||
| jvmTarget = '17' | ||||||||||
| } | ||||||||||
| } | ||||||||||
| ``` | ||||||||||
|
|
||||||||||
| ### Gradle and Android Gradle Plugin | ||||||||||
|
|
||||||||||
| v4 requires: | ||||||||||
|
|
||||||||||
| - **Gradle**: 8.10.2 or later | ||||||||||
| - **Android Gradle Plugin (AGP)**: 8.8.2 or later | ||||||||||
|
|
||||||||||
| Update your `gradle/wrapper/gradle-wrapper.properties`: | ||||||||||
|
|
||||||||||
| ```properties | ||||||||||
| distributionUrl=https\://services.gradle.org/distributions/gradle-8.10.2-all.zip | ||||||||||
| ``` | ||||||||||
|
|
||||||||||
| Update your root `build.gradle`: | ||||||||||
|
|
||||||||||
| ```groovy | ||||||||||
| buildscript { | ||||||||||
| dependencies { | ||||||||||
| classpath 'com.android.tools.build:gradle:8.8.2' | ||||||||||
| } | ||||||||||
| } | ||||||||||
| ``` | ||||||||||
|
|
||||||||||
| ### Kotlin Version | ||||||||||
|
|
||||||||||
| v4 uses **Kotlin 2.0.21** . If you're using Kotlin in your project, you may need to update your Kotlin version to ensure compatibility. | ||||||||||
|
|
||||||||||
| ```groovy | ||||||||||
| buildscript { | ||||||||||
| ext.kotlin_version = "2.0.21" | ||||||||||
| } | ||||||||||
| ``` | ||||||||||
|
|
||||||||||
| ## Breaking Changes | ||||||||||
|
|
||||||||||
|
||||||||||
| No breaking API changes have been identified in v4. This section will be updated if any are discovered. |
Copilot
AI
Feb 6, 2026
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The repository name casing is inconsistent between lines 68 and 70. Line 68 uses "Auth0.Android" while line 70 uses "auth0.android". While GitHub URLs are case-insensitive, this inconsistency should be fixed for better readability. Based on the pattern in README.md where issues links use "Auth0.Android" (capital letters), both should use "Auth0.Android" for consistency.
| - [Migration Examples](https://github.com/auth0/auth0.android/blob/main/EXAMPLES.md) - Updated code examples | |
| - [Migration Examples](https://github.com/auth0/Auth0.Android/blob/main/EXAMPLES.md) - Updated code examples |
Copilot
AI
Feb 6, 2026
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The link text "Migration Examples" suggests there is a dedicated migration examples section in EXAMPLES.md, but this section does not exist. Either update EXAMPLES.md to include migration-specific examples, or change the link text to something more accurate like "Code Examples" and update the URL to point to a more general section (e.g., the root of EXAMPLES.md).
| - [Migration Examples](https://github.com/auth0/auth0.android/blob/main/EXAMPLES.md) - Updated code examples | |
| - [Code Examples](https://github.com/auth0/auth0.android/blob/main/EXAMPLES.md) - Updated code examples |
Copilot
AI
Feb 6, 2026
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The link to EXAMPLES.md uses an absolute GitHub URL, but the existing migration guides use relative links for internal documentation. For consistency with V3_MIGRATION_GUIDE.md (line 66), change this to a relative link: [Code Examples](EXAMPLES.md) instead of the full GitHub URL.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There is an extra space before the period. The text "Kotlin 2.0.21 ." should be "Kotlin 2.0.21."