diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index acbc4004..9694e5bc 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -7,3 +7,5 @@ on: jobs: call-pr-workflow: uses: FossifyOrg/.github/.github/workflows/pr.yml@main + with: + test_task: ":app:testCoreDebugUnitTest" diff --git a/.github/workflows/update-lint-baselines.yml b/.github/workflows/update-lint-baselines.yml new file mode 100644 index 00000000..17043a58 --- /dev/null +++ b/.github/workflows/update-lint-baselines.yml @@ -0,0 +1,11 @@ +name: Update lint baselines + +on: + workflow_dispatch: + schedule: + - cron: "0 0 1 * *" + +jobs: + update-lint-baselines: + uses: FossifyOrg/.github/.github/workflows/update-lint-baselines.yml@main + secrets: inherit diff --git a/.gitignore b/.gitignore index d209458c..72ae8c3b 100644 --- a/.gitignore +++ b/.gitignore @@ -10,3 +10,4 @@ keystore.jks keystore.properties fastlane/fastlane.json fastlane/report.xml +.kotlin/ diff --git a/app/build.gradle.kts b/app/build.gradle.kts index 0e46545f..11f84807 100644 --- a/app/build.gradle.kts +++ b/app/build.gradle.kts @@ -124,8 +124,9 @@ android { lint { checkReleaseBuilds = false abortOnError = true - warningsAsErrors = true + warningsAsErrors = false baseline = file("lint-baseline.xml") + lintConfig = rootProject.file("lint.xml") } bundle { diff --git a/app/lint-baseline.xml b/app/lint-baseline.xml index 0002cb93..c07be50f 100644 --- a/app/lint-baseline.xml +++ b/app/lint-baseline.xml @@ -1,20 +1,20 @@ - + + + + + @@ -64,430 +75,122 @@ - - - - + id="AndroidGradlePluginVersion" + message="A newer version of Gradle than 8.11.1 is available: 8.14.2" + errorLine1="distributionUrl=https\://services.gradle.org/distributions/gradle-8.11.1-bin.zip" + errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + column="17"/> + message="A newer version of androidx.lifecycle:lifecycle-runtime-compose than 2.9.0 is available: 2.9.1" + errorLine1="androidx-lifecycle = "2.9.0"" + errorLine2=" ~~~~~~~"> + message="A newer version of androidx.lifecycle:lifecycle-runtime-ktx than 2.9.0 is available: 2.9.1" + errorLine1="androidx-lifecycle = "2.9.0"" + errorLine2=" ~~~~~~~"> + message="A newer version of androidx.lifecycle:lifecycle-viewmodel-compose than 2.9.0 is available: 2.9.1" + errorLine1="androidx-lifecycle = "2.9.0"" + errorLine2=" ~~~~~~~"> + message="A newer version of androidx.lifecycle:lifecycle-viewmodel-ktx than 2.9.0 is available: 2.9.1" + errorLine1="androidx-lifecycle = "2.9.0"" + errorLine2=" ~~~~~~~"> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + message="A newer version of androidx.compose.animation:animation than 1.7.8 is available: 1.8.3" + errorLine1="compose = "1.7.8"" + errorLine2=" ~~~~~~~"> + message="A newer version of androidx.compose.material:material than 1.7.8 is available: 1.8.3" + errorLine1="compose = "1.7.8"" + errorLine2=" ~~~~~~~"> + message="A newer version of androidx.compose.runtime:runtime than 1.7.8 is available: 1.8.3" + errorLine1="compose = "1.7.8"" + errorLine2=" ~~~~~~~"> + message="A newer version of androidx.compose.ui:ui than 1.7.8 is available: 1.8.3" + errorLine1="compose = "1.7.8"" + errorLine2=" ~~~~~~~"> + message="A newer version of androidx.compose.ui:ui-tooling than 1.7.8 is available: 1.8.3" + errorLine1="compose = "1.7.8"" + errorLine2=" ~~~~~~~"> + message="A newer version of androidx.compose.ui:ui-tooling-preview than 1.7.8 is available: 1.8.3" + errorLine1="compose = "1.7.8"" + errorLine2=" ~~~~~~~"> - - - - - - - - - - - - - - - - @@ -495,99 +198,22 @@ + errorLine1="compose = "1.7.8"" + errorLine2=" ~~~~~~~"> - - - - - - - - - - - - - - - - - - - - - - - - - - - - @@ -598,7 +224,7 @@ errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> @@ -609,7 +235,7 @@ errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> @@ -620,7 +246,7 @@ errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> @@ -631,10 +257,32 @@ errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> + + + + + + + + + id="ObsoleteSdkInt" + message="Unnecessary; `SDK_INT` is always >= 24" + errorLine1="@TargetApi(Build.VERSION_CODES.N)" + errorLine2="~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> + file="src/main/kotlin/com/simplemobiletools/flashlight/helpers/BrightDisplayTileService.kt" + line="9" + column="1"/> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +