Skip to content

Commit 50e344d

Browse files
committed
chore: gradle의 impl을 buildSrc로 분리
1 parent bdc56ff commit 50e344d

File tree

3 files changed

+45
-0
lines changed

3 files changed

+45
-0
lines changed

buildSrc/build.gradle.kts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
plugins {
2+
`kotlin-dsl` // enable the Kotlin-DSL
3+
}
4+
5+
repositories {
6+
google()
7+
mavenCentral()
8+
}
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
object AppConfig {
2+
const val compileSdk = 33
3+
const val targetSdk = 33
4+
const val minSdk = 23
5+
const val versionCode = 1
6+
const val versionName = "0.0.1"
7+
const val buildToolsVersion = "30.0.3"
8+
}
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
object Versions {
2+
const val APP_COMPAT = "1.5.1"
3+
const val CORE = "1.7.0"
4+
const val CONSTRAINT_LAYOUT = "2.1.4"
5+
const val NAVIGATION_FRAGMENT = "2.5.3"
6+
const val JUNIT = "4.13.2"
7+
const val ANDROID_JUNIT = "1.1.3"
8+
const val ESPRESSO = "3.4.0"
9+
const val MATERIAL = "1.7.0"
10+
}
11+
12+
object Libraries {
13+
// androidX + KTX
14+
const val CORE = "androidx.core:core-ktx:${Versions.CORE}"
15+
const val APP_COMPAT = "androidx.appcompat:appcompat:${Versions.APP_COMPAT}"
16+
const val CONSTRAINT_LAYOUT = "androidx.constraintlayout:constraintlayout:${Versions.CONSTRAINT_LAYOUT}"
17+
const val NAVIGATION_FRAGMENT_KTX = "androidx.navigation:navigation-fragment-ktx:${Versions.NAVIGATION_FRAGMENT}"
18+
const val NAVIGATION_UI_KTX = "androidx.navigation:navigation-ui-ktx:${Versions.NAVIGATION_FRAGMENT}"
19+
const val MATERIAL = "com.google.android.material:material:${Versions.MATERIAL}"
20+
}
21+
22+
object TestImpl {
23+
const val JUNIT4 = "junit:junit:${Versions.JUNIT}" // TODO 5 쓰는 쪽으로 바꿔야함
24+
}
25+
26+
object AndroidTestImpl {
27+
const val ANDROID_JUNIT = "androidx.test.ext:junit:${Versions.ANDROID_JUNIT}"
28+
const val ESPRESSO = "androidx.test.espresso:espresso-core:${Versions.ESPRESSO}"
29+
}

0 commit comments

Comments
 (0)