Skip to content

Migrate to AGP 9.0#18

Merged
samyak2403 merged 1 commit intosamyak2403:mainfrom
SubhrajyotiSen:update-agp-9
Feb 12, 2026
Merged

Migrate to AGP 9.0#18
samyak2403 merged 1 commit intosamyak2403:mainfrom
SubhrajyotiSen:update-agp-9

Conversation

@SubhrajyotiSen
Copy link
Copy Markdown
Contributor

@SubhrajyotiSen SubhrajyotiSen commented Feb 12, 2026

Summary by CodeRabbit

  • Chores
    • Updated Gradle build system to version 9.1.0 and Android Gradle Plugin to 9.0.0.
    • Upgraded Room database library to version 2.7.2 for improved database handling.
    • Updated MockK testing library to version 1.14.9.
    • Updated Kotlin compiler configuration and KSP plugin setup.

@coderabbitai
Copy link
Copy Markdown

coderabbitai bot commented Feb 12, 2026

📝 Walkthrough

Walkthrough

This pull request updates the Android project's build configuration and dependencies, including upgrading AGP from 8.13.2 to 9.0.0, bumping Room to 2.7.2, updating the Gradle wrapper to 9.1.0, and transitioning Kotlin compiler options to the modern DSL approach while removing the deprecated Kotlin Android plugin.

Changes

Cohort / File(s) Summary
Build Configuration - Kotlin Plugin
build.gradle.kts, app/build.gradle.kts
Removed top-level Kotlin Android plugin alias and app-level plugin application; migrated jvmTarget configuration from deprecated kotlinOptions block to new kotlin.compilerOptions DSL.
Dependency & Version Catalog Updates
gradle/libs.versions.toml
Upgraded AGP to 9.0.0, Room to 2.7.2, MockK to 1.14.9; removed explicit Kotlin version; added KSP version 2.3.5 and migrated KSP plugin to use version reference; removed kotlin-android plugin entry.
Build Infrastructure
gradle/wrapper/gradle-wrapper.properties
Updated Gradle wrapper distribution from 8.13 to 9.1.0 with corresponding SHA256 checksum update.
Database Configuration
app/src/main/java/com/samyak/repostore/data/db/AppDatabase.kt
Explicitly disabled Room destructive migration fallback by changing fallbackToDestructiveMigration() to fallbackToDestructiveMigration(false).

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~12 minutes

Poem

🐰 Our build tools leap to higher ground,
With Gradle nine and AGP profound,
Old plugins fade, new DSLs take flight,
Dependencies updated, everything feels right! ✨

🚥 Pre-merge checks | ✅ 2 | ❌ 1
❌ Failed checks (1 warning)
Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (2 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title 'Migrate to AGP 9.0' directly reflects the main change: upgrading Android Gradle Plugin from 8.13.2 to 9.0.0, which involves removing deprecated Kotlin Android plugin configurations and updating dependencies.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing touches
  • 📝 Generate docstrings
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment

Tip

Issue Planner is now in beta. Read the docs and try it out! Share your feedback on Discord.


Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link
Copy Markdown

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 1

🤖 Fix all issues with AI agents
In `@app/src/main/java/com/samyak/repostore/data/db/AppDatabase.kt`:
- Line 29: The Room configuration currently calls
fallbackToDestructiveMigration(false) which still allows destructive recreation
of Room-managed tables; replace this with explicit Migration objects for schema
changes: define Migration instances (e.g., Migration V1->V2, V2->V3) and
register them in the Room.databaseBuilder chain instead of using
fallbackToDestructiveMigration, ensuring migrations cover changes to the
GitHubRepo and FavoriteApp entities; remove the
fallbackToDestructiveMigration(false) call (or only use
fallbackToDestructiveMigrationOnDowngrade() if you intend destructive behavior
on downgrades) and add the migrations via addMigrations(...) so data is
preserved across upgrades.

@samyak2403 samyak2403 merged commit 847c8f8 into samyak2403:main Feb 12, 2026
1 check passed
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.

2 participants