打开 report 开机上报

This commit is contained in:
renhaoting 2025-12-18 11:12:41 +08:00
parent b5fc00b996
commit 867c075794
2 changed files with 7 additions and 6 deletions

View File

@ -61,6 +61,7 @@ protobuf {
dependencies {
implementation project(':base')
testImplementation(libs.junit)
androidTestImplementation(libs.androidx.test.ext.junit)
androidTestImplementation(libs.espresso.core)

View File

@ -7,6 +7,7 @@ import androidx.lifecycle.lifecycleScope
import com.ama.core.architecture.appBase.AppViewsEmptyViewModelActivity
import com.gamedog.vididin.main.interfaces.OnTabStyleListener
import com.gamedog.vididin.router.Router
import com.remax.base.report.DataReportManager
import com.remax.bill.ads.AdResult
import com.remax.bill.ads.PreloadController
import com.remax.bill.ads.bidding.AppOpenBiddingInitializer
@ -18,6 +19,7 @@ import dagger.hilt.android.AndroidEntryPoint
import kotlinx.coroutines.async
import kotlinx.coroutines.delay
import kotlinx.coroutines.launch
import kotlin.math.ceil
import com.vididin.real.money.game.databinding.ActivitySplashBinding as ViewBinding
@ -46,9 +48,7 @@ class SplashActivity : AppViewsEmptyViewModelActivity<ViewBinding>(), OnTabStyle
}
override fun ViewBinding.initListeners() {
startFallbackTimer()
// 初始化广告和应用
startJumpTimer()
initializeApp()
}
@ -60,7 +60,7 @@ class SplashActivity : AppViewsEmptyViewModelActivity<ViewBinding>(), OnTabStyle
//TODO("Not yet implemented")
}
private fun startFallbackTimer() {
private fun startJumpTimer() {
lifecycleScope.launch {
delay(MAX_SPLASH_TIME)
gotoMain()
@ -128,11 +128,11 @@ class SplashActivity : AppViewsEmptyViewModelActivity<ViewBinding>(), OnTabStyle
PreloadController.preload(this)
PreloadController.preloadPangle(this)
PreloadController.preloadTopOn(this)
/*DataReportManager.reportData(
DataReportManager.reportData(
"loading_page_end", mapOf(
"pass_time" to ceil((System.currentTimeMillis() - startTime) / 1000.0).toInt()
)
)*/
)
}) {
is AdResult.Success -> {
delayAndJumpToMain()