Skip to content

Commit

Permalink
[Refactoring] 의존성 정리
Browse files Browse the repository at this point in the history
  • Loading branch information
ajou4095 committed Jan 23, 2024
1 parent f19e5fc commit c2efcda
Show file tree
Hide file tree
Showing 15 changed files with 40 additions and 251 deletions.
2 changes: 1 addition & 1 deletion app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
android:icon="@drawable/ic_launcher"
android:label="@string/app_name"
android:supportsRtl="true"
android:theme="@style/Bookkeeping">
android:theme="@style/Theme.Bookkeeping">

<!-- Required: set your sentry.io project identifier (DSN) -->
<meta-data android:name="io.sentry.dsn" android:value="${sentryDsnToken}" />
Expand Down
5 changes: 0 additions & 5 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,5 @@ plugins {
alias(libs.plugins.kotlin.serialization) apply false
alias(libs.plugins.ksp) apply false
alias(libs.plugins.hilt) apply false
alias(libs.plugins.androidx.navigation.safeargs) apply false
alias(libs.plugins.sentry) apply false
}

task("clean", Delete::class) {
delete = setOf(rootProject.buildDir)
}
2 changes: 0 additions & 2 deletions common/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,6 @@ android {

dependencies {
implementation(libs.bundles.kotlin)
implementation(libs.google.material)
implementation(libs.glide)

implementation(libs.bundles.logging)
}

This file was deleted.

8 changes: 8 additions & 0 deletions data/src/main/res/values/theme.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<style name="Theme.Bookkeeping" parent="Theme.MaterialComponents.Light.NoActionBar">
<item name="android:statusBarColor">#FFFFFF</item>
<item name="android:windowLightStatusBar">true</item>
<item name="android:includeFontPadding">false</item>
</style>
</resources>
71 changes: 22 additions & 49 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,26 +17,25 @@ coroutines = "1.7.3"
kotlinx-datetime = "0.5.0"
# Hilt
hilt = "2.47"
hilt-compose = "1.1.0"
# AndroidX
androidx-core = "1.12.0"
androidx-navigation = "2.7.6"
androidx-appcompat = "1.6.1"
androidx-constraintlayout = "2.1.4"
androidx-fragment = "1.6.2"
androidx-lifecycle = "2.6.2"
androidx-room = "2.6.1"
androidx-paging = "3.1.1"
androidx-compose = "1.5.4"
androidx-compose-navigation = "2.7.0"
androidx-compose-lifecycle = "2.7.0"
androidx-compose-compiler = "1.5.7"
# Google
google-material = "1.11.0"
system-contoller = "0.20.1"
google-system-contoller = "0.20.1"
# Network
ktor = "2.3.7"
kotlinx-serialization = "1.6.1"
# UI
glide = "4.14.2"
coil-compose = "1.3.2"
lottie = "5.2.0"
shimmer = "0.5.0"
rds = "0.3.0"
holix-bottomsheet-compose = "1.3.1"
# Logging
timber = "5.0.1"
sentry = "7.1.0"
Expand All @@ -45,15 +44,6 @@ leakcanary = "2.12"
okhttp3-logging-interceptor = "4.9.1"
# Common
ted-permission = "3.3.0"
# Compose
androidx-compose = "1.4.3"
compose-viewmodel = "2.7.0"
compose-coil = "1.3.2"
compose-livedata = "1.5.4"
compose-navi = "2.7.0"
compose-hiltnavi = "1.1.0"
compose-bottomsheet = "1.3.1"
compose-lifecycle = "2.7.0"

[libraries]
# Kotlin
Expand All @@ -64,24 +54,23 @@ kotlinx-datetime = { module = "org.jetbrains.kotlinx:kotlinx-datetime", version.
# Hilt
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-compose = { module = "androidx.hilt:hilt-navigation-compose", version.ref = "hilt-compose" }
# AndroidX Presentation
androidx-core = { module = "androidx.core:core-ktx", version.ref = "androidx-core" }
androidx-navigation-fragment = { module = "androidx.navigation:navigation-fragment-ktx", version.ref = "androidx-navigation" }
androidx-navigation-ui = { module = "androidx.navigation:navigation-ui-ktx", version.ref = "androidx-navigation" }
androidx-appcompat = { module = "androidx.appcompat:appcompat", version.ref = "androidx-appcompat" }
androidx-constraintlayout = { module = "androidx.constraintlayout:constraintlayout", version.ref = "androidx-constraintlayout" }
androidx-fragment = { module = "androidx.fragment:fragment-ktx", version.ref = "androidx-fragment" }
androidx-viewmodel = { module = "androidx.lifecycle:lifecycle-viewmodel-ktx", version.ref = "androidx-lifecycle" }
androidx-livedata = { module = "androidx.lifecycle:lifecycle-livedata-ktx", version.ref = "androidx-lifecycle" }
androidx-compose-material = { module = "androidx.compose.material:material", version.ref = "androidx-compose" }
androidx-compose-ui = { module = "androidx.compose.ui:ui", version.ref = "androidx-compose" }
androidx-compose-ui-preview = { module = "androidx.compose.ui:ui-tooling-preview", version.ref = "androidx-compose" }
androidx-compose-navigation = { module = "androidx.navigation:navigation-compose", version.ref = "androidx-compose-navigation" }
androidx-compose-lifecycle = { module = "androidx.lifecycle:lifecycle-runtime-compose", version.ref = "androidx-compose-lifecycle" }
# AndroidX Data
androidx-room-compiler = { module = "androidx.room:room-compiler", version.ref = "androidx-room" }
androidx-room-runtime = { module = "androidx.room:room-runtime", version.ref = "androidx-room" }
androidx-room-coroutine = { module = "androidx.room:room-ktx", version.ref = "androidx-room" }
androidx-paging-runtime = { module = "androidx.paging:paging-runtime-ktx", version.ref = "androidx-paging" }
androidx-paging-common = { module = "androidx.paging:paging-common-ktx", version.ref = "androidx-paging" }
# Google
google-material = { module = "com.google.android.material:material", version.ref = "google-material" }
google-system-contoller = { module = "com.google.accompanist:accompanist-systemuicontroller", version.ref = "system-contoller" }
google-system-contoller = { module = "com.google.accompanist:accompanist-systemuicontroller", version.ref = "google-system-contoller" }
# Network
ktor-core = { module = "io.ktor:ktor-client-core", version.ref = "ktor" }
ktor-okhttp = { module = "io.ktor:ktor-client-okhttp", version.ref = "ktor" }
Expand All @@ -91,32 +80,19 @@ ktor-kotlinx-serialization = { module = "io.ktor:ktor-serialization-kotlinx-json
ktor-auth = { module = "io.ktor:ktor-client-auth", version.ref = "ktor" }
kotlinx-serialization = { module = "org.jetbrains.kotlinx:kotlinx-serialization-json", version.ref = "kotlinx-serialization" }
# UI
glide = { module = "com.github.bumptech.glide:glide", version.ref = "glide" }
glide-ksp = { module = "com.github.bumptech.glide:ksp", version.ref = "glide" }
coil-compose = { module = "io.coil-kt:coil-compose", version.ref = "coil-compose" }
ted-permission = { module = "io.github.ParkSangGwon:tedpermission-coroutine", version.ref = "ted-permission" }
lottie = { module = "com.airbnb.android:lottie", version.ref = "lottie" }
shimmer = { module = "com.facebook.shimmer:shimmer", version.ref = "shimmer" }
rds = { module = "com.github.ajou4095:Ray-Design-System", version.ref = "rds" }
holix-bottomsheet-compose = { module = "com.holix.android:bottomsheetdialog-compose", version.ref = "holix-bottomsheet-compose" }
# Logging
timber = { module = "com.jakewharton.timber:timber", version.ref = "timber" }
sentry = { module = "io.sentry:sentry-android", version.ref = "sentry" }
# Debug
leakcanary = { module = "com.squareup.leakcanary:leakcanary-android", version.ref = "leakcanary" }
okhttp3-logging-interceptor = { module = "com.squareup.okhttp3:logging-interceptor", version.ref = "okhttp3-logging-interceptor" }
# Compose
compose-material = { module = "androidx.compose.material:material", version.ref = "androidx-compose" }
compose-ui-ui = { module = "androidx.compose.ui:ui", version.ref = "androidx-compose" }
compose-ui-preview = { module = "androidx.compose.ui:ui-tooling-preview", version.ref = "androidx-compose" }
compose-viewmodel = { module = "androidx.lifecycle:lifecycle-viewmodel-compose", version.ref = "compose-viewmodel" }
compose-navi = { module = "androidx.navigation:navigation-compose", version.ref = "compose-navi" }
compose-hiltnavi = { module = "androidx.hilt:hilt-navigation-compose", version.ref = "compose-hiltnavi" }
compose-lifecycle = { module = "androidx.lifecycle:lifecycle-runtime-compose", version.ref = "compose-lifecycle" }

compose-ui-tooling = { module = "androidx.compose.ui:ui-tooling", version.ref = "androidx-compose" }
compose-ui-test = { module = "androidx.compose.ui:ui-test-manifest", version.ref = "androidx-compose" }
compose-bottomsheet = { module = "com.holix.android:bottomsheetdialog-compose", version.ref = "compose-bottomsheet" }
compose-coil = { module = "io.coil-kt:coil-compose", version.ref = "compose-coil" }
compose-livedata = { module = "androidx.compose.runtime:runtime-livedata", version.ref = "compose-livedata" }
# Test
androidx-compose-ui-tooling = { module = "androidx.compose.ui:ui-tooling", version.ref = "androidx-compose" }
androidx-compose-ui-test-manifest = { module = "androidx.compose.ui:ui-test-manifest", version.ref = "androidx-compose" }

[plugins]
android-application = { id = "com.android.application", version.ref = "plugin-gradle" }
Expand All @@ -126,16 +102,13 @@ kotlin-kapt = { id = "org.jetbrains.kotlin.kapt", version.ref = "kotlin" }
kotlin-serialization = { id = "org.jetbrains.kotlin.plugin.serialization", version.ref = "kotlin" }
ksp = { id = "com.google.devtools.ksp", version.ref = "ksp" }
hilt = { id = "com.google.dagger.hilt.android", version.ref = "hilt" }
androidx-navigation-safeargs = { id = "androidx.navigation.safeargs", version.ref = "androidx-navigation" }
sentry = { id = "io.sentry.android.gradle", version.ref = "plugin-sentry" }

[bundles]
kotlin = ["kotlin", "kotlinx-coroutines-android", "kotlinx-coroutines-core", "kotlinx-datetime"]
androidx-data = ["androidx-room-runtime", "androidx-room-coroutine", "androidx-paging-runtime"]
androidx-presentation = ["androidx-core", "androidx-appcompat", "androidx-constraintlayout", "androidx-fragment",
"androidx-viewmodel", "androidx-livedata", "androidx-navigation-fragment", "androidx-navigation-ui",
"compose-ui-ui", "compose-ui-preview", "compose-material", "compose-viewmodel",
"compose-hiltnavi", "compose-navi", "compose-lifecycle"]
androidx-presentation = ["androidx-core", "androidx-appcompat", "androidx-compose-material", "androidx-compose-ui",
"androidx-compose-ui-preview", "androidx-compose-navigation", "androidx-compose-lifecycle"]
network = ["ktor-core", "ktor-okhttp", "ktor-resources", "ktor-content-negotiation", "ktor-kotlinx-serialization",
"ktor-auth", "kotlinx-serialization"]
logging = ["timber", "sentry"]
24 changes: 7 additions & 17 deletions presentation/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ plugins {
kotlin("plugin.parcelize")
kotlin("android")
kotlin("kapt")
id("androidx.navigation.safeargs.kotlin")
}

android {
Expand Down Expand Up @@ -46,7 +45,7 @@ android {
compose = true
}
composeOptions {
kotlinCompilerExtensionVersion = "1.5.6"
kotlinCompilerExtensionVersion = libs.versions.androidx.compose.compiler.get()
}
}

Expand All @@ -57,28 +56,19 @@ dependencies {
implementation(libs.bundles.kotlin)
implementation(libs.hilt.android)
ksp(libs.hilt.android.compiler)
implementation(libs.hilt.compose)

implementation(libs.bundles.androidx.presentation)
implementation(libs.google.material)
implementation(libs.glide)
ksp(libs.glide.ksp)
implementation(libs.lottie)
implementation(libs.shimmer)
implementation(libs.rds)

implementation(libs.coil.compose)
implementation(libs.holix.bottomsheet.compose)
implementation(libs.google.system.contoller)
implementation(libs.ted.permission)

implementation(libs.bundles.logging)

debugImplementation(libs.compose.ui.tooling)
debugImplementation(libs.compose.ui.test)

implementation(libs.compose.bottomsheet)
implementation(libs.compose.coil)
implementation(libs.compose.livedata)

implementation(libs.google.system.contoller)

debugImplementation(libs.androidx.compose.ui.tooling)
debugImplementation(libs.androidx.compose.ui.test.manifest)
}

fun getLocalProperty(propertyKey: String): String {
Expand Down
2 changes: 1 addition & 1 deletion presentation/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android">

<application android:theme="@style/Bookkeeping">
<application>
<activity
android:name=".ui.main.MainActivity"
android:exported="true">
Expand Down

This file was deleted.

This file was deleted.

Loading

0 comments on commit c2efcda

Please sign in to comment.