From 203c8e1cebea81ed9ee059b92ad98e4279622ce4 Mon Sep 17 00:00:00 2001 From: Alex Vanyo Date: Fri, 29 Apr 2022 12:07:21 -0700 Subject: [PATCH] Configure spotless for kts and xml files Fixes: 230874524 Change-Id: I147b9f16d5424b3459435e3c5422867b40c480b7 --- app-nia-catalog/build.gradle.kts | 1 + app-nia-catalog/src/main/AndroidManifest.xml | 29 +++++++++--------- .../samples/apps/niacatalog/ui/Catalog.kt | 2 +- .../res/drawable/ic_launcher_background.xml | 16 ++++++++++ .../res/drawable/ic_launcher_foreground.xml | 16 ++++++++++ .../res/mipmap-anydpi-v26/ic_launcher.xml | 15 ++++++++++ .../mipmap-anydpi-v26/ic_launcher_round.xml | 15 ++++++++++ .../src/main/res/values/strings.xml | 29 +++++++++--------- .../src/main/res/values/themes.xml | 29 +++++++++--------- app/src/main/AndroidManifest.xml | 29 +++++++++--------- .../res/drawable/ic_launcher_background.xml | 16 ++++++++++ .../res/drawable/ic_launcher_foreground.xml | 16 ++++++++++ .../res/mipmap-anydpi-v26/ic_launcher.xml | 15 ++++++++++ .../mipmap-anydpi-v26/ic_launcher_round.xml | 15 ++++++++++ app/src/main/res/values-night/themes.xml | 29 +++++++++--------- app/src/main/res/values-v23/themes.xml | 29 +++++++++--------- app/src/main/res/values-v27/themes.xml | 29 +++++++++--------- app/src/main/res/values/colors.xml | 29 +++++++++--------- app/src/main/res/values/strings.xml | 29 +++++++++--------- app/src/main/res/values/themes.xml | 29 +++++++++--------- benchmark/src/main/AndroidManifest.xml | 15 ++++++++++ .../kotlin/nowinandroid.spotless.gradle.kts | 15 ++++++++-- core-common/src/main/AndroidManifest.xml | 15 ++++++++++ .../ic_nia_notification.xml | 16 ++++++++++ core-data-test/src/main/AndroidManifest.xml | 15 ++++++++++ core-data/src/main/AndroidManifest.xml | 15 ++++++++++ core-database/src/main/AndroidManifest.xml | 15 ++++++++++ .../src/main/AndroidManifest.xml | 15 ++++++++++ core-datastore/src/main/AndroidManifest.xml | 15 ++++++++++ core-model/src/main/AndroidManifest.xml | 15 ++++++++++ core-network/src/main/AndroidManifest.xml | 15 ++++++++++ core-testing/src/main/AndroidManifest.xml | 15 ++++++++++ core-ui/src/main/AndroidManifest.xml | 15 ++++++++++ core-ui/src/main/res/drawable/ic_bookmark.xml | 29 +++++++++--------- .../main/res/drawable/ic_bookmark_border.xml | 29 +++++++++--------- .../src/main/res/drawable/ic_bookmarks.xml | 29 +++++++++--------- .../main/res/drawable/ic_bookmarks_border.xml | 29 +++++++++--------- .../src/main/res/drawable/ic_menu_book.xml | 29 +++++++++--------- .../main/res/drawable/ic_menu_book_border.xml | 29 +++++++++--------- .../res/drawable/ic_placeholder_default.xml | 16 ++++++++++ core-ui/src/main/res/drawable/ic_upcoming.xml | 29 +++++++++--------- .../main/res/drawable/ic_upcoming_border.xml | 29 +++++++++--------- core-ui/src/main/res/values/strings.xml | 29 +++++++++--------- .../src/main/AndroidManifest.xml | 15 ++++++++++ .../src/main/res/values/strings.xml | 29 +++++++++--------- feature-foryou/src/main/AndroidManifest.xml | 15 ++++++++++ .../src/main/res/values/strings.xml | 29 +++++++++--------- feature-topic/src/main/AndroidManifest.xml | 15 ++++++++++ feature-topic/src/main/res/values/strings.xml | 29 +++++++++--------- spotless/copyright.kts | 15 ++++++++++ spotless/copyright.xml | 16 ++++++++++ sync/src/main/AndroidManifest.xml | 15 ++++++++++ sync/src/main/res/values/strings.xml | 30 +++++++++---------- 53 files changed, 772 insertions(+), 326 deletions(-) create mode 100644 spotless/copyright.kts create mode 100644 spotless/copyright.xml diff --git a/app-nia-catalog/build.gradle.kts b/app-nia-catalog/build.gradle.kts index 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.xml index 2fb9525ca..cd0b1e371 100644 --- a/app-nia-catalog/src/main/AndroidManifest.xml +++ b/app-nia-catalog/src/main/AndroidManifest.xml @@ -1,17 +1,18 @@ - 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.kt index 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.xml index 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 @@ + + + + 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.xml index 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 @@ + diff --git a/app-nia-catalog/src/main/res/values/strings.xml b/app-nia-catalog/src/main/res/values/strings.xml index 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 @@ - NiA Catalog diff --git a/app-nia-catalog/src/main/res/values/themes.xml b/app-nia-catalog/src/main/res/values/themes.xml index 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 @@ -