Skip to content

chore(deps): update plugin com.android.application to v9 - #45

Closed
renovate[bot] wants to merge 1 commit into
mainfrom
renovate/com.android.application-9.x
Closed

renovate[bot] wants to merge 1 commit into
mainfrom
renovate/com.android.application-9.x

Conversation

@renovate

@renovate renovate Bot commented May 18, 2026 •

Copy link
Copy Markdown
Contributor

This PR contains the following updates:

Package Change Age Confidence
com.android.application (source) 8.13.2 → 9.2.1 age confidence

Configuration

📅 Schedule: (UTC)

  • Branch creation
    • At any time (no schedule defined)
  • Automerge
    • At any time (no schedule defined)

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@Corvus400

Copy link
Copy Markdown
Owner

Dependency Update Review

Updates

Package Change Group Source
com.android.application 8.11.1 → 9.2.1 — android/settings.gradle.kts:22

Release Notes Summary

MAJOR_BUMP: com.android.application 8.11.1 → 9.2.1 (AGP v9 series)

  • AGP 9.0 released with new DSL interfaces only (BaseExtension hidden), built-in Kotlin enabled by default, removed deprecated variant APIs, removed Wear OS embedded app support and density split APK support
  • AGP 9.2.0 (April 2026): stricter R8 -keepattributes semantics for RuntimeInvisibleAnnotations
  • Source: AGP 9.0 release notes, AGP release notes

Breaking Changes

1. Gradle version requirement (BLOCKER)

  • AGP 9.0 requires Gradle ≥ 9.1.0; AGP 9.2 requires Gradle ≥ 9.4.1
  • Project uses Gradle 8.14 (android/gradle/wrapper/gradle-wrapper.properties:5)
  • Build will fail without upgrading Gradle in tandem

2. Built-in Kotlin enabled by default

  • AGP 9.0 enables android.builtInKotlin=true by default — org.jetbrains.kotlin.android plugin must not be applied manually
  • android/app/build.gradle.kts:3 still applies id("kotlin-android") — this alias resolves to org.jetbrains.kotlin.android and will conflict
  • Flutter 3.41.5 built-in Kotlin support was added in Flutter 3.44 (PR #184745 re-landed); the project Flutter version 3.41.5 predates this support
  • Migration path: either set android.builtInKotlin=false in gradle.properties (opt-out) or upgrade Flutter SDK

3. R8 -keepattributes stricter semantics

  • Wildcard -keepattributes *Annotation* no longer keeps RuntimeInvisibleAnnotations
  • No custom ProGuard rules file found with this pattern; low risk for this project

4. Removed deprecated APIs (no hits in codebase)

  • applicationVariants, variantFilter, BaseExtension, dexOptions, generatePureSplits, PostProcessing, deviceProvider — none detected in android/, lib/, test/, integration_test/, .github/

Impact Analysis

File Finding
android/gradle/wrapper/gradle-wrapper.properties:5 Gradle 8.14 — must be ≥ 9.1.0 (AGP 9.0) or ≥ 9.4.1 (AGP 9.2)
android/app/build.gradle.kts:3 id("kotlin-android") conflicts with AGP 9 built-in Kotlin default
android/settings.gradle.kts:23 org.jetbrains.kotlin.android version 2.2.20 — KGP ≥ 2.2.10 required ✓
android/app/build.gradle.kts:14-15 Java 17 — JDK ≥ 17 required ✓

Security

No vulnerability alert. This is a scheduled dependency update.

Warnings

  • apply-gotchas.sh reported no Renovate-config gotchas (warnings: [])
  • PR body did not include merge confidence badge data parseable by collect-pr-facts.sh (_parse_failed: true); PR body was retrieved directly via gh pr view as fallback

Recommended Action

保留 (project requirement mismatch: Gradle 8.14 < AGP 9.0 minimum 9.1.0 / AGP 9.2 minimum 9.4.1; Flutter 3.41.5 built-in Kotlin support added in 3.44)

Do NOT merge until the following are resolved in a coordinated update:

  1. Upgrade Gradle to ≥ 9.4.1 (to match AGP 9.2.1): android/gradle/wrapper/gradle-wrapper.properties
  2. Verify Flutter SDK upgrade to ≥ 3.44 or set android.builtInKotlin=false in android/gradle.properties
  3. Remove or migrate id("kotlin-android") in android/app/build.gradle.kts:3 after enabling built-in Kotlin
  4. Run ./gradlew assembleDebug to validate no further build failures

Merge Order Hint

このPRは単独ではマージ不可。以下を同一PRまたは事前PRで対応してから本PRをマージすること:

  1. (先行) Gradle ラッパーを 9.4.1 以上に更新 (gradle-wrapper.properties)
  2. (先行または同時) Flutter SDK を 3.44 以上に更新、または android/gradle.properties に android.builtInKotlin=false を追加
  3. (同時) android/app/build.gradle.kts の id("kotlin-android") を削除または移行
  4. (本PR) com.android.application 8.11.1 → 9.2.1

Project Requirement Check

Requirement Step 0 Value AGP 9.2 Required Status
Gradle 8.14 (android/gradle/wrapper/gradle-wrapper.properties:5) ≥ 9.4.1 ❌ MISMATCH
Java/JDK 17 (android/app/build.gradle.kts:14) ≥ 17 ✅ OK
Kotlin (KGP) 2.2.20 (android/settings.gradle.kts:23) ≥ 2.2.10 ✅ OK
Flutter SDK 3.41.5 (.flutter-version:1) Built-in Kotlin: requires ≥ 3.44 ❌ MISMATCH
AGP (current) 8.11.1 (android/settings.gradle.kts:22) → 9.2.1 MAJOR_BUMP

Data source: Primary+Fallback (collect-pr-facts.sh parse failed; PR body retrieved via gh pr view)

Auto-generated by the check-update-all-dependencies skill.

@renovate
renovate Bot force-pushed the renovate/com.android.application-9.x branch from 1048475 to d345de4 Compare May 18, 2026 11:35
@renovate
renovate Bot force-pushed the renovate/com.android.application-9.x branch from d345de4 to 523795d Compare May 18, 2026 12:40
@Corvus400

Copy link
Copy Markdown
Owner

Closing note for this PR.

Why

AGP 9.2.1 adoption requires four coordinated changes:

  1. Gradle wrapper >= 9.4.1
  2. Flutter SDK >= 3.44 (built-in Kotlin support, PR [Re-land] Add Support For Built-in Kotlin flutter/flutter#184745)
  3. Removal of id("kotlin-android") from android/settings.gradle.kts and android/app/build.gradle.kts
  4. Bumping first-party plugins (path_provider, shared_preferences, package_info_plus, cached_network_image, flutter_cache_manager, sqlite3_flutter_libs) to AGP-9-compatible versions

As of 2026-05-18:

(1) Gradle wrapper 9.4.1 has been landed separately in #47.

(2)-(4) cannot be completed in the current session because of the external dependencies above. Closing this PR rather than leaving it open with a stale blocked comment.

What happens next

Renovate will regenerate a com.android.application major-version PR once a newer AGP 9.x is released. At that point the four-step plan above will be reassessed (Flutter 3.44 stable release status, plugin AGP 9 readiness, sqlite3_flutter_libs successor) in a fresh plan.

No renovate.json pin is added; the regenerated PR is the intended trigger for reassessment.

@Corvus400
Corvus400 deleted the renovate/com.android.application-9.x branch May 18, 2026 14:11
@renovate

renovate Bot commented May 18, 2026

Copy link
Copy Markdown
Contributor Author

Renovate Ignore Notification

Because you closed this PR without merging, Renovate will ignore this update. You will not get PRs for any future 9.x releases. But if you manually upgrade to 9.x then Renovate will re-enable minor and patch updates automatically.

If you accidentally closed this PR, or if you changed your mind: rename this PR to get a fresh replacement PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant