Saiedmomen
07/23/2022, 1:17 PM@Stable inference in multiplatform modules with android soucesets? There are no composables in the module.
I have tried adding the following to the android block but doesn't seem to work
and metrics report isn't generated for the module
I am following Chris Banes blogpost on the issue and reports are generated for the main app module
android {
...
buildFeatures {
compose = true
}
composeOptions {
kotlinCompilerExtensionVersion = libs.versions.compose.get()
}
}Albert Chang
07/23/2022, 3:50 PMSaiedmomen
07/24/2022, 7:42 AM./gradlew assembleRelease -Pappname.android.enableComposeCompilerReports=true --rerun-tasks
and the reports are generated for the app module in the app/build/compose_metrics directory.
Even though the gradle task from the article that sets the compiler flags is for all subprojects, it is only working for the app module.
Also inference isn't working as I see in the app module report but there is a chance that it might be because of some gotcha in the inference rules. I need the report to debug it.Albert Chang
07/24/2022, 7:53 AMbuild.gradle file? Looks like you are adding them to the build.gradle of app module.Saiedmomen
07/24/2022, 7:54 AMbuild.gradleSaiedmomen
07/24/2022, 7:58 AMZoltan Demant
07/24/2022, 11:28 AMSaiedmomen
07/24/2022, 2:04 PMapp/build/compose_metrics
so I expect the shared module report to be created at
shared/build/compose_metricsArkadii Ivanov
07/27/2022, 10:23 AMAlbert Chang
07/27/2022, 10:28 AMSaiedmomen
07/27/2022, 11:34 AMLandry Norris
07/27/2022, 1:55 PMSaiedmomen
07/27/2022, 1:57 PM