diff --git a/.github/workflows/apply_spotless.yml b/.github/workflows/apply_spotless.yml
index d69f817b0..3727da63a 100644
--- a/.github/workflows/apply_spotless.yml
+++ b/.github/workflows/apply_spotless.yml
@@ -42,7 +42,7 @@ jobs:
java-version: '17'
- name: Run spotlessApply
- run: ./gradlew spotlessApply --init-script gradle/init.gradle.kts --no-configuration-cache --stacktrace
+ run: ./gradlew spotlessApply --stacktrace
- name: Auto-commit if spotlessApply has changes
uses: stefanzweifel/git-auto-commit-action@v5
diff --git a/bluetoothle/src/main/AndroidManifest.xml b/bluetoothle/src/main/AndroidManifest.xml
index d15b213e2..b42865576 100644
--- a/bluetoothle/src/main/AndroidManifest.xml
+++ b/bluetoothle/src/main/AndroidManifest.xml
@@ -1,4 +1,19 @@
+
@@ -24,4 +39,4 @@
-
\ No newline at end of file
+
diff --git a/bluetoothle/src/main/res/layout/activity_main.xml b/bluetoothle/src/main/res/layout/activity_main.xml
index b692bf4a3..b46563beb 100644
--- a/bluetoothle/src/main/res/layout/activity_main.xml
+++ b/bluetoothle/src/main/res/layout/activity_main.xml
@@ -1,4 +1,19 @@
+
-
\ No newline at end of file
+
diff --git a/bluetoothle/src/main/res/values/strings.xml b/bluetoothle/src/main/res/values/strings.xml
index 7abc06d3b..fa7796f20 100644
--- a/bluetoothle/src/main/res/values/strings.xml
+++ b/bluetoothle/src/main/res/values/strings.xml
@@ -1 +1,17 @@
+
+
diff --git a/build.gradle.kts b/build.gradle.kts
index 899385a15..bafd85c4e 100644
--- a/build.gradle.kts
+++ b/build.gradle.kts
@@ -13,6 +13,89 @@ plugins {
alias(libs.plugins.kotlin.multiplatform) apply false
alias(libs.plugins.android.kotlin.multiplatform.library) apply false
alias(libs.plugins.android.lint) apply false
+ alias(libs.plugins.spotless) apply false
+}
+
+subprojects {
+ apply(plugin = "com.diffplug.spotless")
+ extensions.configure {
+ kotlin {
+ target("**/*.kt")
+ targetExclude("**/build/**/*.kt")
+
+ val disabledRules = arrayOf(
+ // These rules were introduced in ktlint 0.46.0 and should not be
+ // enabled without further discussion. They are disabled for now.
+ // See: https://github.com/pinterest/ktlint/releases/tag/0.46.0
+ "filename",
+ "annotation",
+ "annotation-spacing",
+ "argument-list-wrapping",
+ "double-colon-spacing",
+ "enum-entry-name-case",
+ "multiline-if-else",
+ "no-empty-first-line-in-method-block",
+ "package-name",
+ "trailing-comma",
+ "spacing-around-angle-brackets",
+ "spacing-between-declarations-with-annotations",
+ "spacing-between-declarations-with-comments",
+ "unary-op-spacing",
+ "no-trailing-spaces",
+ "max-line-length",
+ // Disabled rules that were introduced or changed between 0.46.0 ~ 1.50.0
+ "class-signature",
+ "trailing-comma-on-call-site",
+ "trailing-comma-on-declaration-site",
+ "comment-wrapping",
+ "function-literal",
+ "function-signature",
+ "function-expression-body",
+ "function-start-of-body-spacing",
+ "multiline-expression-wrapping",
+ )
+
+ ktlint(libs.versions.ktlint.get()).editorConfigOverride(
+ mapOf(
+ "android" to "true",
+ "ktlint_code_style" to "android_studio",
+ "ij_kotlin_allow_trailing_comma" to "true",
+ ) + disabledRules.map { Pair("ktlint_standard_$it", "disabled") }
+ )
+
+ // ktlint 7.0.0 introduces lints, which existing snippets do not satisfy
+ val kotlinSuppressLints = arrayOf(
+ "standard:function-naming",
+ "standard:property-naming",
+ "standard:class-naming",
+ "standard:max-line-length",
+ "standard:comment-wrapping",
+ "standard:import-ordering",
+ "standard:filename",
+ "standard:backing-property-naming",
+ )
+ for (lint in kotlinSuppressLints) {
+ suppressLintsFor {
+ step = "ktlint"
+ shortCode = lint
+ }
+ }
+
+ licenseHeaderFile(rootProject.file("spotless/copyright.kt"))
+ }
+ kotlinGradle {
+ target("**/*.kts")
+ targetExclude("**/build/**/*.kts")
+ // Look for the first line that doesn't have a block comment (assumed to be the license)
+ licenseHeaderFile(rootProject.file("spotless/copyright.kts"), "(^(?![\\/ ]\\*).*$)")
+ }
+ format("xml") {
+ target("**/*.xml")
+ targetExclude("**/build/**/*.xml")
+ // Look for the root tag or a tag that is a snippet
+ licenseHeaderFile(rootProject.file("spotless/copyright.xml"), "(<[a-zA-Z])|(
+ Copyright 2018 The Android Open Source Project
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ https://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
RecomposeHighlighter
diff --git a/compose/recomposehighlighter/src/main/res/values/themes.xml b/compose/recomposehighlighter/src/main/res/values/themes.xml
index 918929c1b..f94279433 100644
--- a/compose/recomposehighlighter/src/main/res/values/themes.xml
+++ b/compose/recomposehighlighter/src/main/res/values/themes.xml
@@ -1,5 +1,21 @@
+
+
-
\ No newline at end of file
+
diff --git a/compose/snippets/lint.xml b/compose/snippets/lint.xml
index 778dd98f3..9ec5c3429 100644
--- a/compose/snippets/lint.xml
+++ b/compose/snippets/lint.xml
@@ -1,6 +1,21 @@
-
+
+
-
\ No newline at end of file
+
diff --git a/compose/snippets/src/main/AndroidManifest.xml b/compose/snippets/src/main/AndroidManifest.xml
index 4ec4d9b70..5c0f57b2e 100644
--- a/compose/snippets/src/main/AndroidManifest.xml
+++ b/compose/snippets/src/main/AndroidManifest.xml
@@ -1,20 +1,19 @@
+ Copyright 2023 The Android Open Source Project
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ https://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
@@ -70,4 +69,4 @@
-
\ No newline at end of file
+
diff --git a/compose/snippets/src/main/java/com/example/compose/snippets/ui/theme/Type.kt b/compose/snippets/src/main/java/com/example/compose/snippets/ui/theme/Type.kt
index acf007bfd..ab604e852 100644
--- a/compose/snippets/src/main/java/com/example/compose/snippets/ui/theme/Type.kt
+++ b/compose/snippets/src/main/java/com/example/compose/snippets/ui/theme/Type.kt
@@ -46,5 +46,5 @@ val Typography = Typography(
lineHeight = 16.sp,
letterSpacing = 0.5.sp
)
- */
+ */
)
diff --git a/compose/snippets/src/main/res/drawable-v24/ic_launcher_foreground.xml b/compose/snippets/src/main/res/drawable-v24/ic_launcher_foreground.xml
index 2f9758487..0f6026a41 100644
--- a/compose/snippets/src/main/res/drawable-v24/ic_launcher_foreground.xml
+++ b/compose/snippets/src/main/res/drawable-v24/ic_launcher_foreground.xml
@@ -1,19 +1,19 @@
+
+ Copyright 2023 The Android Open Source Project
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ https://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
-
\ No newline at end of file
+
diff --git a/compose/snippets/src/main/res/drawable/baseline_directions_bus_24.xml b/compose/snippets/src/main/res/drawable/baseline_directions_bus_24.xml
index 2de5d0a86..745eab18a 100644
--- a/compose/snippets/src/main/res/drawable/baseline_directions_bus_24.xml
+++ b/compose/snippets/src/main/res/drawable/baseline_directions_bus_24.xml
@@ -1,19 +1,19 @@
+
+ Copyright 2023 The Android Open Source Project
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ https://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
diff --git a/compose/snippets/src/main/res/drawable/baseline_shopping_cart_24.xml b/compose/snippets/src/main/res/drawable/baseline_shopping_cart_24.xml
index 817fb0539..15368afa6 100644
--- a/compose/snippets/src/main/res/drawable/baseline_shopping_cart_24.xml
+++ b/compose/snippets/src/main/res/drawable/baseline_shopping_cart_24.xml
@@ -1,19 +1,19 @@
+
+ Copyright 2023 The Android Open Source Project
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ https://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
diff --git a/compose/snippets/src/main/res/drawable/button_outline.xml b/compose/snippets/src/main/res/drawable/button_outline.xml
index f4eb02291..790fd2eb2 100644
--- a/compose/snippets/src/main/res/drawable/button_outline.xml
+++ b/compose/snippets/src/main/res/drawable/button_outline.xml
@@ -1,22 +1,22 @@
+
+ Copyright 2023 The Android Open Source Project
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ https://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
-
\ No newline at end of file
+
diff --git a/compose/snippets/src/main/res/drawable/fast_forward.xml b/compose/snippets/src/main/res/drawable/fast_forward.xml
index d49dffbf3..95cdea9c4 100644
--- a/compose/snippets/src/main/res/drawable/fast_forward.xml
+++ b/compose/snippets/src/main/res/drawable/fast_forward.xml
@@ -1,3 +1,19 @@
+
+
+
+
+
+
+
diff --git a/compose/snippets/src/main/res/drawable/ic_launcher_background.xml b/compose/snippets/src/main/res/drawable/ic_launcher_background.xml
index 4c2360d21..2edadf928 100644
--- a/compose/snippets/src/main/res/drawable/ic_launcher_background.xml
+++ b/compose/snippets/src/main/res/drawable/ic_launcher_background.xml
@@ -1,20 +1,19 @@
+ Copyright 2023 The Android Open Source Project
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ https://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+ Copyright 2023 The Android Open Source Project
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ https://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
diff --git a/compose/snippets/src/main/res/drawable/ic_moon_24.xml b/compose/snippets/src/main/res/drawable/ic_moon_24.xml
index 527559f3f..b1c551d5e 100644
--- a/compose/snippets/src/main/res/drawable/ic_moon_24.xml
+++ b/compose/snippets/src/main/res/drawable/ic_moon_24.xml
@@ -1,3 +1,19 @@
+
+
diff --git a/compose/snippets/src/main/res/drawable/ic_sun_24.xml b/compose/snippets/src/main/res/drawable/ic_sun_24.xml
index a63c6400e..4bac89d3e 100644
--- a/compose/snippets/src/main/res/drawable/ic_sun_24.xml
+++ b/compose/snippets/src/main/res/drawable/ic_sun_24.xml
@@ -1,3 +1,19 @@
+
+
diff --git a/compose/snippets/src/main/res/layout/activity_example.xml b/compose/snippets/src/main/res/layout/activity_example.xml
index be37892ac..b85c61cf1 100644
--- a/compose/snippets/src/main/res/layout/activity_example.xml
+++ b/compose/snippets/src/main/res/layout/activity_example.xml
@@ -1,20 +1,19 @@
+ Copyright 2023 The Android Open Source Project
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ https://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
-
\ No newline at end of file
+
diff --git a/compose/snippets/src/main/res/layout/example_layout.xml b/compose/snippets/src/main/res/layout/example_layout.xml
index d77d31543..91e49c045 100644
--- a/compose/snippets/src/main/res/layout/example_layout.xml
+++ b/compose/snippets/src/main/res/layout/example_layout.xml
@@ -1,20 +1,19 @@
+ Copyright 2023 The Android Open Source Project
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ https://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
-
\ No newline at end of file
+
diff --git a/compose/snippets/src/main/res/layout/example_view.xml b/compose/snippets/src/main/res/layout/example_view.xml
index 77fff6e8c..86bdacae8 100644
--- a/compose/snippets/src/main/res/layout/example_view.xml
+++ b/compose/snippets/src/main/res/layout/example_view.xml
@@ -1,20 +1,19 @@
+ Copyright 2023 The Android Open Source Project
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ https://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
diff --git a/compose/snippets/src/main/res/layout/fragment_example.xml b/compose/snippets/src/main/res/layout/fragment_example.xml
index fd65463ef..d5517e3c4 100644
--- a/compose/snippets/src/main/res/layout/fragment_example.xml
+++ b/compose/snippets/src/main/res/layout/fragment_example.xml
@@ -1,20 +1,19 @@
+ Copyright 2023 The Android Open Source Project
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ https://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
-
\ No newline at end of file
+
diff --git a/compose/snippets/src/main/res/layout/interop_layout_preview_composable.xml b/compose/snippets/src/main/res/layout/interop_layout_preview_composable.xml
index bb28c5685..b3a672cbe 100644
--- a/compose/snippets/src/main/res/layout/interop_layout_preview_composable.xml
+++ b/compose/snippets/src/main/res/layout/interop_layout_preview_composable.xml
@@ -1,20 +1,19 @@
+ Copyright 2023 The Android Open Source Project
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ https://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
-
\ No newline at end of file
+
diff --git a/compose/snippets/src/main/res/layout/migration_strategy_existing_screens.xml b/compose/snippets/src/main/res/layout/migration_strategy_existing_screens.xml
index 2ef7e2dcb..a7bd893b7 100644
--- a/compose/snippets/src/main/res/layout/migration_strategy_existing_screens.xml
+++ b/compose/snippets/src/main/res/layout/migration_strategy_existing_screens.xml
@@ -1,20 +1,19 @@
+ Copyright 2023 The Android Open Source Project
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ https://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
-
\ No newline at end of file
+
diff --git a/compose/snippets/src/main/res/layout/migration_strategy_xml_example.xml b/compose/snippets/src/main/res/layout/migration_strategy_xml_example.xml
index ac462f26c..e5ed1b289 100644
--- a/compose/snippets/src/main/res/layout/migration_strategy_xml_example.xml
+++ b/compose/snippets/src/main/res/layout/migration_strategy_xml_example.xml
@@ -1,20 +1,19 @@
+ Copyright 2023 The Android Open Source Project
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ https://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
-
\ No newline at end of file
+
diff --git a/compose/snippets/src/main/res/layout/my_container_view.xml b/compose/snippets/src/main/res/layout/my_container_view.xml
index 4d0ecb396..cec8feedc 100644
--- a/compose/snippets/src/main/res/layout/my_container_view.xml
+++ b/compose/snippets/src/main/res/layout/my_container_view.xml
@@ -1,21 +1,21 @@
+
+ Copyright 2023 The Android Open Source Project
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ https://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
-
\ No newline at end of file
+
diff --git a/compose/snippets/src/main/res/layout/my_fragment_layout.xml b/compose/snippets/src/main/res/layout/my_fragment_layout.xml
index d2428b777..3b0ec2765 100644
--- a/compose/snippets/src/main/res/layout/my_fragment_layout.xml
+++ b/compose/snippets/src/main/res/layout/my_fragment_layout.xml
@@ -1,24 +1,23 @@
+ Copyright 2023 The Android Open Source Project
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ https://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
-
\ No newline at end of file
+
diff --git a/compose/snippets/src/main/res/layout/touchinput_gestures_nested_scroll_interop.xml b/compose/snippets/src/main/res/layout/touchinput_gestures_nested_scroll_interop.xml
index bbc6128e7..229f37a13 100644
--- a/compose/snippets/src/main/res/layout/touchinput_gestures_nested_scroll_interop.xml
+++ b/compose/snippets/src/main/res/layout/touchinput_gestures_nested_scroll_interop.xml
@@ -1,20 +1,19 @@
+ Copyright 2023 The Android Open Source Project
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ https://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
-
\ No newline at end of file
+
diff --git a/compose/snippets/src/main/res/mipmap-anydpi-v26/ic_launcher.xml b/compose/snippets/src/main/res/mipmap-anydpi-v26/ic_launcher.xml
index 0b0b5355c..05f11b4d6 100644
--- a/compose/snippets/src/main/res/mipmap-anydpi-v26/ic_launcher.xml
+++ b/compose/snippets/src/main/res/mipmap-anydpi-v26/ic_launcher.xml
@@ -1,22 +1,21 @@
+ Copyright 2023 The Android Open Source Project
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ https://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
-
\ No newline at end of file
+
diff --git a/compose/snippets/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml b/compose/snippets/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml
index 0b0b5355c..05f11b4d6 100644
--- a/compose/snippets/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml
+++ b/compose/snippets/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml
@@ -1,22 +1,21 @@
+ Copyright 2023 The Android Open Source Project
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ https://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
-
\ No newline at end of file
+
diff --git a/compose/snippets/src/main/res/values-es/strings.xml b/compose/snippets/src/main/res/values-es/strings.xml
index 3ba327f49..7287beb35 100644
--- a/compose/snippets/src/main/res/values-es/strings.xml
+++ b/compose/snippets/src/main/res/values-es/strings.xml
@@ -1,19 +1,19 @@
+
+ Copyright 2023 The Android Open Source Project
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ https://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
snippets
Golden Retriever in fall leaves
@@ -53,4 +53,4 @@
Compras
Perfil
Esto es sólo un texto de marcador de posición.
-
\ No newline at end of file
+
diff --git a/compose/snippets/src/main/res/values/colors.xml b/compose/snippets/src/main/res/values/colors.xml
index 0205675f4..55242e03e 100644
--- a/compose/snippets/src/main/res/values/colors.xml
+++ b/compose/snippets/src/main/res/values/colors.xml
@@ -1,20 +1,19 @@
+ Copyright 2023 The Android Open Source Project
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ https://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
#FFBB86FC
#FF6200EE
@@ -25,4 +24,4 @@
#FFFFFFFF
#FFF
#FFF
-
\ No newline at end of file
+
diff --git a/compose/snippets/src/main/res/values/dimens.xml b/compose/snippets/src/main/res/values/dimens.xml
index d8dec0639..99c6f584a 100644
--- a/compose/snippets/src/main/res/values/dimens.xml
+++ b/compose/snippets/src/main/res/values/dimens.xml
@@ -1,20 +1,19 @@
+ Copyright 2023 The Android Open Source Project
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ https://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
8dp
-
\ No newline at end of file
+
diff --git a/compose/snippets/src/main/res/values/ids.xml b/compose/snippets/src/main/res/values/ids.xml
index f97cf8a5b..6cc94fcf1 100644
--- a/compose/snippets/src/main/res/values/ids.xml
+++ b/compose/snippets/src/main/res/values/ids.xml
@@ -1,23 +1,22 @@
+ Copyright 2023 The Android Open Source Project
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ https://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
-
\ No newline at end of file
+
diff --git a/compose/snippets/src/main/res/values/strings.xml b/compose/snippets/src/main/res/values/strings.xml
index 02254e29a..d4b9a63a6 100644
--- a/compose/snippets/src/main/res/values/strings.xml
+++ b/compose/snippets/src/main/res/values/strings.xml
@@ -1,19 +1,19 @@
+
+ Copyright 2023 The Android Open Source Project
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ https://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
snippets
Golden Retriever in fall leaves
@@ -55,4 +55,4 @@
This is just a placeholder.
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
-
\ No newline at end of file
+
diff --git a/compose/snippets/src/main/res/values/themes.xml b/compose/snippets/src/main/res/values/themes.xml
index 3d9f463cd..9e7318559 100644
--- a/compose/snippets/src/main/res/values/themes.xml
+++ b/compose/snippets/src/main/res/values/themes.xml
@@ -1,21 +1,20 @@
+ Copyright 2023 The Android Open Source Project
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ https://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
-
\ No newline at end of file
+
diff --git a/compose/snippets/src/main/res/xml/my_app_widget_info.xml b/compose/snippets/src/main/res/xml/my_app_widget_info.xml
index a1a7f5da2..75a4b70f6 100644
--- a/compose/snippets/src/main/res/xml/my_app_widget_info.xml
+++ b/compose/snippets/src/main/res/xml/my_app_widget_info.xml
@@ -1,21 +1,21 @@
+
+ Copyright 2023 The Android Open Source Project
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ https://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
-
\ No newline at end of file
+
diff --git a/gradle/init.gradle.kts b/gradle/init.gradle.kts
deleted file mode 100644
index 8a852469a..000000000
--- a/gradle/init.gradle.kts
+++ /dev/null
@@ -1,52 +0,0 @@
-val ktlintVersion = "0.43.0"
-
-initscript {
- val spotlessVersion = "6.11.0"
-
- repositories {
- mavenCentral()
- }
-
- dependencies {
- classpath("com.diffplug.spotless:spotless-plugin-gradle:$spotlessVersion")
- }
-}
-
-rootProject {
- subprojects {
- apply()
- extensions.configure {
- kotlin {
- target("**/*.kt")
- targetExclude("**/build/**/*.kt")
- ktlint(ktlintVersion).userData(
- mapOf(
- "android" to "true",
- "ktlint_code_style" to "android",
- "ij_kotlin_allow_trailing_comma" to "true",
- // These rules were introduced in ktlint 0.46.0 and should not be
- // enabled without further discussion. They are disabled for now.
- // See: https://github.com/pinterest/ktlint/releases/tag/0.46.0
- "disabled_rules" to
- "filename," +
- "annotation,annotation-spacing," +
- "argument-list-wrapping," +
- "double-colon-spacing," +
- "enum-entry-name-case," +
- "multiline-if-else," +
- "no-empty-first-line-in-method-block," +
- "package-name," +
- "trailing-comma," +
- "spacing-around-angle-brackets," +
- "spacing-between-declarations-with-annotations," +
- "spacing-between-declarations-with-comments," +
- "unary-op-spacing," +
- "no-trailing-spaces," +
- "max-line-length"
- )
- )
- licenseHeaderFile(rootProject.file("spotless/copyright.kt"))
- }
- }
- }
-}
\ No newline at end of file
diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml
index 4330d2542..245c8a5b1 100644
--- a/gradle/libs.versions.toml
+++ b/gradle/libs.versions.toml
@@ -47,6 +47,7 @@ guava = "33.4.8-jre"
hilt = "2.57"
horologist = "0.8.1-alpha"
junit = "4.13.2"
+ktlint = "1.5.0"
kotlin = "2.2.10"
kotlinCoroutinesOkhttp = "1.0"
kotlinxCoroutinesGuava = "1.10.2"
@@ -64,6 +65,7 @@ okHttp = "5.1.0"
playServicesWearable = "19.0.0"
protolayout = "1.3.0"
recyclerview = "1.4.0"
+spotless = "7.0.2"
targetSdk = "35"
tiles = "1.5.0"
tracing = "1.3.0"
@@ -207,3 +209,4 @@ kotlin-serialization = { id = "org.jetbrains.kotlin.plugin.serialization", versi
ksp = { id = "com.google.devtools.ksp", version.ref = "ksp" }
version-catalog-update = { id = "nl.littlerobots.version-catalog-update", version.ref = "version-catalog-update" }
android-lint = { id = "com.android.lint", version.ref = "androidGradlePlugin" }
+spotless = { id = "com.diffplug.spotless", version.ref = "spotless" }
diff --git a/identity/credentialmanager/src/main/AndroidManifest.xml b/identity/credentialmanager/src/main/AndroidManifest.xml
index fb060cc44..b0f129562 100644
--- a/identity/credentialmanager/src/main/AndroidManifest.xml
+++ b/identity/credentialmanager/src/main/AndroidManifest.xml
@@ -1,20 +1,19 @@
+ Copyright 2025 The Android Open Source Project
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ https://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
diff --git a/identity/credentialmanager/src/main/res/drawable-v24/ic_launcher_foreground.xml b/identity/credentialmanager/src/main/res/drawable-v24/ic_launcher_foreground.xml
index 2b068d114..8760078c8 100644
--- a/identity/credentialmanager/src/main/res/drawable-v24/ic_launcher_foreground.xml
+++ b/identity/credentialmanager/src/main/res/drawable-v24/ic_launcher_foreground.xml
@@ -1,3 +1,19 @@
+
+
-
\ No newline at end of file
+
diff --git a/identity/credentialmanager/src/main/res/drawable/ic_launcher_background.xml b/identity/credentialmanager/src/main/res/drawable/ic_launcher_background.xml
index 07d5da9cb..e6202fbb1 100644
--- a/identity/credentialmanager/src/main/res/drawable/ic_launcher_background.xml
+++ b/identity/credentialmanager/src/main/res/drawable/ic_launcher_background.xml
@@ -1,4 +1,19 @@
+
+ Copyright 2025 The Android Open Source Project
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ https://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
@@ -25,4 +24,4 @@
android:isCredential="true" />
-
\ No newline at end of file
+
diff --git a/identity/credentialmanager/src/main/res/mipmap-anydpi-v26/ic_launcher.xml b/identity/credentialmanager/src/main/res/mipmap-anydpi-v26/ic_launcher.xml
index 6f3b755bf..b8ff0f029 100644
--- a/identity/credentialmanager/src/main/res/mipmap-anydpi-v26/ic_launcher.xml
+++ b/identity/credentialmanager/src/main/res/mipmap-anydpi-v26/ic_launcher.xml
@@ -1,6 +1,21 @@
+
-
\ No newline at end of file
+
diff --git a/identity/credentialmanager/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml b/identity/credentialmanager/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml
index 6f3b755bf..b8ff0f029 100644
--- a/identity/credentialmanager/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml
+++ b/identity/credentialmanager/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml
@@ -1,6 +1,21 @@
+
-
\ No newline at end of file
+
diff --git a/identity/credentialmanager/src/main/res/values/colors.xml b/identity/credentialmanager/src/main/res/values/colors.xml
index f8c6127d3..732ae206f 100644
--- a/identity/credentialmanager/src/main/res/values/colors.xml
+++ b/identity/credentialmanager/src/main/res/values/colors.xml
@@ -1,4 +1,19 @@
+
#FFBB86FC
#FF6200EE
@@ -7,4 +22,4 @@
#FF018786
#FF000000
#FFFFFFFF
-
\ No newline at end of file
+
diff --git a/identity/credentialmanager/src/main/res/values/strings.xml b/identity/credentialmanager/src/main/res/values/strings.xml
index 8f5fb8e80..cb1497463 100644
--- a/identity/credentialmanager/src/main/res/values/strings.xml
+++ b/identity/credentialmanager/src/main/res/values/strings.xml
@@ -1,3 +1,19 @@
+
+
credentialmanager
// [START android_identity_assetlinks_app_association]
@@ -7,4 +23,4 @@
}]
// [END android_identity_assetlinks_app_association]
-
\ No newline at end of file
+
diff --git a/identity/credentialmanager/src/main/res/values/themes.xml b/identity/credentialmanager/src/main/res/values/themes.xml
index 65078ebe0..e2cf423e7 100644
--- a/identity/credentialmanager/src/main/res/values/themes.xml
+++ b/identity/credentialmanager/src/main/res/values/themes.xml
@@ -1,5 +1,20 @@
+
-
\ No newline at end of file
+
diff --git a/identity/credentialmanager/src/main/res/xml/provider.xml b/identity/credentialmanager/src/main/res/xml/provider.xml
index 81bdbd01d..9d75e5ad1 100644
--- a/identity/credentialmanager/src/main/res/xml/provider.xml
+++ b/identity/credentialmanager/src/main/res/xml/provider.xml
@@ -1,4 +1,19 @@
+
diff --git a/identity/credentialmanager/src/main/res/xml/provider_settings.xml b/identity/credentialmanager/src/main/res/xml/provider_settings.xml
index 698ba5f6c..1983ab623 100644
--- a/identity/credentialmanager/src/main/res/xml/provider_settings.xml
+++ b/identity/credentialmanager/src/main/res/xml/provider_settings.xml
@@ -1,4 +1,19 @@
+
-
\ No newline at end of file
+
+
diff --git a/kmp/shared/src/androidMain/AndroidManifest.xml b/kmp/shared/src/androidMain/AndroidManifest.xml
index a5918e68a..1d4927a52 100644
--- a/kmp/shared/src/androidMain/AndroidManifest.xml
+++ b/kmp/shared/src/androidMain/AndroidManifest.xml
@@ -1,4 +1,19 @@
+
-
\ No newline at end of file
+
diff --git a/kotlin/src/main/AndroidManifest.xml b/kotlin/src/main/AndroidManifest.xml
index 8072ee00d..1e772a05e 100644
--- a/kotlin/src/main/AndroidManifest.xml
+++ b/kotlin/src/main/AndroidManifest.xml
@@ -1,2 +1,17 @@
+
diff --git a/misc/src/main/AndroidManifest.xml b/misc/src/main/AndroidManifest.xml
index 2ad7db1e7..770f36dcd 100644
--- a/misc/src/main/AndroidManifest.xml
+++ b/misc/src/main/AndroidManifest.xml
@@ -1,4 +1,19 @@
+
diff --git a/misc/src/main/java/com/example/snippets/ActivityEmbeddingKotlinSnippets.kt b/misc/src/main/java/com/example/snippets/ActivityEmbeddingKotlinSnippets.kt
index d00308286..7871e78d5 100644
--- a/misc/src/main/java/com/example/snippets/ActivityEmbeddingKotlinSnippets.kt
+++ b/misc/src/main/java/com/example/snippets/ActivityEmbeddingKotlinSnippets.kt
@@ -276,7 +276,9 @@ class ActivityEmbeddingKotlinSnippets {
/**
* Function used by snippet.
*/
- fun classForItem(item: Int): Class<*> { return Class::class.java }
+ fun classForItem(item: Int): Class<*> {
+ return Class::class.java
+ }
// [START android_activity_embedding_MenuActivity_class_kotlin]
inner class MenuActivity : AppCompatActivity() {
diff --git a/misc/src/main/java/com/example/snippets/ui/theme/Type.kt b/misc/src/main/java/com/example/snippets/ui/theme/Type.kt
index f383a07ba..db2e63291 100644
--- a/misc/src/main/java/com/example/snippets/ui/theme/Type.kt
+++ b/misc/src/main/java/com/example/snippets/ui/theme/Type.kt
@@ -46,5 +46,5 @@ val Typography = Typography(
lineHeight = 16.sp,
letterSpacing = 0.5.sp
)
- */
+ */
)
diff --git a/misc/src/main/res/drawable/ic_launcher_background.xml b/misc/src/main/res/drawable/ic_launcher_background.xml
index 07d5da9cb..e6202fbb1 100644
--- a/misc/src/main/res/drawable/ic_launcher_background.xml
+++ b/misc/src/main/res/drawable/ic_launcher_background.xml
@@ -1,4 +1,19 @@
+
+
-
\ No newline at end of file
+
diff --git a/misc/src/main/res/layout/activity_main.xml b/misc/src/main/res/layout/activity_main.xml
index 59cbc1b45..dbfa14759 100644
--- a/misc/src/main/res/layout/activity_main.xml
+++ b/misc/src/main/res/layout/activity_main.xml
@@ -1,5 +1,19 @@
-
+
+
-
\ No newline at end of file
+
diff --git a/misc/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml b/misc/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml
index 6f3b755bf..b8ff0f029 100644
--- a/misc/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml
+++ b/misc/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml
@@ -1,6 +1,21 @@
+
-
\ No newline at end of file
+
diff --git a/misc/src/main/res/values/colors.xml b/misc/src/main/res/values/colors.xml
index 61944aef2..e1f592422 100644
--- a/misc/src/main/res/values/colors.xml
+++ b/misc/src/main/res/values/colors.xml
@@ -1,4 +1,19 @@
+
#FFBB86FC
#FF6200EE
diff --git a/misc/src/main/res/values/strings.xml b/misc/src/main/res/values/strings.xml
index 870fc4736..681420d2b 100644
--- a/misc/src/main/res/values/strings.xml
+++ b/misc/src/main/res/values/strings.xml
@@ -1,3 +1,19 @@
+
+
Background Snippets
-
\ No newline at end of file
+
diff --git a/misc/src/main/res/values/themes.xml b/misc/src/main/res/values/themes.xml
index 65078ebe0..e2cf423e7 100644
--- a/misc/src/main/res/values/themes.xml
+++ b/misc/src/main/res/values/themes.xml
@@ -1,5 +1,20 @@
+
-
\ No newline at end of file
+
diff --git a/misc/src/main/res/xml/main_split_config.xml b/misc/src/main/res/xml/main_split_config.xml
index 2113dc80d..a7860fa14 100644
--- a/misc/src/main/res/xml/main_split_config.xml
+++ b/misc/src/main/res/xml/main_split_config.xml
@@ -1,5 +1,19 @@
-
+
-
\ No newline at end of file
+
diff --git a/spotless/copyright.kts b/spotless/copyright.kts
new file mode 100644
index 000000000..806db0fb5
--- /dev/null
+++ b/spotless/copyright.kts
@@ -0,0 +1,16 @@
+/*
+ * Copyright $YEAR The Android Open Source Project
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
diff --git a/spotless/copyright.xml b/spotless/copyright.xml
new file mode 100644
index 000000000..9cb1e5942
--- /dev/null
+++ b/spotless/copyright.xml
@@ -0,0 +1,16 @@
+
+
\ No newline at end of file
diff --git a/views/src/main/AndroidManifest.xml b/views/src/main/AndroidManifest.xml
index 65ba8e1e0..cb8f943f4 100644
--- a/views/src/main/AndroidManifest.xml
+++ b/views/src/main/AndroidManifest.xml
@@ -1,20 +1,19 @@
-
\ No newline at end of file
+
diff --git a/views/src/main/res/layout/system_bar_protection.xml b/views/src/main/res/layout/system_bar_protection.xml
index f70ccd21f..d230aab10 100644
--- a/views/src/main/res/layout/system_bar_protection.xml
+++ b/views/src/main/res/layout/system_bar_protection.xml
@@ -1,22 +1,19 @@
-
-
\ No newline at end of file
+
diff --git a/views/src/main/res/layout/widget_preview.xml b/views/src/main/res/layout/widget_preview.xml
index c9f449bb1..356458236 100644
--- a/views/src/main/res/layout/widget_preview.xml
+++ b/views/src/main/res/layout/widget_preview.xml
@@ -1,24 +1,22 @@
-
\ No newline at end of file
+
diff --git a/wear/lint.xml b/wear/lint.xml
index 44fac75b8..51fd99c77 100644
--- a/wear/lint.xml
+++ b/wear/lint.xml
@@ -1,8 +1,23 @@
-
+
+
-
\ No newline at end of file
+
diff --git a/wear/src/main/AndroidManifest.xml b/wear/src/main/AndroidManifest.xml
index a585fb701..c2a0bb52f 100644
--- a/wear/src/main/AndroidManifest.xml
+++ b/wear/src/main/AndroidManifest.xml
@@ -1,4 +1,19 @@
+
diff --git a/wear/src/main/res/drawable/animated_walk.xml b/wear/src/main/res/drawable/animated_walk.xml
index e94991e07..b9e7fa835 100644
--- a/wear/src/main/res/drawable/animated_walk.xml
+++ b/wear/src/main/res/drawable/animated_walk.xml
@@ -1,12 +1,12 @@
diff --git a/wear/src/main/res/drawable/ic_launcher_background.xml b/wear/src/main/res/drawable/ic_launcher_background.xml
index ca3826a46..67a0a8f0d 100644
--- a/wear/src/main/res/drawable/ic_launcher_background.xml
+++ b/wear/src/main/res/drawable/ic_launcher_background.xml
@@ -1,4 +1,19 @@
+
+
-
\ No newline at end of file
+
diff --git a/wear/src/main/res/drawable/ic_walk.xml b/wear/src/main/res/drawable/ic_walk.xml
index 6c226e943..0d0bf8dca 100644
--- a/wear/src/main/res/drawable/ic_walk.xml
+++ b/wear/src/main/res/drawable/ic_walk.xml
@@ -1,3 +1,19 @@
+
+
+
-
\ No newline at end of file
+
diff --git a/wear/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml b/wear/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml
index bbd3e0212..8ebcf9c97 100644
--- a/wear/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml
+++ b/wear/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml
@@ -1,5 +1,20 @@
+
-
\ No newline at end of file
+
diff --git a/wear/src/main/res/values/strings.xml b/wear/src/main/res/values/strings.xml
index 19e308a68..d0ddb884a 100644
--- a/wear/src/main/res/values/strings.xml
+++ b/wear/src/main/res/values/strings.xml
@@ -1,3 +1,19 @@
+
+
Wear Snippets
Voice Input
@@ -9,4 +25,4 @@
My Complication
My Timeline Complication
Configuration activity
-
\ No newline at end of file
+
diff --git a/xr/src/main/AndroidManifest.xml b/xr/src/main/AndroidManifest.xml
index 6d6399c14..bc726787c 100644
--- a/xr/src/main/AndroidManifest.xml
+++ b/xr/src/main/AndroidManifest.xml
@@ -1,4 +1,19 @@
+
@@ -6,4 +21,4 @@
android:label="XR"
tools:ignore="MissingApplicationIcon" />
-
\ No newline at end of file
+
diff --git a/xr/src/main/java/com/example/xr/scenecore/GltfEntity.kt b/xr/src/main/java/com/example/xr/scenecore/GltfEntity.kt
index 997436ddf..cf39f9f4f 100644
--- a/xr/src/main/java/com/example/xr/scenecore/GltfEntity.kt
+++ b/xr/src/main/java/com/example/xr/scenecore/GltfEntity.kt
@@ -36,7 +36,7 @@ private suspend fun loadGltfFile(session: Session) {
private fun createModelEntity(session: Session, gltfModel: GltfModel) {
// [START androidxr_scenecore_gltfmodelentity_create]
if (session.scene.spatialCapabilities
- .hasCapability(SpatialCapabilities.SPATIAL_CAPABILITY_3D_CONTENT)
+ .hasCapability(SpatialCapabilities.SPATIAL_CAPABILITY_3D_CONTENT)
) {
val gltfEntity = GltfModelEntity.create(session, gltfModel)
}
diff --git a/xr/src/main/java/com/example/xr/scenecore/SpatialAudio.kt b/xr/src/main/java/com/example/xr/scenecore/SpatialAudio.kt
index b68e67713..25b1556a4 100644
--- a/xr/src/main/java/com/example/xr/scenecore/SpatialAudio.kt
+++ b/xr/src/main/java/com/example/xr/scenecore/SpatialAudio.kt
@@ -40,7 +40,7 @@ private fun playSpatialAudioAtEntity(session: Session, appContext: Context, enti
// [START androidxr_scenecore_playSpatialAudio]
// Check spatial capabilities before using spatial audio
if (session.scene.spatialCapabilities
- .hasCapability(SpatialCapabilities.SPATIAL_CAPABILITY_SPATIAL_AUDIO)
+ .hasCapability(SpatialCapabilities.SPATIAL_CAPABILITY_SPATIAL_AUDIO)
) { // The session has spatial audio capabilities
val maxVolume = 1F
val lowPriority = 0
diff --git a/xr/src/main/res/layout/example_fragment.xml b/xr/src/main/res/layout/example_fragment.xml
index 13aa8cbbe..607557309 100644
--- a/xr/src/main/res/layout/example_fragment.xml
+++ b/xr/src/main/res/layout/example_fragment.xml
@@ -1,4 +1,19 @@
+
@@ -6,4 +21,4 @@
android:id="@+id/compose_view"
android:layout_width="wrap_content"
android:layout_height="wrap_content" />
-
\ No newline at end of file
+
diff --git a/xr/src/main/res/values/dimens.xml b/xr/src/main/res/values/dimens.xml
index ed1e9310d..25ca08b8f 100644
--- a/xr/src/main/res/values/dimens.xml
+++ b/xr/src/main/res/values/dimens.xml
@@ -1,5 +1,20 @@
+
8dp
8dp
-
\ No newline at end of file
+