11buildscript {
2- if (! project. hasProperty(' version' ) || project. version == ' unspecified' ) {
2+ ext. kotlin_version = ' 2.0.20'
3+ if (! project. hasProperty(' version' ) || project. version. equals(' unspecified' )) {
34 project. version = ' +'
45 }
56
@@ -9,15 +10,15 @@ buildscript {
910 mavenCentral()
1011 }
1112 dependencies {
12- classpath ' com.android.tools.build:gradle:7.4.1 '
13+ classpath ' com.android.tools.build:gradle:8.1.4 '
1314 classpath ' com.mparticle:android-kit-plugin:' + project. version
14- classpath ' org.jetbrains.kotlin:kotlin-gradle-plugin:2.0.20 '
15+ classpath " org.jetbrains.kotlin:kotlin-gradle-plugin:$k otlin_version "
1516 }
1617}
1718
1819plugins {
1920 id " org.sonarqube" version " 3.5.0.2730"
20- id " org.jlleitschuh.gradle.ktlint" version " 11.2 .0"
21+ id " org.jlleitschuh.gradle.ktlint" version " 13.0 .0"
2122}
2223
2324sonarqube {
@@ -29,16 +30,29 @@ sonarqube {
2930}
3031
3132apply plugin : ' org.jlleitschuh.gradle.ktlint'
32- apply plugin : " kotlin-android"
33+ apply plugin : ' kotlin-android'
3334apply plugin : ' com.mparticle.kit'
3435
3536android {
37+ namespace ' com.mparticle.kits.appboy'
38+ buildFeatures {
39+ buildConfig = true
40+ }
3641 defaultConfig {
3742 minSdkVersion 21
3843 }
44+ lint {
45+ // Workaround for lint internal crash
46+ abortOnError false
47+ // Ignore obsolete custom lint checks from older fragment library
48+ disable ' ObsoleteLintCustomCheck'
49+ }
3950 compileOptions {
40- sourceCompatibility 1.8
41- targetCompatibility 1.8
51+ sourceCompatibility JavaVersion . VERSION_17
52+ targetCompatibility JavaVersion . VERSION_17
53+ }
54+ kotlinOptions {
55+ jvmTarget = ' 17'
4256 }
4357 testOptions {
4458 unitTests. all {
0 commit comments