[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill-kotlin-kotlin-tooling-agp9-migration":3,"mdc--9xhyxv-key":35,"related-org-kotlin-kotlin-tooling-agp9-migration":4183,"related-repo-kotlin-kotlin-tooling-agp9-migration":4271},{"slug":4,"name":4,"fn":5,"description":6,"org":7,"tags":11,"stars":23,"repoUrl":24,"updatedAt":25,"license":26,"forks":27,"topics":28,"repo":30,"sourceUrl":33,"mdContent":34},"kotlin-tooling-agp9-migration","migrate KMP projects to AGP 9.0","Migrates Kotlin Multiplatform (KMP) projects to Android Gradle Plugin 9.0+. Handles plugin replacement (com.android.kotlin.multiplatform.library), module splitting, DSL migration, and the new default project structure. Use when upgrading AGP, when build fails due to KMP+AGP incompatibility, or when the user mentions AGP 9.0, android multiplatform plugin, KMP migration, or com.android.kotlin.multiplatform.library.\n",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},"kotlin","Kotlin","https:\u002F\u002Fpexgzepcugksgbtrxkhf.supabase.co\u002Fstorage\u002Fv1\u002Fobject\u002Fpublic\u002Forg-logos\u002Fkotlin.png",[12,14,17,20],{"name":9,"slug":8,"type":13},"tag",{"name":15,"slug":16,"type":13},"Android","android",{"name":18,"slug":19,"type":13},"Mobile","mobile",{"name":21,"slug":22,"type":13},"Migration","migration",963,"https:\u002F\u002Fgithub.com\u002FKotlin\u002Fkotlin-agent-skills","2026-04-06T18:25:58.945632","Apache-2.0",35,[8,29],"skills",{"repoUrl":24,"stars":23,"forks":27,"topics":31,"description":32},[8,29],"A collection of AI agent skills useful for projects using Kotlin language","https:\u002F\u002Fgithub.com\u002FKotlin\u002Fkotlin-agent-skills\u002Ftree\u002FHEAD\u002Fskills\u002Fkotlin-tooling-agp9-migration","---\nname: kotlin-tooling-agp9-migration\ndescription: >\n  Migrates Kotlin Multiplatform (KMP) projects to Android Gradle Plugin 9.0+.\n  Handles plugin replacement (com.android.kotlin.multiplatform.library), module\n  splitting, DSL migration, and the new default project structure. Use when\n  upgrading AGP, when build fails due to KMP+AGP incompatibility, or when the\n  user mentions AGP 9.0, android multiplatform plugin, KMP migration, or\n  com.android.kotlin.multiplatform.library.\nlicense: Apache-2.0\nmetadata:\n  author: JetBrains\n  version: \"1.0.0\"\n---\n\n# KMP AGP 9.0 Migration\n\nAndroid Gradle Plugin 9.0 makes the Android application and library plugins incompatible\nwith the Kotlin Multiplatform plugin in the same module. This skill guides you through the\nmigration.\n\n## Step 0: Analyze the Project\n\nBefore making any changes, understand the project structure:\n1. Read `settings.gradle.kts` (or `.gradle`) to find all modules\n2. For each module, read its `build.gradle.kts` to identify which plugins are applied\n3. Check if the project uses a Gradle version catalog (`gradle\u002Flibs.versions.toml`). If it exists,\n   read it for current AGP\u002FGradle\u002FKotlin versions. If not, find versions directly in `build.gradle.kts`\n   files (typically in the root `buildscript {}` or `plugins {}` block). **Adapt all examples in this\n   guide accordingly** — version catalog examples use `alias(libs.plugins.xxx)` while direct usage\n   uses `id(\"plugin.id\") version \"x.y.z\"`\n4. Read `gradle\u002Fwrapper\u002Fgradle-wrapper.properties` for the Gradle version\n5. Check `gradle.properties` for any existing workarounds (`android.enableLegacyVariantApi`)\n6. Check for `org.jetbrains.kotlin.android` plugin usage — AGP 9.0 has built-in Kotlin and this plugin must be removed\n7. Check for `org.jetbrains.kotlin.kapt` plugin usage — incompatible with built-in Kotlin, must migrate to KSP or `com.android.legacy-kapt`\n8. Check for third-party plugins that may be incompatible with AGP 9.0 (see \"Plugin Compatibility\" section below)\n\nIf Bash is available, run `scripts\u002Fanalyze-project.sh` from this skill's directory to get a structured summary.\n\n### Classify Each Module\n\nFor each module, determine its type:\n\n| Current plugins                                                          | Migration path                              |\n|--------------------------------------------------------------------------|---------------------------------------------|\n| `kotlin.multiplatform` + `com.android.library`                           | **Path A** — Library plugin swap            |\n| `kotlin.multiplatform` + `com.android.application`                       | **Path B** — Mandatory Android split        |\n| `kotlin.multiplatform` with multiple platform entry points in one module | **Path C** — Full restructure (recommended) |\n| `com.android.application` or `com.android.library` (no KMP)              | See \"Pure Android Tips\" below               |\n\n### Determine Scope\n\n- **Path B is mandatory** for any module combining KMP + Android application plugin\n- **Path C is recommended** when the project has a monolithic `composeApp` (or similar) module\n  containing entry points for multiple platforms (Android, Desktop, Web). This aligns with the\n  new JetBrains default project structure where each platform gets its own app module.\n- **Ask the user** whether they want Path B only (minimum required) or Path C (recommended full restructure)\n\n## Path A: Library Module Migration\n\nUse this when a module applies `kotlin.multiplatform` + `com.android.library`.\n\nSee [references\u002FMIGRATION-LIBRARY.md](references\u002FMIGRATION-LIBRARY.md) for full before\u002Fafter code.\n\nSummary:\n\n1. **Replace plugin**: `com.android.library` → `com.android.kotlin.multiplatform.library`\n2. **Remove `org.jetbrains.kotlin.android`** plugin if present (AGP 9.0 has built-in Kotlin support)\n3. **Migrate DSL**: Move config from top-level `android {}` block into `kotlin { android {} }`:\n   ```kotlin\n   kotlin {\n       android {\n           namespace = \"com.example.lib\"\n           compileSdk = 35\n           minSdk = 24\n       }\n   }\n   ```\n4. **Rename source directories** (only if the module uses classic Android layout instead of KMP layout):\n   - `src\u002Fmain` → `src\u002FandroidMain`\n   - `src\u002Ftest` → `src\u002FandroidHostTest`\n   - `src\u002FandroidTest` → `src\u002FandroidDeviceTest`\n   - If the module already uses `src\u002FandroidMain\u002F`, no directory renames are needed\n5. **Move dependencies** from top-level `dependencies {}` into `sourceSets`:\n   ```kotlin\n   kotlin {\n       sourceSets {\n           androidMain.dependencies {\n               implementation(\"androidx.appcompat:appcompat:1.7.0\")\n           }\n       }\n   }\n   ```\n6. **Enable resources** explicitly if the module uses Android or Compose Multiplatform resources:\n   ```kotlin\n   kotlin {\n       android {\n           androidResources { enable = true }\n       }\n   }\n   ```\n7. **Enable Java** compilation if module has `.java` source files:\n   ```kotlin\n   kotlin {\n       android {\n           withJava()\n       }\n   }\n   ```\n8. **Enable tests** explicitly if the module has unit or instrumented tests:\n   ```kotlin\n   kotlin {\n       android {\n           withHostTest { isIncludeAndroidResources = true }\n           withDeviceTest {\n               instrumentationRunner = \"androidx.test.runner.AndroidJUnitRunner\"\n           }\n       }\n   }\n   ```\n9. **Update Compose tooling dependency**:\n   ```kotlin\n   \u002F\u002F Old: \n   debugImplementation(libs.androidx.compose.ui.tooling)\n   \u002F\u002F New:\n   androidRuntimeClasspath(libs.androidx.compose.ui.tooling)\n   ```\n10. **Publish consumer ProGuard rules** explicitly if applicable:\n    ```kotlin\n    kotlin {\n        android {\n            consumerProguardFiles.add(file(\"consumer-rules.pro\"))\n        }\n    }\n    ```\n11. **Resolve Sub-dependency Variants (Product Flavors \u002F Build Types)**:\n    Because the new KMP Android library plugin enforces a single-variant architecture, it does not natively understand how to resolve dependencies that publish multiple variants (like `debug`\u002F`release` build types, or product flavors like `free`\u002F`paid`). Configure fallback behaviors using `localDependencySelection`:\n    ```kotlin\n    kotlin {\n        android {\n            localDependencySelection {\n                \u002F\u002F Determine which build type to consume from Android library dependencies, in order of preference\n                selectBuildTypeFrom.set(listOf(\"debug\", \"release\"))\n                \n                \u002F\u002F If the dependency has a 'tier' dimension, select the 'free' flavor\n                productFlavorDimension(\"tier\") {\n                    selectFrom.set(listOf(\"free\"))\n                }\n            }\n        }\n    }\n    ```\n\n## Path B: Android App + Shared Module Split\n\nUse this when a module applies `kotlin.multiplatform` + `com.android.application`. This is **mandatory** for AGP 9.0 compatibility.\n\nSee [references\u002FMIGRATION-APP-SPLIT.md](references\u002FMIGRATION-APP-SPLIT.md) for full guide.\n\nSummary:\n\n1. **Create `androidApp` module** with its own `build.gradle.kts`:\n   ```kotlin\n   plugins {\n       alias(libs.plugins.androidApplication)\n       \u002F\u002F Do NOT apply kotlin-android — AGP 9.0 includes Kotlin support\n       alias(libs.plugins.composeMultiplatform)  \u002F\u002F if using Compose\n       alias(libs.plugins.composeCompiler)       \u002F\u002F if using Compose\n   }\n\n   android {\n       namespace = \"com.example.app\"\n       compileSdk = 35\n       defaultConfig {\n           applicationId = \"com.example.app\"\n           minSdk = 24\n           targetSdk = 35\n           versionCode = 1\n           versionName = \"1.0\"\n       }\n       buildFeatures { compose = true }\n   }\n\n   dependencies {\n       implementation(projects.shared)  \u002F\u002F or whatever the shared module is named\n       implementation(libs.androidx.activity.compose)\n   }\n   ```\n2. **Move Android entry point code** from `src\u002FandroidMain\u002F` to `androidApp\u002Fsrc\u002Fmain\u002F`:\n   - `MainActivity.kt` (and any other Activities\u002FFragments)\n   - `AndroidManifest.xml` (app-level manifest with `\u003Capplication>` and launcher `\u003Cactivity>`) — verify `android:name` on `\u003Cactivity>` uses the fully qualified class name in its new location\n   - Android Application class if present\n   - App-level resources (launcher icons, theme, etc.)\n3. **Add to `settings.gradle.kts`**: `include(\":androidApp\")`\n4. **Add to root `build.gradle.kts`**: plugin declarations with `apply false`\n5. **Convert original module** from application to library using Path A steps\n6. **Ensure different namespaces**: app module and library module must have distinct namespaces\n7. **Remove from shared module**: `applicationId`, `targetSdk`, `versionCode`, `versionName`\n8. **Update IDE run configurations**: change the module from the old module to `androidApp`\n\n## Path C: Full Restructure (Recommended)\n\nUse this when the project has a monolithic module (typically `composeApp`) containing entry\npoints for multiple platforms. This is optional but aligns with the new JetBrains default.\n\nSee [references\u002FMIGRATION-FULL-RESTRUCTURE.md](references\u002FMIGRATION-FULL-RESTRUCTURE.md) for full guide.\n\n### Target Structure\n\n```\nproject\u002F\n├── shared\u002F              ← KMP library (was composeApp), pure shared code\n├── androidApp\u002F          ← Android entry point only\n├── desktopApp\u002F          ← Desktop entry point only (if desktop target exists)\n├── webApp\u002F              ← Wasm\u002FJS entry point only (if web target exists)\n├── iosApp\u002F              ← iOS Xcode project (usually already separate)\n└── ...\n```\n\n### Steps\n\n1. **Apply Path B first** — extract `androidApp` (mandatory for AGP 9.0)\n2. **Extract `desktopApp`** (if desktop target exists):\n   - Create module with `org.jetbrains.compose` and `application {}` plugin\n   - Move `main()` function from `desktopMain` to `desktopApp\u002Fsrc\u002Fmain\u002Fkotlin\u002F`\n   - Move `compose.desktop { application { ... } }` config to `desktopApp\u002Fbuild.gradle.kts`\n   - Add dependency on `shared` module\n3. **Extract `webApp`** (if wasmJs\u002Fjs target exists):\n   - Create module with appropriate Kotlin\u002FJS or Kotlin\u002FWasm configuration\n   - Move web entry point from `wasmJsMain`\u002F`jsMain` to `webApp\u002Fsrc\u002FwasmJsMain\u002Fkotlin\u002F`\n   - Move browser\u002Fdistribution config to `webApp\u002Fbuild.gradle.kts`\n   - Add dependency on `shared` module\n4. **iOS** — typically already in a separate `iosApp` directory. Verify:\n   - Framework export config (`binaries.framework`) stays in `shared` module\n   - Xcode project references the correct framework path\n5. **Rename module** from `composeApp` to `shared`:\n   - Rename directory\n   - Update `settings.gradle.kts` include\n   - Update all dependency references across modules\n6. **Clean up shared module**: remove all platform entry point code and app-specific config\n   that was moved to the platform app modules\n\n### Variant: Native UI\n\nIf some platforms use native UI (e.g., SwiftUI for iOS), split `shared` into:\n- `sharedLogic` — business logic consumed by ALL platforms\n- `sharedUI` — Compose Multiplatform UI consumed only by platforms using shared UI\n\n### Variant: Server\n\nIf the project includes a server target:\n- Add `server` module at the root\n- Move all client modules under an `app\u002F` directory\n- Add `core` module for code shared between server and client (models, validation)\n\n## Version Updates\n\nThese are required regardless of migration path:\n\n1. **Gradle wrapper** — update to 9.1.0+:\n   ```properties\n   # gradle\u002Fwrapper\u002Fgradle-wrapper.properties\n   distributionUrl=https\\:\u002F\u002Fservices.gradle.org\u002Fdistributions\u002Fgradle-9.1.0-bin.zip\n   ```\n2. **AGP version** — update to 9.0.0+ and add the KMP library plugin.\n\n   With version catalog (`gradle\u002Flibs.versions.toml`):\n   ```toml\n   [versions]\n   agp = \"9.0.1\"\n\n   [plugins]\n   android-kotlin-multiplatform-library = { id = \"com.android.kotlin.multiplatform.library\", version.ref = \"agp\" }\n   ```\n\n   Without version catalog — update `com.android.*` plugin versions and add in root `build.gradle.kts`:\n   ```kotlin\n   plugins {\n       id(\"com.android.application\") version \"9.0.1\" apply false\n       id(\"com.android.kotlin.multiplatform.library\") version \"9.0.1\" apply false\n   }\n   ```\n3. **JDK** — ensure JDK 17+ is used (required by AGP 9.0)\n4. **SDK Build Tools** — update to 36.0.0:\n   ```\n   Install via SDK Manager or configure in android { buildToolsVersion = \"36.0.0\" }\n   ```\n5. **Review gradle.properties** — remove error-causing properties and review changed defaults (see \"Gradle Properties Default Changes\" section)\n\n## Built-in Kotlin Migration\n\nAGP 9.0 enables built-in Kotlin support by default for all `com.android.application` and `com.android.library`\nmodules. The `org.jetbrains.kotlin.android` plugin is no longer needed and will conflict if applied.\n\n**Important:** Built-in Kotlin does NOT replace KMP support. KMP library modules still need\n`org.jetbrains.kotlin.multiplatform` + `com.android.kotlin.multiplatform.library`.\n\n### Step 1: Remove kotlin-android Plugin\n\nRemove from **all** module-level and root-level build files:\n\n```kotlin\n\u002F\u002F Remove from module build.gradle.kts\nplugins {\n    \u002F\u002F REMOVE: alias(libs.plugins.kotlin.android)\n    \u002F\u002F REMOVE: id(\"org.jetbrains.kotlin.android\")\n}\n\n\u002F\u002F Remove from root build.gradle.kts\nplugins {\n    \u002F\u002F REMOVE: alias(libs.plugins.kotlin.android) apply false\n}\n```\n\nRemove from version catalog (`gradle\u002Flibs.versions.toml`):\n```toml\n[plugins]\n# REMOVE: kotlin-android = { id = \"org.jetbrains.kotlin.android\", version.ref = \"kotlin\" }\n```\n\n### Step 2: Migrate kapt to KSP or legacy-kapt\n\nThe `org.jetbrains.kotlin.kapt` plugin is **incompatible** with built-in Kotlin.\n\n**Preferred: Migrate to KSP** — see the KSP migration guide for each annotation processor.\n\n**Fallback: Use `com.android.legacy-kapt`** (same version as AGP):\n```toml\n# gradle\u002Flibs.versions.toml\n[plugins]\nlegacy-kapt = { id = \"com.android.legacy-kapt\", version.ref = \"agp\" }\n```\n```kotlin\n\u002F\u002F Module build.gradle.kts — replace kotlin-kapt with legacy-kapt\nplugins {\n    \u002F\u002F REMOVE: alias(libs.plugins.kotlin.kapt)\n    alias(libs.plugins.legacy.kapt)\n}\n```\n\n### Step 3: Migrate kotlinOptions to compilerOptions\n\nFor pure Android modules (non-KMP), migrate `android.kotlinOptions {}` to the top-level\n`kotlin.compilerOptions {}`:\n```kotlin\n\u002F\u002F Old\nandroid {\n    kotlinOptions {\n        jvmTarget = \"11\"\n        languageVersion = \"2.0\"\n        freeCompilerArgs += listOf(\"-Xopt-in=kotlin.RequiresOptIn\")\n    }\n}\n\n\u002F\u002F New\nkotlin {\n    compilerOptions {\n        jvmTarget.set(org.jetbrains.kotlin.gradle.dsl.JvmTarget.JVM_11)\n        languageVersion.set(org.jetbrains.kotlin.gradle.dsl.KotlinVersion.KOTLIN_2_0)\n        optIn.add(\"kotlin.RequiresOptIn\")\n    }\n}\n```\n\n**Note:** With built-in Kotlin, `jvmTarget` defaults to `android.compileOptions.targetCompatibility`, so it may be optional if you already set `compileOptions`.\n\n### Step 4: Migrate kotlin.sourceSets to android.sourceSets\n\nWith built-in Kotlin, only `android.sourceSets {}` with the `kotlin` set is supported:\n```kotlin\n\u002F\u002F NOT SUPPORTED with built-in Kotlin:\nkotlin.sourceSets.named(\"main\") {\n    kotlin.srcDir(\"additionalSourceDirectory\u002Fkotlin\")\n}\n\n\u002F\u002F Correct:\nandroid.sourceSets.named(\"main\") {\n    kotlin.directories += \"additionalSourceDirectory\u002Fkotlin\"\n}\n```\n\nFor generated sources, use the Variant API:\n```kotlin\nandroidComponents.onVariants { variant ->\n    variant.sources.kotlin!!.addStaticSourceDirectory(\"additionalSourceDirectory\u002Fkotlin\")\n}\n```\n\n### Per-Module Migration Strategy\n\nFor large projects, migrate module-by-module:\n\n1. Disable globally: `android.builtInKotlin=false` in `gradle.properties`\n2. Enable per migrated module by applying the opt-in plugin:\n   ```kotlin\n   plugins {\n       id(\"com.android.built-in-kotlin\") version \"AGP_VERSION\"\n   }\n   ```\n3. Follow Steps 1-4 for that module\n4. Once all modules are migrated, remove `android.builtInKotlin=false` and all `com.android.built-in-kotlin` plugins\n\n### Optional: Disable Kotlin for Non-Kotlin Modules\n\nFor modules that contain **no Kotlin sources**, disable built-in Kotlin to save build time:\n```kotlin\nandroid {\n    enableKotlin = false\n}\n```\n\n### Opt-Out (Temporary)\n\nIf blocked by plugin incompatibilities, opt out temporarily:\n```properties\n# gradle.properties\nandroid.builtInKotlin=false\nandroid.newDsl=false  # also required if using new DSL opt-out\n```\n\n**Warning:** Ask the user if they want to opt out, and if so, remind them this is a temporary measure.\n\n## Plugin Compatibility\n\nSee [references\u002FPLUGIN-COMPATIBILITY.md](references\u002FPLUGIN-COMPATIBILITY.md) for the full compatibility table with known compatible versions, opt-out flag workarounds, and broken plugins.\n\n**Before migrating**, inventory all plugins in the project and check each against that table. If any plugin is broken without workaround, inform the user. If plugins need opt-out flags, add them to`gradle.properties` and note them as temporary workarounds.\n\n## Gradle Properties Default Changes\n\nAGP 9.0 changes the defaults for many Gradle properties. Check `gradle.properties` for any explicitly set values that may now conflict. \nKey changes:\n\n| Property                                             | Old Default | New Default | Action                                            |\n|------------------------------------------------------|-------------|-------------|---------------------------------------------------|\n| `android.uniquePackageNames`                         | `false`     | `true`      | Ensure each library has a unique namespace        |\n| `android.enableAppCompileTimeRClass`                 | `false`     | `true`      | Refactor `switch` on R fields to `if\u002Felse`        |\n| `android.defaults.buildfeatures.resvalues`           | `true`      | `false`     | Enable `resValues = true` where needed            |\n| `android.defaults.buildfeatures.shaders`             | `true`      | `false`     | Enable shaders where needed                       |\n| `android.r8.optimizedResourceShrinking`              | `false`     | `true`      | Review R8 keep rules                              |\n| `android.r8.strictFullModeForKeepRules`              | `false`     | `true`      | Update keep rules to be explicit                  |\n| `android.proguard.failOnMissingFiles`                | `false`     | `true`      | Remove invalid ProGuard file references           |\n| `android.r8.proguardAndroidTxt.disallowed`           | `false`     | `true`      | Use `proguard-android-optimize.txt` only          |\n| `android.r8.globalOptionsInConsumerRules.disallowed` | `false`     | `true`      | Remove global options from library consumer rules |\n| `android.sourceset.disallowProvider`                 | `false`     | `true`      | Use `Sources` API on androidComponents            |\n| `android.sdk.defaultTargetSdkToCompileSdkIfUnset`    | `false`     | `true`      | Specify `targetSdk` explicitly                    |\n| `android.onlyEnableUnitTestForTheTestedBuildType`    | `false`     | `true`      | Only if testing non-default build types           |\n\nCheck for and remove properties that now cause errors:\n- `android.r8.integratedResourceShrinking` — removed, always on\n- `android.enableNewResourceShrinker.preciseShrinking` — removed, always on\n\n## Pure Android Tips\n\nFor non-KMP Android modules upgrading to AGP 9.0, follow the \"Built-in Kotlin Migration\" steps above,\nthen review the \"Gradle Properties Default Changes\" table. Additional changes:\n\n- **Review new DSL interfaces** — `BaseExtension` is removed; use `CommonExtension` or specific extension types\n- **Java default changed** from Java 8 to Java 11 — ensure `compileOptions` reflects this\n\n## Verification\n\nAfter migration, verify with the [checklist](assets\u002Fchecklist.md). Key checks:\n\n1. `.\u002Fgradlew build` succeeds with no errors\n2. All platform targets build successfully (Android, iOS via `xcodebuild`, Desktop, JS\u002FWasm)\n3. `.\u002Fgradlew :shared:allTests` and Android unit tests pass\n4. No `com.android.library` or `com.android.application` in KMP modules\n5. No `org.jetbrains.kotlin.android` in AGP 9.0 modules\n6. Source sets use correct names (`androidMain`, `androidHostTest`, `androidDeviceTest`)\n7. No deprecation warnings about variant API or DSL\n\n## Common Issues\n\nSee [references\u002FKNOWN-ISSUES.md](references\u002FKNOWN-ISSUES.md) for details. Key gotchas:\n\n### KMP Library Plugin Issues\n- **BuildConfig unavailable** in library modules — use DI\u002F`AppConfiguration` interface, or use [BuildKonfig](https:\u002F\u002Fgithub.com\u002Fyshrsmz\u002FBuildKonfig) or [gradle-buildconfig-plugin](https:\u002F\u002Fgithub.com\u002Fgmazzo\u002Fgradle-buildconfig-plugin) for compile-time constants\n- **No build variants** — single variant architecture; compile-time constants can use BuildKonfig\u002Fgradle-buildconfig-plugin flavors, but variant-specific dependencies\u002Fresources\u002Fsigning must move to app module\n- **NDK\u002FJNI unsupported** in new plugin — extract to separate `com.android.library` module\n- **Compose resources crash** without `androidResources { enable = true }`\n- **Consumer ProGuard rules silently dropped** if not migrated to `consumerProguardFiles.add(file(...))` in new DSL\n- **KSP** requires version 2.3.1+ for AGP 9.0 compatibility\n\n### AGP 9.0 General Issues\n- **BaseExtension removed** — convention plugins using old DSL types need rewriting to use `CommonExtension`\n- **Variant APIs removed** — `applicationVariants`, `libraryVariants`, `variantFilter` replaced by `androidComponents`\n- **Convention plugins** need refactoring — old `android {}` extension helpers are obsolete\n\n## Reference Files\n\n- [DSL Reference](references\u002FDSL-REFERENCE.md) — side-by-side old→new DSL mapping\n- [Version Matrix](references\u002FVERSION-MATRIX.md) — AGP\u002FGradle\u002FKGP\u002FCompose\u002FIDE compatibility\n- [Plugin Compatibility](references\u002FPLUGIN-COMPATIBILITY.md) — third-party plugin status and workarounds\n",{"data":36,"body":40},{"name":4,"description":6,"license":26,"metadata":37},{"author":38,"version":39},"JetBrains","1.0.0",{"type":41,"children":42},"root",[43,52,58,65,70,237,250,257,262,395,401,443,449,467,480,485,1237,1243,1267,1278,1282,1717,1723,1735,1745,1751,1761,1767,2053,2059,2071,2096,2102,2107,2148,2154,2159,2364,2370,2395,2418,2424,2436,2518,2529,2551,2557,2576,2586,2601,2631,2676,2682,2702,2838,2871,2877,2897,2973,2978,3008,3014,3019,3099,3105,3117,3146,3152,3157,3188,3198,3204,3215,3232,3238,3250,3724,3729,3753,3759,3764,3810,3816,3829,3927,3933,3944,3950,4059,4065,4137,4143,4177],{"type":44,"tag":45,"props":46,"children":48},"element","h1",{"id":47},"kmp-agp-90-migration",[49],{"type":50,"value":51},"text","KMP AGP 9.0 Migration",{"type":44,"tag":53,"props":54,"children":55},"p",{},[56],{"type":50,"value":57},"Android Gradle Plugin 9.0 makes the Android application and library plugins incompatible\nwith the Kotlin Multiplatform plugin in the same module. This skill guides you through the\nmigration.",{"type":44,"tag":59,"props":60,"children":62},"h2",{"id":61},"step-0-analyze-the-project",[63],{"type":50,"value":64},"Step 0: Analyze the Project",{"type":44,"tag":53,"props":66,"children":67},{},[68],{"type":50,"value":69},"Before making any changes, understand the project structure:",{"type":44,"tag":71,"props":72,"children":73},"ol",{},[74,97,110,168,180,201,214,232],{"type":44,"tag":75,"props":76,"children":77},"li",{},[78,80,87,89,95],{"type":50,"value":79},"Read ",{"type":44,"tag":81,"props":82,"children":84},"code",{"className":83},[],[85],{"type":50,"value":86},"settings.gradle.kts",{"type":50,"value":88}," (or ",{"type":44,"tag":81,"props":90,"children":92},{"className":91},[],[93],{"type":50,"value":94},".gradle",{"type":50,"value":96},") to find all modules",{"type":44,"tag":75,"props":98,"children":99},{},[100,102,108],{"type":50,"value":101},"For each module, read its ",{"type":44,"tag":81,"props":103,"children":105},{"className":104},[],[106],{"type":50,"value":107},"build.gradle.kts",{"type":50,"value":109}," to identify which plugins are applied",{"type":44,"tag":75,"props":111,"children":112},{},[113,115,121,123,128,130,136,138,144,146,152,154,160,162],{"type":50,"value":114},"Check if the project uses a Gradle version catalog (",{"type":44,"tag":81,"props":116,"children":118},{"className":117},[],[119],{"type":50,"value":120},"gradle\u002Flibs.versions.toml",{"type":50,"value":122},"). If it exists,\nread it for current AGP\u002FGradle\u002FKotlin versions. If not, find versions directly in ",{"type":44,"tag":81,"props":124,"children":126},{"className":125},[],[127],{"type":50,"value":107},{"type":50,"value":129},"\nfiles (typically in the root ",{"type":44,"tag":81,"props":131,"children":133},{"className":132},[],[134],{"type":50,"value":135},"buildscript {}",{"type":50,"value":137}," or ",{"type":44,"tag":81,"props":139,"children":141},{"className":140},[],[142],{"type":50,"value":143},"plugins {}",{"type":50,"value":145}," block). ",{"type":44,"tag":147,"props":148,"children":149},"strong",{},[150],{"type":50,"value":151},"Adapt all examples in this\nguide accordingly",{"type":50,"value":153}," — version catalog examples use ",{"type":44,"tag":81,"props":155,"children":157},{"className":156},[],[158],{"type":50,"value":159},"alias(libs.plugins.xxx)",{"type":50,"value":161}," while direct usage\nuses ",{"type":44,"tag":81,"props":163,"children":165},{"className":164},[],[166],{"type":50,"value":167},"id(\"plugin.id\") version \"x.y.z\"",{"type":44,"tag":75,"props":169,"children":170},{},[171,172,178],{"type":50,"value":79},{"type":44,"tag":81,"props":173,"children":175},{"className":174},[],[176],{"type":50,"value":177},"gradle\u002Fwrapper\u002Fgradle-wrapper.properties",{"type":50,"value":179}," for the Gradle version",{"type":44,"tag":75,"props":181,"children":182},{},[183,185,191,193,199],{"type":50,"value":184},"Check ",{"type":44,"tag":81,"props":186,"children":188},{"className":187},[],[189],{"type":50,"value":190},"gradle.properties",{"type":50,"value":192}," for any existing workarounds (",{"type":44,"tag":81,"props":194,"children":196},{"className":195},[],[197],{"type":50,"value":198},"android.enableLegacyVariantApi",{"type":50,"value":200},")",{"type":44,"tag":75,"props":202,"children":203},{},[204,206,212],{"type":50,"value":205},"Check for ",{"type":44,"tag":81,"props":207,"children":209},{"className":208},[],[210],{"type":50,"value":211},"org.jetbrains.kotlin.android",{"type":50,"value":213}," plugin usage — AGP 9.0 has built-in Kotlin and this plugin must be removed",{"type":44,"tag":75,"props":215,"children":216},{},[217,218,224,226],{"type":50,"value":205},{"type":44,"tag":81,"props":219,"children":221},{"className":220},[],[222],{"type":50,"value":223},"org.jetbrains.kotlin.kapt",{"type":50,"value":225}," plugin usage — incompatible with built-in Kotlin, must migrate to KSP or ",{"type":44,"tag":81,"props":227,"children":229},{"className":228},[],[230],{"type":50,"value":231},"com.android.legacy-kapt",{"type":44,"tag":75,"props":233,"children":234},{},[235],{"type":50,"value":236},"Check for third-party plugins that may be incompatible with AGP 9.0 (see \"Plugin Compatibility\" section below)",{"type":44,"tag":53,"props":238,"children":239},{},[240,242,248],{"type":50,"value":241},"If Bash is available, run ",{"type":44,"tag":81,"props":243,"children":245},{"className":244},[],[246],{"type":50,"value":247},"scripts\u002Fanalyze-project.sh",{"type":50,"value":249}," from this skill's directory to get a structured summary.",{"type":44,"tag":251,"props":252,"children":254},"h3",{"id":253},"classify-each-module",[255],{"type":50,"value":256},"Classify Each Module",{"type":44,"tag":53,"props":258,"children":259},{},[260],{"type":50,"value":261},"For each module, determine its type:",{"type":44,"tag":263,"props":264,"children":265},"table",{},[266,285],{"type":44,"tag":267,"props":268,"children":269},"thead",{},[270],{"type":44,"tag":271,"props":272,"children":273},"tr",{},[274,280],{"type":44,"tag":275,"props":276,"children":277},"th",{},[278],{"type":50,"value":279},"Current plugins",{"type":44,"tag":275,"props":281,"children":282},{},[283],{"type":50,"value":284},"Migration path",{"type":44,"tag":286,"props":287,"children":288},"tbody",{},[289,320,348,371],{"type":44,"tag":271,"props":290,"children":291},{},[292,310],{"type":44,"tag":293,"props":294,"children":295},"td",{},[296,302,304],{"type":44,"tag":81,"props":297,"children":299},{"className":298},[],[300],{"type":50,"value":301},"kotlin.multiplatform",{"type":50,"value":303}," + ",{"type":44,"tag":81,"props":305,"children":307},{"className":306},[],[308],{"type":50,"value":309},"com.android.library",{"type":44,"tag":293,"props":311,"children":312},{},[313,318],{"type":44,"tag":147,"props":314,"children":315},{},[316],{"type":50,"value":317},"Path A",{"type":50,"value":319}," — Library plugin swap",{"type":44,"tag":271,"props":321,"children":322},{},[323,338],{"type":44,"tag":293,"props":324,"children":325},{},[326,331,332],{"type":44,"tag":81,"props":327,"children":329},{"className":328},[],[330],{"type":50,"value":301},{"type":50,"value":303},{"type":44,"tag":81,"props":333,"children":335},{"className":334},[],[336],{"type":50,"value":337},"com.android.application",{"type":44,"tag":293,"props":339,"children":340},{},[341,346],{"type":44,"tag":147,"props":342,"children":343},{},[344],{"type":50,"value":345},"Path B",{"type":50,"value":347}," — Mandatory Android split",{"type":44,"tag":271,"props":349,"children":350},{},[351,361],{"type":44,"tag":293,"props":352,"children":353},{},[354,359],{"type":44,"tag":81,"props":355,"children":357},{"className":356},[],[358],{"type":50,"value":301},{"type":50,"value":360}," with multiple platform entry points in one module",{"type":44,"tag":293,"props":362,"children":363},{},[364,369],{"type":44,"tag":147,"props":365,"children":366},{},[367],{"type":50,"value":368},"Path C",{"type":50,"value":370}," — Full restructure (recommended)",{"type":44,"tag":271,"props":372,"children":373},{},[374,390],{"type":44,"tag":293,"props":375,"children":376},{},[377,382,383,388],{"type":44,"tag":81,"props":378,"children":380},{"className":379},[],[381],{"type":50,"value":337},{"type":50,"value":137},{"type":44,"tag":81,"props":384,"children":386},{"className":385},[],[387],{"type":50,"value":309},{"type":50,"value":389}," (no KMP)",{"type":44,"tag":293,"props":391,"children":392},{},[393],{"type":50,"value":394},"See \"Pure Android Tips\" below",{"type":44,"tag":251,"props":396,"children":398},{"id":397},"determine-scope",[399],{"type":50,"value":400},"Determine Scope",{"type":44,"tag":402,"props":403,"children":404},"ul",{},[405,415,433],{"type":44,"tag":75,"props":406,"children":407},{},[408,413],{"type":44,"tag":147,"props":409,"children":410},{},[411],{"type":50,"value":412},"Path B is mandatory",{"type":50,"value":414}," for any module combining KMP + Android application plugin",{"type":44,"tag":75,"props":416,"children":417},{},[418,423,425,431],{"type":44,"tag":147,"props":419,"children":420},{},[421],{"type":50,"value":422},"Path C is recommended",{"type":50,"value":424}," when the project has a monolithic ",{"type":44,"tag":81,"props":426,"children":428},{"className":427},[],[429],{"type":50,"value":430},"composeApp",{"type":50,"value":432}," (or similar) module\ncontaining entry points for multiple platforms (Android, Desktop, Web). This aligns with the\nnew JetBrains default project structure where each platform gets its own app module.",{"type":44,"tag":75,"props":434,"children":435},{},[436,441],{"type":44,"tag":147,"props":437,"children":438},{},[439],{"type":50,"value":440},"Ask the user",{"type":50,"value":442}," whether they want Path B only (minimum required) or Path C (recommended full restructure)",{"type":44,"tag":59,"props":444,"children":446},{"id":445},"path-a-library-module-migration",[447],{"type":50,"value":448},"Path A: Library Module Migration",{"type":44,"tag":53,"props":450,"children":451},{},[452,454,459,460,465],{"type":50,"value":453},"Use this when a module applies ",{"type":44,"tag":81,"props":455,"children":457},{"className":456},[],[458],{"type":50,"value":301},{"type":50,"value":303},{"type":44,"tag":81,"props":461,"children":463},{"className":462},[],[464],{"type":50,"value":309},{"type":50,"value":466},".",{"type":44,"tag":53,"props":468,"children":469},{},[470,472,478],{"type":50,"value":471},"See ",{"type":44,"tag":473,"props":474,"children":476},"a",{"href":475},"references\u002FMIGRATION-LIBRARY.md",[477],{"type":50,"value":475},{"type":50,"value":479}," for full before\u002Fafter code.",{"type":44,"tag":53,"props":481,"children":482},{},[483],{"type":50,"value":484},"Summary:",{"type":44,"tag":71,"props":486,"children":487},{},[488,511,526,627,701,786,839,900,977,1025,1078],{"type":44,"tag":75,"props":489,"children":490},{},[491,496,498,503,505],{"type":44,"tag":147,"props":492,"children":493},{},[494],{"type":50,"value":495},"Replace plugin",{"type":50,"value":497},": ",{"type":44,"tag":81,"props":499,"children":501},{"className":500},[],[502],{"type":50,"value":309},{"type":50,"value":504}," → ",{"type":44,"tag":81,"props":506,"children":508},{"className":507},[],[509],{"type":50,"value":510},"com.android.kotlin.multiplatform.library",{"type":44,"tag":75,"props":512,"children":513},{},[514,524],{"type":44,"tag":147,"props":515,"children":516},{},[517,519],{"type":50,"value":518},"Remove ",{"type":44,"tag":81,"props":520,"children":522},{"className":521},[],[523],{"type":50,"value":211},{"type":50,"value":525}," plugin if present (AGP 9.0 has built-in Kotlin support)",{"type":44,"tag":75,"props":527,"children":528},{},[529,534,536,542,544,550,552],{"type":44,"tag":147,"props":530,"children":531},{},[532],{"type":50,"value":533},"Migrate DSL",{"type":50,"value":535},": Move config from top-level ",{"type":44,"tag":81,"props":537,"children":539},{"className":538},[],[540],{"type":50,"value":541},"android {}",{"type":50,"value":543}," block into ",{"type":44,"tag":81,"props":545,"children":547},{"className":546},[],[548],{"type":50,"value":549},"kotlin { android {} }",{"type":50,"value":551},":\n",{"type":44,"tag":553,"props":554,"children":558},"pre",{"className":555,"code":556,"language":8,"meta":557,"style":557},"language-kotlin shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","kotlin {\n    android {\n        namespace = \"com.example.lib\"\n        compileSdk = 35\n        minSdk = 24\n    }\n}\n","",[559],{"type":44,"tag":81,"props":560,"children":561},{"__ignoreMap":557},[562,573,582,591,600,609,618],{"type":44,"tag":563,"props":564,"children":567},"span",{"class":565,"line":566},"line",1,[568],{"type":44,"tag":563,"props":569,"children":570},{},[571],{"type":50,"value":572},"kotlin {\n",{"type":44,"tag":563,"props":574,"children":576},{"class":565,"line":575},2,[577],{"type":44,"tag":563,"props":578,"children":579},{},[580],{"type":50,"value":581},"    android {\n",{"type":44,"tag":563,"props":583,"children":585},{"class":565,"line":584},3,[586],{"type":44,"tag":563,"props":587,"children":588},{},[589],{"type":50,"value":590},"        namespace = \"com.example.lib\"\n",{"type":44,"tag":563,"props":592,"children":594},{"class":565,"line":593},4,[595],{"type":44,"tag":563,"props":596,"children":597},{},[598],{"type":50,"value":599},"        compileSdk = 35\n",{"type":44,"tag":563,"props":601,"children":603},{"class":565,"line":602},5,[604],{"type":44,"tag":563,"props":605,"children":606},{},[607],{"type":50,"value":608},"        minSdk = 24\n",{"type":44,"tag":563,"props":610,"children":612},{"class":565,"line":611},6,[613],{"type":44,"tag":563,"props":614,"children":615},{},[616],{"type":50,"value":617},"    }\n",{"type":44,"tag":563,"props":619,"children":621},{"class":565,"line":620},7,[622],{"type":44,"tag":563,"props":623,"children":624},{},[625],{"type":50,"value":626},"}\n",{"type":44,"tag":75,"props":628,"children":629},{},[630,635,637],{"type":44,"tag":147,"props":631,"children":632},{},[633],{"type":50,"value":634},"Rename source directories",{"type":50,"value":636}," (only if the module uses classic Android layout instead of KMP layout):\n",{"type":44,"tag":402,"props":638,"children":639},{},[640,656,672,688],{"type":44,"tag":75,"props":641,"children":642},{},[643,649,650],{"type":44,"tag":81,"props":644,"children":646},{"className":645},[],[647],{"type":50,"value":648},"src\u002Fmain",{"type":50,"value":504},{"type":44,"tag":81,"props":651,"children":653},{"className":652},[],[654],{"type":50,"value":655},"src\u002FandroidMain",{"type":44,"tag":75,"props":657,"children":658},{},[659,665,666],{"type":44,"tag":81,"props":660,"children":662},{"className":661},[],[663],{"type":50,"value":664},"src\u002Ftest",{"type":50,"value":504},{"type":44,"tag":81,"props":667,"children":669},{"className":668},[],[670],{"type":50,"value":671},"src\u002FandroidHostTest",{"type":44,"tag":75,"props":673,"children":674},{},[675,681,682],{"type":44,"tag":81,"props":676,"children":678},{"className":677},[],[679],{"type":50,"value":680},"src\u002FandroidTest",{"type":50,"value":504},{"type":44,"tag":81,"props":683,"children":685},{"className":684},[],[686],{"type":50,"value":687},"src\u002FandroidDeviceTest",{"type":44,"tag":75,"props":689,"children":690},{},[691,693,699],{"type":50,"value":692},"If the module already uses ",{"type":44,"tag":81,"props":694,"children":696},{"className":695},[],[697],{"type":50,"value":698},"src\u002FandroidMain\u002F",{"type":50,"value":700},", no directory renames are needed",{"type":44,"tag":75,"props":702,"children":703},{},[704,709,711,717,719,725,726],{"type":44,"tag":147,"props":705,"children":706},{},[707],{"type":50,"value":708},"Move dependencies",{"type":50,"value":710}," from top-level ",{"type":44,"tag":81,"props":712,"children":714},{"className":713},[],[715],{"type":50,"value":716},"dependencies {}",{"type":50,"value":718}," into ",{"type":44,"tag":81,"props":720,"children":722},{"className":721},[],[723],{"type":50,"value":724},"sourceSets",{"type":50,"value":551},{"type":44,"tag":553,"props":727,"children":729},{"className":555,"code":728,"language":8,"meta":557,"style":557},"kotlin {\n    sourceSets {\n        androidMain.dependencies {\n            implementation(\"androidx.appcompat:appcompat:1.7.0\")\n        }\n    }\n}\n",[730],{"type":44,"tag":81,"props":731,"children":732},{"__ignoreMap":557},[733,740,748,756,764,772,779],{"type":44,"tag":563,"props":734,"children":735},{"class":565,"line":566},[736],{"type":44,"tag":563,"props":737,"children":738},{},[739],{"type":50,"value":572},{"type":44,"tag":563,"props":741,"children":742},{"class":565,"line":575},[743],{"type":44,"tag":563,"props":744,"children":745},{},[746],{"type":50,"value":747},"    sourceSets {\n",{"type":44,"tag":563,"props":749,"children":750},{"class":565,"line":584},[751],{"type":44,"tag":563,"props":752,"children":753},{},[754],{"type":50,"value":755},"        androidMain.dependencies {\n",{"type":44,"tag":563,"props":757,"children":758},{"class":565,"line":593},[759],{"type":44,"tag":563,"props":760,"children":761},{},[762],{"type":50,"value":763},"            implementation(\"androidx.appcompat:appcompat:1.7.0\")\n",{"type":44,"tag":563,"props":765,"children":766},{"class":565,"line":602},[767],{"type":44,"tag":563,"props":768,"children":769},{},[770],{"type":50,"value":771},"        }\n",{"type":44,"tag":563,"props":773,"children":774},{"class":565,"line":611},[775],{"type":44,"tag":563,"props":776,"children":777},{},[778],{"type":50,"value":617},{"type":44,"tag":563,"props":780,"children":781},{"class":565,"line":620},[782],{"type":44,"tag":563,"props":783,"children":784},{},[785],{"type":50,"value":626},{"type":44,"tag":75,"props":787,"children":788},{},[789,794,796],{"type":44,"tag":147,"props":790,"children":791},{},[792],{"type":50,"value":793},"Enable resources",{"type":50,"value":795}," explicitly if the module uses Android or Compose Multiplatform resources:\n",{"type":44,"tag":553,"props":797,"children":799},{"className":555,"code":798,"language":8,"meta":557,"style":557},"kotlin {\n    android {\n        androidResources { enable = true }\n    }\n}\n",[800],{"type":44,"tag":81,"props":801,"children":802},{"__ignoreMap":557},[803,810,817,825,832],{"type":44,"tag":563,"props":804,"children":805},{"class":565,"line":566},[806],{"type":44,"tag":563,"props":807,"children":808},{},[809],{"type":50,"value":572},{"type":44,"tag":563,"props":811,"children":812},{"class":565,"line":575},[813],{"type":44,"tag":563,"props":814,"children":815},{},[816],{"type":50,"value":581},{"type":44,"tag":563,"props":818,"children":819},{"class":565,"line":584},[820],{"type":44,"tag":563,"props":821,"children":822},{},[823],{"type":50,"value":824},"        androidResources { enable = true }\n",{"type":44,"tag":563,"props":826,"children":827},{"class":565,"line":593},[828],{"type":44,"tag":563,"props":829,"children":830},{},[831],{"type":50,"value":617},{"type":44,"tag":563,"props":833,"children":834},{"class":565,"line":602},[835],{"type":44,"tag":563,"props":836,"children":837},{},[838],{"type":50,"value":626},{"type":44,"tag":75,"props":840,"children":841},{},[842,847,849,855,857],{"type":44,"tag":147,"props":843,"children":844},{},[845],{"type":50,"value":846},"Enable Java",{"type":50,"value":848}," compilation if module has ",{"type":44,"tag":81,"props":850,"children":852},{"className":851},[],[853],{"type":50,"value":854},".java",{"type":50,"value":856}," source files:\n",{"type":44,"tag":553,"props":858,"children":860},{"className":555,"code":859,"language":8,"meta":557,"style":557},"kotlin {\n    android {\n        withJava()\n    }\n}\n",[861],{"type":44,"tag":81,"props":862,"children":863},{"__ignoreMap":557},[864,871,878,886,893],{"type":44,"tag":563,"props":865,"children":866},{"class":565,"line":566},[867],{"type":44,"tag":563,"props":868,"children":869},{},[870],{"type":50,"value":572},{"type":44,"tag":563,"props":872,"children":873},{"class":565,"line":575},[874],{"type":44,"tag":563,"props":875,"children":876},{},[877],{"type":50,"value":581},{"type":44,"tag":563,"props":879,"children":880},{"class":565,"line":584},[881],{"type":44,"tag":563,"props":882,"children":883},{},[884],{"type":50,"value":885},"        withJava()\n",{"type":44,"tag":563,"props":887,"children":888},{"class":565,"line":593},[889],{"type":44,"tag":563,"props":890,"children":891},{},[892],{"type":50,"value":617},{"type":44,"tag":563,"props":894,"children":895},{"class":565,"line":602},[896],{"type":44,"tag":563,"props":897,"children":898},{},[899],{"type":50,"value":626},{"type":44,"tag":75,"props":901,"children":902},{},[903,908,910],{"type":44,"tag":147,"props":904,"children":905},{},[906],{"type":50,"value":907},"Enable tests",{"type":50,"value":909}," explicitly if the module has unit or instrumented tests:\n",{"type":44,"tag":553,"props":911,"children":913},{"className":555,"code":912,"language":8,"meta":557,"style":557},"kotlin {\n    android {\n        withHostTest { isIncludeAndroidResources = true }\n        withDeviceTest {\n            instrumentationRunner = \"androidx.test.runner.AndroidJUnitRunner\"\n        }\n    }\n}\n",[914],{"type":44,"tag":81,"props":915,"children":916},{"__ignoreMap":557},[917,924,931,939,947,955,962,969],{"type":44,"tag":563,"props":918,"children":919},{"class":565,"line":566},[920],{"type":44,"tag":563,"props":921,"children":922},{},[923],{"type":50,"value":572},{"type":44,"tag":563,"props":925,"children":926},{"class":565,"line":575},[927],{"type":44,"tag":563,"props":928,"children":929},{},[930],{"type":50,"value":581},{"type":44,"tag":563,"props":932,"children":933},{"class":565,"line":584},[934],{"type":44,"tag":563,"props":935,"children":936},{},[937],{"type":50,"value":938},"        withHostTest { isIncludeAndroidResources = true }\n",{"type":44,"tag":563,"props":940,"children":941},{"class":565,"line":593},[942],{"type":44,"tag":563,"props":943,"children":944},{},[945],{"type":50,"value":946},"        withDeviceTest {\n",{"type":44,"tag":563,"props":948,"children":949},{"class":565,"line":602},[950],{"type":44,"tag":563,"props":951,"children":952},{},[953],{"type":50,"value":954},"            instrumentationRunner = \"androidx.test.runner.AndroidJUnitRunner\"\n",{"type":44,"tag":563,"props":956,"children":957},{"class":565,"line":611},[958],{"type":44,"tag":563,"props":959,"children":960},{},[961],{"type":50,"value":771},{"type":44,"tag":563,"props":963,"children":964},{"class":565,"line":620},[965],{"type":44,"tag":563,"props":966,"children":967},{},[968],{"type":50,"value":617},{"type":44,"tag":563,"props":970,"children":972},{"class":565,"line":971},8,[973],{"type":44,"tag":563,"props":974,"children":975},{},[976],{"type":50,"value":626},{"type":44,"tag":75,"props":978,"children":979},{},[980,985,986],{"type":44,"tag":147,"props":981,"children":982},{},[983],{"type":50,"value":984},"Update Compose tooling dependency",{"type":50,"value":551},{"type":44,"tag":553,"props":987,"children":989},{"className":555,"code":988,"language":8,"meta":557,"style":557},"\u002F\u002F Old: \ndebugImplementation(libs.androidx.compose.ui.tooling)\n\u002F\u002F New:\nandroidRuntimeClasspath(libs.androidx.compose.ui.tooling)\n",[990],{"type":44,"tag":81,"props":991,"children":992},{"__ignoreMap":557},[993,1001,1009,1017],{"type":44,"tag":563,"props":994,"children":995},{"class":565,"line":566},[996],{"type":44,"tag":563,"props":997,"children":998},{},[999],{"type":50,"value":1000},"\u002F\u002F Old: \n",{"type":44,"tag":563,"props":1002,"children":1003},{"class":565,"line":575},[1004],{"type":44,"tag":563,"props":1005,"children":1006},{},[1007],{"type":50,"value":1008},"debugImplementation(libs.androidx.compose.ui.tooling)\n",{"type":44,"tag":563,"props":1010,"children":1011},{"class":565,"line":584},[1012],{"type":44,"tag":563,"props":1013,"children":1014},{},[1015],{"type":50,"value":1016},"\u002F\u002F New:\n",{"type":44,"tag":563,"props":1018,"children":1019},{"class":565,"line":593},[1020],{"type":44,"tag":563,"props":1021,"children":1022},{},[1023],{"type":50,"value":1024},"androidRuntimeClasspath(libs.androidx.compose.ui.tooling)\n",{"type":44,"tag":75,"props":1026,"children":1027},{},[1028,1033,1035],{"type":44,"tag":147,"props":1029,"children":1030},{},[1031],{"type":50,"value":1032},"Publish consumer ProGuard rules",{"type":50,"value":1034}," explicitly if applicable:\n",{"type":44,"tag":553,"props":1036,"children":1038},{"className":555,"code":1037,"language":8,"meta":557,"style":557},"kotlin {\n    android {\n        consumerProguardFiles.add(file(\"consumer-rules.pro\"))\n    }\n}\n",[1039],{"type":44,"tag":81,"props":1040,"children":1041},{"__ignoreMap":557},[1042,1049,1056,1064,1071],{"type":44,"tag":563,"props":1043,"children":1044},{"class":565,"line":566},[1045],{"type":44,"tag":563,"props":1046,"children":1047},{},[1048],{"type":50,"value":572},{"type":44,"tag":563,"props":1050,"children":1051},{"class":565,"line":575},[1052],{"type":44,"tag":563,"props":1053,"children":1054},{},[1055],{"type":50,"value":581},{"type":44,"tag":563,"props":1057,"children":1058},{"class":565,"line":584},[1059],{"type":44,"tag":563,"props":1060,"children":1061},{},[1062],{"type":50,"value":1063},"        consumerProguardFiles.add(file(\"consumer-rules.pro\"))\n",{"type":44,"tag":563,"props":1065,"children":1066},{"class":565,"line":593},[1067],{"type":44,"tag":563,"props":1068,"children":1069},{},[1070],{"type":50,"value":617},{"type":44,"tag":563,"props":1072,"children":1073},{"class":565,"line":602},[1074],{"type":44,"tag":563,"props":1075,"children":1076},{},[1077],{"type":50,"value":626},{"type":44,"tag":75,"props":1079,"children":1080},{},[1081,1086,1088,1094,1096,1102,1104,1110,1111,1117,1119,1125,1126],{"type":44,"tag":147,"props":1082,"children":1083},{},[1084],{"type":50,"value":1085},"Resolve Sub-dependency Variants (Product Flavors \u002F Build Types)",{"type":50,"value":1087},":\nBecause the new KMP Android library plugin enforces a single-variant architecture, it does not natively understand how to resolve dependencies that publish multiple variants (like ",{"type":44,"tag":81,"props":1089,"children":1091},{"className":1090},[],[1092],{"type":50,"value":1093},"debug",{"type":50,"value":1095},"\u002F",{"type":44,"tag":81,"props":1097,"children":1099},{"className":1098},[],[1100],{"type":50,"value":1101},"release",{"type":50,"value":1103}," build types, or product flavors like ",{"type":44,"tag":81,"props":1105,"children":1107},{"className":1106},[],[1108],{"type":50,"value":1109},"free",{"type":50,"value":1095},{"type":44,"tag":81,"props":1112,"children":1114},{"className":1113},[],[1115],{"type":50,"value":1116},"paid",{"type":50,"value":1118},"). Configure fallback behaviors using ",{"type":44,"tag":81,"props":1120,"children":1122},{"className":1121},[],[1123],{"type":50,"value":1124},"localDependencySelection",{"type":50,"value":551},{"type":44,"tag":553,"props":1127,"children":1129},{"className":555,"code":1128,"language":8,"meta":557,"style":557},"kotlin {\n    android {\n        localDependencySelection {\n            \u002F\u002F Determine which build type to consume from Android library dependencies, in order of preference\n            selectBuildTypeFrom.set(listOf(\"debug\", \"release\"))\n            \n            \u002F\u002F If the dependency has a 'tier' dimension, select the 'free' flavor\n            productFlavorDimension(\"tier\") {\n                selectFrom.set(listOf(\"free\"))\n            }\n        }\n    }\n}\n",[1130],{"type":44,"tag":81,"props":1131,"children":1132},{"__ignoreMap":557},[1133,1140,1147,1155,1163,1171,1179,1187,1195,1204,1213,1221,1229],{"type":44,"tag":563,"props":1134,"children":1135},{"class":565,"line":566},[1136],{"type":44,"tag":563,"props":1137,"children":1138},{},[1139],{"type":50,"value":572},{"type":44,"tag":563,"props":1141,"children":1142},{"class":565,"line":575},[1143],{"type":44,"tag":563,"props":1144,"children":1145},{},[1146],{"type":50,"value":581},{"type":44,"tag":563,"props":1148,"children":1149},{"class":565,"line":584},[1150],{"type":44,"tag":563,"props":1151,"children":1152},{},[1153],{"type":50,"value":1154},"        localDependencySelection {\n",{"type":44,"tag":563,"props":1156,"children":1157},{"class":565,"line":593},[1158],{"type":44,"tag":563,"props":1159,"children":1160},{},[1161],{"type":50,"value":1162},"            \u002F\u002F Determine which build type to consume from Android library dependencies, in order of preference\n",{"type":44,"tag":563,"props":1164,"children":1165},{"class":565,"line":602},[1166],{"type":44,"tag":563,"props":1167,"children":1168},{},[1169],{"type":50,"value":1170},"            selectBuildTypeFrom.set(listOf(\"debug\", \"release\"))\n",{"type":44,"tag":563,"props":1172,"children":1173},{"class":565,"line":611},[1174],{"type":44,"tag":563,"props":1175,"children":1176},{},[1177],{"type":50,"value":1178},"            \n",{"type":44,"tag":563,"props":1180,"children":1181},{"class":565,"line":620},[1182],{"type":44,"tag":563,"props":1183,"children":1184},{},[1185],{"type":50,"value":1186},"            \u002F\u002F If the dependency has a 'tier' dimension, select the 'free' flavor\n",{"type":44,"tag":563,"props":1188,"children":1189},{"class":565,"line":971},[1190],{"type":44,"tag":563,"props":1191,"children":1192},{},[1193],{"type":50,"value":1194},"            productFlavorDimension(\"tier\") {\n",{"type":44,"tag":563,"props":1196,"children":1198},{"class":565,"line":1197},9,[1199],{"type":44,"tag":563,"props":1200,"children":1201},{},[1202],{"type":50,"value":1203},"                selectFrom.set(listOf(\"free\"))\n",{"type":44,"tag":563,"props":1205,"children":1207},{"class":565,"line":1206},10,[1208],{"type":44,"tag":563,"props":1209,"children":1210},{},[1211],{"type":50,"value":1212},"            }\n",{"type":44,"tag":563,"props":1214,"children":1216},{"class":565,"line":1215},11,[1217],{"type":44,"tag":563,"props":1218,"children":1219},{},[1220],{"type":50,"value":771},{"type":44,"tag":563,"props":1222,"children":1224},{"class":565,"line":1223},12,[1225],{"type":44,"tag":563,"props":1226,"children":1227},{},[1228],{"type":50,"value":617},{"type":44,"tag":563,"props":1230,"children":1232},{"class":565,"line":1231},13,[1233],{"type":44,"tag":563,"props":1234,"children":1235},{},[1236],{"type":50,"value":626},{"type":44,"tag":59,"props":1238,"children":1240},{"id":1239},"path-b-android-app-shared-module-split",[1241],{"type":50,"value":1242},"Path B: Android App + Shared Module Split",{"type":44,"tag":53,"props":1244,"children":1245},{},[1246,1247,1252,1253,1258,1260,1265],{"type":50,"value":453},{"type":44,"tag":81,"props":1248,"children":1250},{"className":1249},[],[1251],{"type":50,"value":301},{"type":50,"value":303},{"type":44,"tag":81,"props":1254,"children":1256},{"className":1255},[],[1257],{"type":50,"value":337},{"type":50,"value":1259},". This is ",{"type":44,"tag":147,"props":1261,"children":1262},{},[1263],{"type":50,"value":1264},"mandatory",{"type":50,"value":1266}," for AGP 9.0 compatibility.",{"type":44,"tag":53,"props":1268,"children":1269},{},[1270,1271,1276],{"type":50,"value":471},{"type":44,"tag":473,"props":1272,"children":1274},{"href":1273},"references\u002FMIGRATION-APP-SPLIT.md",[1275],{"type":50,"value":1273},{"type":50,"value":1277}," for full guide.",{"type":44,"tag":53,"props":1279,"children":1280},{},[1281],{"type":50,"value":484},{"type":44,"tag":71,"props":1283,"children":1284},{},[1285,1514,1604,1624,1645,1655,1665,1702],{"type":44,"tag":75,"props":1286,"children":1287},{},[1288,1301,1303,1308,1309],{"type":44,"tag":147,"props":1289,"children":1290},{},[1291,1293,1299],{"type":50,"value":1292},"Create ",{"type":44,"tag":81,"props":1294,"children":1296},{"className":1295},[],[1297],{"type":50,"value":1298},"androidApp",{"type":50,"value":1300}," module",{"type":50,"value":1302}," with its own ",{"type":44,"tag":81,"props":1304,"children":1306},{"className":1305},[],[1307],{"type":50,"value":107},{"type":50,"value":551},{"type":44,"tag":553,"props":1310,"children":1312},{"className":555,"code":1311,"language":8,"meta":557,"style":557},"plugins {\n    alias(libs.plugins.androidApplication)\n    \u002F\u002F Do NOT apply kotlin-android — AGP 9.0 includes Kotlin support\n    alias(libs.plugins.composeMultiplatform)  \u002F\u002F if using Compose\n    alias(libs.plugins.composeCompiler)       \u002F\u002F if using Compose\n}\n\nandroid {\n    namespace = \"com.example.app\"\n    compileSdk = 35\n    defaultConfig {\n        applicationId = \"com.example.app\"\n        minSdk = 24\n        targetSdk = 35\n        versionCode = 1\n        versionName = \"1.0\"\n    }\n    buildFeatures { compose = true }\n}\n\ndependencies {\n    implementation(projects.shared)  \u002F\u002F or whatever the shared module is named\n    implementation(libs.androidx.activity.compose)\n}\n",[1313],{"type":44,"tag":81,"props":1314,"children":1315},{"__ignoreMap":557},[1316,1324,1332,1340,1348,1356,1363,1372,1380,1388,1396,1404,1412,1419,1428,1437,1446,1454,1463,1471,1479,1488,1497,1506],{"type":44,"tag":563,"props":1317,"children":1318},{"class":565,"line":566},[1319],{"type":44,"tag":563,"props":1320,"children":1321},{},[1322],{"type":50,"value":1323},"plugins {\n",{"type":44,"tag":563,"props":1325,"children":1326},{"class":565,"line":575},[1327],{"type":44,"tag":563,"props":1328,"children":1329},{},[1330],{"type":50,"value":1331},"    alias(libs.plugins.androidApplication)\n",{"type":44,"tag":563,"props":1333,"children":1334},{"class":565,"line":584},[1335],{"type":44,"tag":563,"props":1336,"children":1337},{},[1338],{"type":50,"value":1339},"    \u002F\u002F Do NOT apply kotlin-android — AGP 9.0 includes Kotlin support\n",{"type":44,"tag":563,"props":1341,"children":1342},{"class":565,"line":593},[1343],{"type":44,"tag":563,"props":1344,"children":1345},{},[1346],{"type":50,"value":1347},"    alias(libs.plugins.composeMultiplatform)  \u002F\u002F if using Compose\n",{"type":44,"tag":563,"props":1349,"children":1350},{"class":565,"line":602},[1351],{"type":44,"tag":563,"props":1352,"children":1353},{},[1354],{"type":50,"value":1355},"    alias(libs.plugins.composeCompiler)       \u002F\u002F if using Compose\n",{"type":44,"tag":563,"props":1357,"children":1358},{"class":565,"line":611},[1359],{"type":44,"tag":563,"props":1360,"children":1361},{},[1362],{"type":50,"value":626},{"type":44,"tag":563,"props":1364,"children":1365},{"class":565,"line":620},[1366],{"type":44,"tag":563,"props":1367,"children":1369},{"emptyLinePlaceholder":1368},true,[1370],{"type":50,"value":1371},"\n",{"type":44,"tag":563,"props":1373,"children":1374},{"class":565,"line":971},[1375],{"type":44,"tag":563,"props":1376,"children":1377},{},[1378],{"type":50,"value":1379},"android {\n",{"type":44,"tag":563,"props":1381,"children":1382},{"class":565,"line":1197},[1383],{"type":44,"tag":563,"props":1384,"children":1385},{},[1386],{"type":50,"value":1387},"    namespace = \"com.example.app\"\n",{"type":44,"tag":563,"props":1389,"children":1390},{"class":565,"line":1206},[1391],{"type":44,"tag":563,"props":1392,"children":1393},{},[1394],{"type":50,"value":1395},"    compileSdk = 35\n",{"type":44,"tag":563,"props":1397,"children":1398},{"class":565,"line":1215},[1399],{"type":44,"tag":563,"props":1400,"children":1401},{},[1402],{"type":50,"value":1403},"    defaultConfig {\n",{"type":44,"tag":563,"props":1405,"children":1406},{"class":565,"line":1223},[1407],{"type":44,"tag":563,"props":1408,"children":1409},{},[1410],{"type":50,"value":1411},"        applicationId = \"com.example.app\"\n",{"type":44,"tag":563,"props":1413,"children":1414},{"class":565,"line":1231},[1415],{"type":44,"tag":563,"props":1416,"children":1417},{},[1418],{"type":50,"value":608},{"type":44,"tag":563,"props":1420,"children":1422},{"class":565,"line":1421},14,[1423],{"type":44,"tag":563,"props":1424,"children":1425},{},[1426],{"type":50,"value":1427},"        targetSdk = 35\n",{"type":44,"tag":563,"props":1429,"children":1431},{"class":565,"line":1430},15,[1432],{"type":44,"tag":563,"props":1433,"children":1434},{},[1435],{"type":50,"value":1436},"        versionCode = 1\n",{"type":44,"tag":563,"props":1438,"children":1440},{"class":565,"line":1439},16,[1441],{"type":44,"tag":563,"props":1442,"children":1443},{},[1444],{"type":50,"value":1445},"        versionName = \"1.0\"\n",{"type":44,"tag":563,"props":1447,"children":1449},{"class":565,"line":1448},17,[1450],{"type":44,"tag":563,"props":1451,"children":1452},{},[1453],{"type":50,"value":617},{"type":44,"tag":563,"props":1455,"children":1457},{"class":565,"line":1456},18,[1458],{"type":44,"tag":563,"props":1459,"children":1460},{},[1461],{"type":50,"value":1462},"    buildFeatures { compose = true }\n",{"type":44,"tag":563,"props":1464,"children":1466},{"class":565,"line":1465},19,[1467],{"type":44,"tag":563,"props":1468,"children":1469},{},[1470],{"type":50,"value":626},{"type":44,"tag":563,"props":1472,"children":1474},{"class":565,"line":1473},20,[1475],{"type":44,"tag":563,"props":1476,"children":1477},{"emptyLinePlaceholder":1368},[1478],{"type":50,"value":1371},{"type":44,"tag":563,"props":1480,"children":1482},{"class":565,"line":1481},21,[1483],{"type":44,"tag":563,"props":1484,"children":1485},{},[1486],{"type":50,"value":1487},"dependencies {\n",{"type":44,"tag":563,"props":1489,"children":1491},{"class":565,"line":1490},22,[1492],{"type":44,"tag":563,"props":1493,"children":1494},{},[1495],{"type":50,"value":1496},"    implementation(projects.shared)  \u002F\u002F or whatever the shared module is named\n",{"type":44,"tag":563,"props":1498,"children":1500},{"class":565,"line":1499},23,[1501],{"type":44,"tag":563,"props":1502,"children":1503},{},[1504],{"type":50,"value":1505},"    implementation(libs.androidx.activity.compose)\n",{"type":44,"tag":563,"props":1507,"children":1509},{"class":565,"line":1508},24,[1510],{"type":44,"tag":563,"props":1511,"children":1512},{},[1513],{"type":50,"value":626},{"type":44,"tag":75,"props":1515,"children":1516},{},[1517,1522,1524,1529,1531,1537,1538],{"type":44,"tag":147,"props":1518,"children":1519},{},[1520],{"type":50,"value":1521},"Move Android entry point code",{"type":50,"value":1523}," from ",{"type":44,"tag":81,"props":1525,"children":1527},{"className":1526},[],[1528],{"type":50,"value":698},{"type":50,"value":1530}," to ",{"type":44,"tag":81,"props":1532,"children":1534},{"className":1533},[],[1535],{"type":50,"value":1536},"androidApp\u002Fsrc\u002Fmain\u002F",{"type":50,"value":551},{"type":44,"tag":402,"props":1539,"children":1540},{},[1541,1552,1594,1599],{"type":44,"tag":75,"props":1542,"children":1543},{},[1544,1550],{"type":44,"tag":81,"props":1545,"children":1547},{"className":1546},[],[1548],{"type":50,"value":1549},"MainActivity.kt",{"type":50,"value":1551}," (and any other Activities\u002FFragments)",{"type":44,"tag":75,"props":1553,"children":1554},{},[1555,1561,1563,1569,1571,1577,1579,1585,1587,1592],{"type":44,"tag":81,"props":1556,"children":1558},{"className":1557},[],[1559],{"type":50,"value":1560},"AndroidManifest.xml",{"type":50,"value":1562}," (app-level manifest with ",{"type":44,"tag":81,"props":1564,"children":1566},{"className":1565},[],[1567],{"type":50,"value":1568},"\u003Capplication>",{"type":50,"value":1570}," and launcher ",{"type":44,"tag":81,"props":1572,"children":1574},{"className":1573},[],[1575],{"type":50,"value":1576},"\u003Cactivity>",{"type":50,"value":1578},") — verify ",{"type":44,"tag":81,"props":1580,"children":1582},{"className":1581},[],[1583],{"type":50,"value":1584},"android:name",{"type":50,"value":1586}," on ",{"type":44,"tag":81,"props":1588,"children":1590},{"className":1589},[],[1591],{"type":50,"value":1576},{"type":50,"value":1593}," uses the fully qualified class name in its new location",{"type":44,"tag":75,"props":1595,"children":1596},{},[1597],{"type":50,"value":1598},"Android Application class if present",{"type":44,"tag":75,"props":1600,"children":1601},{},[1602],{"type":50,"value":1603},"App-level resources (launcher icons, theme, etc.)",{"type":44,"tag":75,"props":1605,"children":1606},{},[1607,1617,1618],{"type":44,"tag":147,"props":1608,"children":1609},{},[1610,1612],{"type":50,"value":1611},"Add to ",{"type":44,"tag":81,"props":1613,"children":1615},{"className":1614},[],[1616],{"type":50,"value":86},{"type":50,"value":497},{"type":44,"tag":81,"props":1619,"children":1621},{"className":1620},[],[1622],{"type":50,"value":1623},"include(\":androidApp\")",{"type":44,"tag":75,"props":1625,"children":1626},{},[1627,1637,1639],{"type":44,"tag":147,"props":1628,"children":1629},{},[1630,1632],{"type":50,"value":1631},"Add to root ",{"type":44,"tag":81,"props":1633,"children":1635},{"className":1634},[],[1636],{"type":50,"value":107},{"type":50,"value":1638},": plugin declarations with ",{"type":44,"tag":81,"props":1640,"children":1642},{"className":1641},[],[1643],{"type":50,"value":1644},"apply false",{"type":44,"tag":75,"props":1646,"children":1647},{},[1648,1653],{"type":44,"tag":147,"props":1649,"children":1650},{},[1651],{"type":50,"value":1652},"Convert original module",{"type":50,"value":1654}," from application to library using Path A steps",{"type":44,"tag":75,"props":1656,"children":1657},{},[1658,1663],{"type":44,"tag":147,"props":1659,"children":1660},{},[1661],{"type":50,"value":1662},"Ensure different namespaces",{"type":50,"value":1664},": app module and library module must have distinct namespaces",{"type":44,"tag":75,"props":1666,"children":1667},{},[1668,1673,1674,1680,1682,1688,1689,1695,1696],{"type":44,"tag":147,"props":1669,"children":1670},{},[1671],{"type":50,"value":1672},"Remove from shared module",{"type":50,"value":497},{"type":44,"tag":81,"props":1675,"children":1677},{"className":1676},[],[1678],{"type":50,"value":1679},"applicationId",{"type":50,"value":1681},", ",{"type":44,"tag":81,"props":1683,"children":1685},{"className":1684},[],[1686],{"type":50,"value":1687},"targetSdk",{"type":50,"value":1681},{"type":44,"tag":81,"props":1690,"children":1692},{"className":1691},[],[1693],{"type":50,"value":1694},"versionCode",{"type":50,"value":1681},{"type":44,"tag":81,"props":1697,"children":1699},{"className":1698},[],[1700],{"type":50,"value":1701},"versionName",{"type":44,"tag":75,"props":1703,"children":1704},{},[1705,1710,1712],{"type":44,"tag":147,"props":1706,"children":1707},{},[1708],{"type":50,"value":1709},"Update IDE run configurations",{"type":50,"value":1711},": change the module from the old module to ",{"type":44,"tag":81,"props":1713,"children":1715},{"className":1714},[],[1716],{"type":50,"value":1298},{"type":44,"tag":59,"props":1718,"children":1720},{"id":1719},"path-c-full-restructure-recommended",[1721],{"type":50,"value":1722},"Path C: Full Restructure (Recommended)",{"type":44,"tag":53,"props":1724,"children":1725},{},[1726,1728,1733],{"type":50,"value":1727},"Use this when the project has a monolithic module (typically ",{"type":44,"tag":81,"props":1729,"children":1731},{"className":1730},[],[1732],{"type":50,"value":430},{"type":50,"value":1734},") containing entry\npoints for multiple platforms. This is optional but aligns with the new JetBrains default.",{"type":44,"tag":53,"props":1736,"children":1737},{},[1738,1739,1744],{"type":50,"value":471},{"type":44,"tag":473,"props":1740,"children":1742},{"href":1741},"references\u002FMIGRATION-FULL-RESTRUCTURE.md",[1743],{"type":50,"value":1741},{"type":50,"value":1277},{"type":44,"tag":251,"props":1746,"children":1748},{"id":1747},"target-structure",[1749],{"type":50,"value":1750},"Target Structure",{"type":44,"tag":553,"props":1752,"children":1756},{"className":1753,"code":1755,"language":50},[1754],"language-text","project\u002F\n├── shared\u002F              ← KMP library (was composeApp), pure shared code\n├── androidApp\u002F          ← Android entry point only\n├── desktopApp\u002F          ← Desktop entry point only (if desktop target exists)\n├── webApp\u002F              ← Wasm\u002FJS entry point only (if web target exists)\n├── iosApp\u002F              ← iOS Xcode project (usually already separate)\n└── ...\n",[1757],{"type":44,"tag":81,"props":1758,"children":1759},{"__ignoreMap":557},[1760],{"type":50,"value":1755},{"type":44,"tag":251,"props":1762,"children":1764},{"id":1763},"steps",[1765],{"type":50,"value":1766},"Steps",{"type":44,"tag":71,"props":1768,"children":1769},{},[1770,1787,1883,1952,1997,2043],{"type":44,"tag":75,"props":1771,"children":1772},{},[1773,1778,1780,1785],{"type":44,"tag":147,"props":1774,"children":1775},{},[1776],{"type":50,"value":1777},"Apply Path B first",{"type":50,"value":1779}," — extract ",{"type":44,"tag":81,"props":1781,"children":1783},{"className":1782},[],[1784],{"type":50,"value":1298},{"type":50,"value":1786}," (mandatory for AGP 9.0)",{"type":44,"tag":75,"props":1788,"children":1789},{},[1790,1801,1803],{"type":44,"tag":147,"props":1791,"children":1792},{},[1793,1795],{"type":50,"value":1794},"Extract ",{"type":44,"tag":81,"props":1796,"children":1798},{"className":1797},[],[1799],{"type":50,"value":1800},"desktopApp",{"type":50,"value":1802}," (if desktop target exists):\n",{"type":44,"tag":402,"props":1804,"children":1805},{},[1806,1827,1853,1871],{"type":44,"tag":75,"props":1807,"children":1808},{},[1809,1811,1817,1819,1825],{"type":50,"value":1810},"Create module with ",{"type":44,"tag":81,"props":1812,"children":1814},{"className":1813},[],[1815],{"type":50,"value":1816},"org.jetbrains.compose",{"type":50,"value":1818}," and ",{"type":44,"tag":81,"props":1820,"children":1822},{"className":1821},[],[1823],{"type":50,"value":1824},"application {}",{"type":50,"value":1826}," plugin",{"type":44,"tag":75,"props":1828,"children":1829},{},[1830,1832,1838,1840,1846,1847],{"type":50,"value":1831},"Move ",{"type":44,"tag":81,"props":1833,"children":1835},{"className":1834},[],[1836],{"type":50,"value":1837},"main()",{"type":50,"value":1839}," function from ",{"type":44,"tag":81,"props":1841,"children":1843},{"className":1842},[],[1844],{"type":50,"value":1845},"desktopMain",{"type":50,"value":1530},{"type":44,"tag":81,"props":1848,"children":1850},{"className":1849},[],[1851],{"type":50,"value":1852},"desktopApp\u002Fsrc\u002Fmain\u002Fkotlin\u002F",{"type":44,"tag":75,"props":1854,"children":1855},{},[1856,1857,1863,1865],{"type":50,"value":1831},{"type":44,"tag":81,"props":1858,"children":1860},{"className":1859},[],[1861],{"type":50,"value":1862},"compose.desktop { application { ... } }",{"type":50,"value":1864}," config to ",{"type":44,"tag":81,"props":1866,"children":1868},{"className":1867},[],[1869],{"type":50,"value":1870},"desktopApp\u002Fbuild.gradle.kts",{"type":44,"tag":75,"props":1872,"children":1873},{},[1874,1876,1882],{"type":50,"value":1875},"Add dependency on ",{"type":44,"tag":81,"props":1877,"children":1879},{"className":1878},[],[1880],{"type":50,"value":1881},"shared",{"type":50,"value":1300},{"type":44,"tag":75,"props":1884,"children":1885},{},[1886,1896,1898],{"type":44,"tag":147,"props":1887,"children":1888},{},[1889,1890],{"type":50,"value":1794},{"type":44,"tag":81,"props":1891,"children":1893},{"className":1892},[],[1894],{"type":50,"value":1895},"webApp",{"type":50,"value":1897}," (if wasmJs\u002Fjs target exists):\n",{"type":44,"tag":402,"props":1899,"children":1900},{},[1901,1906,1931,1942],{"type":44,"tag":75,"props":1902,"children":1903},{},[1904],{"type":50,"value":1905},"Create module with appropriate Kotlin\u002FJS or Kotlin\u002FWasm configuration",{"type":44,"tag":75,"props":1907,"children":1908},{},[1909,1911,1917,1918,1924,1925],{"type":50,"value":1910},"Move web entry point from ",{"type":44,"tag":81,"props":1912,"children":1914},{"className":1913},[],[1915],{"type":50,"value":1916},"wasmJsMain",{"type":50,"value":1095},{"type":44,"tag":81,"props":1919,"children":1921},{"className":1920},[],[1922],{"type":50,"value":1923},"jsMain",{"type":50,"value":1530},{"type":44,"tag":81,"props":1926,"children":1928},{"className":1927},[],[1929],{"type":50,"value":1930},"webApp\u002Fsrc\u002FwasmJsMain\u002Fkotlin\u002F",{"type":44,"tag":75,"props":1932,"children":1933},{},[1934,1936],{"type":50,"value":1935},"Move browser\u002Fdistribution config to ",{"type":44,"tag":81,"props":1937,"children":1939},{"className":1938},[],[1940],{"type":50,"value":1941},"webApp\u002Fbuild.gradle.kts",{"type":44,"tag":75,"props":1943,"children":1944},{},[1945,1946,1951],{"type":50,"value":1875},{"type":44,"tag":81,"props":1947,"children":1949},{"className":1948},[],[1950],{"type":50,"value":1881},{"type":50,"value":1300},{"type":44,"tag":75,"props":1953,"children":1954},{},[1955,1960,1962,1968,1970],{"type":44,"tag":147,"props":1956,"children":1957},{},[1958],{"type":50,"value":1959},"iOS",{"type":50,"value":1961}," — typically already in a separate ",{"type":44,"tag":81,"props":1963,"children":1965},{"className":1964},[],[1966],{"type":50,"value":1967},"iosApp",{"type":50,"value":1969}," directory. Verify:\n",{"type":44,"tag":402,"props":1971,"children":1972},{},[1973,1992],{"type":44,"tag":75,"props":1974,"children":1975},{},[1976,1978,1984,1986,1991],{"type":50,"value":1977},"Framework export config (",{"type":44,"tag":81,"props":1979,"children":1981},{"className":1980},[],[1982],{"type":50,"value":1983},"binaries.framework",{"type":50,"value":1985},") stays in ",{"type":44,"tag":81,"props":1987,"children":1989},{"className":1988},[],[1990],{"type":50,"value":1881},{"type":50,"value":1300},{"type":44,"tag":75,"props":1993,"children":1994},{},[1995],{"type":50,"value":1996},"Xcode project references the correct framework path",{"type":44,"tag":75,"props":1998,"children":1999},{},[2000,2005,2006,2011,2012,2017,2018],{"type":44,"tag":147,"props":2001,"children":2002},{},[2003],{"type":50,"value":2004},"Rename module",{"type":50,"value":1523},{"type":44,"tag":81,"props":2007,"children":2009},{"className":2008},[],[2010],{"type":50,"value":430},{"type":50,"value":1530},{"type":44,"tag":81,"props":2013,"children":2015},{"className":2014},[],[2016],{"type":50,"value":1881},{"type":50,"value":551},{"type":44,"tag":402,"props":2019,"children":2020},{},[2021,2026,2038],{"type":44,"tag":75,"props":2022,"children":2023},{},[2024],{"type":50,"value":2025},"Rename directory",{"type":44,"tag":75,"props":2027,"children":2028},{},[2029,2031,2036],{"type":50,"value":2030},"Update ",{"type":44,"tag":81,"props":2032,"children":2034},{"className":2033},[],[2035],{"type":50,"value":86},{"type":50,"value":2037}," include",{"type":44,"tag":75,"props":2039,"children":2040},{},[2041],{"type":50,"value":2042},"Update all dependency references across modules",{"type":44,"tag":75,"props":2044,"children":2045},{},[2046,2051],{"type":44,"tag":147,"props":2047,"children":2048},{},[2049],{"type":50,"value":2050},"Clean up shared module",{"type":50,"value":2052},": remove all platform entry point code and app-specific config\nthat was moved to the platform app modules",{"type":44,"tag":251,"props":2054,"children":2056},{"id":2055},"variant-native-ui",[2057],{"type":50,"value":2058},"Variant: Native UI",{"type":44,"tag":53,"props":2060,"children":2061},{},[2062,2064,2069],{"type":50,"value":2063},"If some platforms use native UI (e.g., SwiftUI for iOS), split ",{"type":44,"tag":81,"props":2065,"children":2067},{"className":2066},[],[2068],{"type":50,"value":1881},{"type":50,"value":2070}," into:",{"type":44,"tag":402,"props":2072,"children":2073},{},[2074,2085],{"type":44,"tag":75,"props":2075,"children":2076},{},[2077,2083],{"type":44,"tag":81,"props":2078,"children":2080},{"className":2079},[],[2081],{"type":50,"value":2082},"sharedLogic",{"type":50,"value":2084}," — business logic consumed by ALL platforms",{"type":44,"tag":75,"props":2086,"children":2087},{},[2088,2094],{"type":44,"tag":81,"props":2089,"children":2091},{"className":2090},[],[2092],{"type":50,"value":2093},"sharedUI",{"type":50,"value":2095}," — Compose Multiplatform UI consumed only by platforms using shared UI",{"type":44,"tag":251,"props":2097,"children":2099},{"id":2098},"variant-server",[2100],{"type":50,"value":2101},"Variant: Server",{"type":44,"tag":53,"props":2103,"children":2104},{},[2105],{"type":50,"value":2106},"If the project includes a server target:",{"type":44,"tag":402,"props":2108,"children":2109},{},[2110,2123,2136],{"type":44,"tag":75,"props":2111,"children":2112},{},[2113,2115,2121],{"type":50,"value":2114},"Add ",{"type":44,"tag":81,"props":2116,"children":2118},{"className":2117},[],[2119],{"type":50,"value":2120},"server",{"type":50,"value":2122}," module at the root",{"type":44,"tag":75,"props":2124,"children":2125},{},[2126,2128,2134],{"type":50,"value":2127},"Move all client modules under an ",{"type":44,"tag":81,"props":2129,"children":2131},{"className":2130},[],[2132],{"type":50,"value":2133},"app\u002F",{"type":50,"value":2135}," directory",{"type":44,"tag":75,"props":2137,"children":2138},{},[2139,2140,2146],{"type":50,"value":2114},{"type":44,"tag":81,"props":2141,"children":2143},{"className":2142},[],[2144],{"type":50,"value":2145},"core",{"type":50,"value":2147}," module for code shared between server and client (models, validation)",{"type":44,"tag":59,"props":2149,"children":2151},{"id":2150},"version-updates",[2152],{"type":50,"value":2153},"Version Updates",{"type":44,"tag":53,"props":2155,"children":2156},{},[2157],{"type":50,"value":2158},"These are required regardless of migration path:",{"type":44,"tag":71,"props":2160,"children":2161},{},[2162,2197,2325,2335,2354],{"type":44,"tag":75,"props":2163,"children":2164},{},[2165,2170,2172],{"type":44,"tag":147,"props":2166,"children":2167},{},[2168],{"type":50,"value":2169},"Gradle wrapper",{"type":50,"value":2171}," — update to 9.1.0+:",{"type":44,"tag":553,"props":2173,"children":2177},{"className":2174,"code":2175,"language":2176,"meta":557,"style":557},"language-properties shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","# gradle\u002Fwrapper\u002Fgradle-wrapper.properties\ndistributionUrl=https\\:\u002F\u002Fservices.gradle.org\u002Fdistributions\u002Fgradle-9.1.0-bin.zip\n","properties",[2178],{"type":44,"tag":81,"props":2179,"children":2180},{"__ignoreMap":557},[2181,2189],{"type":44,"tag":563,"props":2182,"children":2183},{"class":565,"line":566},[2184],{"type":44,"tag":563,"props":2185,"children":2186},{},[2187],{"type":50,"value":2188},"# gradle\u002Fwrapper\u002Fgradle-wrapper.properties\n",{"type":44,"tag":563,"props":2190,"children":2191},{"class":565,"line":575},[2192],{"type":44,"tag":563,"props":2193,"children":2194},{},[2195],{"type":50,"value":2196},"distributionUrl=https\\:\u002F\u002Fservices.gradle.org\u002Fdistributions\u002Fgradle-9.1.0-bin.zip\n",{"type":44,"tag":75,"props":2198,"children":2199},{},[2200,2205,2207,2211,2213,2218,2220,2268,2271,2273,2279,2281,2286,2288],{"type":44,"tag":147,"props":2201,"children":2202},{},[2203],{"type":50,"value":2204},"AGP version",{"type":50,"value":2206}," — update to 9.0.0+ and add the KMP library plugin.",{"type":44,"tag":2208,"props":2209,"children":2210},"br",{},[],{"type":50,"value":2212},"With version catalog (",{"type":44,"tag":81,"props":2214,"children":2216},{"className":2215},[],[2217],{"type":50,"value":120},{"type":50,"value":2219},"):",{"type":44,"tag":553,"props":2221,"children":2225},{"className":2222,"code":2223,"language":2224,"meta":557,"style":557},"language-toml shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","[versions]\nagp = \"9.0.1\"\n\n[plugins]\nandroid-kotlin-multiplatform-library = { id = \"com.android.kotlin.multiplatform.library\", version.ref = \"agp\" }\n","toml",[2226],{"type":44,"tag":81,"props":2227,"children":2228},{"__ignoreMap":557},[2229,2237,2245,2252,2260],{"type":44,"tag":563,"props":2230,"children":2231},{"class":565,"line":566},[2232],{"type":44,"tag":563,"props":2233,"children":2234},{},[2235],{"type":50,"value":2236},"[versions]\n",{"type":44,"tag":563,"props":2238,"children":2239},{"class":565,"line":575},[2240],{"type":44,"tag":563,"props":2241,"children":2242},{},[2243],{"type":50,"value":2244},"agp = \"9.0.1\"\n",{"type":44,"tag":563,"props":2246,"children":2247},{"class":565,"line":584},[2248],{"type":44,"tag":563,"props":2249,"children":2250},{"emptyLinePlaceholder":1368},[2251],{"type":50,"value":1371},{"type":44,"tag":563,"props":2253,"children":2254},{"class":565,"line":593},[2255],{"type":44,"tag":563,"props":2256,"children":2257},{},[2258],{"type":50,"value":2259},"[plugins]\n",{"type":44,"tag":563,"props":2261,"children":2262},{"class":565,"line":602},[2263],{"type":44,"tag":563,"props":2264,"children":2265},{},[2266],{"type":50,"value":2267},"android-kotlin-multiplatform-library = { id = \"com.android.kotlin.multiplatform.library\", version.ref = \"agp\" }\n",{"type":44,"tag":2208,"props":2269,"children":2270},{},[],{"type":50,"value":2272},"Without version catalog — update ",{"type":44,"tag":81,"props":2274,"children":2276},{"className":2275},[],[2277],{"type":50,"value":2278},"com.android.*",{"type":50,"value":2280}," plugin versions and add in root ",{"type":44,"tag":81,"props":2282,"children":2284},{"className":2283},[],[2285],{"type":50,"value":107},{"type":50,"value":2287},":",{"type":44,"tag":553,"props":2289,"children":2291},{"className":555,"code":2290,"language":8,"meta":557,"style":557},"plugins {\n    id(\"com.android.application\") version \"9.0.1\" apply false\n    id(\"com.android.kotlin.multiplatform.library\") version \"9.0.1\" apply false\n}\n",[2292],{"type":44,"tag":81,"props":2293,"children":2294},{"__ignoreMap":557},[2295,2302,2310,2318],{"type":44,"tag":563,"props":2296,"children":2297},{"class":565,"line":566},[2298],{"type":44,"tag":563,"props":2299,"children":2300},{},[2301],{"type":50,"value":1323},{"type":44,"tag":563,"props":2303,"children":2304},{"class":565,"line":575},[2305],{"type":44,"tag":563,"props":2306,"children":2307},{},[2308],{"type":50,"value":2309},"    id(\"com.android.application\") version \"9.0.1\" apply false\n",{"type":44,"tag":563,"props":2311,"children":2312},{"class":565,"line":584},[2313],{"type":44,"tag":563,"props":2314,"children":2315},{},[2316],{"type":50,"value":2317},"    id(\"com.android.kotlin.multiplatform.library\") version \"9.0.1\" apply false\n",{"type":44,"tag":563,"props":2319,"children":2320},{"class":565,"line":593},[2321],{"type":44,"tag":563,"props":2322,"children":2323},{},[2324],{"type":50,"value":626},{"type":44,"tag":75,"props":2326,"children":2327},{},[2328,2333],{"type":44,"tag":147,"props":2329,"children":2330},{},[2331],{"type":50,"value":2332},"JDK",{"type":50,"value":2334}," — ensure JDK 17+ is used (required by AGP 9.0)",{"type":44,"tag":75,"props":2336,"children":2337},{},[2338,2343,2345],{"type":44,"tag":147,"props":2339,"children":2340},{},[2341],{"type":50,"value":2342},"SDK Build Tools",{"type":50,"value":2344}," — update to 36.0.0:",{"type":44,"tag":553,"props":2346,"children":2349},{"className":2347,"code":2348,"language":50},[1754],"Install via SDK Manager or configure in android { buildToolsVersion = \"36.0.0\" }\n",[2350],{"type":44,"tag":81,"props":2351,"children":2352},{"__ignoreMap":557},[2353],{"type":50,"value":2348},{"type":44,"tag":75,"props":2355,"children":2356},{},[2357,2362],{"type":44,"tag":147,"props":2358,"children":2359},{},[2360],{"type":50,"value":2361},"Review gradle.properties",{"type":50,"value":2363}," — remove error-causing properties and review changed defaults (see \"Gradle Properties Default Changes\" section)",{"type":44,"tag":59,"props":2365,"children":2367},{"id":2366},"built-in-kotlin-migration",[2368],{"type":50,"value":2369},"Built-in Kotlin Migration",{"type":44,"tag":53,"props":2371,"children":2372},{},[2373,2375,2380,2381,2386,2388,2393],{"type":50,"value":2374},"AGP 9.0 enables built-in Kotlin support by default for all ",{"type":44,"tag":81,"props":2376,"children":2378},{"className":2377},[],[2379],{"type":50,"value":337},{"type":50,"value":1818},{"type":44,"tag":81,"props":2382,"children":2384},{"className":2383},[],[2385],{"type":50,"value":309},{"type":50,"value":2387},"\nmodules. The ",{"type":44,"tag":81,"props":2389,"children":2391},{"className":2390},[],[2392],{"type":50,"value":211},{"type":50,"value":2394}," plugin is no longer needed and will conflict if applied.",{"type":44,"tag":53,"props":2396,"children":2397},{},[2398,2403,2405,2411,2412,2417],{"type":44,"tag":147,"props":2399,"children":2400},{},[2401],{"type":50,"value":2402},"Important:",{"type":50,"value":2404}," Built-in Kotlin does NOT replace KMP support. KMP library modules still need\n",{"type":44,"tag":81,"props":2406,"children":2408},{"className":2407},[],[2409],{"type":50,"value":2410},"org.jetbrains.kotlin.multiplatform",{"type":50,"value":303},{"type":44,"tag":81,"props":2413,"children":2415},{"className":2414},[],[2416],{"type":50,"value":510},{"type":50,"value":466},{"type":44,"tag":251,"props":2419,"children":2421},{"id":2420},"step-1-remove-kotlin-android-plugin",[2422],{"type":50,"value":2423},"Step 1: Remove kotlin-android Plugin",{"type":44,"tag":53,"props":2425,"children":2426},{},[2427,2429,2434],{"type":50,"value":2428},"Remove from ",{"type":44,"tag":147,"props":2430,"children":2431},{},[2432],{"type":50,"value":2433},"all",{"type":50,"value":2435}," module-level and root-level build files:",{"type":44,"tag":553,"props":2437,"children":2439},{"className":555,"code":2438,"language":8,"meta":557,"style":557},"\u002F\u002F Remove from module build.gradle.kts\nplugins {\n    \u002F\u002F REMOVE: alias(libs.plugins.kotlin.android)\n    \u002F\u002F REMOVE: id(\"org.jetbrains.kotlin.android\")\n}\n\n\u002F\u002F Remove from root build.gradle.kts\nplugins {\n    \u002F\u002F REMOVE: alias(libs.plugins.kotlin.android) apply false\n}\n",[2440],{"type":44,"tag":81,"props":2441,"children":2442},{"__ignoreMap":557},[2443,2451,2458,2466,2474,2481,2488,2496,2503,2511],{"type":44,"tag":563,"props":2444,"children":2445},{"class":565,"line":566},[2446],{"type":44,"tag":563,"props":2447,"children":2448},{},[2449],{"type":50,"value":2450},"\u002F\u002F Remove from module build.gradle.kts\n",{"type":44,"tag":563,"props":2452,"children":2453},{"class":565,"line":575},[2454],{"type":44,"tag":563,"props":2455,"children":2456},{},[2457],{"type":50,"value":1323},{"type":44,"tag":563,"props":2459,"children":2460},{"class":565,"line":584},[2461],{"type":44,"tag":563,"props":2462,"children":2463},{},[2464],{"type":50,"value":2465},"    \u002F\u002F REMOVE: alias(libs.plugins.kotlin.android)\n",{"type":44,"tag":563,"props":2467,"children":2468},{"class":565,"line":593},[2469],{"type":44,"tag":563,"props":2470,"children":2471},{},[2472],{"type":50,"value":2473},"    \u002F\u002F REMOVE: id(\"org.jetbrains.kotlin.android\")\n",{"type":44,"tag":563,"props":2475,"children":2476},{"class":565,"line":602},[2477],{"type":44,"tag":563,"props":2478,"children":2479},{},[2480],{"type":50,"value":626},{"type":44,"tag":563,"props":2482,"children":2483},{"class":565,"line":611},[2484],{"type":44,"tag":563,"props":2485,"children":2486},{"emptyLinePlaceholder":1368},[2487],{"type":50,"value":1371},{"type":44,"tag":563,"props":2489,"children":2490},{"class":565,"line":620},[2491],{"type":44,"tag":563,"props":2492,"children":2493},{},[2494],{"type":50,"value":2495},"\u002F\u002F Remove from root build.gradle.kts\n",{"type":44,"tag":563,"props":2497,"children":2498},{"class":565,"line":971},[2499],{"type":44,"tag":563,"props":2500,"children":2501},{},[2502],{"type":50,"value":1323},{"type":44,"tag":563,"props":2504,"children":2505},{"class":565,"line":1197},[2506],{"type":44,"tag":563,"props":2507,"children":2508},{},[2509],{"type":50,"value":2510},"    \u002F\u002F REMOVE: alias(libs.plugins.kotlin.android) apply false\n",{"type":44,"tag":563,"props":2512,"children":2513},{"class":565,"line":1206},[2514],{"type":44,"tag":563,"props":2515,"children":2516},{},[2517],{"type":50,"value":626},{"type":44,"tag":53,"props":2519,"children":2520},{},[2521,2523,2528],{"type":50,"value":2522},"Remove from version catalog (",{"type":44,"tag":81,"props":2524,"children":2526},{"className":2525},[],[2527],{"type":50,"value":120},{"type":50,"value":2219},{"type":44,"tag":553,"props":2530,"children":2532},{"className":2222,"code":2531,"language":2224,"meta":557,"style":557},"[plugins]\n# REMOVE: kotlin-android = { id = \"org.jetbrains.kotlin.android\", version.ref = \"kotlin\" }\n",[2533],{"type":44,"tag":81,"props":2534,"children":2535},{"__ignoreMap":557},[2536,2543],{"type":44,"tag":563,"props":2537,"children":2538},{"class":565,"line":566},[2539],{"type":44,"tag":563,"props":2540,"children":2541},{},[2542],{"type":50,"value":2259},{"type":44,"tag":563,"props":2544,"children":2545},{"class":565,"line":575},[2546],{"type":44,"tag":563,"props":2547,"children":2548},{},[2549],{"type":50,"value":2550},"# REMOVE: kotlin-android = { id = \"org.jetbrains.kotlin.android\", version.ref = \"kotlin\" }\n",{"type":44,"tag":251,"props":2552,"children":2554},{"id":2553},"step-2-migrate-kapt-to-ksp-or-legacy-kapt",[2555],{"type":50,"value":2556},"Step 2: Migrate kapt to KSP or legacy-kapt",{"type":44,"tag":53,"props":2558,"children":2559},{},[2560,2562,2567,2569,2574],{"type":50,"value":2561},"The ",{"type":44,"tag":81,"props":2563,"children":2565},{"className":2564},[],[2566],{"type":50,"value":223},{"type":50,"value":2568}," plugin is ",{"type":44,"tag":147,"props":2570,"children":2571},{},[2572],{"type":50,"value":2573},"incompatible",{"type":50,"value":2575}," with built-in Kotlin.",{"type":44,"tag":53,"props":2577,"children":2578},{},[2579,2584],{"type":44,"tag":147,"props":2580,"children":2581},{},[2582],{"type":50,"value":2583},"Preferred: Migrate to KSP",{"type":50,"value":2585}," — see the KSP migration guide for each annotation processor.",{"type":44,"tag":53,"props":2587,"children":2588},{},[2589,2599],{"type":44,"tag":147,"props":2590,"children":2591},{},[2592,2594],{"type":50,"value":2593},"Fallback: Use ",{"type":44,"tag":81,"props":2595,"children":2597},{"className":2596},[],[2598],{"type":50,"value":231},{"type":50,"value":2600}," (same version as AGP):",{"type":44,"tag":553,"props":2602,"children":2604},{"className":2222,"code":2603,"language":2224,"meta":557,"style":557},"# gradle\u002Flibs.versions.toml\n[plugins]\nlegacy-kapt = { id = \"com.android.legacy-kapt\", version.ref = \"agp\" }\n",[2605],{"type":44,"tag":81,"props":2606,"children":2607},{"__ignoreMap":557},[2608,2616,2623],{"type":44,"tag":563,"props":2609,"children":2610},{"class":565,"line":566},[2611],{"type":44,"tag":563,"props":2612,"children":2613},{},[2614],{"type":50,"value":2615},"# gradle\u002Flibs.versions.toml\n",{"type":44,"tag":563,"props":2617,"children":2618},{"class":565,"line":575},[2619],{"type":44,"tag":563,"props":2620,"children":2621},{},[2622],{"type":50,"value":2259},{"type":44,"tag":563,"props":2624,"children":2625},{"class":565,"line":584},[2626],{"type":44,"tag":563,"props":2627,"children":2628},{},[2629],{"type":50,"value":2630},"legacy-kapt = { id = \"com.android.legacy-kapt\", version.ref = \"agp\" }\n",{"type":44,"tag":553,"props":2632,"children":2634},{"className":555,"code":2633,"language":8,"meta":557,"style":557},"\u002F\u002F Module build.gradle.kts — replace kotlin-kapt with legacy-kapt\nplugins {\n    \u002F\u002F REMOVE: alias(libs.plugins.kotlin.kapt)\n    alias(libs.plugins.legacy.kapt)\n}\n",[2635],{"type":44,"tag":81,"props":2636,"children":2637},{"__ignoreMap":557},[2638,2646,2653,2661,2669],{"type":44,"tag":563,"props":2639,"children":2640},{"class":565,"line":566},[2641],{"type":44,"tag":563,"props":2642,"children":2643},{},[2644],{"type":50,"value":2645},"\u002F\u002F Module build.gradle.kts — replace kotlin-kapt with legacy-kapt\n",{"type":44,"tag":563,"props":2647,"children":2648},{"class":565,"line":575},[2649],{"type":44,"tag":563,"props":2650,"children":2651},{},[2652],{"type":50,"value":1323},{"type":44,"tag":563,"props":2654,"children":2655},{"class":565,"line":584},[2656],{"type":44,"tag":563,"props":2657,"children":2658},{},[2659],{"type":50,"value":2660},"    \u002F\u002F REMOVE: alias(libs.plugins.kotlin.kapt)\n",{"type":44,"tag":563,"props":2662,"children":2663},{"class":565,"line":593},[2664],{"type":44,"tag":563,"props":2665,"children":2666},{},[2667],{"type":50,"value":2668},"    alias(libs.plugins.legacy.kapt)\n",{"type":44,"tag":563,"props":2670,"children":2671},{"class":565,"line":602},[2672],{"type":44,"tag":563,"props":2673,"children":2674},{},[2675],{"type":50,"value":626},{"type":44,"tag":251,"props":2677,"children":2679},{"id":2678},"step-3-migrate-kotlinoptions-to-compileroptions",[2680],{"type":50,"value":2681},"Step 3: Migrate kotlinOptions to compilerOptions",{"type":44,"tag":53,"props":2683,"children":2684},{},[2685,2687,2693,2695,2701],{"type":50,"value":2686},"For pure Android modules (non-KMP), migrate ",{"type":44,"tag":81,"props":2688,"children":2690},{"className":2689},[],[2691],{"type":50,"value":2692},"android.kotlinOptions {}",{"type":50,"value":2694}," to the top-level\n",{"type":44,"tag":81,"props":2696,"children":2698},{"className":2697},[],[2699],{"type":50,"value":2700},"kotlin.compilerOptions {}",{"type":50,"value":2287},{"type":44,"tag":553,"props":2703,"children":2705},{"className":555,"code":2704,"language":8,"meta":557,"style":557},"\u002F\u002F Old\nandroid {\n    kotlinOptions {\n        jvmTarget = \"11\"\n        languageVersion = \"2.0\"\n        freeCompilerArgs += listOf(\"-Xopt-in=kotlin.RequiresOptIn\")\n    }\n}\n\n\u002F\u002F New\nkotlin {\n    compilerOptions {\n        jvmTarget.set(org.jetbrains.kotlin.gradle.dsl.JvmTarget.JVM_11)\n        languageVersion.set(org.jetbrains.kotlin.gradle.dsl.KotlinVersion.KOTLIN_2_0)\n        optIn.add(\"kotlin.RequiresOptIn\")\n    }\n}\n",[2706],{"type":44,"tag":81,"props":2707,"children":2708},{"__ignoreMap":557},[2709,2717,2724,2732,2740,2748,2756,2763,2770,2777,2785,2792,2800,2808,2816,2824,2831],{"type":44,"tag":563,"props":2710,"children":2711},{"class":565,"line":566},[2712],{"type":44,"tag":563,"props":2713,"children":2714},{},[2715],{"type":50,"value":2716},"\u002F\u002F Old\n",{"type":44,"tag":563,"props":2718,"children":2719},{"class":565,"line":575},[2720],{"type":44,"tag":563,"props":2721,"children":2722},{},[2723],{"type":50,"value":1379},{"type":44,"tag":563,"props":2725,"children":2726},{"class":565,"line":584},[2727],{"type":44,"tag":563,"props":2728,"children":2729},{},[2730],{"type":50,"value":2731},"    kotlinOptions {\n",{"type":44,"tag":563,"props":2733,"children":2734},{"class":565,"line":593},[2735],{"type":44,"tag":563,"props":2736,"children":2737},{},[2738],{"type":50,"value":2739},"        jvmTarget = \"11\"\n",{"type":44,"tag":563,"props":2741,"children":2742},{"class":565,"line":602},[2743],{"type":44,"tag":563,"props":2744,"children":2745},{},[2746],{"type":50,"value":2747},"        languageVersion = \"2.0\"\n",{"type":44,"tag":563,"props":2749,"children":2750},{"class":565,"line":611},[2751],{"type":44,"tag":563,"props":2752,"children":2753},{},[2754],{"type":50,"value":2755},"        freeCompilerArgs += listOf(\"-Xopt-in=kotlin.RequiresOptIn\")\n",{"type":44,"tag":563,"props":2757,"children":2758},{"class":565,"line":620},[2759],{"type":44,"tag":563,"props":2760,"children":2761},{},[2762],{"type":50,"value":617},{"type":44,"tag":563,"props":2764,"children":2765},{"class":565,"line":971},[2766],{"type":44,"tag":563,"props":2767,"children":2768},{},[2769],{"type":50,"value":626},{"type":44,"tag":563,"props":2771,"children":2772},{"class":565,"line":1197},[2773],{"type":44,"tag":563,"props":2774,"children":2775},{"emptyLinePlaceholder":1368},[2776],{"type":50,"value":1371},{"type":44,"tag":563,"props":2778,"children":2779},{"class":565,"line":1206},[2780],{"type":44,"tag":563,"props":2781,"children":2782},{},[2783],{"type":50,"value":2784},"\u002F\u002F New\n",{"type":44,"tag":563,"props":2786,"children":2787},{"class":565,"line":1215},[2788],{"type":44,"tag":563,"props":2789,"children":2790},{},[2791],{"type":50,"value":572},{"type":44,"tag":563,"props":2793,"children":2794},{"class":565,"line":1223},[2795],{"type":44,"tag":563,"props":2796,"children":2797},{},[2798],{"type":50,"value":2799},"    compilerOptions {\n",{"type":44,"tag":563,"props":2801,"children":2802},{"class":565,"line":1231},[2803],{"type":44,"tag":563,"props":2804,"children":2805},{},[2806],{"type":50,"value":2807},"        jvmTarget.set(org.jetbrains.kotlin.gradle.dsl.JvmTarget.JVM_11)\n",{"type":44,"tag":563,"props":2809,"children":2810},{"class":565,"line":1421},[2811],{"type":44,"tag":563,"props":2812,"children":2813},{},[2814],{"type":50,"value":2815},"        languageVersion.set(org.jetbrains.kotlin.gradle.dsl.KotlinVersion.KOTLIN_2_0)\n",{"type":44,"tag":563,"props":2817,"children":2818},{"class":565,"line":1430},[2819],{"type":44,"tag":563,"props":2820,"children":2821},{},[2822],{"type":50,"value":2823},"        optIn.add(\"kotlin.RequiresOptIn\")\n",{"type":44,"tag":563,"props":2825,"children":2826},{"class":565,"line":1439},[2827],{"type":44,"tag":563,"props":2828,"children":2829},{},[2830],{"type":50,"value":617},{"type":44,"tag":563,"props":2832,"children":2833},{"class":565,"line":1448},[2834],{"type":44,"tag":563,"props":2835,"children":2836},{},[2837],{"type":50,"value":626},{"type":44,"tag":53,"props":2839,"children":2840},{},[2841,2846,2848,2854,2856,2862,2864,2870],{"type":44,"tag":147,"props":2842,"children":2843},{},[2844],{"type":50,"value":2845},"Note:",{"type":50,"value":2847}," With built-in Kotlin, ",{"type":44,"tag":81,"props":2849,"children":2851},{"className":2850},[],[2852],{"type":50,"value":2853},"jvmTarget",{"type":50,"value":2855}," defaults to ",{"type":44,"tag":81,"props":2857,"children":2859},{"className":2858},[],[2860],{"type":50,"value":2861},"android.compileOptions.targetCompatibility",{"type":50,"value":2863},", so it may be optional if you already set ",{"type":44,"tag":81,"props":2865,"children":2867},{"className":2866},[],[2868],{"type":50,"value":2869},"compileOptions",{"type":50,"value":466},{"type":44,"tag":251,"props":2872,"children":2874},{"id":2873},"step-4-migrate-kotlinsourcesets-to-androidsourcesets",[2875],{"type":50,"value":2876},"Step 4: Migrate kotlin.sourceSets to android.sourceSets",{"type":44,"tag":53,"props":2878,"children":2879},{},[2880,2882,2888,2890,2895],{"type":50,"value":2881},"With built-in Kotlin, only ",{"type":44,"tag":81,"props":2883,"children":2885},{"className":2884},[],[2886],{"type":50,"value":2887},"android.sourceSets {}",{"type":50,"value":2889}," with the ",{"type":44,"tag":81,"props":2891,"children":2893},{"className":2892},[],[2894],{"type":50,"value":8},{"type":50,"value":2896}," set is supported:",{"type":44,"tag":553,"props":2898,"children":2900},{"className":555,"code":2899,"language":8,"meta":557,"style":557},"\u002F\u002F NOT SUPPORTED with built-in Kotlin:\nkotlin.sourceSets.named(\"main\") {\n    kotlin.srcDir(\"additionalSourceDirectory\u002Fkotlin\")\n}\n\n\u002F\u002F Correct:\nandroid.sourceSets.named(\"main\") {\n    kotlin.directories += \"additionalSourceDirectory\u002Fkotlin\"\n}\n",[2901],{"type":44,"tag":81,"props":2902,"children":2903},{"__ignoreMap":557},[2904,2912,2920,2928,2935,2942,2950,2958,2966],{"type":44,"tag":563,"props":2905,"children":2906},{"class":565,"line":566},[2907],{"type":44,"tag":563,"props":2908,"children":2909},{},[2910],{"type":50,"value":2911},"\u002F\u002F NOT SUPPORTED with built-in Kotlin:\n",{"type":44,"tag":563,"props":2913,"children":2914},{"class":565,"line":575},[2915],{"type":44,"tag":563,"props":2916,"children":2917},{},[2918],{"type":50,"value":2919},"kotlin.sourceSets.named(\"main\") {\n",{"type":44,"tag":563,"props":2921,"children":2922},{"class":565,"line":584},[2923],{"type":44,"tag":563,"props":2924,"children":2925},{},[2926],{"type":50,"value":2927},"    kotlin.srcDir(\"additionalSourceDirectory\u002Fkotlin\")\n",{"type":44,"tag":563,"props":2929,"children":2930},{"class":565,"line":593},[2931],{"type":44,"tag":563,"props":2932,"children":2933},{},[2934],{"type":50,"value":626},{"type":44,"tag":563,"props":2936,"children":2937},{"class":565,"line":602},[2938],{"type":44,"tag":563,"props":2939,"children":2940},{"emptyLinePlaceholder":1368},[2941],{"type":50,"value":1371},{"type":44,"tag":563,"props":2943,"children":2944},{"class":565,"line":611},[2945],{"type":44,"tag":563,"props":2946,"children":2947},{},[2948],{"type":50,"value":2949},"\u002F\u002F Correct:\n",{"type":44,"tag":563,"props":2951,"children":2952},{"class":565,"line":620},[2953],{"type":44,"tag":563,"props":2954,"children":2955},{},[2956],{"type":50,"value":2957},"android.sourceSets.named(\"main\") {\n",{"type":44,"tag":563,"props":2959,"children":2960},{"class":565,"line":971},[2961],{"type":44,"tag":563,"props":2962,"children":2963},{},[2964],{"type":50,"value":2965},"    kotlin.directories += \"additionalSourceDirectory\u002Fkotlin\"\n",{"type":44,"tag":563,"props":2967,"children":2968},{"class":565,"line":1197},[2969],{"type":44,"tag":563,"props":2970,"children":2971},{},[2972],{"type":50,"value":626},{"type":44,"tag":53,"props":2974,"children":2975},{},[2976],{"type":50,"value":2977},"For generated sources, use the Variant API:",{"type":44,"tag":553,"props":2979,"children":2981},{"className":555,"code":2980,"language":8,"meta":557,"style":557},"androidComponents.onVariants { variant ->\n    variant.sources.kotlin!!.addStaticSourceDirectory(\"additionalSourceDirectory\u002Fkotlin\")\n}\n",[2982],{"type":44,"tag":81,"props":2983,"children":2984},{"__ignoreMap":557},[2985,2993,3001],{"type":44,"tag":563,"props":2986,"children":2987},{"class":565,"line":566},[2988],{"type":44,"tag":563,"props":2989,"children":2990},{},[2991],{"type":50,"value":2992},"androidComponents.onVariants { variant ->\n",{"type":44,"tag":563,"props":2994,"children":2995},{"class":565,"line":575},[2996],{"type":44,"tag":563,"props":2997,"children":2998},{},[2999],{"type":50,"value":3000},"    variant.sources.kotlin!!.addStaticSourceDirectory(\"additionalSourceDirectory\u002Fkotlin\")\n",{"type":44,"tag":563,"props":3002,"children":3003},{"class":565,"line":584},[3004],{"type":44,"tag":563,"props":3005,"children":3006},{},[3007],{"type":50,"value":626},{"type":44,"tag":251,"props":3009,"children":3011},{"id":3010},"per-module-migration-strategy",[3012],{"type":50,"value":3013},"Per-Module Migration Strategy",{"type":44,"tag":53,"props":3015,"children":3016},{},[3017],{"type":50,"value":3018},"For large projects, migrate module-by-module:",{"type":44,"tag":71,"props":3020,"children":3021},{},[3022,3040,3074,3079],{"type":44,"tag":75,"props":3023,"children":3024},{},[3025,3027,3033,3035],{"type":50,"value":3026},"Disable globally: ",{"type":44,"tag":81,"props":3028,"children":3030},{"className":3029},[],[3031],{"type":50,"value":3032},"android.builtInKotlin=false",{"type":50,"value":3034}," in ",{"type":44,"tag":81,"props":3036,"children":3038},{"className":3037},[],[3039],{"type":50,"value":190},{"type":44,"tag":75,"props":3041,"children":3042},{},[3043,3045],{"type":50,"value":3044},"Enable per migrated module by applying the opt-in plugin:\n",{"type":44,"tag":553,"props":3046,"children":3048},{"className":555,"code":3047,"language":8,"meta":557,"style":557},"plugins {\n    id(\"com.android.built-in-kotlin\") version \"AGP_VERSION\"\n}\n",[3049],{"type":44,"tag":81,"props":3050,"children":3051},{"__ignoreMap":557},[3052,3059,3067],{"type":44,"tag":563,"props":3053,"children":3054},{"class":565,"line":566},[3055],{"type":44,"tag":563,"props":3056,"children":3057},{},[3058],{"type":50,"value":1323},{"type":44,"tag":563,"props":3060,"children":3061},{"class":565,"line":575},[3062],{"type":44,"tag":563,"props":3063,"children":3064},{},[3065],{"type":50,"value":3066},"    id(\"com.android.built-in-kotlin\") version \"AGP_VERSION\"\n",{"type":44,"tag":563,"props":3068,"children":3069},{"class":565,"line":584},[3070],{"type":44,"tag":563,"props":3071,"children":3072},{},[3073],{"type":50,"value":626},{"type":44,"tag":75,"props":3075,"children":3076},{},[3077],{"type":50,"value":3078},"Follow Steps 1-4 for that module",{"type":44,"tag":75,"props":3080,"children":3081},{},[3082,3084,3089,3091,3097],{"type":50,"value":3083},"Once all modules are migrated, remove ",{"type":44,"tag":81,"props":3085,"children":3087},{"className":3086},[],[3088],{"type":50,"value":3032},{"type":50,"value":3090}," and all ",{"type":44,"tag":81,"props":3092,"children":3094},{"className":3093},[],[3095],{"type":50,"value":3096},"com.android.built-in-kotlin",{"type":50,"value":3098}," plugins",{"type":44,"tag":251,"props":3100,"children":3102},{"id":3101},"optional-disable-kotlin-for-non-kotlin-modules",[3103],{"type":50,"value":3104},"Optional: Disable Kotlin for Non-Kotlin Modules",{"type":44,"tag":53,"props":3106,"children":3107},{},[3108,3110,3115],{"type":50,"value":3109},"For modules that contain ",{"type":44,"tag":147,"props":3111,"children":3112},{},[3113],{"type":50,"value":3114},"no Kotlin sources",{"type":50,"value":3116},", disable built-in Kotlin to save build time:",{"type":44,"tag":553,"props":3118,"children":3120},{"className":555,"code":3119,"language":8,"meta":557,"style":557},"android {\n    enableKotlin = false\n}\n",[3121],{"type":44,"tag":81,"props":3122,"children":3123},{"__ignoreMap":557},[3124,3131,3139],{"type":44,"tag":563,"props":3125,"children":3126},{"class":565,"line":566},[3127],{"type":44,"tag":563,"props":3128,"children":3129},{},[3130],{"type":50,"value":1379},{"type":44,"tag":563,"props":3132,"children":3133},{"class":565,"line":575},[3134],{"type":44,"tag":563,"props":3135,"children":3136},{},[3137],{"type":50,"value":3138},"    enableKotlin = false\n",{"type":44,"tag":563,"props":3140,"children":3141},{"class":565,"line":584},[3142],{"type":44,"tag":563,"props":3143,"children":3144},{},[3145],{"type":50,"value":626},{"type":44,"tag":251,"props":3147,"children":3149},{"id":3148},"opt-out-temporary",[3150],{"type":50,"value":3151},"Opt-Out (Temporary)",{"type":44,"tag":53,"props":3153,"children":3154},{},[3155],{"type":50,"value":3156},"If blocked by plugin incompatibilities, opt out temporarily:",{"type":44,"tag":553,"props":3158,"children":3160},{"className":2174,"code":3159,"language":2176,"meta":557,"style":557},"# gradle.properties\nandroid.builtInKotlin=false\nandroid.newDsl=false  # also required if using new DSL opt-out\n",[3161],{"type":44,"tag":81,"props":3162,"children":3163},{"__ignoreMap":557},[3164,3172,3180],{"type":44,"tag":563,"props":3165,"children":3166},{"class":565,"line":566},[3167],{"type":44,"tag":563,"props":3168,"children":3169},{},[3170],{"type":50,"value":3171},"# gradle.properties\n",{"type":44,"tag":563,"props":3173,"children":3174},{"class":565,"line":575},[3175],{"type":44,"tag":563,"props":3176,"children":3177},{},[3178],{"type":50,"value":3179},"android.builtInKotlin=false\n",{"type":44,"tag":563,"props":3181,"children":3182},{"class":565,"line":584},[3183],{"type":44,"tag":563,"props":3184,"children":3185},{},[3186],{"type":50,"value":3187},"android.newDsl=false  # also required if using new DSL opt-out\n",{"type":44,"tag":53,"props":3189,"children":3190},{},[3191,3196],{"type":44,"tag":147,"props":3192,"children":3193},{},[3194],{"type":50,"value":3195},"Warning:",{"type":50,"value":3197}," Ask the user if they want to opt out, and if so, remind them this is a temporary measure.",{"type":44,"tag":59,"props":3199,"children":3201},{"id":3200},"plugin-compatibility",[3202],{"type":50,"value":3203},"Plugin Compatibility",{"type":44,"tag":53,"props":3205,"children":3206},{},[3207,3208,3213],{"type":50,"value":471},{"type":44,"tag":473,"props":3209,"children":3211},{"href":3210},"references\u002FPLUGIN-COMPATIBILITY.md",[3212],{"type":50,"value":3210},{"type":50,"value":3214}," for the full compatibility table with known compatible versions, opt-out flag workarounds, and broken plugins.",{"type":44,"tag":53,"props":3216,"children":3217},{},[3218,3223,3225,3230],{"type":44,"tag":147,"props":3219,"children":3220},{},[3221],{"type":50,"value":3222},"Before migrating",{"type":50,"value":3224},", inventory all plugins in the project and check each against that table. If any plugin is broken without workaround, inform the user. If plugins need opt-out flags, add them to",{"type":44,"tag":81,"props":3226,"children":3228},{"className":3227},[],[3229],{"type":50,"value":190},{"type":50,"value":3231}," and note them as temporary workarounds.",{"type":44,"tag":59,"props":3233,"children":3235},{"id":3234},"gradle-properties-default-changes",[3236],{"type":50,"value":3237},"Gradle Properties Default Changes",{"type":44,"tag":53,"props":3239,"children":3240},{},[3241,3243,3248],{"type":50,"value":3242},"AGP 9.0 changes the defaults for many Gradle properties. Check ",{"type":44,"tag":81,"props":3244,"children":3246},{"className":3245},[],[3247],{"type":50,"value":190},{"type":50,"value":3249}," for any explicitly set values that may now conflict.\nKey changes:",{"type":44,"tag":263,"props":3251,"children":3252},{},[3253,3279],{"type":44,"tag":267,"props":3254,"children":3255},{},[3256],{"type":44,"tag":271,"props":3257,"children":3258},{},[3259,3264,3269,3274],{"type":44,"tag":275,"props":3260,"children":3261},{},[3262],{"type":50,"value":3263},"Property",{"type":44,"tag":275,"props":3265,"children":3266},{},[3267],{"type":50,"value":3268},"Old Default",{"type":44,"tag":275,"props":3270,"children":3271},{},[3272],{"type":50,"value":3273},"New Default",{"type":44,"tag":275,"props":3275,"children":3276},{},[3277],{"type":50,"value":3278},"Action",{"type":44,"tag":286,"props":3280,"children":3281},{},[3282,3317,3364,3405,3438,3471,3504,3537,3578,3611,3651,3691],{"type":44,"tag":271,"props":3283,"children":3284},{},[3285,3294,3303,3312],{"type":44,"tag":293,"props":3286,"children":3287},{},[3288],{"type":44,"tag":81,"props":3289,"children":3291},{"className":3290},[],[3292],{"type":50,"value":3293},"android.uniquePackageNames",{"type":44,"tag":293,"props":3295,"children":3296},{},[3297],{"type":44,"tag":81,"props":3298,"children":3300},{"className":3299},[],[3301],{"type":50,"value":3302},"false",{"type":44,"tag":293,"props":3304,"children":3305},{},[3306],{"type":44,"tag":81,"props":3307,"children":3309},{"className":3308},[],[3310],{"type":50,"value":3311},"true",{"type":44,"tag":293,"props":3313,"children":3314},{},[3315],{"type":50,"value":3316},"Ensure each library has a unique namespace",{"type":44,"tag":271,"props":3318,"children":3319},{},[3320,3329,3337,3345],{"type":44,"tag":293,"props":3321,"children":3322},{},[3323],{"type":44,"tag":81,"props":3324,"children":3326},{"className":3325},[],[3327],{"type":50,"value":3328},"android.enableAppCompileTimeRClass",{"type":44,"tag":293,"props":3330,"children":3331},{},[3332],{"type":44,"tag":81,"props":3333,"children":3335},{"className":3334},[],[3336],{"type":50,"value":3302},{"type":44,"tag":293,"props":3338,"children":3339},{},[3340],{"type":44,"tag":81,"props":3341,"children":3343},{"className":3342},[],[3344],{"type":50,"value":3311},{"type":44,"tag":293,"props":3346,"children":3347},{},[3348,3350,3356,3358],{"type":50,"value":3349},"Refactor ",{"type":44,"tag":81,"props":3351,"children":3353},{"className":3352},[],[3354],{"type":50,"value":3355},"switch",{"type":50,"value":3357}," on R fields to ",{"type":44,"tag":81,"props":3359,"children":3361},{"className":3360},[],[3362],{"type":50,"value":3363},"if\u002Felse",{"type":44,"tag":271,"props":3365,"children":3366},{},[3367,3376,3384,3392],{"type":44,"tag":293,"props":3368,"children":3369},{},[3370],{"type":44,"tag":81,"props":3371,"children":3373},{"className":3372},[],[3374],{"type":50,"value":3375},"android.defaults.buildfeatures.resvalues",{"type":44,"tag":293,"props":3377,"children":3378},{},[3379],{"type":44,"tag":81,"props":3380,"children":3382},{"className":3381},[],[3383],{"type":50,"value":3311},{"type":44,"tag":293,"props":3385,"children":3386},{},[3387],{"type":44,"tag":81,"props":3388,"children":3390},{"className":3389},[],[3391],{"type":50,"value":3302},{"type":44,"tag":293,"props":3393,"children":3394},{},[3395,3397,3403],{"type":50,"value":3396},"Enable ",{"type":44,"tag":81,"props":3398,"children":3400},{"className":3399},[],[3401],{"type":50,"value":3402},"resValues = true",{"type":50,"value":3404}," where needed",{"type":44,"tag":271,"props":3406,"children":3407},{},[3408,3417,3425,3433],{"type":44,"tag":293,"props":3409,"children":3410},{},[3411],{"type":44,"tag":81,"props":3412,"children":3414},{"className":3413},[],[3415],{"type":50,"value":3416},"android.defaults.buildfeatures.shaders",{"type":44,"tag":293,"props":3418,"children":3419},{},[3420],{"type":44,"tag":81,"props":3421,"children":3423},{"className":3422},[],[3424],{"type":50,"value":3311},{"type":44,"tag":293,"props":3426,"children":3427},{},[3428],{"type":44,"tag":81,"props":3429,"children":3431},{"className":3430},[],[3432],{"type":50,"value":3302},{"type":44,"tag":293,"props":3434,"children":3435},{},[3436],{"type":50,"value":3437},"Enable shaders where needed",{"type":44,"tag":271,"props":3439,"children":3440},{},[3441,3450,3458,3466],{"type":44,"tag":293,"props":3442,"children":3443},{},[3444],{"type":44,"tag":81,"props":3445,"children":3447},{"className":3446},[],[3448],{"type":50,"value":3449},"android.r8.optimizedResourceShrinking",{"type":44,"tag":293,"props":3451,"children":3452},{},[3453],{"type":44,"tag":81,"props":3454,"children":3456},{"className":3455},[],[3457],{"type":50,"value":3302},{"type":44,"tag":293,"props":3459,"children":3460},{},[3461],{"type":44,"tag":81,"props":3462,"children":3464},{"className":3463},[],[3465],{"type":50,"value":3311},{"type":44,"tag":293,"props":3467,"children":3468},{},[3469],{"type":50,"value":3470},"Review R8 keep rules",{"type":44,"tag":271,"props":3472,"children":3473},{},[3474,3483,3491,3499],{"type":44,"tag":293,"props":3475,"children":3476},{},[3477],{"type":44,"tag":81,"props":3478,"children":3480},{"className":3479},[],[3481],{"type":50,"value":3482},"android.r8.strictFullModeForKeepRules",{"type":44,"tag":293,"props":3484,"children":3485},{},[3486],{"type":44,"tag":81,"props":3487,"children":3489},{"className":3488},[],[3490],{"type":50,"value":3302},{"type":44,"tag":293,"props":3492,"children":3493},{},[3494],{"type":44,"tag":81,"props":3495,"children":3497},{"className":3496},[],[3498],{"type":50,"value":3311},{"type":44,"tag":293,"props":3500,"children":3501},{},[3502],{"type":50,"value":3503},"Update keep rules to be explicit",{"type":44,"tag":271,"props":3505,"children":3506},{},[3507,3516,3524,3532],{"type":44,"tag":293,"props":3508,"children":3509},{},[3510],{"type":44,"tag":81,"props":3511,"children":3513},{"className":3512},[],[3514],{"type":50,"value":3515},"android.proguard.failOnMissingFiles",{"type":44,"tag":293,"props":3517,"children":3518},{},[3519],{"type":44,"tag":81,"props":3520,"children":3522},{"className":3521},[],[3523],{"type":50,"value":3302},{"type":44,"tag":293,"props":3525,"children":3526},{},[3527],{"type":44,"tag":81,"props":3528,"children":3530},{"className":3529},[],[3531],{"type":50,"value":3311},{"type":44,"tag":293,"props":3533,"children":3534},{},[3535],{"type":50,"value":3536},"Remove invalid ProGuard file references",{"type":44,"tag":271,"props":3538,"children":3539},{},[3540,3549,3557,3565],{"type":44,"tag":293,"props":3541,"children":3542},{},[3543],{"type":44,"tag":81,"props":3544,"children":3546},{"className":3545},[],[3547],{"type":50,"value":3548},"android.r8.proguardAndroidTxt.disallowed",{"type":44,"tag":293,"props":3550,"children":3551},{},[3552],{"type":44,"tag":81,"props":3553,"children":3555},{"className":3554},[],[3556],{"type":50,"value":3302},{"type":44,"tag":293,"props":3558,"children":3559},{},[3560],{"type":44,"tag":81,"props":3561,"children":3563},{"className":3562},[],[3564],{"type":50,"value":3311},{"type":44,"tag":293,"props":3566,"children":3567},{},[3568,3570,3576],{"type":50,"value":3569},"Use ",{"type":44,"tag":81,"props":3571,"children":3573},{"className":3572},[],[3574],{"type":50,"value":3575},"proguard-android-optimize.txt",{"type":50,"value":3577}," only",{"type":44,"tag":271,"props":3579,"children":3580},{},[3581,3590,3598,3606],{"type":44,"tag":293,"props":3582,"children":3583},{},[3584],{"type":44,"tag":81,"props":3585,"children":3587},{"className":3586},[],[3588],{"type":50,"value":3589},"android.r8.globalOptionsInConsumerRules.disallowed",{"type":44,"tag":293,"props":3591,"children":3592},{},[3593],{"type":44,"tag":81,"props":3594,"children":3596},{"className":3595},[],[3597],{"type":50,"value":3302},{"type":44,"tag":293,"props":3599,"children":3600},{},[3601],{"type":44,"tag":81,"props":3602,"children":3604},{"className":3603},[],[3605],{"type":50,"value":3311},{"type":44,"tag":293,"props":3607,"children":3608},{},[3609],{"type":50,"value":3610},"Remove global options from library consumer rules",{"type":44,"tag":271,"props":3612,"children":3613},{},[3614,3623,3631,3639],{"type":44,"tag":293,"props":3615,"children":3616},{},[3617],{"type":44,"tag":81,"props":3618,"children":3620},{"className":3619},[],[3621],{"type":50,"value":3622},"android.sourceset.disallowProvider",{"type":44,"tag":293,"props":3624,"children":3625},{},[3626],{"type":44,"tag":81,"props":3627,"children":3629},{"className":3628},[],[3630],{"type":50,"value":3302},{"type":44,"tag":293,"props":3632,"children":3633},{},[3634],{"type":44,"tag":81,"props":3635,"children":3637},{"className":3636},[],[3638],{"type":50,"value":3311},{"type":44,"tag":293,"props":3640,"children":3641},{},[3642,3643,3649],{"type":50,"value":3569},{"type":44,"tag":81,"props":3644,"children":3646},{"className":3645},[],[3647],{"type":50,"value":3648},"Sources",{"type":50,"value":3650}," API on androidComponents",{"type":44,"tag":271,"props":3652,"children":3653},{},[3654,3663,3671,3679],{"type":44,"tag":293,"props":3655,"children":3656},{},[3657],{"type":44,"tag":81,"props":3658,"children":3660},{"className":3659},[],[3661],{"type":50,"value":3662},"android.sdk.defaultTargetSdkToCompileSdkIfUnset",{"type":44,"tag":293,"props":3664,"children":3665},{},[3666],{"type":44,"tag":81,"props":3667,"children":3669},{"className":3668},[],[3670],{"type":50,"value":3302},{"type":44,"tag":293,"props":3672,"children":3673},{},[3674],{"type":44,"tag":81,"props":3675,"children":3677},{"className":3676},[],[3678],{"type":50,"value":3311},{"type":44,"tag":293,"props":3680,"children":3681},{},[3682,3684,3689],{"type":50,"value":3683},"Specify ",{"type":44,"tag":81,"props":3685,"children":3687},{"className":3686},[],[3688],{"type":50,"value":1687},{"type":50,"value":3690}," explicitly",{"type":44,"tag":271,"props":3692,"children":3693},{},[3694,3703,3711,3719],{"type":44,"tag":293,"props":3695,"children":3696},{},[3697],{"type":44,"tag":81,"props":3698,"children":3700},{"className":3699},[],[3701],{"type":50,"value":3702},"android.onlyEnableUnitTestForTheTestedBuildType",{"type":44,"tag":293,"props":3704,"children":3705},{},[3706],{"type":44,"tag":81,"props":3707,"children":3709},{"className":3708},[],[3710],{"type":50,"value":3302},{"type":44,"tag":293,"props":3712,"children":3713},{},[3714],{"type":44,"tag":81,"props":3715,"children":3717},{"className":3716},[],[3718],{"type":50,"value":3311},{"type":44,"tag":293,"props":3720,"children":3721},{},[3722],{"type":50,"value":3723},"Only if testing non-default build types",{"type":44,"tag":53,"props":3725,"children":3726},{},[3727],{"type":50,"value":3728},"Check for and remove properties that now cause errors:",{"type":44,"tag":402,"props":3730,"children":3731},{},[3732,3743],{"type":44,"tag":75,"props":3733,"children":3734},{},[3735,3741],{"type":44,"tag":81,"props":3736,"children":3738},{"className":3737},[],[3739],{"type":50,"value":3740},"android.r8.integratedResourceShrinking",{"type":50,"value":3742}," — removed, always on",{"type":44,"tag":75,"props":3744,"children":3745},{},[3746,3752],{"type":44,"tag":81,"props":3747,"children":3749},{"className":3748},[],[3750],{"type":50,"value":3751},"android.enableNewResourceShrinker.preciseShrinking",{"type":50,"value":3742},{"type":44,"tag":59,"props":3754,"children":3756},{"id":3755},"pure-android-tips",[3757],{"type":50,"value":3758},"Pure Android Tips",{"type":44,"tag":53,"props":3760,"children":3761},{},[3762],{"type":50,"value":3763},"For non-KMP Android modules upgrading to AGP 9.0, follow the \"Built-in Kotlin Migration\" steps above,\nthen review the \"Gradle Properties Default Changes\" table. Additional changes:",{"type":44,"tag":402,"props":3765,"children":3766},{},[3767,3793],{"type":44,"tag":75,"props":3768,"children":3769},{},[3770,3775,3777,3783,3785,3791],{"type":44,"tag":147,"props":3771,"children":3772},{},[3773],{"type":50,"value":3774},"Review new DSL interfaces",{"type":50,"value":3776}," — ",{"type":44,"tag":81,"props":3778,"children":3780},{"className":3779},[],[3781],{"type":50,"value":3782},"BaseExtension",{"type":50,"value":3784}," is removed; use ",{"type":44,"tag":81,"props":3786,"children":3788},{"className":3787},[],[3789],{"type":50,"value":3790},"CommonExtension",{"type":50,"value":3792}," or specific extension types",{"type":44,"tag":75,"props":3794,"children":3795},{},[3796,3801,3803,3808],{"type":44,"tag":147,"props":3797,"children":3798},{},[3799],{"type":50,"value":3800},"Java default changed",{"type":50,"value":3802}," from Java 8 to Java 11 — ensure ",{"type":44,"tag":81,"props":3804,"children":3806},{"className":3805},[],[3807],{"type":50,"value":2869},{"type":50,"value":3809}," reflects this",{"type":44,"tag":59,"props":3811,"children":3813},{"id":3812},"verification",[3814],{"type":50,"value":3815},"Verification",{"type":44,"tag":53,"props":3817,"children":3818},{},[3819,3821,3827],{"type":50,"value":3820},"After migration, verify with the ",{"type":44,"tag":473,"props":3822,"children":3824},{"href":3823},"assets\u002Fchecklist.md",[3825],{"type":50,"value":3826},"checklist",{"type":50,"value":3828},". Key checks:",{"type":44,"tag":71,"props":3830,"children":3831},{},[3832,3843,3856,3867,3885,3896,3922],{"type":44,"tag":75,"props":3833,"children":3834},{},[3835,3841],{"type":44,"tag":81,"props":3836,"children":3838},{"className":3837},[],[3839],{"type":50,"value":3840},".\u002Fgradlew build",{"type":50,"value":3842}," succeeds with no errors",{"type":44,"tag":75,"props":3844,"children":3845},{},[3846,3848,3854],{"type":50,"value":3847},"All platform targets build successfully (Android, iOS via ",{"type":44,"tag":81,"props":3849,"children":3851},{"className":3850},[],[3852],{"type":50,"value":3853},"xcodebuild",{"type":50,"value":3855},", Desktop, JS\u002FWasm)",{"type":44,"tag":75,"props":3857,"children":3858},{},[3859,3865],{"type":44,"tag":81,"props":3860,"children":3862},{"className":3861},[],[3863],{"type":50,"value":3864},".\u002Fgradlew :shared:allTests",{"type":50,"value":3866}," and Android unit tests pass",{"type":44,"tag":75,"props":3868,"children":3869},{},[3870,3872,3877,3878,3883],{"type":50,"value":3871},"No ",{"type":44,"tag":81,"props":3873,"children":3875},{"className":3874},[],[3876],{"type":50,"value":309},{"type":50,"value":137},{"type":44,"tag":81,"props":3879,"children":3881},{"className":3880},[],[3882],{"type":50,"value":337},{"type":50,"value":3884}," in KMP modules",{"type":44,"tag":75,"props":3886,"children":3887},{},[3888,3889,3894],{"type":50,"value":3871},{"type":44,"tag":81,"props":3890,"children":3892},{"className":3891},[],[3893],{"type":50,"value":211},{"type":50,"value":3895}," in AGP 9.0 modules",{"type":44,"tag":75,"props":3897,"children":3898},{},[3899,3901,3907,3908,3914,3915,3921],{"type":50,"value":3900},"Source sets use correct names (",{"type":44,"tag":81,"props":3902,"children":3904},{"className":3903},[],[3905],{"type":50,"value":3906},"androidMain",{"type":50,"value":1681},{"type":44,"tag":81,"props":3909,"children":3911},{"className":3910},[],[3912],{"type":50,"value":3913},"androidHostTest",{"type":50,"value":1681},{"type":44,"tag":81,"props":3916,"children":3918},{"className":3917},[],[3919],{"type":50,"value":3920},"androidDeviceTest",{"type":50,"value":200},{"type":44,"tag":75,"props":3923,"children":3924},{},[3925],{"type":50,"value":3926},"No deprecation warnings about variant API or DSL",{"type":44,"tag":59,"props":3928,"children":3930},{"id":3929},"common-issues",[3931],{"type":50,"value":3932},"Common Issues",{"type":44,"tag":53,"props":3934,"children":3935},{},[3936,3937,3942],{"type":50,"value":471},{"type":44,"tag":473,"props":3938,"children":3940},{"href":3939},"references\u002FKNOWN-ISSUES.md",[3941],{"type":50,"value":3939},{"type":50,"value":3943}," for details. Key gotchas:",{"type":44,"tag":251,"props":3945,"children":3947},{"id":3946},"kmp-library-plugin-issues",[3948],{"type":50,"value":3949},"KMP Library Plugin Issues",{"type":44,"tag":402,"props":3951,"children":3952},{},[3953,3989,3999,4015,4031,4049],{"type":44,"tag":75,"props":3954,"children":3955},{},[3956,3961,3963,3969,3971,3979,3980,3987],{"type":44,"tag":147,"props":3957,"children":3958},{},[3959],{"type":50,"value":3960},"BuildConfig unavailable",{"type":50,"value":3962}," in library modules — use DI\u002F",{"type":44,"tag":81,"props":3964,"children":3966},{"className":3965},[],[3967],{"type":50,"value":3968},"AppConfiguration",{"type":50,"value":3970}," interface, or use ",{"type":44,"tag":473,"props":3972,"children":3976},{"href":3973,"rel":3974},"https:\u002F\u002Fgithub.com\u002Fyshrsmz\u002FBuildKonfig",[3975],"nofollow",[3977],{"type":50,"value":3978},"BuildKonfig",{"type":50,"value":137},{"type":44,"tag":473,"props":3981,"children":3984},{"href":3982,"rel":3983},"https:\u002F\u002Fgithub.com\u002Fgmazzo\u002Fgradle-buildconfig-plugin",[3975],[3985],{"type":50,"value":3986},"gradle-buildconfig-plugin",{"type":50,"value":3988}," for compile-time constants",{"type":44,"tag":75,"props":3990,"children":3991},{},[3992,3997],{"type":44,"tag":147,"props":3993,"children":3994},{},[3995],{"type":50,"value":3996},"No build variants",{"type":50,"value":3998}," — single variant architecture; compile-time constants can use BuildKonfig\u002Fgradle-buildconfig-plugin flavors, but variant-specific dependencies\u002Fresources\u002Fsigning must move to app module",{"type":44,"tag":75,"props":4000,"children":4001},{},[4002,4007,4009,4014],{"type":44,"tag":147,"props":4003,"children":4004},{},[4005],{"type":50,"value":4006},"NDK\u002FJNI unsupported",{"type":50,"value":4008}," in new plugin — extract to separate ",{"type":44,"tag":81,"props":4010,"children":4012},{"className":4011},[],[4013],{"type":50,"value":309},{"type":50,"value":1300},{"type":44,"tag":75,"props":4016,"children":4017},{},[4018,4023,4025],{"type":44,"tag":147,"props":4019,"children":4020},{},[4021],{"type":50,"value":4022},"Compose resources crash",{"type":50,"value":4024}," without ",{"type":44,"tag":81,"props":4026,"children":4028},{"className":4027},[],[4029],{"type":50,"value":4030},"androidResources { enable = true }",{"type":44,"tag":75,"props":4032,"children":4033},{},[4034,4039,4041,4047],{"type":44,"tag":147,"props":4035,"children":4036},{},[4037],{"type":50,"value":4038},"Consumer ProGuard rules silently dropped",{"type":50,"value":4040}," if not migrated to ",{"type":44,"tag":81,"props":4042,"children":4044},{"className":4043},[],[4045],{"type":50,"value":4046},"consumerProguardFiles.add(file(...))",{"type":50,"value":4048}," in new DSL",{"type":44,"tag":75,"props":4050,"children":4051},{},[4052,4057],{"type":44,"tag":147,"props":4053,"children":4054},{},[4055],{"type":50,"value":4056},"KSP",{"type":50,"value":4058}," requires version 2.3.1+ for AGP 9.0 compatibility",{"type":44,"tag":251,"props":4060,"children":4062},{"id":4061},"agp-90-general-issues",[4063],{"type":50,"value":4064},"AGP 9.0 General Issues",{"type":44,"tag":402,"props":4066,"children":4067},{},[4068,4083,4120],{"type":44,"tag":75,"props":4069,"children":4070},{},[4071,4076,4078],{"type":44,"tag":147,"props":4072,"children":4073},{},[4074],{"type":50,"value":4075},"BaseExtension removed",{"type":50,"value":4077}," — convention plugins using old DSL types need rewriting to use ",{"type":44,"tag":81,"props":4079,"children":4081},{"className":4080},[],[4082],{"type":50,"value":3790},{"type":44,"tag":75,"props":4084,"children":4085},{},[4086,4091,4092,4098,4099,4105,4106,4112,4114],{"type":44,"tag":147,"props":4087,"children":4088},{},[4089],{"type":50,"value":4090},"Variant APIs removed",{"type":50,"value":3776},{"type":44,"tag":81,"props":4093,"children":4095},{"className":4094},[],[4096],{"type":50,"value":4097},"applicationVariants",{"type":50,"value":1681},{"type":44,"tag":81,"props":4100,"children":4102},{"className":4101},[],[4103],{"type":50,"value":4104},"libraryVariants",{"type":50,"value":1681},{"type":44,"tag":81,"props":4107,"children":4109},{"className":4108},[],[4110],{"type":50,"value":4111},"variantFilter",{"type":50,"value":4113}," replaced by ",{"type":44,"tag":81,"props":4115,"children":4117},{"className":4116},[],[4118],{"type":50,"value":4119},"androidComponents",{"type":44,"tag":75,"props":4121,"children":4122},{},[4123,4128,4130,4135],{"type":44,"tag":147,"props":4124,"children":4125},{},[4126],{"type":50,"value":4127},"Convention plugins",{"type":50,"value":4129}," need refactoring — old ",{"type":44,"tag":81,"props":4131,"children":4133},{"className":4132},[],[4134],{"type":50,"value":541},{"type":50,"value":4136}," extension helpers are obsolete",{"type":44,"tag":59,"props":4138,"children":4140},{"id":4139},"reference-files",[4141],{"type":50,"value":4142},"Reference Files",{"type":44,"tag":402,"props":4144,"children":4145},{},[4146,4157,4168],{"type":44,"tag":75,"props":4147,"children":4148},{},[4149,4155],{"type":44,"tag":473,"props":4150,"children":4152},{"href":4151},"references\u002FDSL-REFERENCE.md",[4153],{"type":50,"value":4154},"DSL Reference",{"type":50,"value":4156}," — side-by-side old→new DSL mapping",{"type":44,"tag":75,"props":4158,"children":4159},{},[4160,4166],{"type":44,"tag":473,"props":4161,"children":4163},{"href":4162},"references\u002FVERSION-MATRIX.md",[4164],{"type":50,"value":4165},"Version Matrix",{"type":50,"value":4167}," — AGP\u002FGradle\u002FKGP\u002FCompose\u002FIDE compatibility",{"type":44,"tag":75,"props":4169,"children":4170},{},[4171,4175],{"type":44,"tag":473,"props":4172,"children":4173},{"href":3210},[4174],{"type":50,"value":3203},{"type":50,"value":4176}," — third-party plugin status and workarounds",{"type":44,"tag":4178,"props":4179,"children":4180},"style",{},[4181],{"type":50,"value":4182},"html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}",{"items":4184,"total":611},[4185,4205,4212,4227,4245,4258],{"slug":4186,"name":4186,"fn":4187,"description":4188,"org":4189,"tags":4190,"stars":23,"repoUrl":24,"updatedAt":4204},"kotlin-backend-jpa-entity-mapping","map JPA entities in Kotlin backend apps","Model Kotlin persistence code correctly for Spring Data JPA and Hibernate. Covers entity design, identity and equality, uniqueness constraints, relationships, fetch plans, and common ORM (Object-Relational Mapping) traps  specific to Kotlin. Use when creating or reviewing JPA (Java Persistence API)  entities, diagnosing N+1 or LazyInitializationException, placing indexes and  uniqueness rules, or preventing Kotlin-specific bugs such as data class  entities and broken equals\u002FhashCode.\n",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[4191,4194,4197,4200,4201],{"name":4192,"slug":4193,"type":13},"Backend","backend",{"name":4195,"slug":4196,"type":13},"Data Modeling","data-modeling",{"name":4198,"slug":4199,"type":13},"Database","database",{"name":9,"slug":8,"type":13},{"name":4202,"slug":4203,"type":13},"ORM","orm","2026-04-06T18:26:01.44065",{"slug":4,"name":4,"fn":5,"description":6,"org":4206,"tags":4207,"stars":23,"repoUrl":24,"updatedAt":25},{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[4208,4209,4210,4211],{"name":15,"slug":16,"type":13},{"name":9,"slug":8,"type":13},{"name":21,"slug":22,"type":13},{"name":18,"slug":19,"type":13},{"slug":4213,"name":4213,"fn":4214,"description":4215,"org":4216,"tags":4217,"stars":23,"repoUrl":24,"updatedAt":4226},"kotlin-tooling-cocoapods-spm-migration","migrate KMP projects from CocoaPods to SPM","Migrate KMP projects from CocoaPods (kotlin(\"native.cocoapods\")) to Swift Package Manager (swiftPMDependencies DSL) — replaces pod() with swiftPackage(), transforms cocoapods.* imports to swiftPMImport.*, and reconfigures the Xcode project.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[4218,4220,4221,4222,4223],{"name":1959,"slug":4219,"type":13},"ios",{"name":9,"slug":8,"type":13},{"name":21,"slug":22,"type":13},{"name":18,"slug":19,"type":13},{"name":4224,"slug":4225,"type":13},"Swift","swift","2026-04-06T18:25:57.691016",{"slug":4228,"name":4228,"fn":4229,"description":4230,"org":4231,"tags":4232,"stars":23,"repoUrl":24,"updatedAt":4244},"kotlin-tooling-immutable-collections-0-5-x-migration","migrate Kotlin projects to immutable collections 0.5.x","Migrate Kotlin (and Java) code from kotlinx.collections.immutable 0.3.x \u002F 0.4.x to the latest 0.5.x. The 0.5.x line renames every copy-returning method on PersistentList \u002F PersistentMap \u002F PersistentSet \u002F PersistentCollection to a participial form per KEEP-0459 (add→adding, removeAt→removingAt, set→replacingAt, put→putting, clear→cleared, …) and deprecates the old names (WARNING, with ReplaceWith). Driven by the compiler: bump the version, recompile, and apply the rename each deprecation warning names. Use when the user mentions kotlinx.collections.immutable 0.5.x, PersistentList migration, \"Use adding() instead\", KEEP-0459, or sees deprecation warnings from kotlinx.collections.immutable.\n",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[4233,4236,4239,4240,4241],{"name":4234,"slug":4235,"type":13},"Engineering","engineering",{"name":4237,"slug":4238,"type":13},"Java","java",{"name":9,"slug":8,"type":13},{"name":21,"slug":22,"type":13},{"name":4242,"slug":4243,"type":13},"Tech Debt","tech-debt","2026-06-09T07:19:44.883299",{"slug":4246,"name":4246,"fn":4247,"description":4248,"org":4249,"tags":4250,"stars":23,"repoUrl":24,"updatedAt":4257},"kotlin-tooling-java-to-kotlin","convert Java code to idiomatic Kotlin","Use when converting Java source files to idiomatic Kotlin, when user mentions \"java to kotlin\", \"j2k\", \"convert java\", \"migrate java to kotlin\", or when working with .java files that need to become .kt files. Handles framework-aware conversion for Spring, Lombok, Hibernate, Jackson, Micronaut, Quarkus, Dagger\u002FHilt, RxJava, JUnit, Guice, Retrofit, and Mockito.\n",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[4251,4254,4255,4256],{"name":4252,"slug":4253,"type":13},"Code Analysis","code-analysis",{"name":4237,"slug":4238,"type":13},{"name":9,"slug":8,"type":13},{"name":21,"slug":22,"type":13},"2026-04-06T18:26:00.191761",{"slug":4259,"name":4259,"fn":4260,"description":4261,"org":4262,"tags":4263,"stars":23,"repoUrl":24,"updatedAt":4270},"kotlin-tooling-native-build-performance","optimize Kotlin Native build performance","Diagnoses and fixes slow Kotlin\u002FNative compilation and linking in Kotlin Multiplatform projects that target iOS. Use when the user reports slow iOS or shared-framework builds, long linkDebug*\u002FlinkRelease* or XCFramework tasks, cold CI builds that re-download the Kotlin\u002FNative toolchain, KSP or other generated code on the native path, transitiveExport usage, or asks for a local-development versus CI build performance plan.\n",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[4264,4265,4266,4267],{"name":1959,"slug":4219,"type":13},{"name":9,"slug":8,"type":13},{"name":18,"slug":19,"type":13},{"name":4268,"slug":4269,"type":13},"Performance","performance","2026-07-18T05:47:25.998032",{"items":4272,"total":611},[4273,4281,4288,4296,4304,4311],{"slug":4186,"name":4186,"fn":4187,"description":4188,"org":4274,"tags":4275,"stars":23,"repoUrl":24,"updatedAt":4204},{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[4276,4277,4278,4279,4280],{"name":4192,"slug":4193,"type":13},{"name":4195,"slug":4196,"type":13},{"name":4198,"slug":4199,"type":13},{"name":9,"slug":8,"type":13},{"name":4202,"slug":4203,"type":13},{"slug":4,"name":4,"fn":5,"description":6,"org":4282,"tags":4283,"stars":23,"repoUrl":24,"updatedAt":25},{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[4284,4285,4286,4287],{"name":15,"slug":16,"type":13},{"name":9,"slug":8,"type":13},{"name":21,"slug":22,"type":13},{"name":18,"slug":19,"type":13},{"slug":4213,"name":4213,"fn":4214,"description":4215,"org":4289,"tags":4290,"stars":23,"repoUrl":24,"updatedAt":4226},{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[4291,4292,4293,4294,4295],{"name":1959,"slug":4219,"type":13},{"name":9,"slug":8,"type":13},{"name":21,"slug":22,"type":13},{"name":18,"slug":19,"type":13},{"name":4224,"slug":4225,"type":13},{"slug":4228,"name":4228,"fn":4229,"description":4230,"org":4297,"tags":4298,"stars":23,"repoUrl":24,"updatedAt":4244},{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[4299,4300,4301,4302,4303],{"name":4234,"slug":4235,"type":13},{"name":4237,"slug":4238,"type":13},{"name":9,"slug":8,"type":13},{"name":21,"slug":22,"type":13},{"name":4242,"slug":4243,"type":13},{"slug":4246,"name":4246,"fn":4247,"description":4248,"org":4305,"tags":4306,"stars":23,"repoUrl":24,"updatedAt":4257},{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[4307,4308,4309,4310],{"name":4252,"slug":4253,"type":13},{"name":4237,"slug":4238,"type":13},{"name":9,"slug":8,"type":13},{"name":21,"slug":22,"type":13},{"slug":4259,"name":4259,"fn":4260,"description":4261,"org":4312,"tags":4313,"stars":23,"repoUrl":24,"updatedAt":4270},{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[4314,4315,4316,4317],{"name":1959,"slug":4219,"type":13},{"name":9,"slug":8,"type":13},{"name":18,"slug":19,"type":13},{"name":4268,"slug":4269,"type":13}]