Skip to content

Commit

Permalink
테스트 의존성 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
sun5066 committed Jul 2, 2024
1 parent 4c454e1 commit 38d51f1
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 49 deletions.
3 changes: 0 additions & 3 deletions core/di/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,6 @@ dependencies {
implementation(libs.androidx.room.runtime)
ksp(libs.androidx.room.compiler)

implementation(libs.okhttp)
implementation(libs.data.store)
implementation(libs.retrofit.logging)
implementation(libs.moshi)
ksp(libs.moshi.codegen)
}
46 changes: 12 additions & 34 deletions core/testing/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,43 +1,21 @@
plugins {
alias(libs.plugins.android.library)
alias(libs.plugins.jetbrains.kotlin.android)
id("linky.android.library")
id("linky.android.compose")
id("linky.android.hilt")
}

android {
namespace = "com.sun5066.core.testing"
compileSdk = 34

defaultConfig {
minSdk = 24

testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
consumerProguardFiles("consumer-rules.pro")
}

buildTypes {
release {
isMinifyEnabled = false
proguardFiles(
getDefaultProguardFile("proguard-android-optimize.txt"),
"proguard-rules.pro"
)
}
}
compileOptions {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
}
kotlinOptions {
jvmTarget = "1.8"
}
namespace = "com.linky.core.testing"
}

dependencies {
implementation(projects.core.designSystem)
implementation(projects.core.data)

debugApi(libs.androidx.compose.ui.test.manifest)

implementation(libs.androidx.core.ktx)
implementation(libs.androidx.appcompat)
implementation(libs.material)
testImplementation(libs.junit)
androidTestImplementation(libs.androidx.junit)
androidTestImplementation(libs.androidx.espresso.core)
implementation(libs.androidx.test.rules)
implementation(libs.hilt.android.testing)
implementation(libs.kotlinx.coroutines.test)
implementation(libs.kotlinx.datetime)
}
4 changes: 1 addition & 3 deletions feature/ask/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,2 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android">

</manifest>
<manifest xmlns:android="http://schemas.android.com/apk/res/android" />
18 changes: 9 additions & 9 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
kotlin = "2.0.0"
hilt = "2.51.1"
ksp = "2.0.0-1.0.21"
kotlinxDatetime = "0.5.0"
kotlinxSerializationJson = "1.6.3"

androidDesugarJdkLibs = "2.0.4"
androidGradle = "8.5.0"
Expand Down Expand Up @@ -41,6 +43,7 @@ androidPlayServices = "4.4.2"
javax = "1"

junit = "4.13.2"
androidxTestRules = "1.6.1"
androidxJunit = "1.2.1"
androidxEspressoCore = "3.6.1"

Expand All @@ -56,13 +59,13 @@ ksp-gradle-plugin = { group = "com.google.devtools.ksp", name = "com.google.devt
coroutine-core = { module = "org.jetbrains.kotlinx:kotlinx-coroutines-core", version.ref = "coroutine" }
coroutine-android = { module = "org.jetbrains.kotlinx:kotlinx-coroutines-android", version.ref = "coroutine" }

okhttp = { module = "com.squareup.okhttp3:okhttp", version.ref = "okhttp" }
retrofit = { module = "com.squareup.retrofit2:retrofit", version.ref = "retrofit" }
retrofit-converter-scalars = { module = "com.squareup.retrofit2:converter-scalars", version.ref = "retrofit" }
retrofit-logging = { module = "com.squareup.okhttp3:logging-interceptor", version.ref = "okhttp" }

hilt-android = { module = "com.google.dagger:hilt-android", version.ref = "hilt" }
hilt-android-compiler = { module = "com.google.dagger:hilt-android-compiler", version.ref = "hilt" }
hilt-android-testing = { group = "com.google.dagger", name = "hilt-android-testing", version.ref = "hilt" }
kotlinx-coroutines-guava = { group = "org.jetbrains.kotlinx", name = "kotlinx-coroutines-guava", version.ref = "coroutine" }
kotlinx-coroutines-test = { group = "org.jetbrains.kotlinx", name = "kotlinx-coroutines-test", version.ref = "coroutine" }
kotlinx-datetime = { group = "org.jetbrains.kotlinx", name = "kotlinx-datetime", version.ref = "kotlinxDatetime" }
kotlinx-serialization-json = { group = "org.jetbrains.kotlinx", name = "kotlinx-serialization-json", version.ref = "kotlinxSerializationJson" }

android-desugarJdkLibs = { group = "com.android.tools", name = "desugar_jdk_libs", version.ref = "androidDesugarJdkLibs" }

Expand Down Expand Up @@ -98,7 +101,6 @@ androidx-splashscreen = { module = "androidx.core:core-splashscreen", version.re
system-ui-controller = { module = "com.google.accompanist:accompanist-systemuicontroller", version.ref = "systemUiController" }
data-store = { module = "androidx.datastore:datastore-preferences", version.ref = "dataStore" }
data-store-core = { module = "androidx.datastore:datastore-preferences-core", version.ref = "dataStore" }
flow-layout = { module = "com.google.accompanist:accompanist-flowlayout", version.ref = "flowLayout" }

android-play-services = { module = "com.google.gms:google-services", version.ref = "androidPlayServices" }

Expand All @@ -110,15 +112,13 @@ coil = { module = "io.coil-kt:coil-compose", version.ref = "coil" }
balloon = { module = "com.github.skydoves:balloon-compose", version.ref = "balloon" }

javax = { module = "javax.inject:javax.inject", version.ref = "javax" }
json = { module = "org.json:json", version.ref = "json" }
moshi = { module = "com.squareup.moshi:moshi-kotlin", version.ref = "moshi" }
moshi-codegen = { module = "com.squareup.moshi:moshi-kotlin-codegen", version.ref = "moshi" }

junit = { module = "junit:junit", version.ref = "junit" }
androidx-junit = { module = "androidx.test.ext:junit", version.ref = "androidxJunit" }
androidx-test-rules = { module = "androidx.test:rules", version.ref = "androidxTestRules" }
androidx-espresso-core = { module = "androidx.test.espresso:espresso-core", version.ref = "androidxEspressoCore" }
accompanist-pager = { module = "com.google.accompanist:accompanist-pager", version.ref = "accompanistPager" }
accompanist-pager-indicators = { module = "com.google.accompanist:accompanist-pager-indicators", version.ref = "accompanistPager" }

orbit-compose = { module = "org.orbit-mvi:orbit-compose", version.ref = "orbit" }
orbit-viewmodel = { module = "org.orbit-mvi:orbit-viewmodel", version.ref = "orbit" }
Expand Down

0 comments on commit 38d51f1

Please sign in to comment.