Status Update
Comments
cm...@google.com <cm...@google.com>
je...@google.com <je...@google.com>
hu...@google.com <hu...@google.com> #3
Thank you for this report and the proposed fix in
// kgpUtils.kt
private fun KotlinCompile.addPluginOption(pluginId: String, key: String, value: String) {
val pluginOption = "plugin:$pluginId:$key"
// Only add the plugin option if it was not previously added by the user (see b/318384658)
if (kotlinOptions.freeCompilerArgs.none { it.startsWith("$pluginOption=") }) {
kotlinOptions.freeCompilerArgs += listOf("-P", "$pluginOption=$value")
}
}
[Deleted User] <[Deleted User]> #4
hu...@google.com <hu...@google.com> #5
We've fixed this issue in AGP 8.4.0-alpha05:
Note that this fix works for KGP 1.8+ only (it seems that in earlier KGPs, the plugin options set in the DSL do not propagate to KotlinCompile.pluginOptions
correctly).
======
Re
[Deleted User] <[Deleted User]> #6
an...@google.com <an...@google.com> #7
Thank you for your patience while our engineering team worked to resolve this issue. A fix for this issue is now available in:
- Android Studio Jellyfish | 2023.3.1 Canary 5
- Android Gradle Plugin 8.4.0-alpha05
We encourage you to try the latest update.
If you notice further issues or have questions, please file a new bug report.
Thank you for taking the time to submit feedback — we really appreciate it!
hu...@google.com <hu...@google.com> #8
Small note: The handling code for androidx.compose.compiler.plugins.kotlin:sourceInformation
has changed slightly, see
Description
Compose Compiler has the option to disable sourceInformation generation as described in issue where ignoring of this option has been fixed.
But when i try to disable it using this option, project build fails, because there is a limit on the number of declared options. So cannot be declared multiply times as kotlin compiler option .
sourceInformation
This option is already declared in kgpUtils.kt , and it is always enabled for debug builds. Therefore, i cannot disable it as liveLiterals, for example.
STEPS TO REPRODUCE:
sourceInformation
usingfreeCompilerArgs
Studio Build: #AI-231.9392.1.2311.10980684
Version of Gradle Plugin: 8.2.0-rc02
Version of Gradle: 8.2