@@ -9,9 +9,9 @@ buildscript {
99 }
1010
1111 dependencies {
12- classpath " com.android.tools.build:gradle:8.3.1 "
13- classpath " org.jetbrains.kotlin:kotlin-gradle-plugin:1.9.23 "
14- classpath " org.jlleitschuh.gradle:ktlint-gradle:11.5.0"
12+ classpath( " com.android.tools.build:gradle:8.8.0 " )
13+ classpath( " org.jetbrains.kotlin:kotlin-gradle-plugin:2.1.0 " )
14+ classpath( " org.jlleitschuh.gradle:ktlint-gradle:11.5.0" )
1515 }
1616}
1717
@@ -21,31 +21,36 @@ repositories {
2121}
2222
2323apply plugin : " com.android.library"
24- apply plugin : " kotlin- android"
24+ apply plugin : " org.jetbrains. kotlin. android"
2525apply plugin : " org.jlleitschuh.gradle.ktlint"
2626
2727android {
2828 namespace = " com.lyokone.location"
29- compileSdk = 34
30-
31- defaultConfig {
32- minSdk = 21
33- }
29+ compileSdk = 35
3430
3531 compileOptions {
36- sourceCompatibility = JavaVersion . VERSION_1_8
37- targetCompatibility = JavaVersion . VERSION_1_8
32+ sourceCompatibility = JavaVersion . VERSION_11
33+ targetCompatibility = JavaVersion . VERSION_11
3834 }
3935
4036 kotlinOptions {
41- jvmTarget = " 1.8"
42- allWarningsAsErrors = true
37+ jvmTarget = " 11"
38+ // allWarningsAsErrors = true // TODO(bartekpacia): Re-enable
39+ }
40+
41+ sourceSets {
42+ main. java. srcDirs + = " src/main/kotlin"
43+ test. java. srcDirs + = " src/test/kotlin"
44+ }
45+
46+ defaultConfig {
47+ minSdk = 21
48+ targetSdk = 35
4349 }
4450}
4551
4652dependencies {
47- compileOnly " androidx.annotation:annotation:1.6.0"
48-
49- api " com.google.android.gms:play-services-location:21.2.0"
50- implementation " androidx.core:core-ktx:1.10.1"
53+ compileOnly(" androidx.annotation:annotation:1.6.0" )
54+ implementation(" androidx.core:core-ktx:1.13.1" )
55+ api(" com.google.android.gms:play-services-location:21.3.0" )
5156}
0 commit comments