Skip to content

Commit ad6e09a

Browse files
committed
crashlytics 플러그인 추가 및 테스트
1 parent d973c95 commit ad6e09a

File tree

6 files changed

+25
-61
lines changed

6 files changed

+25
-61
lines changed

app/build.gradle.kts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ plugins {
33
alias(libs.plugins.depromeet.team5.application.compose)
44
alias(libs.plugins.depromeet.team5.hilt)
55
alias(libs.plugins.google.services)
6+
alias(libs.plugins.firebase.crashlytics)
67
}
78

89
android {
@@ -48,12 +49,12 @@ dependencies {
4849
implementation(projects.core.retrofit)
4950
implementation(projects.core.designsystem)
5051
implementation(projects.core.model)
52+
implementation(projects.core.logger)
5153
implementation(projects.features.search)
5254
implementation(projects.features.principle)
5355
implementation(projects.features.retrospect)
5456
implementation(projects.features.home)
5557
implementation(projects.features.feedback)
56-
5758
implementation(projects.features.reasons)
5859

5960
implementation(libs.androidx.core.ktx)

app/src/debug/google-service.json

Lines changed: 0 additions & 29 deletions
This file was deleted.
Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,27 @@
11
package com.depromeet.team5
22

33
import android.app.Application
4+
import com.depromeet.team5.core.logger.Logger
5+
import com.depromeet.team5.core.logger.annotation.BuildVariant
6+
import com.depromeet.team5.core.retrofit.BuildConfig
47
import dagger.hilt.android.HiltAndroidApp
8+
import javax.inject.Inject
9+
510

611
@HiltAndroidApp
712
class DepromeetApplication : Application() {
813

9-
}
14+
@Inject
15+
lateinit var logger: Logger
16+
17+
18+
override fun onCreate() {
19+
super.onCreate()
20+
21+
if (BuildConfig.DEBUG) {
22+
logger.plant(BuildVariant.DEBUG)
23+
} else {
24+
logger.plant(BuildVariant.RELEASE)
25+
}
26+
}
27+
}

app/src/release/google-service.json

Lines changed: 0 additions & 29 deletions
This file was deleted.

build.gradle.kts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,5 @@ plugins {
99
alias(libs.plugins.android.library) apply false
1010
alias(libs.plugins.kotlinx.serialization) apply false
1111
alias(libs.plugins.google.services) apply false
12+
alias(libs.plugins.firebase.crashlytics) apply false
1213
}

gradle/libs.versions.toml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,8 @@ hiltNavigationCompose = "1.2.0"
2727
runtimeAnnotation = "1.9.0"
2828
timber = "5.0.1"
2929
firebaseCrashlytics = "20.0.2"
30-
googleService = "4.4.3"
30+
firebaseCrashlyticsPlugins = "3.0.6"
31+
googleService = "4.4.1"
3132

3233

3334
[libraries]
@@ -128,6 +129,7 @@ hilt = { id = "com.google.dagger.hilt.android", version.ref = "hilt" }
128129
ksp = { id = "com.google.devtools.ksp", version.ref = "ksp" }
129130
kotlinx-serialization = { id = "org.jetbrains.kotlin.plugin.serialization", version.ref = "kotlinxSerialization" }
130131
google-services = { id = "com.google.gms.google-services", version.ref = "googleService" }
132+
firebase-crashlytics = { id = "com.google.firebase.crashlytics", version.ref = "firebaseCrashlyticsPlugins" }
131133

132134
# Custom Plugins
133135
depromeet-team5-application = { id = "com.depromeet.team5.application", version = "unspecified" }

0 commit comments

Comments
 (0)