diff --git a/app/build.gradle.kts b/app/build.gradle.kts index 730ecff..2068e99 100644 --- a/app/build.gradle.kts +++ b/app/build.gradle.kts @@ -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) } \ No newline at end of file diff --git a/app/src/main/java/com/yapp/app/official/YappOfficialApplication.kt b/app/src/main/java/com/yapp/app/official/YappOfficialApplication.kt index 2aa8125..30a786e 100644 --- a/app/src/main/java/com/yapp/app/official/YappOfficialApplication.kt +++ b/app/src/main/java/com/yapp/app/official/YappOfficialApplication.kt @@ -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() \ No newline at end of file +class YappOfficialApplication : Application() { + override fun onCreate() { + super.onCreate() + + if (BuildConfig.DEBUG) { + Timber.plant(Timber.DebugTree()) + } + } +} \ No newline at end of file diff --git a/gradle.properties b/gradle.properties index 20e2a01..d3a4885 100644 --- a/gradle.properties +++ b/gradle.properties @@ -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 \ No newline at end of file +android.nonTransitiveRClass=true +android.defaults.buildfeatures.buildconfig=true