A fully functional Android app built entirely with Kotlin and Jetpack Compose
Configure spotless for kts and xml files
Alex Vanyo203c8e1cebea
diff --git a/app-nia-catalog/build.gradle.kts b/app-nia-catalog/build.gradle.ktsindex be9d173ee..dc8d4ffc0 100644--- a/app-nia-catalog/build.gradle.kts+++ b/app-nia-catalog/build.gradle.kts@@ -16,6 +16,7 @@plugins {id("nowinandroid.android.application")id("nowinandroid.android.application.compose")+ id("nowinandroid.spotless")}android {diff --git a/app-nia-catalog/src/main/AndroidManifest.xml b/app-nia-catalog/src/main/AndroidManifest.xmlindex 2fb9525ca..cd0b1e371 100644--- a/app-nia-catalog/src/main/AndroidManifest.xml+++ b/app-nia-catalog/src/main/AndroidManifest.xml@@ -1,17 +1,18 @@-<?xml version="1.0" encoding="utf-8"?><!--- ~ Copyright 2022 Google LLC- ~- ~ 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.+<?xml version="1.0" encoding="utf-8"?>+<!--+ Copyright 2022 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++ http://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.--><manifest xmlns:android="http://schemas.android.com/apk/res/android"package="com.google.samples.apps.niacatalog">diff --git a/app-nia-catalog/src/main/java/com/google/samples/apps/niacatalog/ui/Catalog.kt b/app-nia-catalog/src/main/java/com/google/samples/apps/niacatalog/ui/Catalog.ktindex f15366f72..c4f66166a 100644--- a/app-nia-catalog/src/main/java/com/google/samples/apps/niacatalog/ui/Catalog.kt+++ b/app-nia-catalog/src/main/java/com/google/samples/apps/niacatalog/ui/Catalog.kt@@ -604,4 +604,4 @@ fun NiaCatalog() {}}}-}\ No newline at end of file+}diff --git a/app-nia-catalog/src/main/res/drawable/ic_launcher_background.xml b/app-nia-catalog/src/main/res/drawable/ic_launcher_background.xmlindex 05b1a07cd..36fe340e6 100644--- a/app-nia-catalog/src/main/res/drawable/ic_launcher_background.xml+++ b/app-nia-catalog/src/main/res/drawable/ic_launcher_background.xml@@ -1,3 +1,19 @@+<?xml version="1.0" encoding="utf-8"?>+<!--+ Copyright 2022 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++ http://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.+--><vector xmlns:android="http://schemas.android.com/apk/res/android"android:width="108dp"android:height="108dp"diff --git a/app-nia-catalog/src/main/res/drawable/ic_launcher_foreground.xml b/app-nia-catalog/src/main/res/drawable/ic_launcher_foreground.xmlindex e5221389e..87be6ced0 100644--- a/app-nia-catalog/src/main/res/drawable/ic_launcher_foreground.xml+++ b/app-nia-catalog/src/main/res/drawable/ic_launcher_foreground.xml@@ -1,3 +1,19 @@+<?xml version="1.0" encoding="utf-8"?>+<!--+ Copyright 2022 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++ http://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.+--><vector xmlns:android="http://schemas.android.com/apk/res/android"android:width="108dp"android:height="108dp"diff --git a/app-nia-catalog/src/main/res/mipmap-anydpi-v26/ic_launcher.xml b/app-nia-catalog/src/main/res/mipmap-anydpi-v26/ic_launcher.xmlindex 7ff316695..28878a729 100644--- a/app-nia-catalog/src/main/res/mipmap-anydpi-v26/ic_launcher.xml+++ b/app-nia-catalog/src/main/res/mipmap-anydpi-v26/ic_launcher.xml@@ -1,4 +1,19 @@<?xml version="1.0" encoding="utf-8"?>+<!--+ Copyright 2022 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++ http://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.+--><adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android"><background android:drawable="@drawable/ic_launcher_background"/><foreground android:drawable="@drawable/ic_launcher_foreground"/>diff --git a/app-nia-catalog/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml b/app-nia-catalog/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xmlindex bbd3e0212..ee103766b 100644--- a/app-nia-catalog/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml+++ b/app-nia-catalog/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml@@ -1,4 +1,19 @@<?xml version="1.0" encoding="utf-8"?>+<!--+ Copyright 2022 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++ http://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.+--><adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android"><background android:drawable="@drawable/ic_launcher_background"/><foreground android:drawable="@drawable/ic_launcher_foreground"/>diff --git a/app-nia-catalog/src/main/res/values/strings.xml b/app-nia-catalog/src/main/res/values/strings.xmlindex faa623cae..69a3e1b11 100644--- a/app-nia-catalog/src/main/res/values/strings.xml+++ b/app-nia-catalog/src/main/res/values/strings.xml@@ -1,17 +1,18 @@-<?xml version="1.0" encoding="utf-8"?><!--- ~ Copyright 2022 Google LLC- ~- ~ 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.+<?xml version="1.0" encoding="utf-8"?>+<!--+ Copyright 2022 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++ http://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.--><resources><string name="app_name">NiA Catalog</string>diff --git a/app-nia-catalog/src/main/res/values/themes.xml b/app-nia-catalog/src/main/res/values/themes.xmlindex fd2d47be1..6e88adc0b 100644--- a/app-nia-catalog/src/main/res/values/themes.xml+++ b/app-nia-catalog/src/main/res/values/themes.xml@@ -1,17 +1,18 @@-<?xml version="1.0" encoding="utf-8"?><!--- ~ Copyright 2022 Google LLC- ~- ~ 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.+<?xml version="1.0" encoding="utf-8"?>+<!--+ Copyright 2022 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++ http://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.--><resources><style name="Theme.NiACatalog" parent="android:Theme.Material.Light.NoActionBar" />diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xmlindex 28ee00ff3..ae56af758 100644--- a/app/src/main/AndroidManifest.xml+++ b/app/src/main/AndroidManifest.xml@@ -1,17 +1,18 @@-<?xml version="1.0" encoding="utf-8"?><!--- ~ Copyright 2021 Google LLC- ~- ~ 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.+<?xml version="1.0" encoding="utf-8"?>+<!--+ Copyright 2021 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++ http://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.--><manifest xmlns:android="http://schemas.android.com/apk/res/android"xmlns:tools="http://schemas.android.com/tools"diff --git a/app/src/main/res/drawable/ic_launcher_background.xml b/app/src/main/res/drawable/ic_launcher_background.xmlindex c5ba2f34b..e92b8ccd2 100644--- a/app/src/main/res/drawable/ic_launcher_background.xml+++ b/app/src/main/res/drawable/ic_launcher_background.xml@@ -1,3 +1,19 @@+<?xml version="1.0" encoding="utf-8"?>+<!--+ Copyright 2022 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++ http://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.+--><vector xmlns:android="http://schemas.android.com/apk/res/android"android:width="108dp"android:height="108dp"diff --git a/app/src/main/res/drawable/ic_launcher_foreground.xml b/app/src/main/res/drawable/ic_launcher_foreground.xmlindex b02c83ae5..fb34cdf33 100644--- a/app/src/main/res/drawable/ic_launcher_foreground.xml+++ b/app/src/main/res/drawable/ic_launcher_foreground.xml@@ -1,3 +1,19 @@+<?xml version="1.0" encoding="utf-8"?>+<!--+ Copyright 2022 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++ http://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.+--><vector xmlns:android="http://schemas.android.com/apk/res/android"android:width="108dp"android:height="108dp"diff --git a/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml b/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xmlindex 7ff316695..28878a729 100644--- a/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml+++ b/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml@@ -1,4 +1,19 @@<?xml version="1.0" encoding="utf-8"?>+<!--+ Copyright 2022 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++ http://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.+--><adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android"><background android:drawable="@drawable/ic_launcher_background"/><foreground android:drawable="@drawable/ic_launcher_foreground"/>diff --git a/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml b/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xmlindex bbd3e0212..ee103766b 100644--- a/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml+++ b/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml@@ -1,4 +1,19 @@<?xml version="1.0" encoding="utf-8"?>+<!--+ Copyright 2022 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++ http://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.+--><adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android"><background android:drawable="@drawable/ic_launcher_background"/><foreground android:drawable="@drawable/ic_launcher_foreground"/>diff --git a/app/src/main/res/values-night/themes.xml b/app/src/main/res/values-night/themes.xmlindex 6afd586e3..78ed557f4 100644--- a/app/src/main/res/values-night/themes.xml+++ b/app/src/main/res/values-night/themes.xml@@ -1,17 +1,18 @@-<?xml version="1.0" encoding="utf-8"?><!--- ~ Copyright 2021 Google LLC- ~- ~ 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.+<?xml version="1.0" encoding="utf-8"?>+<!--+ Copyright 2021 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++ http://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.--><resources>diff --git a/app/src/main/res/values-v23/themes.xml b/app/src/main/res/values-v23/themes.xmlindex 0458654e4..2a13f9c35 100644--- a/app/src/main/res/values-v23/themes.xml+++ b/app/src/main/res/values-v23/themes.xml@@ -1,17 +1,18 @@-<?xml version="1.0" encoding="utf-8"?><!--- ~ Copyright 2021 Google LLC- ~- ~ 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.+<?xml version="1.0" encoding="utf-8"?>+<!--+ Copyright 2021 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++ http://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.--><resources>diff --git a/app/src/main/res/values-v27/themes.xml b/app/src/main/res/values-v27/themes.xmlindex 7156cf11b..b322aee6b 100644--- a/app/src/main/res/values-v27/themes.xml+++ b/app/src/main/res/values-v27/themes.xml@@ -1,17 +1,18 @@-<?xml version="1.0" encoding="utf-8"?><!--- ~ Copyright 2021 Google LLC- ~- ~ 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.+<?xml version="1.0" encoding="utf-8"?>+<!--+ Copyright 2021 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++ http://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.--><resources>diff --git a/app/src/main/res/values/colors.xml b/app/src/main/res/values/colors.xmlindex a7417fcf9..ba503b90d 100644--- a/app/src/main/res/values/colors.xml+++ b/app/src/main/res/values/colors.xml@@ -1,17 +1,18 @@-<?xml version="1.0" encoding="utf-8"?><!--- ~ Copyright 2021 Google LLC- ~- ~ 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.+<?xml version="1.0" encoding="utf-8"?>+<!--+ Copyright 2021 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++ http://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.--><resources><color name="purple_200">#FFBB86FC</color>diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xmlindex 4c32312a6..6d5202b99 100644--- a/app/src/main/res/values/strings.xml+++ b/app/src/main/res/values/strings.xml@@ -1,17 +1,18 @@-<?xml version="1.0" encoding="utf-8"?><!--- ~ Copyright 2021 Google LLC- ~- ~ 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.+<?xml version="1.0" encoding="utf-8"?>+<!--+ Copyright 2021 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++ http://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.--><resources><string name="app_name">Now in Android</string>diff --git a/app/src/main/res/values/themes.xml b/app/src/main/res/values/themes.xmlindex 249b3e343..9ace165b5 100644--- a/app/src/main/res/values/themes.xml+++ b/app/src/main/res/values/themes.xml@@ -1,17 +1,18 @@-<?xml version="1.0" encoding="utf-8"?><!--- ~ Copyright 2021 Google LLC- ~- ~ 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.+<?xml version="1.0" encoding="utf-8"?>+<!--+ Copyright 2021 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++ http://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.--><resources>diff --git a/benchmark/src/main/AndroidManifest.xml b/benchmark/src/main/AndroidManifest.xmlindex de749acb7..1cf255471 100644--- a/benchmark/src/main/AndroidManifest.xml+++ b/benchmark/src/main/AndroidManifest.xml@@ -1,2 +1,17 @@<?xml version="1.0" encoding="utf-8"?>+<!--+ Copyright 2022 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++ http://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.+--><manifest xmlns:android="http://schemas.android.com/apk/res/android" />\ No newline at end of filediff --git a/build-logic/convention/src/main/kotlin/nowinandroid.spotless.gradle.kts b/build-logic/convention/src/main/kotlin/nowinandroid.spotless.gradle.ktsindex e3df80d7f..3ba2190f8 100644--- a/build-logic/convention/src/main/kotlin/nowinandroid.spotless.gradle.kts+++ b/build-logic/convention/src/main/kotlin/nowinandroid.spotless.gradle.kts@@ -23,9 +23,20 @@ val libs = extensions.getByType<VersionCatalogsExtension>().named("libs")spotless {kotlin {target("**/*.kt")- targetExclude("$buildDir/**/*.kt")- targetExclude("bin/**/*.kt")+ targetExclude("**/build/**/*.kt")ktlint(libs.findVersion("ktlint").get().toString()).userData(mapOf("android" to "true"))licenseHeaderFile(rootProject.file("spotless/copyright.kt"))}+ format("kts") {+ 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 first XML tag that isn't a comment (<!--) or the xml declaration (<?xml)+ licenseHeaderFile(rootProject.file("spotless/copyright.xml"), "(<[^!?])")+ }}diff --git a/core-common/src/main/AndroidManifest.xml b/core-common/src/main/AndroidManifest.xmlindex 0a9c52307..a0b613a7b 100644--- a/core-common/src/main/AndroidManifest.xml+++ b/core-common/src/main/AndroidManifest.xml@@ -1,4 +1,19 @@<?xml version="1.0" encoding="utf-8"?>+<!--+ Copyright 2022 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++ http://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.+--><manifest xmlns:android="http://schemas.android.com/apk/res/android"package="com.google.samples.apps.nowinandroid.core.common">diff --git a/core-common/src/main/res/drawable-anydpi-v24/ic_nia_notification.xml b/core-common/src/main/res/drawable-anydpi-v24/ic_nia_notification.xmlindex 6f92d40c0..8037f9089 100644--- a/core-common/src/main/res/drawable-anydpi-v24/ic_nia_notification.xml+++ b/core-common/src/main/res/drawable-anydpi-v24/ic_nia_notification.xml@@ -1,3 +1,19 @@+<?xml version="1.0" encoding="utf-8"?>+<!--+ Copyright 2022 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++ http://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.+--><vector xmlns:android="http://schemas.android.com/apk/res/android"android:width="24dp"android:height="24dp"diff --git a/core-data-test/src/main/AndroidManifest.xml b/core-data-test/src/main/AndroidManifest.xmlindex 3acf58e26..2ce7621ac 100644--- a/core-data-test/src/main/AndroidManifest.xml+++ b/core-data-test/src/main/AndroidManifest.xml@@ -1,4 +1,19 @@<?xml version="1.0" encoding="utf-8"?>+<!--+ Copyright 2022 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++ http://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.+--><manifest xmlns:android="http://schemas.android.com/apk/res/android"package="com.google.samples.apps.nowinandroid.core.data.test">diff --git a/core-data/src/main/AndroidManifest.xml b/core-data/src/main/AndroidManifest.xmlindex 5d2feae8e..431264e4a 100644--- a/core-data/src/main/AndroidManifest.xml+++ b/core-data/src/main/AndroidManifest.xml@@ -1,4 +1,19 @@<?xml version="1.0" encoding="utf-8"?>+<!--+ Copyright 2022 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++ http://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.+--><manifest xmlns:android="http://schemas.android.com/apk/res/android"package="com.google.samples.apps.nowinandroid.core.data">diff --git a/core-database/src/main/AndroidManifest.xml b/core-database/src/main/AndroidManifest.xmlindex d2f457d63..ae6d3fe50 100644--- a/core-database/src/main/AndroidManifest.xml+++ b/core-database/src/main/AndroidManifest.xml@@ -1,4 +1,19 @@<?xml version="1.0" encoding="utf-8"?>+<!--+ Copyright 2022 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++ http://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.+--><manifest xmlns:android="http://schemas.android.com/apk/res/android"package="com.google.samples.apps.nowinandroid.core.database">diff --git a/core-datastore-test/src/main/AndroidManifest.xml b/core-datastore-test/src/main/AndroidManifest.xmlindex fa414c5d8..e0d63ea27 100644--- a/core-datastore-test/src/main/AndroidManifest.xml+++ b/core-datastore-test/src/main/AndroidManifest.xml@@ -1,4 +1,19 @@<?xml version="1.0" encoding="utf-8"?>+<!--+ Copyright 2022 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++ http://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.+--><manifest xmlns:android="http://schemas.android.com/apk/res/android"package="com.google.samples.apps.nowinandroid.core.datastore.test">diff --git a/core-datastore/src/main/AndroidManifest.xml b/core-datastore/src/main/AndroidManifest.xmlindex 73c7fc7b6..d07c935fa 100644--- a/core-datastore/src/main/AndroidManifest.xml+++ b/core-datastore/src/main/AndroidManifest.xml@@ -1,4 +1,19 @@<?xml version="1.0" encoding="utf-8"?>+<!--+ Copyright 2022 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++ http://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.+--><manifest xmlns:android="http://schemas.android.com/apk/res/android"package="com.google.samples.apps.nowinandroid.core.datastore">diff --git a/core-model/src/main/AndroidManifest.xml b/core-model/src/main/AndroidManifest.xmlindex ed0bf90c5..e04125b63 100644--- a/core-model/src/main/AndroidManifest.xml+++ b/core-model/src/main/AndroidManifest.xml@@ -1,4 +1,19 @@<?xml version="1.0" encoding="utf-8"?>+<!--+ Copyright 2022 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++ http://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.+--><manifest xmlns:android="http://schemas.android.com/apk/res/android"package="com.google.samples.apps.nowinandroid.core.model">diff --git a/core-network/src/main/AndroidManifest.xml b/core-network/src/main/AndroidManifest.xmlindex d9460a3de..dfab2494f 100644--- a/core-network/src/main/AndroidManifest.xml+++ b/core-network/src/main/AndroidManifest.xml@@ -1,4 +1,19 @@<?xml version="1.0" encoding="utf-8"?>+<!--+ Copyright 2022 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++ http://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.+--><manifest xmlns:android="http://schemas.android.com/apk/res/android"package="com.google.samples.apps.nowinandroid.core.network">diff --git a/core-testing/src/main/AndroidManifest.xml b/core-testing/src/main/AndroidManifest.xmlindex 2a4ffc1f0..42486709c 100644--- a/core-testing/src/main/AndroidManifest.xml+++ b/core-testing/src/main/AndroidManifest.xml@@ -1,4 +1,19 @@<?xml version="1.0" encoding="utf-8"?>+<!--+ Copyright 2022 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++ http://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.+--><manifest xmlns:android="http://schemas.android.com/apk/res/android"package="com.google.samples.apps.nowinandroid.core.testing">diff --git a/core-ui/src/main/AndroidManifest.xml b/core-ui/src/main/AndroidManifest.xmlindex 18d4170ba..864e3481d 100644--- a/core-ui/src/main/AndroidManifest.xml+++ b/core-ui/src/main/AndroidManifest.xml@@ -1,4 +1,19 @@<?xml version="1.0" encoding="utf-8"?>+<!--+ Copyright 2022 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++ http://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.+--><manifest xmlns:android="http://schemas.android.com/apk/res/android"package="com.google.samples.apps.nowinandroid.core.ui">diff --git a/core-ui/src/main/res/drawable/ic_bookmark.xml b/core-ui/src/main/res/drawable/ic_bookmark.xmlindex 5a5eaabdd..29b7e40a7 100644--- a/core-ui/src/main/res/drawable/ic_bookmark.xml+++ b/core-ui/src/main/res/drawable/ic_bookmark.xml@@ -1,17 +1,18 @@-<?xml version="1.0" encoding="utf-8"?><!--- ~ Copyright 2022 Google LLC- ~- ~ 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.+<?xml version="1.0" encoding="utf-8"?>+<!--+ Copyright 2022 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++ http://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.--><vector xmlns:android="http://schemas.android.com/apk/res/android"android:width="24dp"diff --git a/core-ui/src/main/res/drawable/ic_bookmark_border.xml b/core-ui/src/main/res/drawable/ic_bookmark_border.xmlindex d5db05793..1d4b4aca9 100644--- a/core-ui/src/main/res/drawable/ic_bookmark_border.xml+++ b/core-ui/src/main/res/drawable/ic_bookmark_border.xml@@ -1,17 +1,18 @@-<?xml version="1.0" encoding="utf-8"?><!--- ~ Copyright 2022 Google LLC- ~- ~ 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.+<?xml version="1.0" encoding="utf-8"?>+<!--+ Copyright 2022 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++ http://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.--><vector xmlns:android="http://schemas.android.com/apk/res/android"android:width="24dp"diff --git a/core-ui/src/main/res/drawable/ic_bookmarks.xml b/core-ui/src/main/res/drawable/ic_bookmarks.xmlindex 0c2c56f13..ed6e84f81 100644--- a/core-ui/src/main/res/drawable/ic_bookmarks.xml+++ b/core-ui/src/main/res/drawable/ic_bookmarks.xml@@ -1,17 +1,18 @@-<?xml version="1.0" encoding="utf-8"?><!--- ~ Copyright 2022 Google LLC- ~- ~ 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.+<?xml version="1.0" encoding="utf-8"?>+<!--+ Copyright 2022 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++ http://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.--><vector xmlns:android="http://schemas.android.com/apk/res/android"android:width="24dp"diff --git a/core-ui/src/main/res/drawable/ic_bookmarks_border.xml b/core-ui/src/main/res/drawable/ic_bookmarks_border.xmlindex 9e342a7e3..64f0b5159 100644--- a/core-ui/src/main/res/drawable/ic_bookmarks_border.xml+++ b/core-ui/src/main/res/drawable/ic_bookmarks_border.xml@@ -1,17 +1,18 @@-<?xml version="1.0" encoding="utf-8"?><!--- ~ Copyright 2022 Google LLC- ~- ~ 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.+<?xml version="1.0" encoding="utf-8"?>+<!--+ Copyright 2022 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++ http://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.--><vector xmlns:android="http://schemas.android.com/apk/res/android"android:width="24dp"diff --git a/core-ui/src/main/res/drawable/ic_menu_book.xml b/core-ui/src/main/res/drawable/ic_menu_book.xmlindex 57861d546..e81276888 100644--- a/core-ui/src/main/res/drawable/ic_menu_book.xml+++ b/core-ui/src/main/res/drawable/ic_menu_book.xml@@ -1,17 +1,18 @@-<?xml version="1.0" encoding="utf-8"?><!--- ~ Copyright 2022 Google LLC- ~- ~ 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.+<?xml version="1.0" encoding="utf-8"?>+<!--+ Copyright 2022 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++ http://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.--><vector xmlns:android="http://schemas.android.com/apk/res/android"android:width="24dp"diff --git a/core-ui/src/main/res/drawable/ic_menu_book_border.xml b/core-ui/src/main/res/drawable/ic_menu_book_border.xmlindex 9d8244f0c..04ec651f6 100644--- a/core-ui/src/main/res/drawable/ic_menu_book_border.xml+++ b/core-ui/src/main/res/drawable/ic_menu_book_border.xml@@ -1,17 +1,18 @@-<?xml version="1.0" encoding="utf-8"?><!--- ~ Copyright 2022 Google LLC- ~- ~ 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.+<?xml version="1.0" encoding="utf-8"?>+<!--+ Copyright 2022 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++ http://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.--><vector xmlns:android="http://schemas.android.com/apk/res/android"android:width="24dp"diff --git a/core-ui/src/main/res/drawable/ic_placeholder_default.xml b/core-ui/src/main/res/drawable/ic_placeholder_default.xmlindex c6467caed..a00c2de22 100644--- a/core-ui/src/main/res/drawable/ic_placeholder_default.xml+++ b/core-ui/src/main/res/drawable/ic_placeholder_default.xml@@ -1,3 +1,19 @@+<?xml version="1.0" encoding="utf-8"?>+<!--+ Copyright 2022 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++ http://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.+--><vector xmlns:android="http://schemas.android.com/apk/res/android"xmlns:aapt="http://schemas.android.com/aapt"android:width="364dp"diff --git a/core-ui/src/main/res/drawable/ic_upcoming.xml b/core-ui/src/main/res/drawable/ic_upcoming.xmlindex 27e25b850..a05017e74 100644--- a/core-ui/src/main/res/drawable/ic_upcoming.xml+++ b/core-ui/src/main/res/drawable/ic_upcoming.xml@@ -1,17 +1,18 @@-<?xml version="1.0" encoding="utf-8"?><!--- ~ Copyright 2022 Google LLC- ~- ~ 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.+<?xml version="1.0" encoding="utf-8"?>+<!--+ Copyright 2022 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++ http://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.--><vector xmlns:android="http://schemas.android.com/apk/res/android"android:width="24dp"diff --git a/core-ui/src/main/res/drawable/ic_upcoming_border.xml b/core-ui/src/main/res/drawable/ic_upcoming_border.xmlindex 4275e7571..5f3151232 100644--- a/core-ui/src/main/res/drawable/ic_upcoming_border.xml+++ b/core-ui/src/main/res/drawable/ic_upcoming_border.xml@@ -1,17 +1,18 @@-<?xml version="1.0" encoding="utf-8"?><!--- ~ Copyright 2022 Google LLC- ~- ~ 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.+<?xml version="1.0" encoding="utf-8"?>+<!--+ Copyright 2022 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++ http://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.--><vector xmlns:android="http://schemas.android.com/apk/res/android"android:width="24dp"diff --git a/core-ui/src/main/res/values/strings.xml b/core-ui/src/main/res/values/strings.xmlindex 78412bb0a..a55cc697a 100644--- a/core-ui/src/main/res/values/strings.xml+++ b/core-ui/src/main/res/values/strings.xml@@ -1,17 +1,18 @@-<?xml version="1.0" encoding="utf-8"?><!--- ~ Copyright 2021 Google LLC- ~- ~ 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.+<?xml version="1.0" encoding="utf-8"?>+<!--+ Copyright 2021 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++ http://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.--><resources><string name="bookmark">Bookmark</string>diff --git a/feature-following/src/main/AndroidManifest.xml b/feature-following/src/main/AndroidManifest.xmlindex c5a94ff36..d3b98772a 100644--- a/feature-following/src/main/AndroidManifest.xml+++ b/feature-following/src/main/AndroidManifest.xml@@ -1,4 +1,19 @@<?xml version="1.0" encoding="utf-8"?>+<!--+ Copyright 2022 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++ http://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.+--><manifest xmlns:android="http://schemas.android.com/apk/res/android"package="com.google.samples.apps.nowinandroid.feature.following">diff --git a/feature-following/src/main/res/values/strings.xml b/feature-following/src/main/res/values/strings.xmlindex 4ba1d1ecd..32b643fea 100644--- a/feature-following/src/main/res/values/strings.xml+++ b/feature-following/src/main/res/values/strings.xml@@ -1,17 +1,18 @@-<?xml version="1.0" encoding="utf-8"?><!--- ~ Copyright 2022 Google LLC- ~- ~ 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.+<?xml version="1.0" encoding="utf-8"?>+<!--+ Copyright 2022 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++ http://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.--><resources><string name="interests">Interests</string>diff --git a/feature-foryou/src/main/AndroidManifest.xml b/feature-foryou/src/main/AndroidManifest.xmlindex b9c06cccd..f72fbc540 100644--- a/feature-foryou/src/main/AndroidManifest.xml+++ b/feature-foryou/src/main/AndroidManifest.xml@@ -1,4 +1,19 @@<?xml version="1.0" encoding="utf-8"?>+<!--+ Copyright 2022 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++ http://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.+--><manifest xmlns:android="http://schemas.android.com/apk/res/android"package="com.google.samples.apps.nowinandroid.feature.foryou">diff --git a/feature-foryou/src/main/res/values/strings.xml b/feature-foryou/src/main/res/values/strings.xmlindex 48c40620d..0c6428ca7 100644--- a/feature-foryou/src/main/res/values/strings.xml+++ b/feature-foryou/src/main/res/values/strings.xml@@ -1,17 +1,18 @@-<?xml version="1.0" encoding="utf-8"?><!--- ~ Copyright 2021 Google LLC- ~- ~ 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.+<?xml version="1.0" encoding="utf-8"?>+<!--+ Copyright 2021 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++ http://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.--><resources><string name="for_you">For you</string>diff --git a/feature-topic/src/main/AndroidManifest.xml b/feature-topic/src/main/AndroidManifest.xmlindex da59e9bf6..be0731035 100644--- a/feature-topic/src/main/AndroidManifest.xml+++ b/feature-topic/src/main/AndroidManifest.xml@@ -1,4 +1,19 @@<?xml version="1.0" encoding="utf-8"?>+<!--+ Copyright 2022 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++ http://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.+--><manifest xmlns:android="http://schemas.android.com/apk/res/android"package="com.google.samples.apps.nowinandroid.feature.topic">diff --git a/feature-topic/src/main/res/values/strings.xml b/feature-topic/src/main/res/values/strings.xmlindex eeeb01a7d..21e3ec246 100644--- a/feature-topic/src/main/res/values/strings.xml+++ b/feature-topic/src/main/res/values/strings.xml@@ -1,17 +1,18 @@-<?xml version="1.0" encoding="utf-8"?><!--- ~ Copyright 2022 Google LLC- ~- ~ 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.+<?xml version="1.0" encoding="utf-8"?>+<!--+ Copyright 2022 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++ http://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.--><resources><string name="topic">Topic</string>diff --git a/spotless/copyright.kts b/spotless/copyright.ktsnew file mode 100644index 000000000..8c5d92cc5--- /dev/null+++ b/spotless/copyright.kts@@ -0,0 +1,15 @@+/*+ * 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.xmlnew file mode 100644index 000000000..3085c43e7--- /dev/null+++ b/spotless/copyright.xml@@ -0,0 +1,16 @@+<?xml version="1.0" encoding="utf-8"?>+<!--+ 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++ http://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/sync/src/main/AndroidManifest.xml b/sync/src/main/AndroidManifest.xmlindex 5627bb1b5..b06d3c873 100644--- a/sync/src/main/AndroidManifest.xml+++ b/sync/src/main/AndroidManifest.xml@@ -1,4 +1,19 @@<?xml version="1.0" encoding="utf-8"?>+<!--+ Copyright 2022 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++ http://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.+--><manifest xmlns:android="http://schemas.android.com/apk/res/android"xmlns:tools="http://schemas.android.com/tools"package="com.google.samples.apps.nowinandroid.sync">diff --git a/sync/src/main/res/values/strings.xml b/sync/src/main/res/values/strings.xmlindex 3ad1cc990..e3fd73ff8 100644--- a/sync/src/main/res/values/strings.xml+++ b/sync/src/main/res/values/strings.xml@@ -1,19 +1,19 @@-<?xml version="1.0" encoding="utf-8"?><!--- ~ Copyright 2022 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.- -->+<?xml version="1.0" encoding="utf-8"?>+<!--+ Copyright 2022 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++ http://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.+--><resources><string name="sync_notification_title">Now in Android</string><string name="sync_notification_channel_name">Sync</string>