|
|
@@ -4,6 +4,7 @@ import android.os.Bundle
|
|
|
import android.os.SystemClock
|
|
|
import androidx.core.app.NotificationManagerCompat
|
|
|
import androidx.lifecycle.lifecycleScope
|
|
|
+import com.adealink.frame.aab.AAB
|
|
|
import com.adealink.frame.base.fastLazy
|
|
|
import com.adealink.frame.coroutine.dispatcher.Dispatcher
|
|
|
import com.adealink.frame.log.Log
|
|
|
@@ -21,6 +22,7 @@ import com.adealink.weparty.module.account.AccountModule
|
|
|
import com.adealink.weparty.module.anchor.AnchorModule
|
|
|
import com.adealink.weparty.module.anchor.data.FromScene
|
|
|
import com.adealink.weparty.module.attribution.AttributionModule
|
|
|
+import com.adealink.weparty.module.certification.CertificationModule
|
|
|
import com.adealink.weparty.module.couple.CoupleModule
|
|
|
import com.adealink.weparty.module.emotion.EmotionModule
|
|
|
import com.adealink.weparty.module.family.FamilyModule
|
|
|
@@ -103,9 +105,19 @@ class MainStartUpFragment : BaseFragment() {
|
|
|
runIfUiValid { countryViewModel?.getCountryList(true) }
|
|
|
runIfUiValid { walletViewModel?.checkThirdPayOpen() }
|
|
|
runIfUiValid { anchorViewModel?.getAnchorMessages() }
|
|
|
+ installDynamicModule()
|
|
|
Log.d(TAG, "importantLoad-end, cost:${SystemClock.elapsedRealtime() - startTs}ms")
|
|
|
}
|
|
|
|
|
|
+ // 启动后,交给Google Play,延迟安装所有模块(后台自动下载)
|
|
|
+ private fun installDynamicModule() {
|
|
|
+ AAB.deferredInstall(
|
|
|
+ listOf(
|
|
|
+ CertificationModule.featureName
|
|
|
+ )
|
|
|
+ )
|
|
|
+ }
|
|
|
+
|
|
|
private fun checkNoReplyMessageIfNeed() {
|
|
|
if (ProfileModule.getMyUserInfo()?.isFemale() == true) {
|
|
|
lifecycleScope.launch(Dispatcher.WENEXT_THREAD_POOL) {
|