Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
android_goodmoney
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_goodmoney
Commits
a2108684
Commit
a2108684
authored
Dec 25, 2020
by
mengcuiguang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
每日任务添加奖励领取
parent
77018fd6
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
70 additions
and
6 deletions
+70
-6
build.gradle
GoodMoney/app/build.gradle
+3
-0
TouTiaoRangersManager.kt
...java/com/mints/goodmoney/manager/TouTiaoRangersManager.kt
+46
-0
XmlyPlayActivity.kt
...java/com/mints/goodmoney/ui/activitys/XmlyPlayActivity.kt
+4
-2
MyFragment.kt
...c/main/java/com/mints/goodmoney/ui/fragment/MyFragment.kt
+17
-4
icon_unlock.png
GoodMoney/app/src/main/res/mipmap-xhdpi/icon_unlock.png
+0
-0
No files found.
GoodMoney/app/build.gradle
View file @
a2108684
...
@@ -251,6 +251,9 @@ dependencies {
...
@@ -251,6 +251,9 @@ dependencies {
implementation
(
name:
'scenead-2.1'
,
ext:
'aar'
)
implementation
(
name:
'scenead-2.1'
,
ext:
'aar'
)
implementation
'com.just.agentweb:agentweb:4.1.2'
implementation
'com.just.agentweb:agentweb:4.1.2'
// 喜马拉雅 已集成
// 喜马拉雅 已集成
// 巨量引擎 暂不接入
// implementation 'com.bytedance.applog:RangersAppLog-Lite-cn-3.3.12.aar'
// testImplementation 'junit:junit:4.13'
// testImplementation 'junit:junit:4.13'
...
...
GoodMoney/app/src/main/java/com/mints/goodmoney/manager/TouTiaoRangersManager.kt
0 → 100644
View file @
a2108684
//package com.mints.goodmoney.manager
//
//import android.app.Application
//import android.text.TextUtils
//import com.bytedance.embedapplog.AppLog
//import com.bytedance.embedapplog.InitConfig
//import com.bytedance.embedapplog.util.UriConfig
//import com.bytedance.hume.readapk.HumeSDK
//import com.mints.goodmoney.BuildConfig
//import com.mints.goodmoney.MintsApplication
//import com.mints.library.utils.CommonUtils
//
///**
// * 描述:巨量引擎
// */
//object TouTiaoRangersManager {
//
// private const val APP_ID = "203759"
//
// /**
// * 初始化
// *
// * 只有头条分包才初始化
// */
// fun init(application: Application) {
// try {
// var channel = CommonUtils.getAppMetaData(MintsApplication.getContext(), "CHANNEL_NAME")
// if (channel.contains(ChannelManager.CHANNEL_TOUTIAO)) {
// // 穿山甲分包渠道
// val ttChannel = HumeSDK.getChannel(MintsApplication.getContext())
// if (!TextUtils.isEmpty(ttChannel)) {
// // appid和渠道,appid须保证与广告后台申请记录一致,渠道可自定义,如有多个马甲包建议设置渠道号唯一标识一个马甲包。
// val config = InitConfig(APP_ID, channel + "_" + ttChannel)
// // 域名默认国内: DEFAULT
// config.setUriConfig(UriConfig.DEFAULT);
// // 是否在控制台输出日志,可用于观察用户行为日志上报情况,建议仅在调试时使用,release版本请设置为false !
// AppLog.setEnableLog(BuildConfig.DEBUG)
// AppLog.init(application, config)
// }
// }
// } catch (e: Exception) {
// e.printStackTrace()
// }
// }
//
//}
\ No newline at end of file
GoodMoney/app/src/main/java/com/mints/goodmoney/ui/activitys/XmlyPlayActivity.kt
View file @
a2108684
...
@@ -113,7 +113,7 @@ class XmlyPlayActivity : BaseActivity(), View.OnClickListener, XmlyPlayAdapter.O
...
@@ -113,7 +113,7 @@ class XmlyPlayActivity : BaseActivity(), View.OnClickListener, XmlyPlayAdapter.O
hideLoading
()
hideLoading
()
mPlayerManager
.
removeOnConnectedListerner
(
this
)
mPlayerManager
.
removeOnConnectedListerner
(
this
)
mPlayerManager
.
playMode
=
XmPlayListControl
.
PlayMode
.
PLAY_MODEL_
LIST
_LOOP
mPlayerManager
.
playMode
=
XmPlayListControl
.
PlayMode
.
PLAY_MODEL_
SINGLE
_LOOP
// Toast.makeText(this@XmlyPlayActivity, "播放器初始化成功", Toast.LENGTH_SHORT).show()
// Toast.makeText(this@XmlyPlayActivity, "播放器初始化成功", Toast.LENGTH_SHORT).show()
loadUnlockMsg
()
loadUnlockMsg
()
...
@@ -451,7 +451,7 @@ class XmlyPlayActivity : BaseActivity(), View.OnClickListener, XmlyPlayAdapter.O
...
@@ -451,7 +451,7 @@ class XmlyPlayActivity : BaseActivity(), View.OnClickListener, XmlyPlayAdapter.O
if
(
mPlayerManager
.
isPlaying
&&
mStartListenTime
!=
0L
)
{
if
(
mPlayerManager
.
isPlaying
&&
mStartListenTime
!=
0L
)
{
mListenTime
+=
System
.
currentTimeMillis
()
-
mStartListenTime
mListenTime
+=
System
.
currentTimeMillis
()
-
mStartListenTime
}
}
if
(
mListenTime
=
=
0L
)
{
if
(
mListenTime
!
=
0L
)
{
TrackManager
.
getInstance
().
addXmlyTime
((
mListenTime
/
1000
).
toInt
())
TrackManager
.
getInstance
().
addXmlyTime
((
mListenTime
/
1000
).
toInt
())
}
}
super
.
finish
()
super
.
finish
()
...
@@ -474,6 +474,8 @@ class XmlyPlayActivity : BaseActivity(), View.OnClickListener, XmlyPlayAdapter.O
...
@@ -474,6 +474,8 @@ class XmlyPlayActivity : BaseActivity(), View.OnClickListener, XmlyPlayAdapter.O
xmlyPlayAdapter
.
notifyItemChanged
(
position
)
xmlyPlayAdapter
.
notifyItemChanged
(
position
)
}
else
{
}
else
{
showToast
(
"解锁失败,请重试"
)
showToast
(
"解锁失败,请重试"
)
// 刷新喜马拉雅信息流
TTPreLoadExpressXmlyManager
.
getInstance
().
loadTtFrameLayout
()
}
}
}
}
...
...
GoodMoney/app/src/main/java/com/mints/goodmoney/ui/fragment/MyFragment.kt
View file @
a2108684
...
@@ -565,11 +565,24 @@ class MyFragment : BaseFragment(), MyView, OnItemChildClickListener, OnRefreshLi
...
@@ -565,11 +565,24 @@ class MyFragment : BaseFragment(), MyView, OnItemChildClickListener, OnRefreshLi
readyGo
(
DhGameActivity
::
class
.
java
)
readyGo
(
DhGameActivity
::
class
.
java
)
}
}
MainMyAdapter
.
TO_XMLY
->
{
MainMyAdapter
.
TO_XMLY
->
{
val
activity
:
MainActivity
?
=
activity
as
MainActivity
?
if
(
taskBean
.
otherConfig
!=
null
)
{
activity
?.
let
{
when
(
taskBean
.
otherConfig
.
status
)
{
it
.
clickTab1Layout
()
0
,
2
->
{
it
.
selectXmly
()
val
activity
:
MainActivity
?
=
activity
as
MainActivity
?
activity
?.
let
{
it
.
clickTab1Layout
()
it
.
selectXmly
()
}
}
1
->
{
val
bundle
=
Bundle
()
bundle
.
putInt
(
Constant
.
MAIN_CUR_COIN
,
taskBean
.
otherConfig
.
coin
)
bundle
.
putString
(
Constant
.
MAIN_CARRIER_TYPE
,
Constant
.
CARRIER_XMLY_CHALLENGE
)
readyGo
(
AwardActivity
::
class
.
java
,
bundle
)
}
}
}
}
}
}
}
}
}
}
...
...
GoodMoney/app/src/main/res/mipmap-xhdpi/icon_unlock.png
View replaced file @
77018fd6
View file @
a2108684
1.93 KB
|
W:
|
H:
1.54 KB
|
W:
|
H:
2-up
Swipe
Onion skin
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