package com.soteloje.mindkeep
import android.app.Application
import android.app.NotificationChannel
import android.app.NotificationManager
import com.google.firebase.FirebaseApp
import com.google.firebase.analytics.FirebaseAnalytics
import com.soteloje.mindkeep.core.utils.AppConstants.NotificationKeys.NOTIFICATION_CHANNEL_ID
import com.soteloje.mindkeep.core.utils.AppConstants.NotificationKeys.NOTIFICATION_NAME
import dagger.hilt.android.HiltAndroidApp
//hilt
@HiltAndroidApp
class MindKeepApplication: Application() {
override fun onCreate() {
super.onCreate()
FirebaseApp.initializeApp(this)
FirebaseAnalytics.getInstance(this)
val notificationChannel = NotificationChannel(
NOTIFICATION_CHANNEL_ID,
NOTIFICATION_NAME,
NotificationManager.IMPORTANCE_HIGH
)
val notificationManager = getSystemService(NOTIFICATION_SERVICE) as NotificationManager
// Setting up the channel
notificationManager.createNotificationChannel(notificationChannel)
}
}