Skip to content

Conversation

@dturner
Copy link
Contributor

@dturner dturner commented Feb 3, 2026

What have I done and why
I have updated all the library and plugin dependencies in this project to use the latest stable versions. The only exception to this is the androidx.benchmark:benchmark-baseline-profile-gradle-plugin which I have updated to the latest alpha build because it fixes a compatibility issue with the new DSL introduced in Gradle 9.0.

I am doing this as a prerequisite step before refactoring, adding tests and migrating to Navigation 3.

Notably, I had to migrate the XR function ApplicationSubspace to Subspace. There's no documentation on this so I would appreciate it if someone from the XR team (@fuentespatrick maybe?) could confirm that this is correct.

@gemini-code-assist
Copy link
Contributor

Summary of Changes

Hello @dturner, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request focuses on a comprehensive update of the project's build environment and dependencies. The primary goal is to align the application with the latest Android SDK (API 36) and leverage newer versions of various libraries and tools, including Gradle, Android Gradle Plugin, Kotlin, and several AndroidX components. These updates ensure compatibility, incorporate the latest features, and potentially improve performance and stability. Additionally, minor build configuration adjustments and a refactoring in a spatial navigation component are included.

Highlights

  • SDK Version Updates: The compileSdk and targetSdk versions across the project have been updated from 35 to 36, aligning with the latest Android API level.
  • Dependency and Plugin Upgrades: Numerous dependencies and plugins have been upgraded to their latest stable or alpha versions, including Android Gradle Plugin (to 9.0.0), Compose BOM (to 2026.01.01), Hilt (to 2.59), Kotlin (to 2.3.0), KSP (to 2.3.4), and various AndroidX libraries like activity-compose, androidx-baselineprofile, core-splashscreen, lifecycle-runtime-ktx, material3-adaptive, media3, navigation-compose, window, xr, and xr-material3.
  • Gradle Version Update: The Gradle distribution has been upgraded from 9.0.0 to 9.3.1.
  • Build Configuration Refinements: The kotlin.android plugin alias was removed from the benchmark module's build.gradle.kts and commented out in the main jetstream module. Additionally, testOptions.managedDevices.devices was migrated to testOptions.managedDevices.localDevices in the benchmark module.
  • Spatial Navigation Component Refactoring: The ApplicationSubspace class and its usage have been refactored to Subspace within the AppWithSpatialNavigation.kt file.

🧠 New Feature in Public Preview: You can now enable Memory to help Gemini Code Assist learn from your team's feedback. This makes future code reviews more consistent and personalized to your project's style. Click here to enable Memory in your admin console.

Changelog
  • AdaptiveJetStream/benchmark/build.gradle.kts
    • Removed alias(libs.plugins.kotlin.android) plugin.
    • Updated compileSdk from 35 to 36.
    • Updated targetSdk from 35 to 36.
    • Migrated testOptions.managedDevices.devices to testOptions.managedDevices.localDevices and simplified the create call.
  • AdaptiveJetStream/gradle.properties
    • Ensured a newline character at the end of the file.
  • AdaptiveJetStream/gradle/libs.versions.toml
    • Updated versions for activity-compose, android-gradle-plugin, android-test-plugin, androidx-baselineprofile, compose-bom, core-splashscreen, hilt-android, kotlin (renamed from kotlin-android), kotlinx-serialization, ksp, lifecycle-runtime-ktx, material3-adaptive, media3, navigation-compose, window, xr, and xr-material3.
    • Updated plugin references (kotlin-android, kotlin-serialization, compose-compiler) to use the new kotlin version reference.
  • AdaptiveJetStream/gradle/wrapper/gradle-wrapper.properties
    • Upgraded Gradle distribution URL from gradle-9.0.0-bin.zip to gradle-9.3.1-bin.zip.
  • AdaptiveJetStream/jetstream/build.gradle.kts
    • Commented out alias(libs.plugins.kotlin.android) plugin.
  • AdaptiveJetStream/jetstream/src/main/AndroidManifest.xml
    • Updated tools:targetApi from 35 to 36.
    • Ensured a newline character at the end of the file.
  • AdaptiveJetStream/jetstream/src/main/java/com/google/jetstream/presentation/app/withSpatialNavigation/AppWithSpatialNavigation.kt
    • Replaced import androidx.xr.compose.spatial.ApplicationSubspace with androidx.xr.compose.spatial.Subspace.
    • Replaced usage of ApplicationSubspace with Subspace.
Activity
  • No specific activity (comments, reviews, or progress updates) has been recorded for this pull request yet.
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

@dturner dturner changed the title dt/update-versions Update library versions and switch to using built-in Kotlin Feb 3, 2026
Copy link
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request primarily updates various dependencies, Android SDK versions, and Gradle versions across the project. It also includes an update to the XR Compose API usage, changing ApplicationSubspace to Subspace. These changes are generally good for keeping the project up-to-date with the latest libraries and platform features.

* main:
  🤖 Updates screenshots
  ci: Grant write permissions to GITHUB_TOKEN
  CI: bad path
  Addresses review comments
  ci: Add screenshot testing to workflow
  Make category gradients deterministic and add new goldens
  ci: Update build workflow to run unit tests
  Add JaCoCo test coverage and Robolectric tests
  Adds feature tests and set up robolectric.
  Adds feature tests
  Add feature-tests documentation
  Adds component tests
  Docs update
  unit tests Gemini 3 flash
  docs

# Conflicts:
#	AdaptiveJetStream/gradle.properties
#	AdaptiveJetStream/gradle/libs.versions.toml
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