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
d1d60c39
Commit
d1d60c39
authored
Oct 30, 2020
by
mengcuiguang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
更换新sdk包
parent
bed72fd5
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
10 additions
and
12 deletions
+10
-12
build.gradle
GoodMoney/app/build.gradle
+1
-0
iReader-release-1.0.1.aar
GoodMoney/app/libs/iReader-release-1.0.1.aar
+0
-0
ZhangyueManager.kt
.../main/java/com/mints/goodmoney/manager/ZhangyueManager.kt
+1
-1
AwardActivity.kt
...in/java/com/mints/goodmoney/ui/activitys/AwardActivity.kt
+1
-1
MainFragment.kt
...main/java/com/mints/goodmoney/ui/fragment/MainFragment.kt
+7
-10
No files found.
GoodMoney/app/build.gradle
View file @
d1d60c39
...
@@ -230,6 +230,7 @@ dependencies {
...
@@ -230,6 +230,7 @@ dependencies {
testImplementation
'junit:junit:4.12'
testImplementation
'junit:junit:4.12'
androidTestImplementation
'androidx.test.ext:junit:1.1.1'
androidTestImplementation
'androidx.test.ext:junit:1.1.1'
androidTestImplementation
'androidx.test.espresso:espresso-core:3.1.0'
androidTestImplementation
'androidx.test.espresso:espresso-core:3.1.0'
...
...
GoodMoney/app/libs/iReader-release-1.0.1.aar
View file @
d1d60c39
No preview for this file type
GoodMoney/app/src/main/java/com/mints/goodmoney/manager/ZhangyueManager.kt
View file @
d1d60c39
...
@@ -8,11 +8,11 @@ import com.ireader.ireadersdk.IreaderApi
...
@@ -8,11 +8,11 @@ import com.ireader.ireadersdk.IreaderApi
* 作者:孟崔广
* 作者:孟崔广
*/
*/
object
ZhangyueManager
{
object
ZhangyueManager
{
const
val
APPID
=
"10054"
const
val
APPID
=
"10054"
fun
onCreateIreader
(
application
:
Application
){
fun
onCreateIreader
(
application
:
Application
){
IreaderApi
.
onCreate
(
application
,
APPID
)
IreaderApi
.
onCreate
(
application
,
APPID
)
}
}
fun
attachBaseContextIreader
(
application
:
Application
){
fun
attachBaseContextIreader
(
application
:
Application
){
...
...
GoodMoney/app/src/main/java/com/mints/goodmoney/ui/activitys/AwardActivity.kt
View file @
d1d60c39
...
@@ -50,7 +50,7 @@ class AwardActivity : BaseActivity(), AwardView, View.OnClickListener {
...
@@ -50,7 +50,7 @@ class AwardActivity : BaseActivity(), AwardView, View.OnClickListener {
vedioAdingManager
=
VedioAdingManager
.
getInstance
(
this
)
vedioAdingManager
=
VedioAdingManager
.
getInstance
(
this
)
initExpress
()
//
initExpress()
initDataView
()
initDataView
()
initListener
()
initListener
()
}
}
...
...
GoodMoney/app/src/main/java/com/mints/goodmoney/ui/fragment/MainFragment.kt
View file @
d1d60c39
...
@@ -90,8 +90,6 @@ class MainFragment : BaseFragment(), HomeView, AdVideoCallback, View.OnClickList
...
@@ -90,8 +90,6 @@ class MainFragment : BaseFragment(), HomeView, AdVideoCallback, View.OnClickList
super
.
onResume
()
super
.
onResume
()
if
(
AppConfig
.
fragmentClickFlag
===
Constant
.
FRAGMENT_CLICK_MAIN
)
{
if
(
AppConfig
.
fragmentClickFlag
===
Constant
.
FRAGMENT_CLICK_MAIN
)
{
LogUtil
.
d
(
"MainFragment onResume"
)
// 打开激活
// 打开激活
uploadDeviceInfo
()
uploadDeviceInfo
()
...
@@ -116,7 +114,6 @@ class MainFragment : BaseFragment(), HomeView, AdVideoCallback, View.OnClickList
...
@@ -116,7 +114,6 @@ class MainFragment : BaseFragment(), HomeView, AdVideoCallback, View.OnClickList
override
fun
onPause
()
{
override
fun
onPause
()
{
super
.
onPause
()
super
.
onPause
()
LogUtil
.
d
(
"MainFragment onPause"
)
littleVideoFragment
?.
onPause
()
littleVideoFragment
?.
onPause
()
pauseDownloadTime
()
pauseDownloadTime
()
...
@@ -143,12 +140,12 @@ class MainFragment : BaseFragment(), HomeView, AdVideoCallback, View.OnClickList
...
@@ -143,12 +140,12 @@ class MainFragment : BaseFragment(), HomeView, AdVideoCallback, View.OnClickList
}
}
// 离线收益
// 离线收益
if
(
data
.
offlineBean
.
offlineIncome
>
0
)
{
//
if (data.offlineBean.offlineIncome > 0) {
val
bundle
=
Bundle
()
//
val bundle = Bundle()
bundle
.
putInt
(
Constant
.
MAIN_CUR_COIN
,
data
.
offlineBean
.
offlineIncome
)
//
bundle.putInt(Constant.MAIN_CUR_COIN, data.offlineBean.offlineIncome)
bundle
.
putString
(
Constant
.
MAIN_CARRIER_TYPE
,
Constant
.
CARRIER_OFFLINE_DOUBLE
)
//
bundle.putString(Constant.MAIN_CARRIER_TYPE, Constant.CARRIER_OFFLINE_DOUBLE)
readyGo
(
AwardActivity
::
class
.
java
,
bundle
)
//
readyGo(AwardActivity::class.java, bundle)
}
//
}
// 调用金币视频信息接口
// 调用金币视频信息接口
homePresenter
.
getHomeVedioMsg
()
homePresenter
.
getHomeVedioMsg
()
...
@@ -168,7 +165,7 @@ class MainFragment : BaseFragment(), HomeView, AdVideoCallback, View.OnClickList
...
@@ -168,7 +165,7 @@ class MainFragment : BaseFragment(), HomeView, AdVideoCallback, View.OnClickList
smallRewardCoin
=
data
.
smallRewardCoin
smallRewardCoin
=
data
.
smallRewardCoin
bigRewardCoin
=
data
.
bigRewardCoin
bigRewardCoin
=
data
.
bigRewardCoin
ivMainBox
.
visibility
=
if
(
bigRewardCoin
>
0
)
View
.
VISIBLE
else
View
.
GONE
//
ivMainBox.visibility = if (bigRewardCoin > 0) View.VISIBLE else View.GONE
if
(
data
.
isToCreateReward
)
{
if
(
data
.
isToCreateReward
)
{
// 防止界面切换 重置倒计时
// 防止界面切换 重置倒计时
...
...
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