Skip to content

Commit

Permalink
feat/#51: Timber 세팅
Browse files Browse the repository at this point in the history
  • Loading branch information
jinukeu committed Jan 29, 2025
1 parent cd391e5 commit daa5639
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 2 deletions.
2 changes: 2 additions & 0 deletions app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@ dependencies {
implementation(project(":feature:signup"))
implementation(project(":feature:login"))
implementation(project(":core:designsystem"))
implementation(project(":core:data")) // For di

implementation(libs.androidx.activity.compose)
implementation(libs.androidx.navigation.runtime.ktx)
implementation(libs.timber)
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,16 @@ package com.yapp.app.official

import android.app.Application
import dagger.hilt.android.HiltAndroidApp
import timber.log.Timber


@HiltAndroidApp
class YappOfficialApplication : Application()
class YappOfficialApplication : Application() {
override fun onCreate() {
super.onCreate()

if (BuildConfig.DEBUG) {
Timber.plant(Timber.DebugTree())
}
}
}
3 changes: 2 additions & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,5 @@ kotlin.code.style=official
# Enables namespacing of each library's R class so that its R class includes only the
# resources declared in the library itself and none from the library's dependencies,
# thereby reducing the size of the R class for that library
android.nonTransitiveRClass=true
android.nonTransitiveRClass=true
android.defaults.buildfeatures.buildconfig=true

0 comments on commit daa5639

Please sign in to comment.