Skip to content

Commit

Permalink
toml dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
yueeng committed Mar 2, 2024
1 parent 932c54a commit 30c4a1b
Show file tree
Hide file tree
Showing 3 changed files with 127 additions and 58 deletions.
95 changes: 44 additions & 51 deletions app/build.gradle
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
plugins {
id 'com.android.application'
id 'org.jetbrains.kotlin.android'
id 'com.google.devtools.ksp'
id 'kotlin-parcelize'
alias(libs.plugins.androidApplication)
alias(libs.plugins.jetbrainsKotlinAndroid)
alias(libs.plugins.googleDevtoolsKsp)
alias(libs.plugins.kotlinParcelize)
}

android {
Expand Down Expand Up @@ -91,50 +91,43 @@ android {
}

dependencies {
def glide_version = '4.16.0'
def okhttp_version = '4.12.0'
def retrofit_version = '2.9.0'
def room_version = '2.6.1'
def lifecycle_version = '2.7.0'
def kotlinx_coroutines_version = '1.8.0'
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-core:$kotlinx_coroutines_version"
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-android:$kotlinx_coroutines_version"
implementation 'androidx.core:core-ktx:1.12.0'
implementation 'androidx.preference:preference-ktx:1.2.1'
implementation 'androidx.appcompat:appcompat:1.6.1'
implementation 'androidx.constraintlayout:constraintlayout:2.1.4'
implementation "androidx.lifecycle:lifecycle-livedata-ktx:$lifecycle_version"
implementation "androidx.lifecycle:lifecycle-viewmodel-ktx:$lifecycle_version"
implementation "androidx.lifecycle:lifecycle-process:$lifecycle_version"
implementation 'androidx.swiperefreshlayout:swiperefreshlayout:1.1.0'
implementation 'androidx.paging:paging-runtime-ktx:3.2.1'
implementation 'androidx.activity:activity-ktx:1.8.2'
implementation 'androidx.fragment:fragment-ktx:1.6.2'
implementation 'androidx.work:work-runtime-ktx:2.9.0'
implementation 'androidx.palette:palette-ktx:1.0.0'
implementation "androidx.room:room-runtime:$room_version"
ksp "androidx.room:room-compiler:$room_version"
implementation "androidx.room:room-ktx:$room_version"
implementation "androidx.room:room-paging:$room_version"
implementation 'com.google.android.material:material:1.11.0'
implementation 'com.google.android.flexbox:flexbox:3.0.0'
implementation 'com.google.code.gson:gson:2.10.1'
implementation "com.squareup.okhttp3:okhttp:$okhttp_version"
implementation "com.squareup.okhttp3:logging-interceptor:$okhttp_version"
implementation "com.squareup.retrofit2:retrofit:$retrofit_version"
implementation "com.squareup.retrofit2:converter-gson:$retrofit_version"
implementation "com.squareup.retrofit2:converter-scalars:$retrofit_version"
implementation "com.github.bumptech.glide:glide:$glide_version"
implementation "com.github.bumptech.glide:okhttp3-integration:$glide_version"
ksp "com.github.bumptech.glide:ksp:$glide_version"
implementation 'com.github.franmontiel:PersistentCookieJar:1.0.1'
implementation 'jp.wasabeef:glide-transformations:4.3.0'
implementation 'com.alexvasilkov:gesture-views:2.8.3'
implementation 'org.jsoup:jsoup:1.17.2'
implementation 'com.github.yueeng:uCrop:2020.09.28'
implementation 'org.kohsuke:github-api:1.315'
testImplementation 'junit:junit:4.13.2'
androidTestImplementation 'androidx.test.ext:junit:1.1.5'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.5.1'
// debugImplementation 'com.squareup.leakcanary:leakcanary-android:2.7'
}
implementation libs.kotlinx.coroutines.core
implementation libs.kotlinx.coroutines.android
implementation libs.androidx.core.ktx
implementation libs.androidx.preference.ktx
implementation libs.androidx.appcompat
implementation libs.androidx.constraintlayout
implementation libs.androidx.lifecycle.livedata.ktx
implementation libs.androidx.lifecycle.viewmodel.ktx
implementation libs.androidx.lifecycle.process
implementation libs.androidx.swiperefreshlayout
implementation libs.androidx.paging.runtime.ktx
implementation libs.androidx.activity.ktx
implementation libs.androidx.fragment.ktx
implementation libs.androidx.work.runtime.ktx
implementation libs.androidx.palette.ktx
implementation libs.androidx.room.runtime
ksp libs.androidx.room.compiler
implementation libs.androidx.room.ktx
implementation libs.androidx.room.paging
implementation libs.androidx.material
implementation libs.androidx.flexbox
implementation libs.gson
implementation libs.okhttp
implementation libs.okhttp.logging.interceptor
implementation libs.retrofit
implementation libs.retrofit.converter.gson
implementation libs.retrofit.converter.scalars
implementation libs.glide
implementation libs.glide.okhttp3.integration
ksp libs.glide.ksp
implementation libs.glide.transformations
implementation libs.persistentCookieJar
implementation libs.gesture.views
implementation libs.jsoup
implementation libs.ucrop
implementation libs.github.api
testImplementation libs.junit
androidTestImplementation libs.androidx.test.ext.junit
androidTestImplementation libs.androidx.test.espresso
}
11 changes: 4 additions & 7 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,12 +1,9 @@
// Top-level build file where you can add configuration options common to all sub-projects/modules.
plugins {
id 'com.android.application' version '8.3.0' apply false
id 'org.jetbrains.kotlin.android' version '1.9.22' apply false
id 'com.google.devtools.ksp' version '1.9.22-1.0.18' apply false
}

