Skip to content

Commit bbf3205

Browse files
feat: Update Android Gradle plugin to 8.0.2
1 parent 60ab602 commit bbf3205

File tree

3 files changed

+22
-7
lines changed

3 files changed

+22
-7
lines changed

build.gradle

Lines changed: 20 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,25 @@
11
buildscript {
2+
ext.kotlin_version = '2.0.20'
23
if (!project.hasProperty('version') || project.version.equals('unspecified') || project.version.toString().contains('beta')) {
34
project.version = '+'
45
}
6+
57
repositories {
68
google()
79
mavenLocal()
810
mavenCentral()
911
}
12+
1013
dependencies {
11-
classpath 'com.android.tools.build:gradle:7.4.1'
14+
classpath 'com.android.tools.build:gradle:8.1.4'
1215
classpath 'com.mparticle:android-kit-plugin:' + project.version
13-
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:1.8.10"
16+
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
1417
}
1518
}
1619

1720
plugins {
1821
id "org.sonarqube" version "3.5.0.2730"
19-
id "org.jlleitschuh.gradle.ktlint" version "11.2.0"
22+
id "org.jlleitschuh.gradle.ktlint" version "13.0.0"
2023
}
2124

2225
sonarqube {
@@ -28,13 +31,26 @@ sonarqube {
2831
}
2932

3033
apply plugin: 'org.jlleitschuh.gradle.ktlint'
31-
apply plugin: 'com.mparticle.kit'
3234
apply plugin: 'kotlin-android'
35+
apply plugin: 'com.mparticle.kit'
3336

3437
android {
38+
namespace 'com.mparticle.kits.iterable'
3539
defaultConfig {
3640
minSdkVersion 21
3741
}
42+
compileOptions {
43+
sourceCompatibility JavaVersion.VERSION_17
44+
targetCompatibility JavaVersion.VERSION_17
45+
}
46+
kotlinOptions {
47+
jvmTarget = '17'
48+
}
49+
testOptions {
50+
unitTests.all {
51+
jvmArgs += ['--add-opens', 'java.base/java.lang=ALL-UNNAMED']
52+
}
53+
}
3854
}
3955

4056
dependencies {
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-7.5.1-bin.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.0.2-bin.zip
44
zipStoreBase=GRADLE_USER_HOME
55
zipStorePath=wrapper/dists

src/main/AndroidManifest.xml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
<manifest package="com.mparticle.kits.iterable"
2-
xmlns:android="http://schemas.android.com/apk/res/android"
1+
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
32
xmlns:tools="http://schemas.android.com/tools">
43
<application>
54
<service

0 commit comments

Comments
 (0)