diff --git a/maps-compose/build.gradle b/maps-compose/build.gradle index e6a8343a2..d8dfc0092 100644 --- a/maps-compose/build.gradle +++ b/maps-compose/build.gradle @@ -31,6 +31,27 @@ android { jvmTarget = '1.8' freeCompilerArgs += '-Xexplicit-api=strict' freeCompilerArgs += '-Xopt-in=kotlin.RequiresOptIn' + + freeCompilerArgs += [ + "-P", + "plugin:androidx.compose.compiler.plugins.kotlin:stabilityConfigurationPath=" + + layout.projectDirectory.file('compose_compiler.conf').asFile.absolutePath + ] + + if (findProperty("composeCompilerReports") == "true") { + freeCompilerArgs += [ + "-P", + "plugin:androidx.compose.compiler.plugins.kotlin:reportsDestination=" + + project.buildDir.absolutePath + "/compose_compiler" + ] + } + if (findProperty("composeCompilerMetrics") == "true") { + freeCompilerArgs += [ + "-P", + "plugin:androidx.compose.compiler.plugins.kotlin:metricsDestination=" + + project.buildDir.absolutePath + "/compose_compiler" + ] + } } } diff --git a/maps-compose/compose_compiler.conf b/maps-compose/compose_compiler.conf new file mode 100644 index 000000000..618d3a36c --- /dev/null +++ b/maps-compose/compose_compiler.conf @@ -0,0 +1,7 @@ +com.google.android.gms.maps.model.BitmapDescriptor +com.google.android.gms.maps.model.Cap +com.google.android.gms.maps.model.LatLng +com.google.android.gms.maps.model.LatLngBounds +com.google.android.gms.maps.model.MapStyleOptions +com.google.android.gms.maps.model.PatternItem +com.google.android.gms.maps.model.PinConfig