Bug 1837640 - Target JVM 17 bytecode in GeckoView. r=geckoview-reviewers,owlish

Differential Revision: https://phabricator.services.mozilla.com/D180443
This commit is contained in:
Ryan VanderMeulen 2023-06-12 22:27:13 +00:00
parent 79b5d0acb8
commit 963cdf3aaa
7 changed files with 17 additions and 17 deletions

View File

@ -10,5 +10,5 @@ dependencies {
implementation 'com.android.tools.lint:lint-checks:30.4.2'
}
sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_11
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17

View File

@ -39,15 +39,15 @@ You need to add or edit four stanzas inside your module's ``build.gradle`` file.
}
**3. Java 11 required support**
**3. Java 17 required support**
As GeckoView uses some Java 11 APIs, it requires these compatibility flags:
As GeckoView uses some Java 17 APIs, it requires these compatibility flags:
.. code-block:: groovy
compileOptions {
sourceCompatibility JavaVersion.VERSION_11
targetCompatibility JavaVersion.VERSION_11
sourceCompatibility JavaVersion.VERSION_17
targetCompatibility JavaVersion.VERSION_17
}
**4. Add GeckoView Implementations**

View File

@ -9,8 +9,8 @@ android {
compileSdkVersion project.ext.compileSdkVersion
compileOptions {
sourceCompatibility JavaVersion.VERSION_11
targetCompatibility JavaVersion.VERSION_11
sourceCompatibility JavaVersion.VERSION_17
targetCompatibility JavaVersion.VERSION_17
}
defaultConfig {
applicationId "org.mozilla.geckoview.example.messaging"

View File

@ -9,8 +9,8 @@ android {
compileSdkVersion project.ext.compileSdkVersion
compileOptions {
sourceCompatibility JavaVersion.VERSION_11
targetCompatibility JavaVersion.VERSION_11
sourceCompatibility JavaVersion.VERSION_17
targetCompatibility JavaVersion.VERSION_17
}
defaultConfig {
applicationId "org.mozilla.geckoview.example.messaging"

View File

@ -85,8 +85,8 @@ android {
project.configureProductFlavors()
compileOptions {
sourceCompatibility JavaVersion.VERSION_11
targetCompatibility JavaVersion.VERSION_11
sourceCompatibility JavaVersion.VERSION_17
targetCompatibility JavaVersion.VERSION_17
}
lintOptions {
@ -180,7 +180,7 @@ tasks.withType(org.jetbrains.kotlin.gradle.tasks.KotlinCompile) {
kotlinOptions {
allWarningsAsErrors = true
jvmTarget = JavaVersion.VERSION_11
jvmTarget = JavaVersion.VERSION_17
}
doFirst {

View File

@ -21,8 +21,8 @@ android {
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_11
targetCompatibility JavaVersion.VERSION_11
sourceCompatibility JavaVersion.VERSION_17
targetCompatibility JavaVersion.VERSION_17
}
buildTypes {

View File

@ -21,8 +21,8 @@ android {
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_11
targetCompatibility JavaVersion.VERSION_11
sourceCompatibility JavaVersion.VERSION_17
targetCompatibility JavaVersion.VERSION_17
}
buildTypes {