mirror of
https://github.com/binwiederhier/ntfy-android.git
synced 2024-06-03 03:04:34 +12:00
17 lines
617 B
Kotlin
17 lines
617 B
Kotlin
package io.heckel.ntfy.app
|
|
|
|
import android.app.Application
|
|
import android.content.Context
|
|
import com.google.firebase.messaging.FirebaseMessagingService
|
|
import io.heckel.ntfy.data.Database
|
|
import io.heckel.ntfy.data.Repository
|
|
import io.heckel.ntfy.msg.ApiService
|
|
|
|
class Application : Application() {
|
|
private val database by lazy { Database.getInstance(this) }
|
|
val repository by lazy {
|
|
val sharedPrefs = applicationContext.getSharedPreferences(Repository.SHARED_PREFS_ID, Context.MODE_PRIVATE)
|
|
Repository.getInstance(sharedPrefs, database.subscriptionDao(), database.notificationDao())
|
|
}
|
|
}
|