diff --git a/mobile/android/annotations/build.gradle b/mobile/android/annotations/build.gradle index 59afd140289f..147531b2519f 100644 --- a/mobile/android/annotations/build.gradle +++ b/mobile/android/annotations/build.gradle @@ -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 diff --git a/mobile/android/docs/geckoview/consumer/geckoview-quick-start.rst b/mobile/android/docs/geckoview/consumer/geckoview-quick-start.rst index 7721ff46a99c..6a529a0dfa12 100644 --- a/mobile/android/docs/geckoview/consumer/geckoview-quick-start.rst +++ b/mobile/android/docs/geckoview/consumer/geckoview-quick-start.rst @@ -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** diff --git a/mobile/android/examples/messaging_example/app/build.gradle b/mobile/android/examples/messaging_example/app/build.gradle index 546b4da2f17b..6a2e609c11c7 100644 --- a/mobile/android/examples/messaging_example/app/build.gradle +++ b/mobile/android/examples/messaging_example/app/build.gradle @@ -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" diff --git a/mobile/android/examples/port_messaging_example/app/build.gradle b/mobile/android/examples/port_messaging_example/app/build.gradle index 24966400cf33..f183e229aae4 100644 --- a/mobile/android/examples/port_messaging_example/app/build.gradle +++ b/mobile/android/examples/port_messaging_example/app/build.gradle @@ -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" diff --git a/mobile/android/geckoview/build.gradle b/mobile/android/geckoview/build.gradle index 8507714a769f..d4e8b6443447 100644 --- a/mobile/android/geckoview/build.gradle +++ b/mobile/android/geckoview/build.gradle @@ -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 { diff --git a/mobile/android/geckoview_example/build.gradle b/mobile/android/geckoview_example/build.gradle index e84fc42b19fc..bbfea2687169 100644 --- a/mobile/android/geckoview_example/build.gradle +++ b/mobile/android/geckoview_example/build.gradle @@ -21,8 +21,8 @@ android { } compileOptions { - sourceCompatibility JavaVersion.VERSION_11 - targetCompatibility JavaVersion.VERSION_11 + sourceCompatibility JavaVersion.VERSION_17 + targetCompatibility JavaVersion.VERSION_17 } buildTypes { diff --git a/mobile/android/test_runner/build.gradle b/mobile/android/test_runner/build.gradle index b32015ec94c1..c08be022f905 100644 --- a/mobile/android/test_runner/build.gradle +++ b/mobile/android/test_runner/build.gradle @@ -21,8 +21,8 @@ android { } compileOptions { - sourceCompatibility JavaVersion.VERSION_11 - targetCompatibility JavaVersion.VERSION_11 + sourceCompatibility JavaVersion.VERSION_17 + targetCompatibility JavaVersion.VERSION_17 } buildTypes {