From e578f4ca93f6292f62e4b4c7fa11d17fe0b27c71 Mon Sep 17 00:00:00 2001 From: ByteHamster Date: Sun, 7 Apr 2024 23:28:14 +0200 Subject: CI tweaks (#7069) - Run Checkstyle with gradle to make it easier for users - No longer needs different configuration for new code - Exclude current violations - Fix some violations that somehow couldn't be specified in the exclusion file - Print SpotBugs/Lint/Checkstly violations in GitHub format - Then the CI run gets annotated on the web UI --- ui/preferences/build.gradle | 10 ---- ui/preferences/src/main/assets/.gitignore | 4 -- ui/preferences/src/main/assets/LICENSE.txt | 1 + .../src/main/res/layout/about_teaser.xml | 14 +++--- .../main/res/layout/choose_data_folder_dialog.xml | 15 +++--- .../res/layout/choose_data_folder_dialog_entry.xml | 8 ++-- .../src/main/res/layout/gpodnetauth_device_row.xml | 17 +++---- .../src/main/res/layout/gpodnetauth_finish.xml | 4 +- .../src/main/res/layout/simple_icon_list_item.xml | 54 +++++++++++----------- 9 files changed, 59 insertions(+), 68 deletions(-) delete mode 100644 ui/preferences/src/main/assets/.gitignore create mode 120000 ui/preferences/src/main/assets/LICENSE.txt (limited to 'ui/preferences') diff --git a/ui/preferences/build.gradle b/ui/preferences/build.gradle index fd9684e56..1a76f4c64 100644 --- a/ui/preferences/build.gradle +++ b/ui/preferences/build.gradle @@ -48,13 +48,3 @@ dependencies { implementation "org.greenrobot:eventbus:$eventbusVersion" implementation 'com.github.ByteHamster:SearchPreference:v2.5.0' } - -tasks.register('copyLicense', Copy) { - from "../../LICENSE" - into "src/main/assets/" - rename { String fileName -> - fileName + ".txt" - } -} - -preBuild.dependsOn copyLicense diff --git a/ui/preferences/src/main/assets/.gitignore b/ui/preferences/src/main/assets/.gitignore deleted file mode 100644 index f4de63f77..000000000 --- a/ui/preferences/src/main/assets/.gitignore +++ /dev/null @@ -1,4 +0,0 @@ -# this file is generated automatically -about.html -LICENSE.txt -CONTRIBUTORS.txt diff --git a/ui/preferences/src/main/assets/LICENSE.txt b/ui/preferences/src/main/assets/LICENSE.txt new file mode 120000 index 000000000..2a64f9d0f --- /dev/null +++ b/ui/preferences/src/main/assets/LICENSE.txt @@ -0,0 +1 @@ +../../../../../LICENSE \ No newline at end of file diff --git a/ui/preferences/src/main/res/layout/about_teaser.xml b/ui/preferences/src/main/res/layout/about_teaser.xml index 4e7f0454f..a70653be6 100644 --- a/ui/preferences/src/main/res/layout/about_teaser.xml +++ b/ui/preferences/src/main/res/layout/about_teaser.xml @@ -1,9 +1,9 @@ \ No newline at end of file + xmlns:android="http://schemas.android.com/apk/res/android" + xmlns:app="http://schemas.android.com/apk/res-auto" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:adjustViewBounds="true" + android:importantForAccessibility="no" + app:srcCompat="@drawable/teaser" /> diff --git a/ui/preferences/src/main/res/layout/choose_data_folder_dialog.xml b/ui/preferences/src/main/res/layout/choose_data_folder_dialog.xml index bac14a108..7de9362a3 100644 --- a/ui/preferences/src/main/res/layout/choose_data_folder_dialog.xml +++ b/ui/preferences/src/main/res/layout/choose_data_folder_dialog.xml @@ -1,12 +1,13 @@ - + + android:id="@+id/recyclerView" + android:layout_width="match_parent" + android:layout_height="wrap_content" /> diff --git a/ui/preferences/src/main/res/layout/choose_data_folder_dialog_entry.xml b/ui/preferences/src/main/res/layout/choose_data_folder_dialog_entry.xml index addc63f4d..a4c64e5cd 100644 --- a/ui/preferences/src/main/res/layout/choose_data_folder_dialog_entry.xml +++ b/ui/preferences/src/main/res/layout/choose_data_folder_dialog_entry.xml @@ -1,5 +1,6 @@ - + android:layout_height="wrap_content" + style="?android:attr/progressBarStyleHorizontal" /> + diff --git a/ui/preferences/src/main/res/layout/gpodnetauth_device_row.xml b/ui/preferences/src/main/res/layout/gpodnetauth_device_row.xml index d39c00571..e47182372 100644 --- a/ui/preferences/src/main/res/layout/gpodnetauth_device_row.xml +++ b/ui/preferences/src/main/res/layout/gpodnetauth_device_row.xml @@ -1,13 +1,14 @@ + +