Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
android_vedio
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_vedio
Commits
3fd6535b
Commit
3fd6535b
authored
Aug 18, 2023
by
mengcuiguang2
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
第一次上传设备信息添加是否有支付宝应用字段
parent
25e51219
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
31 additions
and
8 deletions
+31
-8
MintsApplication.java
...src/main/java/com/duben/xixiplaylet/MintsApplication.java
+5
-4
TalkingDataManager.kt
.../java/com/duben/xixiplaylet/manager/TalkingDataManager.kt
+2
-2
UmengManager.kt
...c/main/java/com/duben/xixiplaylet/manager/UmengManager.kt
+2
-2
TrackPresenter.java
.../com/duben/xixiplaylet/mvp/presenters/TrackPresenter.java
+3
-0
CommonUtils.kt
...in/java/com/duben/xixiplaylet/utils/rxutil/CommonUtils.kt
+19
-0
No files found.
video/app/src/main/java/com/duben/xixiplaylet/MintsApplication.java
View file @
3fd6535b
...
...
@@ -59,8 +59,7 @@ public class MintsApplication extends MultiDexApplication {
// UmengManager.INSTANCE.preInit(this,
// MateUtils.INSTANCE.getAppMetaData(this, "CHANNEL_NAME"));
// 判断应用是否在前台
ForegroundOrBackground
.
init
(
this
);
// 三方配置
thirdConfig
();
...
...
@@ -80,6 +79,8 @@ public class MintsApplication extends MultiDexApplication {
if
(
AppPreferencesManager
.
INSTANCE
.
get
()
.
getBoolean
(
Constant
.
LOAN_PERMISSION_FLAG
,
true
))
return
;
// 判断应用是否在前台
ForegroundOrBackground
.
init
(
this
);
initMiitHelper
();
...
...
@@ -95,8 +96,8 @@ public class MintsApplication extends MultiDexApplication {
//logger
BindLogger
();
UmengManager
.
INSTANCE
.
initUm
(
this
,
MateUtils
.
INSTANCE
.
getAppMetaData
(
this
,
"CHANNEL_NAME"
));
//
UmengManager.INSTANCE.initUm(this,
//
MateUtils.INSTANCE.getAppMetaData(this, "CHANNEL_NAME"));
// bugly
CrashReport
.
initCrashReport
(
this
,
"d035276c5b"
,
BuildConfig
.
DEBUG
);
...
...
video/app/src/main/java/com/duben/xixiplaylet/manager/TalkingDataManager.kt
View file @
3fd6535b
...
...
@@ -34,10 +34,10 @@ object TalkingDataManager {
}
fun
onResume
(
cxt
:
Context
,
name
:
String
){
TCAgent
.
onPageStart
(
cxt
,
name
)
//
TCAgent.onPageStart(cxt, name)
}
fun
onPause
(
cxt
:
Context
,
name
:
String
){
TCAgent
.
onPageEnd
(
cxt
,
name
)
//
TCAgent.onPageEnd(cxt, name)
}
}
\ No newline at end of file
video/app/src/main/java/com/duben/xixiplaylet/manager/UmengManager.kt
View file @
3fd6535b
...
...
@@ -42,11 +42,11 @@ object UmengManager {
}
fun
onResume
(
context
:
Context
)
{
MobclickAgent
.
onResume
(
context
)
//
MobclickAgent.onResume(context)
}
fun
onPause
(
context
:
Context
)
{
MobclickAgent
.
onPause
(
context
)
//
MobclickAgent.onPause(context)
}
}
\ No newline at end of file
video/app/src/main/java/com/duben/xixiplaylet/mvp/presenters/TrackPresenter.java
View file @
3fd6535b
...
...
@@ -5,6 +5,7 @@ import android.os.Handler;
import
android.os.Looper
;
import
android.util.Log
;
import
com.duben.xixiplaylet.utils.rxutil.CommonUtils
;
import
com.google.gson.JsonObject
;
import
com.duben.xixiplaylet.common.Constant
;
import
com.duben.xixiplaylet.manager.LocalVedioManager
;
...
...
@@ -95,6 +96,8 @@ public class TrackPresenter extends BaseTrackPresenter {
vo
.
put
(
"appversion"
,
deviceInfo
.
getVersionName
());
vo
.
put
(
"oaid"
,
MintsApplication
.
OAID
);
vo
.
put
(
"imei"
,
deviceInfo
.
getIMEI
());
vo
.
put
(
"isInstallAlipay"
,
CommonUtils
.
INSTANCE
.
isAliPayInstalled
());
AppHttpManager
.
getInstance
(
loanApplication
)
.
call
(
loanService
.
saveTerminalInfo
(
vo
),
new
BaseSubscriber
<
BaseResponse
<
Object
>>()
{
...
...
video/app/src/main/java/com/duben/xixiplaylet/utils/rxutil/CommonUtils.kt
View file @
3fd6535b
...
...
@@ -12,6 +12,7 @@ import android.graphics.Bitmap
import
android.graphics.Canvas
import
android.graphics.Rect
import
android.graphics.drawable.Drawable
import
android.net.Uri
import
android.os.Build
import
android.os.Looper
import
android.util.DisplayMetrics
...
...
@@ -405,4 +406,22 @@ object CommonUtils {
val
rand
=
random
.
nextInt
(
101
)
return
rand
in
1
until
readInt
}
/**
* 检测是否安装支付宝
*
* true-安装支付宝
*/
fun
isAliPayInstalled
():
Boolean
{
val
context
=
MintsApplication
.
getContext
()
try
{
val
uri
:
Uri
=
Uri
.
parse
(
"alipays://platformapi/startApp"
)
val
intent
=
Intent
(
Intent
.
ACTION_VIEW
,
uri
)
val
componentName
=
intent
.
resolveActivity
(
context
.
getPackageManager
())
return
componentName
!=
null
}
catch
(
e
:
Exception
)
{
e
.
printStackTrace
()
return
false
}
}
}
\ No newline at end of file
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