В корневом градиенте я добавил это:
Код: Выделить всё
subprojects {
tasks.withType {
kotlinOptions {
if (project.findProperty("composeCompilerReports") == "true") {
kotlinOptions.freeCompilerArgs = kotlinOptions.freeCompilerArgs + listOf(
"-P",
"plugin:androidx.compose.compiler.plugins.kotlin:reportsDestination=" +
project.buildDir.absolutePath + "/compose_reports"
)
kotlinOptions.freeCompilerArgs = kotlinOptions.freeCompilerArgs + listOf(
"-P",
"plugin:androidx.compose.compiler.plugins.kotlin:metricsDestination=" +
project.buildDir.absolutePath + "/compose_metrics"
)
}
}
}
Код: Выделить всё
./gradlew assembleRelease -PcomposeCompilerReports=true --rerun-tasks
Код: Выделить всё
> Task :core-common-feature-utils:kaptGenerateStubsReleaseKotlin FAILED
e: Multiple values are not allowed for plugin option androidx.compose.compiler.plugins.kotlin:metricsDestination
Plugin "androidx.compose.compiler.plugins.kotlin" usage:
liveLiterals Enable Live Literals code generation
liveLiteralsEnabled
Enable Live Literals code generation (with per-file enabled flags)
generateFunctionKeyMetaClasses
Generate function key meta classes with annotations indicating the functions and their group keys. Generally used for tooling.
sourceInformation
Include source information in generated code
metricsDestination
Save compose build metrics to this folder
reportsDestination Save compose build reports to this folder
intrinsicRemember
Include source information in generated code
suppressKotlinVersionCompatibilityCheck
Suppress Kotlin version compatibility check
generateDecoys
Generate decoy methods in IR transform
FAILURE: Build completed with 2 failures.
пожалуйста, помогите с идеей, как преодолеть этот плагин
gradle версии 7.4.1
P.S. Насколько я понимаю из исследований, модули не включены в их gradle
Код: Выделить всё
kotlin("kapt")
id("dagger.hilt.android.plugin")
P.P.S. По мере того, как я пытаюсь сделать больше, мне удалось сделать отчеты после удаления hilt из build.gradle в модулях. В этом случае команда выполняется до 100%. Но приложение, конечно, не запустится. Немного "неудобно" составлять отчет таким образом.
Пожалуйста, если есть идеи..
Подробнее здесь: https://stackoverflow.com/questions/754 ... pplication
Мобильная версия