Skip to content

Commit 4ed878e

Browse files
feat: Update Android Gradle plugin to 8.0.2
1 parent 83bf5dd commit 4ed878e

File tree

3 files changed

+27
-7
lines changed

3 files changed

+27
-7
lines changed

build.gradle

Lines changed: 25 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,25 @@
11
buildscript {
2-
ext.kotlin_version = '1.8.10'
2+
ext.kotlin_version = '2.0.20'
33
if (!project.hasProperty('version') || project.version.equals('unspecified')) {
44
project.version = '+'
55
}
66

77
repositories {
8+
google()
89
mavenLocal()
910
mavenCentral()
10-
google()
1111
}
12+
1213
dependencies {
14+
classpath 'com.android.tools.build:gradle:8.1.4'
1315
classpath 'com.mparticle:android-kit-plugin:' + project.version
14-
classpath 'com.android.tools.build:gradle:7.4.1'
1516
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
1617
}
1718
}
1819

1920
plugins {
2021
id "org.sonarqube" version "3.5.0.2730"
21-
id "org.jlleitschuh.gradle.ktlint" version "11.2.0"
22+
id "org.jlleitschuh.gradle.ktlint" version "13.0.0"
2223
}
2324

2425
sonarqube {
@@ -30,14 +31,33 @@ sonarqube {
3031
}
3132

3233
apply plugin: 'org.jlleitschuh.gradle.ktlint'
33-
apply plugin: 'com.mparticle.kit'
3434
apply plugin: 'kotlin-android'
35+
apply plugin: 'com.mparticle.kit'
3536

3637
repositories {
3738
maven { url "https://github.com/taplytics/Taplytics-Android-SDK/raw/master/AndroidStudio/" }
3839
mavenCentral()
3940
}
4041

42+
android {
43+
namespace 'com.mparticle.kits.taplytics'
44+
defaultConfig {
45+
minSdkVersion 21
46+
}
47+
compileOptions {
48+
sourceCompatibility JavaVersion.VERSION_17
49+
targetCompatibility JavaVersion.VERSION_17
50+
}
51+
kotlinOptions {
52+
jvmTarget = '17'
53+
}
54+
testOptions {
55+
unitTests.all {
56+
jvmArgs += ['--add-opens', 'java.base/java.lang=ALL-UNNAMED']
57+
}
58+
}
59+
}
60+
4161
dependencies {
4262
api 'com.taplytics.sdk:taplytics:3.1.0@aar'
4363
}
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 & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
<manifest package="com.mparticle.kits.taplytics"/>
1+
<manifest xmlns:android="http://schemas.android.com/apk/res/android"/>

0 commit comments

Comments
 (0)