-
-
Notifications
You must be signed in to change notification settings - Fork 96
/
build.gradle.kts
175 lines (147 loc) · 7.32 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
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
plugins {
id ("com.android.application")
id ("org.jetbrains.kotlin.android")
id ("androidx.navigation.safeargs")
id ("com.google.dagger.hilt.android")
id("com.google.devtools.ksp")
id ("com.mikepenz.aboutlibraries.plugin")
}
android {
namespace = "com.maxrave.simpmusic"
compileSdk = 34
defaultConfig {
applicationId = "com.maxrave.simpmusic"
minSdk = 26
targetSdk = 34
versionCode = 13
versionName = "0.1.6"
ksp {
arg("room.schemaLocation", "$projectDir/schemas")
}
resourceConfigurations += listOf(
"en",
"vi",
"it",
"de",
"ru",
"tr",
"fi",
"pl",
"pt",
"fr",
"es"
)
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
jniLibs.excludes += listOf("META-INF/META-INF/DEPENDENCIES", "META-INF/LICENSE", "META-INF/LICENSE.txt", "META-INF/license.txt", "META-INF/NOTICE", "META-INF/NOTICE.txt", "META-INF/notice.txt", "META-INF/ASL2.0", "META-INF/asm-license.txt", "META-INF/notice.txt", "META-INF/NOTICE.txt", "META-INF/LICENSE.txt", "META-INF/license.txt", "META-INF/notice.txt", "META-INF/NOTICE", "META-INF/LICENSE", "META-INF/notice", "META-INF/notice.txt", "META-INF/NOTICE.txt", "META-INF/LICENSE.txt", "META-INF/license.txt", "META-INF/notice.txt", "META-INF/NOTICE", "META-INF/LICENSE", "META-INF/notice", "META-INF/notice.txt", "META-INF/NOTICE.txt", "META-INF/LICENSE.txt", "META-INF/license.txt", "META-INF/notice.txt", "META-INF/NOTICE", "META-INF/LICENSE", "META-INF/notice", "META-INF/notice.txt", "META-INF/NOTICE.txt", "META-INF/LICENSE.txt", "META-INF/license.txt", "META-INF/notice.txt", "META-INF/NOTICE", "META-INF/LICENSE", "META-INF/notice", "META-INF/notice.txt", "META-INF/NOTICE.txt", "META-INF/LICENSE.txt", "META-INF/license.txt", "META-INF/notice.txt", "META-INF/NOTICE", "META-INF/LICENSE", "META-INF/notice", "META-INF/notice.txt", "META-INF/NOTICE.txt", "META-INF/LICENSE.txt", "META-INF/license.txt", "META-INF/notice.txt", "META-INF/NOTICE", "META-INF/LICENSE", "META-INF/notice", "META-INF/notice.txt", "META-INF/NOTICE.txt", "META-INF/LICENSE.txt", "META-INF/license.txt", "META-INF/notice.txt", "META-INF/NOTICE", "META-INF/LICENSE", "META-INF/notice", "META-INF/notice.txt", "META-INF/NOTICE.txt", "META-INF/LICENSE.txt", "META-INF/license.txt", "META-INF/notice.txt", "META-INF/NOTICE", "META-INF/LICENSE", "META-INF/notice", "META-INF/notice.txt", "META-INF/NOTICE.txt", "META-INF/LICENSE.txt", "META-INF/license.txt", "META-INF/notice", "META-INF/ASL2.0", "META-INF/*.kotlin_module")
}
}
dependencies {
implementation("androidx.lifecycle:lifecycle-runtime-ktx:2.6.2")
implementation("androidx.core:core-ktx:1.12.0")
implementation("androidx.appcompat:appcompat:1.6.1")
//material design3
implementation("com.google.android.material:material:1.10.0")
//runtime
implementation("androidx.startup:startup-runtime:1.1.1")
implementation(project(mapOf("path" to ":kotlinYtmusicScraper")))
implementation("androidx.lifecycle:lifecycle-livedata-ktx:2.6.2")
implementation("androidx.lifecycle:lifecycle-viewmodel-ktx:2.6.2")
//ExoPlayer
val media3_version= "1.1.1"
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.6.0")
implementation("androidx.room:room-ktx:2.6.0")
ksp("androidx.room:room-compiler:2.6.0")
//Legacy Support
implementation("androidx.legacy:legacy-support-v4:1.0.0")
//Coroutines
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-android:1.7.3")
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-guava:1.7.3")
//Navigation
implementation("androidx.navigation:navigation-fragment-ktx:2.7.5")
implementation("androidx.navigation:navigation-ui-ktx:2.7.5")
implementation("com.google.code.gson:gson:2.10.1")
//Coil
implementation("io.coil-kt:coil:2.4.0")
//Glide
implementation("com.github.bumptech.glide:glide:4.16.0")
//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.1")
//fragment ktx
implementation("androidx.fragment:fragment-ktx:1.6.2")
//Hilt
implementation("com.google.dagger:hilt-android:2.48.1")
ksp("com.google.dagger:hilt-compiler:2.48.1")
ksp("org.jetbrains.kotlinx:kotlinx-metadata-jvm:0.7.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.1"
implementation("androidx.paging:paging-runtime-ktx:$paging_version")
implementation("com.daimajia.swipelayout:library:1.2.0@aar")
//Custom Activity On Crash
implementation ("cat.ereza:customactivityoncrash:2.4.0")
implementation("com.intuit.sdp:sdp-android:1.1.0")
implementation("com.intuit.ssp:ssp-android:1.1.0")
val latestAboutLibsRelease = "10.9.2"
implementation ("com.mikepenz:aboutlibraries:${latestAboutLibsRelease}")
implementation("com.google.android.flexbox:flexbox:3.0.0")
}
hilt {
enableAggregatingTask = true
}
aboutLibraries {
prettyPrint = true
registerAndroidTasks = false
excludeFields = arrayOf("generated")
}