forked from maxrave-dev/SimpMusic
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
147 lines (125 loc) · 4.86 KB
/
build.gradle.kts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
plugins {
id ("com.android.application")
id ("org.jetbrains.kotlin.android")
id ("androidx.navigation.safeargs")
id ("kotlin-kapt")
id ("com.google.dagger.hilt.android")
}
android {
namespace = "com.maxrave.simpmusic"
compileSdk = 34
defaultConfig {
applicationId = "com.maxrave.simpmusic"
minSdk = 26
targetSdk = 34
versionCode = 3
versionName = "0.0.3-beta"
resourceConfigurations += listOf("en", "vi")
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
isMinifyEnabled = false
proguardFiles (getDefaultProguardFile("proguard-android-optimize.txt"), "proguard-rules.pro")
}
}
compileOptions {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
}
kotlinOptions {
jvmTarget = JavaVersion.VERSION_1_8.toString()
}
//enable view binding
buildFeatures {
viewBinding = true
}
packaging {
jniLibs.useLegacyPackaging = true
}
}
dependencies {
implementation("androidx.lifecycle:lifecycle-runtime-ktx:2.6.1")
implementation("androidx.core:core-ktx:1.10.1")
implementation("androidx.appcompat:appcompat:1.6.1")
//material design3
implementation("com.google.android.material:material:1.9.0")
//runtime
implementation("androidx.startup:startup-runtime:1.1.1")
//ExoPlayer
val media3_version= "1.1.0"
implementation("androidx.media3:media3-exoplayer:$media3_version")
implementation("androidx.media3:media3-ui:$media3_version")
implementation("androidx.media3:media3-session:$media3_version")
implementation("androidx.media3:media3-exoplayer-dash:$media3_version")
implementation("androidx.media3:media3-exoplayer-hls:$media3_version")
implementation("androidx.media3:media3-exoplayer-rtsp:$media3_version")
implementation("androidx.media3:media3-exoplayer-smoothstreaming:$media3_version")
implementation("androidx.media3:media3-exoplayer-workmanager:$media3_version")
implementation("androidx.media3:media3-datasource-okhttp:$media3_version")
//palette color
implementation("androidx.palette:palette-ktx:1.0.0")
//expandable text view
implementation("com.github.giangpham96:expandable-text:2.0.0")
implementation("androidx.constraintlayout:constraintlayout:2.1.4")
testImplementation("junit:junit:4.13.2")
androidTestImplementation("androidx.test.ext:junit:1.1.5")
androidTestImplementation("androidx.test.espresso:espresso-core:3.5.1")
implementation("androidx.room:room-runtime:2.5.2")
implementation("androidx.room:room-ktx:2.5.2")
kapt ("androidx.room:room-compiler:2.5.2")
//Legacy Support
implementation("androidx.legacy:legacy-support-v4:1.0.0")
//Coroutines
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-android:1.7.3")
//Navigation
implementation("androidx.navigation:navigation-fragment-ktx:2.6.0")
implementation("androidx.navigation:navigation-ui-ktx:2.6.0")
//Retrofit 2
implementation("com.squareup.retrofit2:retrofit:2.9.0")
implementation("com.squareup.retrofit2:converter-gson:2.9.0")
//OkHttp
implementation("com.squareup.okhttp3:logging-interceptor:5.0.0-alpha.11")
implementation("androidx.constraintlayout:constraintlayout:2.1.4")
//Coil
implementation("io.coil-kt:coil:2.4.0")
//Glide
implementation("com.github.bumptech.glide:glide:4.15.1")
//Easy Permissions
implementation("pub.devrel:easypermissions:3.0.0")
//Palette Color
implementation("androidx.palette:palette-ktx:1.0.0")
//Preference
implementation("androidx.preference:preference-ktx:1.2.0")
//fragment ktx
implementation("androidx.fragment:fragment-ktx:1.6.0")
//Hilt
implementation("com.google.dagger:hilt-android:2.47")
kapt ("com.google.dagger:hilt-compiler:2.47")
//Preference ktx
implementation("androidx.preference:preference-ktx:1.2.0")
//DataStore
implementation("androidx.datastore:datastore-preferences:1.0.0")
//Swipe To Refresh
implementation("androidx.swiperefreshlayout:swiperefreshlayout:1.2.0-alpha01")
//Insetter
implementation("dev.chrisbanes.insetter:insetter:0.6.1")
implementation("dev.chrisbanes.insetter:insetter-dbx:0.6.1")
//Shimmer
implementation("com.facebook.shimmer:shimmer:0.5.0")
//Lottie
val lottieVersion = "6.1.0"
implementation("com.airbnb.android:lottie:$lottieVersion")
//Paging 3
val paging_version= "3.2.0-rc01"
implementation("androidx.paging:paging-runtime-ktx:$paging_version")
implementation("androidx.legacy:legacy-support-v4:1.0.0")
implementation("com.daimajia.swipelayout:library:1.2.0@aar")
}
// Allow references to generated code
kapt {
correctErrorTypes = true
}
hilt {
enableAggregatingTask = true
}