Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
android_flowbox
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_flowbox
Commits
b612bad2
Commit
b612bad2
authored
Jul 23, 2021
by
jyx
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
新人红包排名观看激励视频逻辑
parent
97978a6e
Changes
12
Show whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
59 additions
and
41 deletions
+59
-41
ExpressManager.kt
.../main/java/com/mints/flowbox/ad/express/ExpressManager.kt
+4
-9
GroMoreCarrierExpressManager.kt
.../mints/flowbox/ad/express/GroMoreCarrierExpressManager.kt
+5
-1
Constant.kt
app/src/main/java/com/mints/flowbox/common/Constant.kt
+1
-0
AwardActivity.kt
...main/java/com/mints/flowbox/ui/activitys/AwardActivity.kt
+21
-14
MainActivity.kt
.../main/java/com/mints/flowbox/ui/activitys/MainActivity.kt
+0
-3
SpeedTestActivity.kt
.../java/com/mints/flowbox/ui/activitys/SpeedTestActivity.kt
+3
-1
WxLoginActivity.kt
...in/java/com/mints/flowbox/ui/activitys/WxLoginActivity.kt
+2
-2
TriggerActivity.kt
...m/mints/flowbox/ui/activitys/keepalive/TriggerActivity.kt
+1
-0
GetPacketFragment.kt
...n/java/com/mints/flowbox/ui/fragment/GetPacketFragment.kt
+18
-7
activity_bind_mobile.xml
app/src/main/res/layout/activity_bind_mobile.xml
+2
-2
dialog_friends.xml
app/src/main/res/layout/dialog_friends.xml
+1
-1
LoginApi.java
...dkLib/src/main/java/com/mints/flowbox/login/LoginApi.java
+1
-1
No files found.
app/src/main/java/com/mints/flowbox/ad/express/ExpressManager.kt
View file @
b612bad2
...
...
@@ -27,7 +27,6 @@ object ExpressManager {
}
}
/** 加载应用外信息流 */
fun
loadNoAppOutExpress
(
framelayout
:
FrameLayout
,
isScreen
:
Boolean
=
false
)
{
if
(
AppConfig
.
groMoreVideoAdCount
>
0
)
{
...
...
@@ -37,11 +36,10 @@ object ExpressManager {
/** 获取应用内信息流 */
fun
getExpressFrameLayout
():
FrameLayout
?
{
if
(
AppConfig
.
groMoreVideoAdCount
>
0
)
{
return
GroMoreCarrierExpressManager
.
instance
.
getADFrameLayout
()
return
if
(
AppConfig
.
groMoreVideoAdCount
>
0
)
{
GroMoreCarrierExpressManager
.
instance
.
getADFrameLayout
()
}
else
{
return
PreLoadExpressManager
.
getADFrameLayout
()
// return TTPreLoadCarrierExpressManager.getInstance().ttFrameLayout
PreLoadExpressManager
.
getADFrameLayout
()
}
}
...
...
@@ -50,13 +48,10 @@ object ExpressManager {
if
(
AppConfig
.
groMoreVideoAdCount
>
0
)
{
return
AppOutGroMoreCarrierExpressManager
.
instance
.
getADFrameLayout
()
}
// else {
// return TTPreLoadCarrierExpressManager.getInstance().ttFrameLayout
// }
return
null
}
fun
destroy
(){
fun
destroy
()
{
AppOutGroMoreCarrierExpressManager
.
instance
.
destroy
()
}
}
\ No newline at end of file
app/src/main/java/com/mints/flowbox/ad/express/GroMoreCarrierExpressManager.kt
View file @
b612bad2
...
...
@@ -166,7 +166,11 @@ class GroMoreCarrierExpressManager : TTSettingConfigCallback {
vo
[
"ecpm"
]
=
ttNativeAd
.
preEcpm
vo
[
"adSource"
]
=
ttNativeAd
.
adNetworkPlatformId
vo
[
"adType"
]
=
Constant
.
GRO_MORE_ADTYPE1
if
(
isFromMain
)
{
vo
[
"adid"
]
=
CsjGroMoreManager
.
APP_IN_MAIN_AD_UNIT_EXPRESS_ID
}
else
{
vo
[
"adid"
]
=
CsjGroMoreManager
.
APP_IN_COMMON_AD_UNIT_EXPRESS_ID
}
TrackManager
.
getInstance
().
cmtGroMoreInfo
(
vo
)
}
}
...
...
app/src/main/java/com/mints/flowbox/common/Constant.kt
View file @
b612bad2
...
...
@@ -138,6 +138,7 @@ object Constant {
const
val
CARRIER_MC_FIRSTDOWNLOAD
=
"MC_FIRSTDOWNLOAD"
// 牧场人生下载奖励
const
val
CARRIER_FIRSTDOWNLOADS
=
"FIRSTDOWNLOADS"
// 其他下载奖励
const
val
CARRIER_FLOW_BUBBLE
=
"FLOW_BUBBLE"
// 气泡奖励
const
val
CARRIER_CHALLENGE_VEDIO_RANKING
=
"CHALLENGE_VEDIO_RANKING"
// 新人红包排名奖励
const
val
AD_SOURCE_CSJ
=
"CSJ"
...
...
app/src/main/java/com/mints/flowbox/ui/activitys/AwardActivity.kt
View file @
b612bad2
...
...
@@ -20,7 +20,6 @@ import com.mints.flowbox.common.AppConfig
import
com.mints.flowbox.common.Constant
import
com.mints.flowbox.common.DeviceInfo.Companion.instance
import
com.mints.flowbox.keepalive.appswitch.AntiAuditManager
import
com.mints.flowbox.manager.AppPreferencesManager
import
com.mints.flowbox.manager.AppTryPlayManager
import
com.mints.flowbox.manager.TrackManager
import
com.mints.flowbox.manager.UserManager
...
...
@@ -188,6 +187,15 @@ class AwardActivity : BaseActivity(), AwardView, View.OnClickListener {
tvAwardContent
.
text
=
"大量金币已到账"
tvAwardNext
.
visibility
=
View
.
GONE
}
Constant
.
CARRIER_CHALLENGE_VEDIO_RANKING
->
{
val
vo
=
HashMap
<
String
,
Any
>()
vo
[
"carrierType"
]
=
carrierType
vo
[
"coin"
]
=
curCoin
awardPresenter
.
reportAddCoinMsg
(
vo
)
tvAwardContent
.
text
=
"${curCoin}金币已到账"
tvAwardNext
.
visibility
=
View
.
GONE
}
Constant
.
CARRIER_TURN_VEDIOCHALLENGE
->
{
val
vo
=
HashMap
<
String
,
Any
>()
vo
[
"carrierType"
]
=
carrierType
...
...
@@ -329,7 +337,6 @@ class AwardActivity : BaseActivity(), AwardView, View.OnClickListener {
R
.
mipmap
.
icon_video
),
null
,
null
,
null
)
}
Constant
.
CARRIER_FLOW_BUBBLE
->
{
tvAwardContent
.
text
=
"大量金币已到账"
...
...
@@ -340,7 +347,6 @@ class AwardActivity : BaseActivity(), AwardView, View.OnClickListener {
R
.
mipmap
.
icon_video
),
null
,
null
,
null
)
}
Constant
.
CARRIER_SIGNIN_HOMEPAGE_AWARD
->
{
tvAwardContent
.
text
=
"大量金币已到账"
...
...
@@ -605,8 +611,9 @@ class AwardActivity : BaseActivity(), AwardView, View.OnClickListener {
}
// gromore预加载
if
(
AppConfig
.
groMoreVideoAdCount
>
0
){
PreCsjGroMoreVideoAdManager
.
getInstance
().
setVideoAdStatusListener
(
object
:
VideoAdStatusListener
{
if
(
AppConfig
.
groMoreVideoAdCount
>
0
)
{
PreCsjGroMoreVideoAdManager
.
getInstance
()
.
setVideoAdStatusListener
(
object
:
VideoAdStatusListener
{
override
fun
adFail
()
{
}
...
...
@@ -618,7 +625,7 @@ class AwardActivity : BaseActivity(), AwardView, View.OnClickListener {
override
fun
adDownload
()
{
}
})
PreCsjGroMoreVideoAdManager
.
getInstance
().
showAd
(
this
,
curCoin
,
carrierType
,
extraId
)
PreCsjGroMoreVideoAdManager
.
getInstance
().
showAd
(
this
,
curCoin
,
carrierType
,
extraId
)
return
}
...
...
app/src/main/java/com/mints/flowbox/ui/activitys/MainActivity.kt
View file @
b612bad2
...
...
@@ -66,9 +66,6 @@ class MainActivity : BaseActivity(), MainView, View.OnClickListener {
baseApplication
.
initMiitHelper
()
WifiStateManager
.
instance
.
registerWifiReceiver
(
this
)
// 奖励页预加载 信息流广告
ExpressManager
.
loadExpress
(
true
)
mainPresenter
.
attachView
(
this
)
if
(
threeFragment
==
null
)
{
...
...
app/src/main/java/com/mints/flowbox/ui/activitys/SpeedTestActivity.kt
View file @
b612bad2
...
...
@@ -110,7 +110,7 @@ class SpeedTestActivity : BaseActivity(), View.OnClickListener {
override
fun
onDestroy
()
{
super
.
onDestroy
()
WifiAdManager
.
instance
.
onDestroy
(
)
WifiAdManager
.
instance
.
setWifiAdStatusListener
(
null
)
DownloadApkManager
.
instance
.
destroy
()
}
...
...
@@ -189,6 +189,8 @@ class SpeedTestActivity : BaseActivity(), View.OnClickListener {
btn_start
.
setTextColor
(
ContextCompat
.
getColor
(
mContext
,
R
.
color
.
color_main
))
btn_start
.
setBackgroundResource
(
R
.
drawable
.
btn_stroke_main
)
endTest
()
isSpeedTestOver
=
true
startShowSpeedAnimator
(
0f
,
0f
)
}
...
...
app/src/main/java/com/mints/flowbox/ui/activitys/WxLoginActivity.kt
View file @
b612bad2
...
...
@@ -173,7 +173,7 @@ class WxLoginActivity : BaseActivity(), LoginView, View.OnClickListener, OnLogin
}
override
fun
updateDrawState
(
ds
:
TextPaint
)
{
ds
.
color
=
resources
.
getColor
(
R
.
color
.
color_
FF9837
)
ds
.
color
=
resources
.
getColor
(
R
.
color
.
color_
main
)
ds
.
isUnderlineText
=
false
}
})
...
...
@@ -187,7 +187,7 @@ class WxLoginActivity : BaseActivity(), LoginView, View.OnClickListener, OnLogin
}
override
fun
updateDrawState
(
ds
:
TextPaint
)
{
ds
.
color
=
resources
.
getColor
(
R
.
color
.
color_
FF9837
)
ds
.
color
=
resources
.
getColor
(
R
.
color
.
color_
main
)
ds
.
isUnderlineText
=
false
}
})
...
...
app/src/main/java/com/mints/flowbox/ui/activitys/keepalive/TriggerActivity.kt
View file @
b612bad2
...
...
@@ -7,6 +7,7 @@ import com.daimajia.androidanimations.library.Techniques
import
com.daimajia.androidanimations.library.YoYo
import
com.mints.flowbox.R
import
com.mints.flowbox.ad.express.ExpressManager
import
com.mints.flowbox.ad.wifi.WifiAdManager
import
com.mints.flowbox.common.AppConfig
import
com.mints.flowbox.keepalive.AlarmManager
import
com.mints.flowbox.keepalive.OutAppRouter
...
...
app/src/main/java/com/mints/flowbox/ui/fragment/GetPacketFragment.kt
View file @
b612bad2
...
...
@@ -14,6 +14,7 @@ import com.mints.flowbox.ad.video.VideoAdingManager
import
com.mints.flowbox.ad.video.base.VideoAdStatusListener
import
com.mints.flowbox.common.AppConfig
import
com.mints.flowbox.common.Constant
import
com.mints.flowbox.manager.TrackManager
import
com.mints.flowbox.manager.UserManager
import
com.mints.flowbox.mvp.model.GetPacketBean
import
com.mints.flowbox.mvp.model.VideoAdingBean
...
...
@@ -26,7 +27,7 @@ import com.mints.flowbox.ui.widgets.dialog.ShareDialog
import
com.mints.flowbox.utils.SpanUtils
import
com.mints.flowbox.utils.ToolUtil
import
kotlinx.android.synthetic.main.fragment_get_packet.*
import
kotlinx.android.synthetic.main.fragment_get_packet.swipeRefreshLayout
import
java.util.*
class
GetPacketFragment
:
BaseFragment
(),
GetPacketView
,
View
.
OnClickListener
,
SwipeRefreshLayout
.
OnRefreshListener
{
...
...
@@ -44,7 +45,6 @@ class GetPacketFragment : BaseFragment(), GetPacketView, View.OnClickListener,
if
(
AppConfig
.
FRAGMENT_THREE_SHOW_TYPE
==
1
)
{
awardContainer
.
visibility
=
View
.
GONE
progressContainer
.
visibility
=
View
.
VISIBLE
tvVideo
.
bringToFront
()
}
else
if
(
AppConfig
.
FRAGMENT_THREE_SHOW_TYPE
==
2
)
{
awardContainer
.
visibility
=
View
.
VISIBLE
progressContainer
.
visibility
=
View
.
GONE
...
...
@@ -272,13 +272,24 @@ class GetPacketFragment : BaseFragment(), GetPacketView, View.OnClickListener,
/** 激励视频播放成功回调 */
private
fun
videoAdingSuccess
(
coin
:
Int
)
{
if
(
coin
==
0
)
return
if
(!
requireActivity
().
isFinishing
)
{
mGetPacketBean
?.
let
{
if
(
it
.
rankingBottoms
.
challenge_vedio_ranking
.
coin
==
0
)
{
val
vo
=
HashMap
<
String
,
Any
>()
vo
[
"carrierType"
]
=
it
.
rankingBottoms
.
challenge_vedio_ranking
.
carrierType
TrackManager
.
getInstance
().
reportAddCoinMsg
(
activity
,
vo
)
}
else
{
val
bundle
=
Bundle
()
bundle
.
putString
(
Constant
.
MAIN_CARRIER_TYPE
,
Constant
.
CARRIER_VERSUS_VIDEO
)
bundle
.
putString
(
Constant
.
MAIN_CARRIER_TYPE
,
it
.
rankingBottoms
.
challenge_vedio_ranking
.
carrierType
)
readyGo
(
AwardActivity
::
class
.
java
,
bundle
)
}
}
}
override
fun
onRefresh
()
{
if
(
AppConfig
.
FRAGMENT_THREE_SHOW_TYPE
==
1
)
{
...
...
app/src/main/res/layout/activity_bind_mobile.xml
View file @
b612bad2
...
...
@@ -101,7 +101,7 @@
android:layout_centerVertical=
"true"
android:gravity=
"center"
android:text=
"发送验证码"
android:textColor=
"@color/color_
FF9837
"
android:textColor=
"@color/color_
main
"
android:textSize=
"12sp"
/>
</RelativeLayout>
...
...
@@ -120,7 +120,7 @@
android:layout_marginLeft=
"40dp"
android:layout_marginTop=
"30dp"
android:layout_marginRight=
"40dp"
android:background=
"@drawable/shape_
btn_switch
"
android:background=
"@drawable/shape_
main
"
android:gravity=
"center"
android:text=
"绑定手机号"
android:textColor=
"@color/white"
...
...
app/src/main/res/layout/dialog_friends.xml
View file @
b612bad2
...
...
@@ -47,7 +47,7 @@
android:layout_width=
"200dp"
android:layout_height=
"42dp"
android:layout_gravity=
"center_horizontal"
android:background=
"@drawable/shape_
btn_switch
"
android:background=
"@drawable/shape_
main
"
android:gravity=
"center"
android:textColor=
"@color/white"
android:textSize=
"18sp"
/>
...
...
shareSdkLib/src/main/java/com/mints/flowbox/login/LoginApi.java
View file @
b612bad2
...
...
@@ -21,7 +21,7 @@ public class LoginApi implements Callback {
private
OnLoginListener
loginListener
;
private
String
platform
;
private
Context
context
;
private
Handler
handler
;
private
final
Handler
handler
;
public
LoginApi
()
{
handler
=
new
Handler
(
Looper
.
getMainLooper
(),
this
);
...
...
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