Skip to content

Commit

Permalink
Use version catalog for dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
CatotheCat11 committed Feb 18, 2025
1 parent 414445f commit a56a9ce
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 19 deletions.
38 changes: 19 additions & 19 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ android {
defaultConfig {
applicationId "com.cato.glasssky"
minSdk 19
multiDexEnabled = true;
multiDexEnabled = true
targetSdk 34
versionCode 1
versionName "1.1.2"
Expand All @@ -33,22 +33,22 @@ android {
}

dependencies {
implementation 'androidx.core:core-ktx:1.8.0'
implementation platform('org.jetbrains.kotlin:kotlin-bom:1.8.0')
implementation 'androidx.lifecycle:lifecycle-runtime-ktx:2.3.1'
implementation files('libs\\gdk.jar')
implementation 'com.squareup.okhttp3:okhttp:3.12.12'
testImplementation 'junit:junit:4.13.2'
androidTestImplementation 'androidx.test.ext:junit:1.1.5'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.3.0'
implementation 'com.google.zxing:core:2.3.0'
implementation 'org.conscrypt:conscrypt-android:2.5.3'
implementation 'com.google.android.exoplayer:exoplayer:2.19.1'
implementation 'com.google.android.exoplayer:exoplayer-core:2.19.1'
implementation 'com.google.android.exoplayer:exoplayer-hls:2.19.1'
implementation 'com.google.android.exoplayer:exoplayer-ui:2.19.1'
implementation 'com.google.android.exoplayer:exoplayer-dash:2.19.1'
implementation 'com.github.bumptech.glide:glide:4.12.0'
implementation 'com.github.bumptech.glide:okhttp3-integration:4.12.0'
annotationProcessor 'com.github.bumptech.glide:compiler:4.12.0'
implementation libs.core.ktx
implementation platform(libs.kotlin.bom)
implementation libs.lifecycle.runtime.ktx
implementation files('libs/gdk.jar')
implementation libs.okhttp
testImplementation libs.junit
androidTestImplementation libs.ext.junit
androidTestImplementation libs.espresso.core
implementation libs.core
implementation libs.conscrypt.android
implementation libs.exoplayer
implementation libs.exoplayer.core
implementation libs.exoplayer.hls
implementation libs.exoplayer.ui
implementation libs.exoplayer.dash
implementation libs.glide
implementation libs.okhttp3.integration
annotationProcessor libs.compiler
}
22 changes: 22 additions & 0 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
@@ -1,17 +1,39 @@
[versions]
agp = "8.8.0"
conscryptAndroid = "2.5.3"
core = "2.3.0"
coreKtx = "1.8.0"
exoplayer = "2.19.1"
glide = "4.12.0"
junit = "4.13.2"
junitVersion = "1.1.5"
espressoCore = "3.5.1"
appcompat = "1.6.1"
kotlinBom = "1.8.0"
lifecycleRuntimeKtx = "2.3.1"
material = "1.10.0"
okhttp = "3.12.12"

[libraries]
compiler = { module = "com.github.bumptech.glide:compiler", version.ref = "glide" }
conscrypt-android = { module = "org.conscrypt:conscrypt-android", version.ref = "conscryptAndroid" }
core = { module = "com.google.zxing:core", version.ref = "core" }
core-ktx = { module = "androidx.core:core-ktx", version.ref = "coreKtx" }
exoplayer = { module = "com.google.android.exoplayer:exoplayer", version.ref = "exoplayer" }
exoplayer-core = { module = "com.google.android.exoplayer:exoplayer-core", version.ref = "exoplayer" }
exoplayer-dash = { module = "com.google.android.exoplayer:exoplayer-dash", version.ref = "exoplayer" }
exoplayer-hls = { module = "com.google.android.exoplayer:exoplayer-hls", version.ref = "exoplayer" }
exoplayer-ui = { module = "com.google.android.exoplayer:exoplayer-ui", version.ref = "exoplayer" }
glide = { module = "com.github.bumptech.glide:glide", version.ref = "glide" }
junit = { group = "junit", name = "junit", version.ref = "junit" }
ext-junit = { group = "androidx.test.ext", name = "junit", version.ref = "junitVersion" }
espresso-core = { group = "androidx.test.espresso", name = "espresso-core", version.ref = "espressoCore" }
appcompat = { group = "androidx.appcompat", name = "appcompat", version.ref = "appcompat" }
kotlin-bom = { module = "org.jetbrains.kotlin:kotlin-bom", version.ref = "kotlinBom" }
lifecycle-runtime-ktx = { module = "androidx.lifecycle:lifecycle-runtime-ktx", version.ref = "lifecycleRuntimeKtx" }
material = { group = "com.google.android.material", name = "material", version.ref = "material" }
okhttp = { module = "com.squareup.okhttp3:okhttp", version.ref = "okhttp" }
okhttp3-integration = { module = "com.github.bumptech.glide:okhttp3-integration", version.ref = "glide" }

[plugins]
android-application = { id = "com.android.application", version.ref = "agp" }
Expand Down

0 comments on commit a56a9ce

Please sign in to comment.