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
6754791a
Commit
6754791a
authored
Jan 31, 2024
by
mengcuiguang2
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
代码优化
parent
81a05d9b
Changes
7
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
9 additions
and
5 deletions
+9
-5
build.gradle
video/app/build.gradle
+2
-2
DeviceInfo.kt
...pp/src/main/java/com/duben/shortplay/common/DeviceInfo.kt
+2
-2
HomePresenter.kt
.../java/com/duben/shortplay/mvp/presenters/HomePresenter.kt
+1
-0
LoginPresenter.kt
...java/com/duben/shortplay/mvp/presenters/LoginPresenter.kt
+1
-1
MyPresenter.kt
...in/java/com/duben/shortplay/mvp/presenters/MyPresenter.kt
+1
-0
TrackPresenter.java
...va/com/duben/shortplay/mvp/presenters/TrackPresenter.java
+1
-0
VipPresenter.kt
...n/java/com/duben/shortplay/mvp/presenters/VipPresenter.kt
+1
-0
No files found.
video/app/build.gradle
View file @
6754791a
...
...
@@ -10,8 +10,8 @@ android {
applicationId
"com.duben.shortplay"
minSdkVersion
rootProject
.
ext
.
androidMinSdkVersion
targetSdkVersion
rootProject
.
ext
.
androidTargetSdkVersion
versionCode
4
versionName
"1.0.
3
"
versionCode
5
versionName
"1.0.
4
"
flavorDimensions
"default"
// dex突破65535的限制
...
...
video/app/src/main/java/com/duben/shortplay/common/DeviceInfo.kt
View file @
6754791a
...
...
@@ -216,9 +216,9 @@ class DeviceInfo private constructor() {
return
imei
}
val
userAgent
:
String
?
val
userAgent
:
String
get
()
{
var
userAgent
:
String
?
=
""
var
userAgent
:
String
=
""
try
{
userAgent
=
System
.
getProperty
(
"http.agent"
)
}
catch
(
e
:
Exception
)
{
...
...
video/app/src/main/java/com/duben/shortplay/mvp/presenters/HomePresenter.kt
View file @
6754791a
...
...
@@ -199,6 +199,7 @@ class HomePresenter : BasePresenter<HomeView>() {
vo
[
"model"
]
=
deviceInfo
.
newModel
vo
[
"uuid"
]
=
DeviceUuidFactory
().
deviceUuid
vo
[
"osversion"
]
=
deviceInfo
.
oSVersion
vo
[
"userAgent"
]
=
deviceInfo
.
userAgent
vo
[
"appversion"
]
=
deviceInfo
.
versionName
AppHttpManager
.
getInstance
(
loanApplication
)
.
call
(
loanService
.
saveTerminalInfo
(
vo
),
...
...
video/app/src/main/java/com/duben/shortplay/mvp/presenters/LoginPresenter.kt
View file @
6754791a
...
...
@@ -162,7 +162,7 @@ class LoginPresenter : BasePresenter<LoginView>() {
vo
[
"uuid"
]
=
DeviceUuidFactory
().
deviceUuid
vo
[
"osversion"
]
=
deviceInfo
.
oSVersion
vo
[
"appversion"
]
=
deviceInfo
.
versionName
vo
[
"userAgent"
]
=
deviceInfo
.
userAgent
AppHttpManager
.
getInstance
(
loanApplication
)
.
call
(
loanService
.
saveTerminalInfo
(
vo
),
object
:
BaseSubscriber
<
BaseResponse
<
Any
>>()
{
...
...
video/app/src/main/java/com/duben/shortplay/mvp/presenters/MyPresenter.kt
View file @
6754791a
...
...
@@ -66,6 +66,7 @@ class MyPresenter : BasePresenter<MyView>() {
vo
[
"uuid"
]
=
DeviceUuidFactory
().
deviceUuid
vo
[
"osversion"
]
=
deviceInfo
.
oSVersion
vo
[
"appversion"
]
=
deviceInfo
.
versionName
vo
[
"userAgent"
]
=
deviceInfo
.
userAgent
AppHttpManager
.
getInstance
(
loanApplication
)
.
call
(
loanService
.
saveTerminalInfo
(
vo
),
object
:
BaseSubscriber
<
BaseResponse
<
Any
>>()
{
...
...
video/app/src/main/java/com/duben/shortplay/mvp/presenters/TrackPresenter.java
View file @
6754791a
...
...
@@ -91,6 +91,7 @@ public class TrackPresenter extends BaseTrackPresenter {
vo
.
put
(
"appversion"
,
deviceInfo
.
getVersionName
());
vo
.
put
(
"oaid"
,
MintsApplication
.
OAID
);
vo
.
put
(
"imei"
,
deviceInfo
.
getIMEI
());
vo
.
put
(
"userAgent"
,
deviceInfo
.
getUserAgent
());
AppHttpManager
.
getInstance
(
loanApplication
)
.
call
(
loanService
.
saveTerminalInfo
(
vo
),
new
BaseSubscriber
<
BaseResponse
<
Object
>>()
{
...
...
video/app/src/main/java/com/duben/shortplay/mvp/presenters/VipPresenter.kt
View file @
6754791a
...
...
@@ -104,6 +104,7 @@ class VipPresenter : BasePresenter<VipView>() {
vo
[
"uuid"
]
=
DeviceUuidFactory
().
deviceUuid
vo
[
"osversion"
]
=
deviceInfo
.
oSVersion
vo
[
"appversion"
]
=
deviceInfo
.
versionName
vo
[
"userAgent"
]
=
deviceInfo
.
userAgent
AppHttpManager
.
getInstance
(
loanApplication
)
.
call
(
loanService
.
saveTerminalInfo
(
vo
),
object
:
BaseSubscriber
<
BaseResponse
<
Any
>>()
{
...
...
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