tasks.register('clean', Delete) {
delete rootProject.buildDir
alias(libs.plugins.androidApplication) apply false
alias(libs.plugins.jetbrainsKotlinAndroid) apply false
alias(libs.plugins.googleDevtoolsKsp) apply false
alias(libs.plugins.kotlinParcelize) apply false
}

tasks.register('summary') {
Expand Down
79 changes: 79 additions & 0 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
[versions]
agp = "8.3.0"
kotlin = "1.9.22"
ksp = "1.9.22-1.0.18"
glide = "4.16.0"
okhttp = "4.12.0"
retrofit = "2.9.0"
kotlinx_coroutines = "1.8.0"
androidx_core = "1.12.0"
androidx_preference = "1.2.1"
androidx_appcompat = "1.6.1"
androidx_constraintlayout = "2.1.4"
androidx_lifecycle = "2.7.0"
androidx_swiperefreshlayout = "1.1.0"
androidx_paging = "3.2.1"
androidx_activity = "1.8.2"
androidx_fragment = "1.6.2"
androidx_work = "2.9.0"
androidx_palette = "1.0.0"
androidx_room = "2.6.1"
androidx_material = "1.11.0"
androidx_flexbox = "3.0.0"
gson = "2.10.1"
persistentCookieJar = "1.0.1"
glide_transformations = "4.3.0"
gesture_views = "2.8.3"
jsoup = "1.17.2"
uCrop = "2020.09.28"
github_api = "1.315"
junit = "4.13.2"
androidx_test_ext_junit = "1.1.5"
androidx_test_espresso = "3.5.1"

[libraries]
kotlinx_coroutines_core = { module = "org.jetbrains.kotlinx:kotlinx-coroutines-core", version.ref = "kotlinx_coroutines" }
kotlinx_coroutines_android = { module = "org.jetbrains.kotlinx:kotlinx-coroutines-android", version.ref = "kotlinx_coroutines" }
androidx_core_ktx = { module = "androidx.core:core-ktx", version.ref = "androidx_core" }
androidx_preference_ktx = { module = "androidx.preference:preference-ktx", version.ref = "androidx_preference" }
androidx_appcompat = { module = "androidx.appcompat:appcompat", version.ref = "androidx_appcompat" }
androidx_constraintlayout = { module = "androidx.constraintlayout:constraintlayout", version.ref = "androidx_constraintlayout" }
androidx_lifecycle_livedata_ktx = { module = "androidx.lifecycle:lifecycle-livedata-ktx", version.ref = "androidx_lifecycle" }
androidx_lifecycle_viewmodel_ktx = { module = "androidx.lifecycle:lifecycle-viewmodel-ktx", version.ref = "androidx_lifecycle" }
androidx_lifecycle_process = { module = "androidx.lifecycle:lifecycle-process", version.ref = "androidx_lifecycle" }
androidx_swiperefreshlayout = { module = "androidx.swiperefreshlayout:swiperefreshlayout", version.ref = "androidx_swiperefreshlayout" }
androidx_paging_runtime_ktx = { module = "androidx.paging:paging-runtime-ktx", version.ref = "androidx_paging" }
androidx_activity_ktx = { module = "androidx.activity:activity-ktx", version.ref = "androidx_activity" }
androidx_fragment_ktx = { module = "androidx.fragment:fragment-ktx", version.ref = "androidx_fragment" }
androidx_work_runtime_ktx = { module = "androidx.work:work-runtime-ktx", version.ref = "androidx_work" }
androidx_palette_ktx = { module = "androidx.palette:palette-ktx", version.ref = "androidx_palette" }
androidx_room_runtime = { module = "androidx.room:room-runtime", version.ref = "androidx_room" }
androidx_room_compiler = { module = "androidx.room:room-compiler", version.ref = "androidx_room" }
androidx_room_ktx = { module = "androidx.room:room-ktx", version.ref = "androidx_room" }
androidx_room_paging = { module = "androidx.room:room-paging", version.ref = "androidx_room" }
androidx_material = { module = "com.google.android.material:material", version.ref = "androidx_material" }
androidx_flexbox = { module = "com.google.android.flexbox:flexbox", version.ref = "androidx_flexbox" }
gson = { module = "com.google.code.gson:gson", version.ref = "gson" }
okhttp = { module = "com.squareup.okhttp3:okhttp", version.ref = "okhttp" }
okhttp_logging_interceptor = { module = "com.squareup.okhttp3:logging-interceptor", version.ref = "okhttp" }
retrofit = { module = "com.squareup.retrofit2:retrofit", version.ref = "retrofit" }
retrofit_converter_gson = { module = "com.squareup.retrofit2:converter-gson", version.ref = "retrofit" }
retrofit_converter_scalars = { module = "com.squareup.retrofit2:converter-scalars", version.ref = "retrofit" }
glide = { module = "com.github.bumptech.glide:glide", version.ref = "glide" }
glide_okhttp3_integration = { module = "com.github.bumptech.glide:okhttp3-integration", version.ref = "glide" }
glide_ksp = { module = "com.github.bumptech.glide:ksp", version.ref = "glide" }
glide_transformations = { module = "jp.wasabeef:glide-transformations", version.ref = "glide_transformations" }
persistentCookieJar = { module = "com.github.franmontiel:PersistentCookieJar", version.ref = "persistentCookieJar" }
gesture_views = { module = "com.alexvasilkov:gesture-views", version.ref = "gesture_views" }
jsoup = { module = "org.jsoup:jsoup", version.ref = "jsoup" }
ucrop = { module = "com.github.yueeng:uCrop", version.ref = "uCrop" }
github_api = { module = "org.kohsuke:github-api", version.ref = "github_api" }
junit = { module = "junit:junit", version.ref = "junit" }
androidx_test_ext_junit = { module = "androidx.test.ext:junit", version.ref = "androidx_test_ext_junit" }
androidx_test_espresso = { module = "androidx.test.espresso:espresso-core", version.ref = "androidx_test_espresso" }

[plugins]
androidApplication = { id = "com.android.application", version.ref = "agp" }
jetbrainsKotlinAndroid = { id = "org.jetbrains.kotlin.android", version.ref = "kotlin" }
googleDevtoolsKsp = { id = "com.google.devtools.ksp", version.ref = "ksp" }
kotlinParcelize = { id = "org.jetbrains.kotlin.plugin.parcelize", version.ref = "kotlin" }

0 comments on commit 30c4a1b

Please sign in to comment.