From 38aae8a83504d20c843bdf94f62dc322bf745496 Mon Sep 17 00:00:00 2001 From: William Brawner Date: Mon, 1 Jul 2024 21:49:13 -0600 Subject: [PATCH] Use gradle check instead of testDebugUnitTest and address all lint warnings/errors --- .forgejo/workflows/pull_request.yml | 2 +- .idea/gradle.xml | 3 +- .idea/vcs.xml | 2 +- app/build.gradle.kts | 52 +++++++++---------- app/src/main/AndroidManifest.xml | 3 +- .../java/com/wbrawner/skerge/MainActivity.kt | 49 +++++++++++------ .../com/wbrawner/skerge/ui/theme/Shape.kt | 11 ---- .../java/com/wbrawner/skerge/ui/theme/Type.kt | 15 ------ app/src/main/res/drawable/ic_launcher.xml | 1 + .../main/res/drawable/ic_launcher_round.xml | 1 + app/src/main/res/values-night/themes.xml | 16 ------ app/src/main/res/values/colors.xml | 3 -- app/src/main/res/values/themes.xml | 19 +------ build.gradle.kts | 16 ++---- gradle/libs.versions.toml | 38 ++++++++++++++ gradle/wrapper/gradle-wrapper.properties | 2 +- settings.gradle.kts | 7 +++ 17 files changed, 116 insertions(+), 124 deletions(-) delete mode 100644 app/src/main/java/com/wbrawner/skerge/ui/theme/Shape.kt delete mode 100644 app/src/main/java/com/wbrawner/skerge/ui/theme/Type.kt delete mode 100644 app/src/main/res/values-night/themes.xml create mode 100644 gradle/libs.versions.toml diff --git a/.forgejo/workflows/pull_request.yml b/.forgejo/workflows/pull_request.yml index 69b9382..22b58be 100644 --- a/.forgejo/workflows/pull_request.yml +++ b/.forgejo/workflows/pull_request.yml @@ -33,7 +33,7 @@ jobs: - name: Run unit tests uses: https://git.wbrawner.com/gradle/gradle-build-action@v2 with: - arguments: testDebugUnitTest + arguments: check - name: Publish JUnit Results uses: actions/upload-artifact@v4 if: always() diff --git a/.idea/gradle.xml b/.idea/gradle.xml index 9f47dfb..0897082 100644 --- a/.idea/gradle.xml +++ b/.idea/gradle.xml @@ -4,9 +4,8 @@