@@ -28,6 +28,8 @@ import com.fox2code.foxcompat.app.internal.FoxProcessExt
2828import com.fox2code.foxcompat.view.FoxThemeWrapper
2929import com.fox2code.mmm.installer.InstallerInitializer
3030import com.fox2code.mmm.installer.InstallerInitializer.Companion.peekMagiskVersion
31+ import com.fox2code.mmm.manager.LocalModuleInfo
32+ import com.fox2code.mmm.repo.RepoModule
3133import com.fox2code.mmm.utils.TimberUtils.configTimber
3234import com.fox2code.mmm.utils.io.FileUtils
3335import com.fox2code.mmm.utils.io.GMSProviderInstaller.Companion.installIfNeeded
@@ -79,6 +81,9 @@ class MainApplication : FoxApplication(), Configuration.Provider {
7981 private var makingNewKey = false
8082 private var isCrashHandler = false
8183
84+ var localModules: HashMap <String , LocalModuleInfo > = HashMap ()
85+ var repoModules: HashMap <String , RepoModule > = HashMap ()
86+
8287 init {
8388 check(! (INSTANCE != null && INSTANCE != = this )) { " Duplicate application instance!" }
8489 INSTANCE = this
@@ -620,25 +625,25 @@ class MainApplication : FoxApplication(), Configuration.Provider {
620625 get() = getSharedPreferences(" mmm" )!! .getBoolean(" pref_dns_over_https" , true )
621626 val isMonetEnabled: Boolean
622627 get() = Build .VERSION .SDK_INT >= Build .VERSION_CODES .S && getSharedPreferences(" mmm" )!! .getBoolean(
623- " pref_enable_monet" ,
624- true
625- )
628+ " pref_enable_monet" ,
629+ true
630+ )
626631 val isBlurEnabled: Boolean
627632 get() = getSharedPreferences(" mmm" )!! .getBoolean(" pref_enable_blur" , false )
628633
629634 @JvmStatic
630635 val isDeveloper: Boolean
631636 get() {
632637 return if (BuildConfig .DEBUG ) true else getSharedPreferences(" mmm" )!! .getBoolean(
633- " developer" ,
634- false
635- )
638+ " developer" ,
639+ false
640+ )
636641 }
637642 val isDisableLowQualityModuleFilter: Boolean
638643 get() = getSharedPreferences(" mmm" )!! .getBoolean(
639- " pref_disable_low_quality_module_filter" ,
640- false
641- ) && isDeveloper
644+ " pref_disable_low_quality_module_filter" ,
645+ false
646+ ) && isDeveloper
642647 val isUsingMagiskCommand: Boolean
643648 get() = (peekMagiskVersion() >= Constants .MAGISK_VER_CODE_INSTALL_COMMAND ) && getSharedPreferences(
644649 " mmm"
@@ -652,27 +657,27 @@ class MainApplication : FoxApplication(), Configuration.Provider {
652657 }
653658 val wrapped = isWrapped
654659 val updateCheckBgTemp = ! wrapped && getSharedPreferences(" mmm" )!! .getBoolean(
655- " pref_background_update_check" ,
656- true
657- )
660+ " pref_background_update_check" ,
661+ true
662+ )
658663 updateCheckBg = updateCheckBgTemp.toString()
659664 return java.lang.Boolean .parseBoolean(updateCheckBg)
660665 }
661666 val isAndroidacyTestMode: Boolean
662667 get() = isDeveloper && getSharedPreferences(" mmm" )!! .getBoolean(
663- " pref_androidacy_test_mode" ,
664- false
665- )
668+ " pref_androidacy_test_mode" ,
669+ false
670+ )
666671
667672 fun setHasGottenRootAccess (bool : Boolean ) {
668673 getSharedPreferences(" mmm" )!! .edit().putBoolean(" has_root_access" , bool).apply ()
669674 }
670675
671676 val isCrashReportingEnabled: Boolean
672677 get() = SentryMain .IS_SENTRY_INSTALLED && getSharedPreferences(" mmm" )!! .getBoolean(
673- " pref_crash_reporting" ,
674- BuildConfig .DEFAULT_ENABLE_CRASH_REPORTING
675- )
678+ " pref_crash_reporting" ,
679+ BuildConfig .DEFAULT_ENABLE_CRASH_REPORTING
680+ )
676681 val bootSharedPreferences: SharedPreferences ?
677682 get() = getSharedPreferences(" mmm_boot" )
678683
@@ -689,9 +694,9 @@ class MainApplication : FoxApplication(), Configuration.Provider {
689694 @JvmStatic
690695 fun isMatomoAllowed (): Boolean {
691696 return getSharedPreferences(" mmm" )!! .getBoolean(
692- " pref_analytics_enabled" ,
693- BuildConfig .DEFAULT_ENABLE_ANALYTICS
694- )
697+ " pref_analytics_enabled" ,
698+ BuildConfig .DEFAULT_ENABLE_ANALYTICS
699+ )
695700 }
696701 }
697702}
0 commit comments