diff --git a/app/baselineprofile/src/main/kotlin/com/ekezet/othello/baselineprofile/BaselineProfileGenerator.kt b/app/baselineprofile/src/main/kotlin/com/ekezet/othello/baselineprofile/BaselineProfileGenerator.kt index 75d85e4..2995ec7 100644 --- a/app/baselineprofile/src/main/kotlin/com/ekezet/othello/baselineprofile/BaselineProfileGenerator.kt +++ b/app/baselineprofile/src/main/kotlin/com/ekezet/othello/baselineprofile/BaselineProfileGenerator.kt @@ -42,8 +42,8 @@ class BaselineProfileGenerator { // The application id for the running build variant is read from the instrumentation arguments. rule.collect( packageName = - InstrumentationRegistry.getArguments().getString("targetAppId") - ?: throw Exception("targetAppId not passed as instrumentation runner arg"), + InstrumentationRegistry.getArguments().getString("targetAppId") + ?: throw Exception("targetAppId not passed as instrumentation runner arg"), // See: https://d.android.com/topic/performance/baselineprofiles/dex-layout-optimizations includeInStartupProfile = true, ) { diff --git a/app/baselineprofile/src/main/kotlin/com/ekezet/othello/baselineprofile/StartupBenchmarks.kt b/app/baselineprofile/src/main/kotlin/com/ekezet/othello/baselineprofile/StartupBenchmarks.kt index 40f37e2..f333580 100644 --- a/app/baselineprofile/src/main/kotlin/com/ekezet/othello/baselineprofile/StartupBenchmarks.kt +++ b/app/baselineprofile/src/main/kotlin/com/ekezet/othello/baselineprofile/StartupBenchmarks.kt @@ -48,8 +48,8 @@ class StartupBenchmarks { // The application id for the running build variant is read from the instrumentation arguments. rule.measureRepeated( packageName = - InstrumentationRegistry.getArguments().getString("targetAppId") - ?: throw Exception("targetAppId not passed as instrumentation runner arg"), + InstrumentationRegistry.getArguments().getString("targetAppId") + ?: throw Exception("targetAppId not passed as instrumentation runner arg"), metrics = listOf(StartupTimingMetric()), compilationMode = compilationMode, startupMode = StartupMode.COLD, diff --git a/gradle/spotless.gradle.kts b/gradle/spotless.gradle.kts index 6a9cc1f..89c4872 100644 --- a/gradle/spotless.gradle.kts +++ b/gradle/spotless.gradle.kts @@ -21,6 +21,12 @@ rootProject { target("**/*.kt") targetExclude("**/build/**/*.kt") ktlint() + .editorConfigOverride( + mapOf( + "ktlint_standard_property-naming" to "disabled", + "ktlint_function_naming_ignore_when_annotated_with" to "Composable", + ) + ) } format("kts") { target("**/*.kts")