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
4f804758
Commit
4f804758
authored
Sep 01, 2023
by
mengcuiguang2
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
代码优化
parent
7d51ae40
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
22 additions
and
3 deletions
+22
-3
build.gradle
video/app/build.gradle
+3
-3
TrackPresenter.java
.../com/duben/xixiplaylet/mvp/presenters/TrackPresenter.java
+2
-0
CommonUtils.java
...rc/main/java/com/duben/xixiplaylet/utils/CommonUtils.java
+2
-0
MateUtils.kt
...pp/src/main/java/com/duben/xixiplaylet/utils/MateUtils.kt
+15
-0
No files found.
video/app/build.gradle
View file @
4f804758
...
...
@@ -12,8 +12,8 @@ android {
applicationId
"com.duben.xixiplaylet"
minSdkVersion
rootProject
.
ext
.
androidMinSdkVersion
targetSdkVersion
rootProject
.
ext
.
androidTargetSdkVersion
versionCode
18
versionName
"
1.1.7
"
versionCode
20
versionName
"
2.0.0
"
flavorDimensions
"default"
// dex突破65535的限制
...
...
@@ -120,7 +120,7 @@ android {
huawei
{}
xiaomi
{}
store360
{}
nuohe
{}
facai_ks_qh_xixi_01
{}
}
productFlavors
.
all
{
...
...
video/app/src/main/java/com/duben/xixiplaylet/mvp/presenters/TrackPresenter.java
View file @
4f804758
...
...
@@ -5,6 +5,7 @@ import android.os.Handler;
import
android.os.Looper
;
import
android.util.Log
;
import
com.duben.xixiplaylet.utils.MateUtils
;
import
com.google.gson.JsonObject
;
import
com.duben.xixiplaylet.common.Constant
;
import
com.duben.xixiplaylet.manager.LocalVedioManager
;
...
...
@@ -95,6 +96,7 @@ public class TrackPresenter extends BaseTrackPresenter {
vo
.
put
(
"appversion"
,
deviceInfo
.
getVersionName
());
vo
.
put
(
"oaid"
,
MintsApplication
.
OAID
);
vo
.
put
(
"imei"
,
deviceInfo
.
getIMEI
());
vo
.
put
(
"isInstallAlipay"
,
MateUtils
.
INSTANCE
.
isAliPayInstalled
());
AppHttpManager
.
getInstance
(
loanApplication
)
.
call
(
loanService
.
saveTerminalInfo
(
vo
),
new
BaseSubscriber
<
BaseResponse
<
Object
>>()
{
...
...
video/app/src/main/java/com/duben/xixiplaylet/utils/CommonUtils.java
View file @
4f804758
...
...
@@ -382,4 +382,6 @@ public class CommonUtils {
}
return
subList
;
}
}
video/app/src/main/java/com/duben/xixiplaylet/utils/MateUtils.kt
View file @
4f804758
package
com.duben.xixiplaylet.utils
import
android.content.Context
import
android.content.Intent
import
android.content.pm.PackageManager
import
android.net.Uri
import
android.text.TextUtils
import
com.duben.xixiplaylet.MintsApplication
object
MateUtils
{
/**
...
...
@@ -31,4 +34,16 @@ object MateUtils {
}
return
resultData
}
fun
isAliPayInstalled
():
Boolean
{
try
{
val
uri
:
Uri
=
Uri
.
parse
(
"alipays://platformapi/startApp"
)
val
intent
=
Intent
(
Intent
.
ACTION_VIEW
,
uri
)
val
componentName
=
intent
.
resolveActivity
(
MintsApplication
.
getContext
().
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