Skip to content

Commit 89fdeb5

Browse files
kikosodkhawk
andauthored
chore: apply Compose stability configuration file to all modules (#874)
Fixes #553. Moved compose_compiler_stability_config.conf to the root directory and configured maps-compose, maps-compose-utils, and maps-compose-widgets to use this shared file to potentially improve recomposition performance. Co-authored-by: Dale Hawkins <107309+dkhawk@users.noreply.github.com>
1 parent 845664d commit 89fdeb5

File tree

4 files changed

+27
-1
lines changed

4 files changed

+27
-1
lines changed
File renamed without changes.

maps-compose-utils/build.gradle.kts

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,19 @@ android {
4747
}
4848
}
4949

50+
composeCompiler {
51+
stabilityConfigurationFiles.set(
52+
listOf(rootProject.layout.projectDirectory.file("compose_compiler_stability_config.conf"))
53+
)
54+
55+
if (findProperty("composeCompilerReports") == "true") {
56+
reportsDestination = layout.buildDirectory.dir("compose_compiler")
57+
}
58+
if (findProperty("composeCompilerMetrics") == "true") {
59+
metricsDestination = layout.buildDirectory.dir("compose_compiler")
60+
}
61+
}
62+
5063
dependencies {
5164
api(project(":maps-compose"))
5265

maps-compose-widgets/build.gradle.kts

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,19 @@ android {
5555
}
5656
}
5757

58+
composeCompiler {
59+
stabilityConfigurationFiles.set(
60+
listOf(rootProject.layout.projectDirectory.file("compose_compiler_stability_config.conf"))
61+
)
62+
63+
if (findProperty("composeCompilerReports") == "true") {
64+
reportsDestination = layout.buildDirectory.dir("compose_compiler")
65+
}
66+
if (findProperty("composeCompilerMetrics") == "true") {
67+
metricsDestination = layout.buildDirectory.dir("compose_compiler")
68+
}
69+
}
70+
5871
dependencies {
5972
implementation(project(":maps-compose"))
6073

maps-compose/build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ android {
5151

5252
composeCompiler {
5353
stabilityConfigurationFiles.set(
54-
listOf(layout.projectDirectory.file("compose_compiler_stability_config.conf"))
54+
listOf(rootProject.layout.projectDirectory.file("compose_compiler_stability_config.conf"))
5555
)
5656

5757
if (findProperty("composeCompilerReports") == "true") {

0 commit comments

Comments
 (0)