Status Update
Comments
ri...@google.com <ri...@google.com>
ga...@google.com <ga...@google.com> #2
Thank you for the reproduction. I have a potential fix for the issue, and have attached an R8 main branch build with it. You can try your code with it by merging the following into your settings.gradle
or settings.gradle.kts
:
pluginManagement {
buildscript {
dependencies {
classpath(files(<path to r8lib.jar>))
}
}
}
Let me know if your build succeeds and the app runs.
Also, can you share the source of the MRE? I was not able to use the source provided in a sample compose app, maybe due to not having the same dependencies that you have used.
hu...@google.com <hu...@google.com> #3
Let me know if your build succeeds and the app runs.
Yes, the fix works in my MRE as well as in the actual project!
Also, can you share the source of the MRE? I was not able to use the source provided in a sample compose app, maybe due to not having the same dependencies that you have used.
You mean you failed to run project attached in ProguardBug.zip
? It's basically just a newly created Compose project with some deps updated, and code from the block inserted. I tried unarchiving it by myself and it reproduces the bug, let me know what problems do you have with it.
Description
Kotlin Gradle plugin 1.8.0 was migrated to expose compiler options with Gradle properties API. This API prohibits inputs modification on Gradle execution phase.
kgpUtils.kt#addComposeArgsToKotlinCompile
kotlinOptions.freeCompilerArgs
in taskdoFirst
action.With KGP 1.8.0 this will produce warning message in build log and in next major versions it fill fail the build.