Skip to content

Commit

Permalink
Update AGP to v8.2.2
Browse files Browse the repository at this point in the history
  • Loading branch information
rvandermeulen committed Jan 24, 2024
1 parent b5faa56 commit f146eb1
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 13 deletions.
14 changes: 1 addition & 13 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ buildscript {
// changing them. Please note that, for using in Android-Components, the
// versions below must match the ones in that repository.
ext.versions = [
android_gradle_plugin: '8.0.2',
android_gradle_plugin: '8.2.2',
coroutines: '1.7.2',
jna: '5.13.0',
junit: '4.13.2',
Expand Down Expand Up @@ -144,22 +144,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 @@ -27,6 +27,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
4 changes: 4 additions & 0 deletions samples/android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ plugins {
apply plugin: 'com.android.application'
apply plugin: 'kotlin-android'

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

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

0 comments on commit f146eb1

Please sign in to comment.