Commit b05f97d7 authored by fengruiyu's avatar fengruiyu

友盟初始化的修改

parent b37c82ba
......@@ -28,6 +28,8 @@ class AppApplication : BaseApp() {
override fun onCreate() {
super.onCreate()
mContext = this
// 友盟预初始化
UmengManager.preInit()
if (SPUtils.getInstance().decodeBoolean("IS_NEW_USER",false) == true){
thirdConfig()
......@@ -51,9 +53,7 @@ class AppApplication : BaseApp() {
* 三方配置
*/
fun thirdConfig() {
// 友盟预初始化
UmengManager.preInit()
UmengManager.initUm()
// bugly
CrashReport.initCrashReport(this, "df5783aab4", BuildConfig.DEBUG)
......
......@@ -110,7 +110,7 @@ class HomeFragment() : BaseFragment<FragmentHomeBinding, HomeViewModel>(), Senso
private fun uploadDeviceInfo() {
UmengManager.initUm()
viewModel.comSaveTerminalInfo()
}
......
......@@ -21,9 +21,11 @@ import com.mints.street.common.DeviceInfo
import com.mints.street.databinding.ActivitySplashBinding
import com.mints.street.main.MainActivity
import com.mints.street.main.my.PermissionsActivity
import com.mints.street.manager.UmengManager
import com.mints.street.utils.CommonUtils
import com.mints.street.widget.dialog.PowerDialog
import com.tencent.mmkv.MMKV
import me.goldze.mvvmhabit.utils.SPUtils
/**
* 描述:gromore开屏页
......@@ -51,9 +53,8 @@ class SplashActivity : BaseActivity<ActivitySplashBinding, SplashViewModel>() {
override fun initData() {
super.initData()
if (CommonUtils.getAppMetaData(AppApplication.getContext(), "CHANNEL_NAME")
.equals("vivo")
) {
if (SPUtils.getInstance().decodeBoolean("IS_NEW_USER",false) == true) {
isInterceptAd = true
viewModel.isShowVivo()
handler.postDelayed({
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment