提交 Haven Android 仓库源码 v5.87.79

This commit is contained in:
ali
2026-09-10 13:45:36 +08:00
parent 87b452c4dc
commit 22f4ca5830
2524 changed files with 599455 additions and 1 deletions
+37
View File
@@ -0,0 +1,37 @@
plugins {
alias(libs.plugins.android.application) apply false
alias(libs.plugins.android.library) apply false
alias(libs.plugins.kotlin.android) apply false
alias(libs.plugins.kotlin.compose) apply false
alias(libs.plugins.hilt) apply false
alias(libs.plugins.ksp) apply false
}
// Library modules that don't define the "store" dimension need a default
// so they can consume core:ssh (which has foss/full variants).
//
// Also downgrades `MissingTranslation` from error (default) to warning so
// it doesn't block CI when a new string lands ahead of its 10 locales,
// but still surfaces in lint reports — disabling it entirely caused
// ~120 strings to drift silently before issue #125 caught it.
subprojects {
afterEvaluate {
extensions.findByType<com.android.build.gradle.LibraryExtension>()?.apply {
if (flavorDimensionList.none { it == "store" }) {
defaultConfig {
missingDimensionStrategy("store", "full")
}
}
}
// AGP 9 removed `lintOptions` and the old-extension `lint.warning +=` path
// no longer downgrades severity, so MissingTranslation started blocking CI
// again (4 errors slipped onto main because lint only runs on PRs, not push).
// Configure via the current DSL lint {} block on both module types instead.
extensions.findByType<com.android.build.api.dsl.LibraryExtension>()?.lint {
warning += "MissingTranslation"
}
extensions.findByType<com.android.build.api.dsl.ApplicationExtension>()?.lint {
warning += "MissingTranslation"
}
}
}