Skip to content

A cross platform Audiobookshelf client for Android and iOS

Dart

Quiet the l10n and Java 8 build warnings

Barnabasa4c96cbd39bb
diff --git a/android/build.gradle.kts b/android/build.gradle.kts
index dbee657b..9c4b58c7 100644
--- a/android/build.gradle.kts
+++ b/android/build.gradle.kts
@@ -19,6 +19,14 @@ subprojects {
project.evaluationDependsOn(":app")
}
+// Old plugins still compile with Java 8 source/target, which javac warns is
+// obsolete. Nothing we can fix from here, so silence that warning category.
+allprojects {
+ tasks.withType<JavaCompile>().configureEach {
+ options.compilerArgs.add("-Xlint:-options")
+ }
+}
+
tasks.register<Delete>("clean") {
delete(rootProject.layout.buildDirectory)
}
diff --git a/l10n.yaml b/l10n.yaml
index 15338f2d..4031d9f8 100644
--- a/l10n.yaml
+++ b/l10n.yaml
@@ -1,3 +1,4 @@
arb-dir: lib/l10n
template-arb-file: app_en.arb
output-localization-file: app_localizations.dart
+untranslated-messages-file: build/untranslated-messages.json