diff --git a/app/build.gradle.kts b/app/build.gradle.kts index c8eacf4..77d5a55 100644 --- a/app/build.gradle.kts +++ b/app/build.gradle.kts @@ -39,6 +39,12 @@ android { testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner" } + androidResources { + // Lists the translated locales in the manifest, so Android 13+ offers a per-app language + // in system settings. The default locale is named in res/resources.properties. + generateLocaleConfig = true + } + signingConfigs { if (releaseStoreFile != null && releaseStorePassword != null && releaseKeyAlias != null && releaseKeyPassword != null) { create("release") { diff --git a/app/lint.xml b/app/lint.xml index e439d9c..0ed1c38 100644 --- a/app/lint.xml +++ b/app/lint.xml @@ -3,14 +3,21 @@ Android Lint policy. CI runs `./gradlew lint` on every pull request and the job fails on lint *errors*. - Warnings are deliberately left as warnings for now: the pinch-zoom and word-wrap - deletions (prework items 3 and 4) and the P3/P4 refactor are about to move several - hundred lines, and fighting the linter through that at the same time is not worth it. - Revisit `warningsAsErrors` once P3 has landed. + Warnings are deliberately left as warnings for now; turning on `warningsAsErrors` is + planned. Anything suppressed here needs a reason next to it. --> + + + diff --git a/app/src/main/res/resources.properties b/app/src/main/res/resources.properties new file mode 100644 index 0000000..467b3ef --- /dev/null +++ b/app/src/main/res/resources.properties @@ -0,0 +1 @@ +unqualifiedResLocale=en-US