build.gradle.kts 901 B

12345678910111213141516171819202122232425262728293031323334353637
  1. plugins {
  2. id("com.android.library")
  3. kotlin("android")
  4. }
  5. android {
  6. namespace = "eu.kanade.tachiyomi.i18n"
  7. compileSdk = AndroidConfig.compileSdk
  8. defaultConfig {
  9. minSdk = AndroidConfig.minSdk
  10. targetSdk = AndroidConfig.targetSdk
  11. }
  12. compileOptions {
  13. sourceCompatibility = JavaVersion.VERSION_1_8
  14. targetCompatibility = JavaVersion.VERSION_1_8
  15. }
  16. kotlinOptions {
  17. jvmTarget = JavaVersion.VERSION_1_8.toString()
  18. }
  19. }
  20. tasks {
  21. val localesConfigTask = registerLocalesConfigTask(project)
  22. // Duplicating Hebrew string assets due to some locale code issues on different devices
  23. val copyHebrewStrings by registering(Copy::class) {
  24. from("./src/main/res/values-he")
  25. into("./src/main/res/values-iw")
  26. include("**/*")
  27. }
  28. preBuild {
  29. dependsOn(copyHebrewStrings, localesConfigTask)
  30. }
  31. }