Skip to content

Commit

Permalink
Update AGP to v8.6.0
Browse files Browse the repository at this point in the history
  • Loading branch information
rvandermeulen committed Sep 14, 2024
1 parent 9312051 commit c4e28d2
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 14 deletions.
12 changes: 0 additions & 12 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -117,22 +117,10 @@ ext.rustTargets += ext.nativeRustTarget
subprojects {
apply plugin: 'maven-publish'


// Kotlin settings applicable to all modules.
afterEvaluate {
if (it.hasProperty('android')) {
android {
// This shouldn't be needed anymore with AGP 8.1.0+
// https://kotlinlang.org/docs/gradle-configure-project.html#gradle-java-toolchains-support
compileOptions {
sourceCompatibility rootProject.ext.build.jvmTargetCompatibility
targetCompatibility rootProject.ext.build.jvmTargetCompatibility
}
}
}
tasks.withType(org.jetbrains.kotlin.gradle.tasks.KotlinCompile).all {
kotlinOptions.allWarningsAsErrors = true
kotlin.jvmToolchain(rootProject.ext.build.jvmTargetCompatibility)
}
}

Expand Down
5 changes: 5 additions & 0 deletions glean-core/android-native/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,13 @@
import groovy.json.JsonOutput

apply plugin: 'com.android.library'
apply plugin: 'kotlin-android'
apply plugin: 'org.mozilla.rust-android-gradle.rust-android'

kotlin {
jvmToolchain(rootProject.ext.build.jvmTargetCompatibility)
}

android {
namespace "mozilla.telemetry.glean_native"

Expand Down
4 changes: 4 additions & 0 deletions glean-core/android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@ File GLEAN_PING_SCHEMA_PATH = file("$rootDir/glean.1.schema.json")
ext.allowGleanInternal = true
ext.gleanNamespace = "mozilla.telemetry.glean"

kotlin {
jvmToolchain(rootProject.ext.build.jvmTargetCompatibility)
}

android {
compileSdkVersion rootProject.ext.build.compileSdkVersion
namespace "mozilla.telemetry.glean"
Expand Down
1 change: 0 additions & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,3 @@ libLicense=MPL-2.0
libLicenseUrl=https://www.mozilla.org/en-US/MPL/2.0/

android.useAndroidX=true
android.experimental.lint.version=8.3.0
2 changes: 1 addition & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

[versions]
# AGP
android-plugin = "8.0.2"
android-plugin = "8.6.0"

# Kotlin
kotlin-compiler = "1.9.24"
Expand Down
4 changes: 4 additions & 0 deletions samples/android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ apply plugin: 'com.android.application'
apply plugin: 'kotlin-android'
apply plugin: 'kotlinx-serialization'

kotlin {
jvmToolchain(rootProject.ext.build.jvmTargetCompatibility)
}

android {
namespace "org.mozilla.samples.gleancore"
compileSdkVersion rootProject.ext.build.compileSdkVersion
Expand Down

0 comments on commit c4e28d2

Please sign in to comment.