зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1822393 - Set the source and target compatibility compile options for non-GeckoView projects. r=owlish,nalexander,geckoview-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D201853
This commit is contained in:
Родитель
9af36afde8
Коммит
20237dbc22
12
build.gradle
12
build.gradle
|
@ -446,6 +446,18 @@ subprojects { project ->
|
|||
ktlint('0.49.1')
|
||||
}
|
||||
}
|
||||
} else {
|
||||
afterEvaluate {
|
||||
// Set the source and target compatibility for non-GeckoView projects only.
|
||||
if (it.hasProperty('android')) {
|
||||
android {
|
||||
compileOptions {
|
||||
sourceCompatibility JavaVersion.VERSION_17
|
||||
targetCompatibility JavaVersion.VERSION_17
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
project.configurations.configureEach {
|
||||
|
|
Загрузка…
Ссылка в новой задаче