Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FEAT] Firebase Crashlytics를 AndroidX Startup 라이브러리를 활용하여 초기화하는 Initializer 클래스 추가 #114

Merged
merged 3 commits into from
Mar 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/android.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ jobs:
run: ./gradlew ktlintCheck

- name: Build with Gradle
run: ./gradlew build
run: ./gradlew buildDebug --stacktrace

- name: send to Slack
uses: 8398a7/action-slack@v3
Expand Down
4 changes: 4 additions & 0 deletions app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,10 @@
android:name="com.nexters.ilab.android.initializer.KakaoSDKInitializer"
android:value="androidx.startup" />

<meta-data
android:name="com.nexters.ilab.android.initializer.FirebaseCrashlyticsInitializer"
android:value="androidx.startup" />

</provider>

<provider
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
package com.nexters.ilab.android.initializer

import android.content.Context
import androidx.startup.Initializer
import com.google.firebase.crashlytics.FirebaseCrashlytics
import com.nexters.ilab.android.BuildConfig

class FirebaseCrashlyticsInitializer : Initializer<Unit> {
override fun create(context: Context) {
FirebaseCrashlytics.getInstance().setCrashlyticsCollectionEnabled(!BuildConfig.DEBUG)
}

override fun dependencies(): List<Class<out Initializer<*>>> {
return emptyList()
}
}
Loading