Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,23 @@ an AGP version created before 9.0.0 to an AGP version 9.0.0+.
You should also use the minimum compatible dependency versions
listed in the [Android Gradle Plugin docs][AGP block].

:::warning
This guide only applies to apps that already use the
Kotlin Gradle Plugin (KGP).
Comment on lines +15 to +16

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

What about the requirement to add android.newDsl=false mentioned in the next section? Do apps that don't use KGP or add-to-app apps need to add that either way?


To verify whether your app applies KGP,
find the `kotlin-android` plugin
(or the `org.jetbrains.kotlin.android` plugin).
It is likely located in the
`<app-src>/android/app/build.gradle` or
`<app-src>/android/app/build.gradle.kts` file.
To view the KGP application code,
see [Update the Gradle file](#update-the-gradle-file).

If your app doesn't currently apply KGP,
don't migrate to built-in Kotlin.
:::
Comment thread
jesswrd marked this conversation as resolved.

:::note
To update Flutter plugins to use built-in Kotlin,
follow the [migration guide for plugin authors][].
Expand Down Expand Up @@ -299,6 +316,8 @@ kotlin {
Before enabling built-in Kotlin,
confirm that you have migrated your application
and any Flutter plugins it uses.
Also, confirm that you updated your app
to AGP 9+, because built-in Kotlin requires AGP 9+.

To enable built-in Kotlin,
set the `android.builtInKotlin` property to `true`
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,23 @@ description: >-

This guide outlines the migration steps specifically for plugin authors.

:::warning
This guide only applies to plugins that already use the
Kotlin Gradle Plugin (KGP).

To verify whether your plugin applies KGP,
find the `kotlin-android` plugin
(or the `org.jetbrains.kotlin.android` plugin).
It is likely located in the
`<plugin-project>/build.gradle` or
`<plugin-project>/build.gradle.kts` file.
Comment on lines +17 to +18

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Seems these are nested under /android according to the snippets on the page:

Suggested change
`<plugin-project>/build.gradle` or
`<plugin-project>/build.gradle.kts` file.
`<plugin-project>/android/build.gradle` or
`<plugin-project>/android/build.gradle.kts` file.

To view the KGP application code,
see [Update the Gradle file](#update-the-gradle-file).

If your plugin project doesn't currently apply KGP,
don't migrate to built-in Kotlin.
:::
Comment thread
jesswrd marked this conversation as resolved.

:::note
To update Flutter apps to use built-in Kotlin,
follow the [migration guide for app developers][].
Expand Down Expand Up @@ -422,6 +439,8 @@ the newly released plugin version:
Before enabling built-in Kotlin,
confirm that you have migrated your plugin example app
and any Flutter plugins it uses.
Also, confirm that you updated your plugin example app
to AGP 9+, because built-in Kotlin requires AGP 9+.

To enable built-in Kotlin,
set the `android.builtInKotlin` property to `true`
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,13 @@ description: >-

{% render "docs/breaking-changes.md" %}

:::warning
This guide only applies to apps and plugins that already use the
Kotlin Gradle Plugin (KGP).
If your project doesn't currently apply KGP,
don't migrate to built-in Kotlin.
:::
Comment thread
jesswrd marked this conversation as resolved.

## Summary

To build a Flutter app for Android,
Expand Down
Loading