Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
android_street
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
android
android_street
Commits
b05f97d7
Commit
b05f97d7
authored
Sep 26, 2021
by
fengruiyu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
友盟初始化的修改
parent
b37c82ba
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
7 deletions
+8
-7
AppApplication.kt
app/src/main/java/com/mints/street/AppApplication.kt
+3
-3
HomeFragment.kt
app/src/main/java/com/mints/street/main/home/HomeFragment.kt
+1
-1
SplashActivity.kt
app/src/main/java/com/mints/street/splash/SplashActivity.kt
+4
-3
No files found.
app/src/main/java/com/mints/street/AppApplication.kt
View file @
b05f97d7
...
...
@@ -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
)
...
...
app/src/main/java/com/mints/street/main/home/HomeFragment.kt
View file @
b05f97d7
...
...
@@ -110,7 +110,7 @@ class HomeFragment() : BaseFragment<FragmentHomeBinding, HomeViewModel>(), Senso
private
fun
uploadDeviceInfo
()
{
UmengManager
.
initUm
()
viewModel
.
comSaveTerminalInfo
()
}
...
...
app/src/main/java/com/mints/street/splash/SplashActivity.kt
View file @
b05f97d7
...
...
@@ -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
({
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment