refactor: Added libs file to use Kotlin DLS
This commit is contained in:
@@ -77,39 +77,30 @@ android {
|
||||
}
|
||||
|
||||
dependencies {
|
||||
implementation("androidx.core:core-ktx:1.13.1")
|
||||
implementation("androidx.appcompat:appcompat:1.6.1")
|
||||
implementation("com.google.android.material:material:1.12.0")
|
||||
implementation("androidx.constraintlayout:constraintlayout:2.1.4")
|
||||
implementation("androidx.navigation:navigation-fragment-ktx:2.7.7")
|
||||
implementation("androidx.navigation:navigation-ui-ktx:2.7.7")
|
||||
implementation("com.google.android.material:material:1.12.0")
|
||||
implementation("androidx.lifecycle:lifecycle-viewmodel-ktx:2.8.0")
|
||||
implementation("androidx.lifecycle:lifecycle-process:2.8.0")
|
||||
implementation("androidx.lifecycle:lifecycle-runtime-ktx:2.8.0")
|
||||
implementation("androidx.work:work-runtime-ktx:2.9.0")
|
||||
implementation("androidx.recyclerview:recyclerview:1.3.2")
|
||||
implementation("androidx.viewpager2:viewpager2:1.1.0")
|
||||
implementation("androidx.preference:preference-ktx:1.2.1")
|
||||
debugImplementation("junit:junit:4.13.2")
|
||||
androidTestImplementation("androidx.test.ext:junit:1.1.5")
|
||||
androidTestImplementation("androidx.test.espresso:espresso-core:3.5.1")
|
||||
|
||||
//room
|
||||
val roomVersion = "2.6.1"
|
||||
implementation("androidx.room:room-runtime:$roomVersion")
|
||||
implementation("androidx.room:room-ktx:$roomVersion")
|
||||
implementation(libs.core.ktx)
|
||||
implementation(libs.appcompat)
|
||||
implementation(libs.material)
|
||||
implementation(libs.constraintlayout)
|
||||
implementation(libs.navigation.fragment.ktx)
|
||||
implementation(libs.navigation.ui.ktx)
|
||||
implementation(libs.lifecycle.runtime.ktx)
|
||||
implementation(libs.lifecycle.process)
|
||||
implementation(libs.lifecycle.viewmodel.ktx)
|
||||
implementation(libs.work.runtime.ktx)
|
||||
implementation(libs.recyclerview)
|
||||
implementation(libs.viewpager2)
|
||||
implementation(libs.preference)
|
||||
implementation(libs.biometric.ktx)
|
||||
implementation(libs.room.ktx)
|
||||
implementation(libs.room.runtime)
|
||||
//noinspection KaptUsageInsteadOfKsp
|
||||
kapt("androidx.room:room-compiler:$roomVersion")
|
||||
kapt(libs.room.compiler)
|
||||
implementation(libs.dagger.hilt.android)
|
||||
kapt(libs.dagger.hilt.compiler)
|
||||
implementation(libs.color.chooser)
|
||||
|
||||
//hilt
|
||||
val hiltVersion = "2.51.1"
|
||||
implementation("com.google.dagger:hilt-android:$hiltVersion")
|
||||
kapt("com.google.dagger:hilt-compiler:$hiltVersion")
|
||||
|
||||
//biometric
|
||||
implementation("androidx.biometric:biometric-ktx:1.2.0-alpha05")
|
||||
|
||||
//color picker
|
||||
implementation("net.mm2d.color-chooser:color-chooser:0.7.3")
|
||||
testImplementation(libs.junit)
|
||||
androidTestImplementation(libs.androidx.junit)
|
||||
androidTestImplementation(libs.androidx.espresso.core)
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
plugins {
|
||||
id("com.android.application") version "8.4.1" apply false
|
||||
id("com.android.library") version "8.4.1" apply false
|
||||
id("org.jetbrains.kotlin.android") version "1.9.24" apply false
|
||||
id("com.google.dagger.hilt.android") version "2.51.1" apply false
|
||||
alias(libs.plugins.android.application) apply false
|
||||
alias(libs.plugins.android.library) apply false
|
||||
alias(libs.plugins.jetbrains.kotlin.android) apply false
|
||||
alias(libs.plugins.dagger.android) apply false
|
||||
}
|
||||
@@ -102,7 +102,7 @@ commit_parsers = [
|
||||
{ message = "^release|^Release", group = "<!-- 9 -->Releases:" },
|
||||
{ message = "^dependency|^deps|^Dependency|^Deps", group = "<!-- 10 -->Dependency Updates:" },
|
||||
{ message = "^ci|^pipeline|^Ci|^Pipeline", group = "<!-- 11 -->Continuous Integration (CI):" },
|
||||
{ message = "^chore|^housekeeping|^Chore|^Housekeeping", group = "<!-- 12 -->Chore:" },
|
||||
{ message = "^chore|^housekeeping|^Chore|^Housekeeping", group = "<!-- 12 -->Housekeeping:" },
|
||||
{ message = "^version|^versioning|^Version|^Versioning", group = "<!-- 13 -->Versioning:" },
|
||||
{ message = "^config|^configuration|^Config|^Configuration", group = "<!-- 14 -->Configuration Changes:" },
|
||||
{ message = "^cleanup|^clean\\(up\\)|^Cleanup|^Clean\\(up\\)", group = "<!-- 15 -->Code Cleanup:" },
|
||||
|
||||
58
gradle/libs.versions.toml
Normal file
58
gradle/libs.versions.toml
Normal file
@@ -0,0 +1,58 @@
|
||||
[versions]
|
||||
agp = "8.4.1"
|
||||
kotlin = "1.9.24"
|
||||
coreKtx = "1.13.1"
|
||||
junit = "4.13.2"
|
||||
junitVersion = "1.1.5"
|
||||
espressoCore = "3.5.1"
|
||||
appcompat = "1.6.1"
|
||||
material = "1.12.0"
|
||||
constraintlayout = "2.1.4"
|
||||
navigation = "2.7.7"
|
||||
lifecycle = "2.8.0"
|
||||
dagger = "2.51.1"
|
||||
work = "2.9.0"
|
||||
recyclerview = "1.3.2"
|
||||
viewpager2 = "1.1.0"
|
||||
preference = "1.2.1"
|
||||
room = "2.6.1"
|
||||
biometric = "1.2.0-alpha05"
|
||||
color-chooser = "0.7.3"
|
||||
|
||||
[libraries]
|
||||
core-ktx = { group = "androidx.core", name = "core-ktx", version.ref = "coreKtx" }
|
||||
appcompat = { group = "androidx.appcompat", name = "appcompat", version.ref = "appcompat" }
|
||||
material = { group = "com.google.android.material", name = "material", version.ref = "material" }
|
||||
constraintlayout = { group = "androidx.constraintlayout", name = "constraintlayout", version.ref = "constraintlayout" }
|
||||
navigation-fragment-ktx = { group = "androidx.navigation", name = "navigation-fragment-ktx", version.ref = "navigation" }
|
||||
navigation-ui-ktx = { group = "androidx.navigation", name = "navigation-ui-ktx", version.ref = "navigation" }
|
||||
lifecycle-viewmodel-ktx = { group = "androidx.lifecycle", name = "lifecycle-viewmodel-ktx", version.ref = "lifecycle" }
|
||||
lifecycle-process = { group = "androidx.lifecycle", name = "lifecycle-process", version.ref = "lifecycle" }
|
||||
lifecycle-runtime-ktx = { group = "androidx.lifecycle", name = "lifecycle-runtime-ktx", version.ref = "lifecycle" }
|
||||
work-runtime-ktx = { group = "androidx.work", name = "work-runtime-ktx", version.ref = "work" }
|
||||
recyclerview = { group = "androidx.recyclerview", name = "recyclerview", version.ref = "recyclerview" }
|
||||
viewpager2 = { group = "androidx.viewpager2", name = "viewpager2", version.ref = "viewpager2" }
|
||||
preference = { group = "androidx.preference", name = "preference-ktx", version.ref = "preference" }
|
||||
biometric-ktx = { group = "androidx.biometric", name = "biometric-ktx", version.ref = "biometric" }
|
||||
color-chooser = { group = "net.mm2d.color-chooser", name = "color-chooser", version.ref = "color-chooser" }
|
||||
|
||||
# Room Packages
|
||||
room-runtime = { group = "androidx.room", name = "room-runtime", version.ref = "room" }
|
||||
room-ktx = { group = "androidx.room", name = "room-ktx", version.ref = "room" }
|
||||
room-compiler = { group = "androidx.room", name = "room-compiler", version.ref = "room" }
|
||||
|
||||
# Dagger Packages
|
||||
dagger-hilt-android = { group = "com.google.dagger", name = "hilt-android", version.ref = "dagger" }
|
||||
dagger-hilt-compiler = { group = "com.google.dagger", name = "hilt-compiler", version.ref = "dagger" }
|
||||
|
||||
junit = { group = "junit", name = "junit", version.ref = "junit" }
|
||||
androidx-junit = { group = "androidx.test.ext", name = "junit", version.ref = "junitVersion" }
|
||||
androidx-espresso-core = { group = "androidx.test.espresso", name = "espresso-core", version.ref = "espressoCore" }
|
||||
|
||||
|
||||
[plugins]
|
||||
android-application = { id = "com.android.application", version.ref = "agp" }
|
||||
android-library = { id = "com.android.library", version.ref = "agp" }
|
||||
jetbrains-kotlin-android = { id = "org.jetbrains.kotlin.android", version.ref = "kotlin" }
|
||||
dagger-android = { id = "com.google.dagger.hilt.android", version.ref = "dagger" }
|
||||
|
||||
Reference in New Issue
Block a user