1
1
plugins {
2
2
id ' com.android.library'
3
3
id ' org.jetbrains.kotlin.android'
4
- id ' kotlin-kapt '
4
+ id ' com.google.devtools.ksp '
5
5
}
6
6
7
7
android {
@@ -18,24 +18,20 @@ android {
18
18
}
19
19
}
20
20
namespace ' com.brave.playlist'
21
- compileSdk 34
21
+ compileSdk 35
22
22
23
23
buildFeatures {
24
24
buildConfig = true
25
25
}
26
26
27
27
defaultConfig {
28
28
minSdk 24
29
- targetSdk 34
30
- versionCode 1
31
- versionName ' 0.0.1'
29
+ targetSdk 35
32
30
testInstrumentationRunner " androidx.test.runner.AndroidJUnitRunner"
33
31
consumerProguardFiles " consumer-rules.pro"
34
32
vectorDrawables. useSupportLibrary = true
35
- kapt {
36
- arguments {
37
- arg(" room.schemaLocation" , " $projectDir /schemas" )
38
- }
33
+ ksp {
34
+ arg(" room.schemaLocation" , " $projectDir /schemas" )
39
35
}
40
36
}
41
37
@@ -51,28 +47,25 @@ android {
51
47
proguardFiles getDefaultProguardFile(' proguard-android-optimize.txt' ), ' proguard-rules.pro'
52
48
signingConfig signingConfigs. release
53
49
}
54
- debug {
55
- debuggable true
56
- }
57
50
}
58
51
compileOptions {
59
- sourceCompatibility JavaVersion . VERSION_1_8
60
- targetCompatibility JavaVersion . VERSION_1_8
52
+ sourceCompatibility JavaVersion . VERSION_17
53
+ targetCompatibility JavaVersion . VERSION_17
61
54
}
62
55
kotlinOptions {
63
- jvmTarget = ' 1.8 '
56
+ jvmTarget = ' 17 '
64
57
}
65
58
}
66
59
67
60
ext {
68
61
exoplayerVersion = ' 1.0.2' // using 1.0.2 version to align with chromium dependency
69
- room_version = " 2.6.0 "
62
+ room_version = " 2.6.1 "
70
63
}
71
64
72
65
dependencies {
73
- implementation ' androidx.core:core-ktx:1.12.0 '
74
- implementation ' androidx.appcompat:appcompat:1.6.1 '
75
- implementation ' com.google.android.material:material:1.10 .0'
66
+ implementation ' androidx.core:core-ktx:1.13.1 '
67
+ implementation ' androidx.appcompat:appcompat:1.7.0 '
68
+ implementation ' com.google.android.material:material:1.12 .0'
76
69
implementation ' androidx.constraintlayout:constraintlayout:2.1.4'
77
70
78
71
// noinspection GradleDependency
@@ -86,7 +79,7 @@ dependencies {
86
79
// noinspection GradleDependency
87
80
implementation " androidx.media3:media3-exoplayer-hls:$exoplayerVersion "
88
81
89
- implementation " com.google.android.gms:play-services-cast-framework:21.3 .0"
82
+ implementation " com.google.android.gms:play-services-cast-framework:21.5 .0"
90
83
91
84
implementation " androidx.preference:preference-ktx:1.2.1"
92
85
@@ -95,13 +88,20 @@ dependencies {
95
88
implementation " androidx.room:room-runtime:$room_version "
96
89
annotationProcessor " androidx.room:room-compiler:$room_version "
97
90
// noinspection KaptUsageInsteadOfKsp
98
- kapt " androidx.room:room-compiler:$room_version "
91
+ // kapt "androidx.room:room-compiler:$room_version"
92
+ ksp " androidx.room:room-compiler:$room_version "
99
93
100
- implementation ' androidx.lifecycle:lifecycle-viewmodel-ktx:2.6.2 '
94
+ implementation ' androidx.lifecycle:lifecycle-viewmodel-ktx:2.8.6 '
101
95
102
- implementation ' org.jetbrains.kotlinx:kotlinx-coroutines-android:1.6.4 '
96
+ implementation ' org.jetbrains.kotlinx:kotlinx-coroutines-android:1.7.3 '
103
97
104
98
implementation " com.github.bumptech.glide:glide:4.12.0"
105
99
testImplementation ' junit:junit:4.13.2'
106
- androidTestImplementation ' androidx.test.ext:junit:1.1.5'
100
+ androidTestImplementation ' androidx.test.ext:junit:1.2.1'
101
+ }
102
+
103
+ java {
104
+ toolchain {
105
+ languageVersion = JavaLanguageVersion . of(17 )
106
+ }
107
107
}
0 commit comments