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
d5e861ba
Commit
d5e861ba
authored
Nov 13, 2023
by
jyx
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
回滚代码
parent
e2c32a01
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
30 additions
and
11 deletions
+30
-11
build.gradle
video/app/build.gradle
+2
-2
InMoneyVideo.java
...in/java/com/duben/supertheater/ad/video/InMoneyVideo.java
+14
-5
InMoneyVideoNoPre.java
...va/com/duben/supertheater/ad/video/InMoneyVideoNoPre.java
+14
-4
No files found.
video/app/build.gradle
View file @
d5e861ba
...
@@ -12,8 +12,8 @@ android {
...
@@ -12,8 +12,8 @@ android {
applicationId
"com.duben.supertheater"
applicationId
"com.duben.supertheater"
minSdkVersion
rootProject
.
ext
.
androidMinSdkVersion
minSdkVersion
rootProject
.
ext
.
androidMinSdkVersion
targetSdkVersion
rootProject
.
ext
.
androidTargetSdkVersion
targetSdkVersion
rootProject
.
ext
.
androidTargetSdkVersion
versionCode
1
0
versionCode
1
1
versionName
"2.0.
0
"
versionName
"2.0.
1
"
flavorDimensions
"default"
flavorDimensions
"default"
// dex突破65535的限制
// dex突破65535的限制
...
...
video/app/src/main/java/com/duben/supertheater/ad/video/InMoneyVideo.java
View file @
d5e861ba
...
@@ -4,6 +4,7 @@ import android.app.Activity;
...
@@ -4,6 +4,7 @@ import android.app.Activity;
import
android.os.Bundle
;
import
android.os.Bundle
;
import
android.os.Handler
;
import
android.os.Handler
;
import
android.os.Looper
;
import
android.os.Looper
;
import
android.text.TextUtils
;
import
com.bytedance.sdk.openadsdk.AdSlot
;
import
com.bytedance.sdk.openadsdk.AdSlot
;
import
com.bytedance.sdk.openadsdk.TTAdConstant
;
import
com.bytedance.sdk.openadsdk.TTAdConstant
;
...
@@ -240,8 +241,7 @@ public class InMoneyVideo {
...
@@ -240,8 +241,7 @@ public class InMoneyVideo {
vo
.
put
(
"list_id"
,
AppConfig
.
taskListId
);
vo
.
put
(
"list_id"
,
AppConfig
.
taskListId
);
}
}
// if (!isNoReportCarrier(carrierType) && isRewardValidForCarrier(carrierType)) {
if
(!
isNoReportCarrier
(
carrierType
)
&&
isRewardValidForCarrier
(
carrierType
))
{
if
(!
isNoReportCarrier
(
carrierType
))
{
TrackManager
.
getInstance
().
reportAddCoinMsg
(
vo
);
TrackManager
.
getInstance
().
reportAddCoinMsg
(
vo
);
}
}
...
@@ -293,11 +293,20 @@ public class InMoneyVideo {
...
@@ -293,11 +293,20 @@ public class InMoneyVideo {
strings
.
add
(
Constant
.
CARRIERTYPE_SONG_ALL
);
strings
.
add
(
Constant
.
CARRIERTYPE_SONG_ALL
);
strings
.
add
(
Constant
.
CARRIERTYPE_REWARD_HONGBAO
);
strings
.
add
(
Constant
.
CARRIERTYPE_REWARD_HONGBAO
);
strings
.
add
(
Constant
.
CARRIERTYPE_REWARD_HONGBAO_MORE
);
strings
.
add
(
Constant
.
CARRIERTYPE_REWARD_HONGBAO_MORE
);
strings
.
add
(
Constant
.
CARRIERTYPE_TASK_YUANBAO
);
strings
.
add
(
Constant
.
CARRIERTYPE_REWARD_COIN
);
strings
.
add
(
Constant
.
CARRIERTYPE_REWARD_DI
);
strings
.
add
(
Constant
.
CARRIERTYPE_VEDIO_UNLOCK
);
strings
.
add
(
Constant
.
CARRIERTYPE_VEDIO_UNLOCK
);
strings
.
add
(
Constant
.
CARRIERTYPE_REWARD_MINIVEDIO_VEDIO
);
strings
.
add
(
Constant
.
CARRIERTYPE_REWARD_MINIVEDIO_VEDIO
);
return
strings
.
contains
(
carrierType
);
return
strings
.
contains
(
carrierType
);
}
}
private
boolean
isRewardValidForCarrier
(
String
carrierType
)
{
if
(!
isRewardValid
)
{
if
(
TextUtils
.
equals
(
carrierType
,
Constant
.
CARRIERTYPE_TASK_YUANBAO
)
||
TextUtils
.
equals
(
carrierType
,
Constant
.
CARRIERTYPE_REWARD_COIN
)
||
TextUtils
.
equals
(
carrierType
,
Constant
.
CARRIERTYPE_REWARD_DI
)
)
{
return
false
;
}
}
return
true
;
}
}
}
video/app/src/main/java/com/duben/supertheater/ad/video/InMoneyVideoNoPre.java
View file @
d5e861ba
...
@@ -4,6 +4,7 @@ import android.app.Activity;
...
@@ -4,6 +4,7 @@ import android.app.Activity;
import
android.os.Bundle
;
import
android.os.Bundle
;
import
android.os.Handler
;
import
android.os.Handler
;
import
android.os.Looper
;
import
android.os.Looper
;
import
android.text.TextUtils
;
import
com.bytedance.sdk.openadsdk.AdSlot
;
import
com.bytedance.sdk.openadsdk.AdSlot
;
import
com.bytedance.sdk.openadsdk.TTAdConstant
;
import
com.bytedance.sdk.openadsdk.TTAdConstant
;
...
@@ -181,7 +182,7 @@ public class InMoneyVideoNoPre {
...
@@ -181,7 +182,7 @@ public class InMoneyVideoNoPre {
}
}
if
(!
isNoReportCarrier
(
carrierType
))
{
if
(!
isNoReportCarrier
(
carrierType
)
&&
isRewardValidForCarrier
(
carrierType
)
)
{
TrackManager
.
getInstance
().
reportAddCoinMsg
(
vo
);
TrackManager
.
getInstance
().
reportAddCoinMsg
(
vo
);
}
}
...
@@ -232,10 +233,19 @@ public class InMoneyVideoNoPre {
...
@@ -232,10 +233,19 @@ public class InMoneyVideoNoPre {
strings
.
add
(
Constant
.
CARRIERTYPE_SONG_ALL
);
strings
.
add
(
Constant
.
CARRIERTYPE_SONG_ALL
);
strings
.
add
(
Constant
.
CARRIERTYPE_REWARD_HONGBAO
);
strings
.
add
(
Constant
.
CARRIERTYPE_REWARD_HONGBAO
);
strings
.
add
(
Constant
.
CARRIERTYPE_REWARD_HONGBAO_MORE
);
strings
.
add
(
Constant
.
CARRIERTYPE_REWARD_HONGBAO_MORE
);
strings
.
add
(
Constant
.
CARRIERTYPE_TASK_YUANBAO
);
strings
.
add
(
Constant
.
CARRIERTYPE_REWARD_COIN
);
strings
.
add
(
Constant
.
CARRIERTYPE_VEDIO_UNLOCK
);
strings
.
add
(
Constant
.
CARRIERTYPE_VEDIO_UNLOCK
);
strings
.
add
(
Constant
.
CARRIERTYPE_REWARD_DI
);
return
strings
.
contains
(
carrierType
);
return
strings
.
contains
(
carrierType
);
}
}
private
boolean
isRewardValidForCarrier
(
String
carrierType
)
{
if
(!
isRewardValid
)
{
if
(
TextUtils
.
equals
(
carrierType
,
Constant
.
CARRIERTYPE_TASK_YUANBAO
)
||
TextUtils
.
equals
(
carrierType
,
Constant
.
CARRIERTYPE_REWARD_COIN
)
||
TextUtils
.
equals
(
carrierType
,
Constant
.
CARRIERTYPE_REWARD_DI
)
)
{
return
false
;
}
}
return
true
;
}
}
}
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