File tree Expand file tree Collapse file tree 3 files changed +28
-5
lines changed
Expand file tree Collapse file tree 3 files changed +28
-5
lines changed Original file line number Diff line number Diff line change 11distributionBase =GRADLE_USER_HOME
22distributionPath =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
44zipStoreBase =GRADLE_USER_HOME
55zipStorePath =wrapper/dists
Original file line number Diff line number Diff line change 1-
21buildscript {
2+ ext. kotlin_version = ' 2.0.20'
33 if (! project. hasProperty(' version' ) || project. version. equals(' unspecified' )) {
44 project. version = ' +'
55 }
6+
67 repositories {
78 google()
89 mavenLocal()
910 mavenCentral()
1011 }
12+
1113 dependencies {
12- classpath ' com.android.tools.build:gradle:7.4.1 '
14+ classpath ' com.android.tools.build:gradle:8.1.4 '
1315 classpath ' com.mparticle:android-kit-plugin:' + project. version
16+ classpath " org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version "
1417 }
1518}
1619
1720plugins {
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
2225sonarqube {
@@ -28,8 +31,28 @@ sonarqube {
2831}
2932
3033apply plugin : ' org.jlleitschuh.gradle.ktlint'
34+ apply plugin : ' kotlin-android'
3135apply plugin : ' com.mparticle.kit'
3236
37+ android {
38+ namespace ' com.mparticle.kits.example'
39+ defaultConfig {
40+ minSdkVersion 21
41+ }
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+ }
54+ }
55+
3356dependencies {
3457 // TODO: Option 1: Replace with your Maven Central Dependency (preferred)
3558 // compile 'com.example:example-artifact:1.2.3'
Original file line number Diff line number Diff line change 11<!-- Change 'example' below to your company name, and delete this comment. -->
2- <manifest package = " com.mparticle.kits.example " />
2+ <manifest xmlns : android = " http://schemas.android.com/apk/res/android " />
You can’t perform that action at this time.
0 commit comments