Added Dagger
This commit is contained in:
parent
074298dcb0
commit
6cdea14316
47 changed files with 1130 additions and 826 deletions
|
@ -20,6 +20,9 @@ import androidx.multidex.MultiDexApplication
|
|||
import code.name.monkey.appthemehelper.ThemeStore
|
||||
import code.name.monkey.appthemehelper.util.VersionUtils
|
||||
import code.name.monkey.retromusic.appshortcuts.DynamicShortcutManager
|
||||
import code.name.monkey.retromusic.dagger.DaggerMusicComponent
|
||||
import code.name.monkey.retromusic.dagger.MusicComponent
|
||||
import code.name.monkey.retromusic.dagger.module.AppModule
|
||||
import com.anjlab.android.iab.v3.BillingProcessor
|
||||
import com.anjlab.android.iab.v3.TransactionDetails
|
||||
|
||||
|
@ -32,6 +35,11 @@ class App : MultiDexApplication() {
|
|||
super.onCreate()
|
||||
instance = this
|
||||
|
||||
|
||||
musicComponent = DaggerMusicComponent.builder()
|
||||
.appModule(AppModule(this))
|
||||
.build()
|
||||
|
||||
// default theme
|
||||
if (!ThemeStore.isConfigured(this, 3)) {
|
||||
ThemeStore.editTheme(this)
|
||||
|
@ -65,6 +73,9 @@ class App : MultiDexApplication() {
|
|||
|
||||
companion object {
|
||||
|
||||
|
||||
lateinit var musicComponent: MusicComponent
|
||||
|
||||
const val PRO_VERSION_PRODUCT_ID = "pro_version"
|
||||
|
||||
lateinit var instance: App
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue