File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed
app/shared/src/main/kotlin/dev/aaa1115910/bv Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -60,7 +60,7 @@ class BVApp : Application() {
6060 androidContext(this @BVApp)
6161 modules(AppModule ().module)
6262 }
63- FirebaseUtil . init (applicationContext )
63+ initFirebase( )
6464 LogCatcherUtil .installLogCatcher()
6565 initRepository()
6666 initProxy()
@@ -70,6 +70,14 @@ class BVApp : Application() {
7070 updateBlacklist()
7171 }
7272
73+ private fun initFirebase () {
74+ FirebaseUtil .init (applicationContext)
75+ when (BuildConfig .BUILD_TYPE ) {
76+ " debug" -> {}
77+ else -> FirebaseUtil .setCrashlyticsCollectionEnabled(Prefs .enableFirebaseCollection)
78+ }
79+ }
80+
7381 fun initRepository () {
7482 val channelRepository by koinApplication.koin.inject<ChannelRepository >()
7583 channelRepository.initDefaultChannel(Prefs .accessToken, Prefs .buvid)
You can’t perform that action at this time.
0 commit comments