Skip to content

Commit

Permalink
moved dependencies to buildSrc
Browse files Browse the repository at this point in the history
  • Loading branch information
charlee-dev committed Mar 1, 2022
1 parent aff01ef commit 8c99210
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
5 changes: 5 additions & 0 deletions buildSrc/src/main/kotlin/Dependencies.kt
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,15 @@ object Versions {
const val composeConstraintLayout = "1.0.0"
internal const val jUnit4 = "4.13.2"
const val accompanist = "0.21.2-beta"
const val krottvSliders = "0.1.4"
const val colorMath = "3.2.0"
}

object Dependencies {
const val gradle = "com.android.tools.build:gradle:${Versions.gradle}"
const val kotlinGradle = "org.jetbrains.kotlin:kotlin-gradle-plugin:${Versions.kotlin}"
const val dokka = "org.jetbrains.dokka:dokka-gradle-plugin:${Versions.dokka}"
const val dokkaCore = "org.jetbrains.dokka:dokka-core:${Versions.dokka}"
const val androidXCoreKtx = "androidx.core:core-ktx:${Versions.androidCore}"
const val lifecycle = "androidx.lifecycle:lifecycle-runtime-ktx:${Versions.lifecycle}"
const val composeActivity = "androidx.activity:activity-compose:${Versions.activityCompose}"
Expand All @@ -26,6 +29,8 @@ object Dependencies {
const val composeIcons = "androidx.compose.material:material-icons-extended:${Versions.compose}"
const val composeConstraintLayout = "androidx.constraintlayout:constraintlayout-compose:${Versions.composeConstraintLayout}"
const val accompanist = "com.google.accompanist:accompanist-flowlayout:${Versions.accompanist}"
const val krottvSliders = "com.github.krottv:compose-sliders:${Versions.krottvSliders}"
const val colorMath = "com.github.ajalt.colormath:colormath:${Versions.colorMath}"
// Test
const val jUnit4 = "junit:junit:${Versions.jUnit4}"
const val composeTest = "androidx.compose.ui:ui-test-junit4:${Versions.compose}"
Expand Down
6 changes: 3 additions & 3 deletions neumorph/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -46,13 +46,13 @@ tasks {
}

dependencies {
compileOnly("org.jetbrains.dokka:dokka-core:${Versions.dokka}")
implementation("com.github.krottv:compose-sliders:0.1.4")
implementation("com.github.ajalt.colormath:colormath:3.2.0")
compileOnly(Dependencies.dokkaCore)
implementation(Dependencies.colorMath)
implementation(Dependencies.lifecycle)
implementation(Dependencies.composeUi)
implementation(Dependencies.accompanist)
implementation(Dependencies.composeIcons)
implementation(Dependencies.krottvSliders)
implementation(Dependencies.composeMaterial)
implementation(Dependencies.androidXCoreKtx)
implementation(Dependencies.composeActivity)
Expand Down

0 comments on commit 8c99210

Please sign in to comment.