Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
android_goodnews
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_goodnews
Commits
e2740935
Commit
e2740935
authored
Jun 03, 2021
by
mengcuiguang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
代码优化
parent
bca1dd75
Pipeline
#218
canceled with stages
Changes
14
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
14 changed files
with
100 additions
and
45 deletions
+100
-45
CpdManager.kt
app/src/main/java/com/mints/goodnews/manager/CpdManager.kt
+2
-2
KsManager.kt
app/src/main/java/com/mints/goodnews/manager/KsManager.kt
+1
-1
LiebaoManager.java
...c/main/java/com/mints/goodnews/manager/LiebaoManager.java
+1
-1
MhManager.kt
app/src/main/java/com/mints/goodnews/manager/MhManager.kt
+2
-2
OwManager.kt
app/src/main/java/com/mints/goodnews/manager/OwManager.kt
+2
-2
ShumeiManager.java
...c/main/java/com/mints/goodnews/manager/ShumeiManager.java
+1
-1
TtCsjAdManager.java
.../main/java/com/mints/goodnews/manager/TtCsjAdManager.java
+1
-1
TzManager.kt
app/src/main/java/com/mints/goodnews/manager/TzManager.kt
+2
-2
WnManager.kt
app/src/main/java/com/mints/goodnews/manager/WnManager.kt
+1
-1
YlhAdManager.kt
app/src/main/java/com/mints/goodnews/manager/YlhAdManager.kt
+1
-1
YwhzManager.kt
app/src/main/java/com/mints/goodnews/manager/YwhzManager.kt
+4
-4
ZhangyueManager.kt
...c/main/java/com/mints/goodnews/manager/ZhangyueManager.kt
+0
-23
MoneyFragment.kt
...main/java/com/mints/goodnews/ui/fragment/MoneyFragment.kt
+4
-4
NewsFragment.kt
.../main/java/com/mints/goodnews/ui/fragment/NewsFragment.kt
+78
-0
No files found.
app/src/main/java/com/mints/goodnews/manager/CpdManager.kt
View file @
e2740935
...
...
@@ -18,8 +18,8 @@ import org.json.JSONObject
object
CpdManager
{
/*单个任务id*/
const
val
BUSINESS_ID
=
"
m8909
"
const
val
KEY
=
"
KVPCQQsS9AV68y9DA2S4gIk2orHY4xz6
"
const
val
BUSINESS_ID
=
""
const
val
KEY
=
""
/*列表任务id*/
const
val
BUSINESS_ID_LIST
=
""
...
...
app/src/main/java/com/mints/goodnews/manager/KsManager.kt
View file @
e2740935
...
...
@@ -12,7 +12,7 @@ import com.mints.goodnews.R
*/
object
KsManager
{
private
const
val
KS_APP_ID
=
"
574600004
"
private
const
val
KS_APP_ID
=
""
/*信息流*/
const
val
KS_AD_NATIVEEXPRESS_AWARD
=
5746000025L
...
...
app/src/main/java/com/mints/goodnews/manager/LiebaoManager.java
View file @
e2740935
...
...
@@ -23,7 +23,7 @@ public class LiebaoManager {
/**
* APP_ID
*/
public
static
final
String
APP_ID
=
"
taojinkongjian
"
;
public
static
final
String
APP_ID
=
""
;
/**
* APP_HOST
...
...
app/src/main/java/com/mints/goodnews/manager/MhManager.kt
View file @
e2740935
...
...
@@ -9,8 +9,8 @@ import com.maplehaze.adsdk.MaplehazeSDK
*/
object
MhManager
{
const
val
APP_ID
=
"
10212
"
const
val
POS_ID
=
"
56865
"
const
val
APP_ID
=
""
const
val
POS_ID
=
""
/**
* 初始化
...
...
app/src/main/java/com/mints/goodnews/manager/OwManager.kt
View file @
e2740935
...
...
@@ -9,9 +9,9 @@ import mobi.oneway.export.Ad.OnewaySdk
*/
object
OwManager
{
private
const
val
PUBLISH_ID
=
"
dae8ca1f086a4e27
"
private
const
val
PUBLISH_ID
=
""
const
val
REWARD_PID
=
"
CZFL1VG8J6YQFR7I
"
const
val
REWARD_PID
=
""
/**
* 初始化
...
...
app/src/main/java/com/mints/goodnews/manager/ShumeiManager.java
View file @
e2740935
...
...
@@ -21,7 +21,7 @@ public class ShumeiManager {
/**
* 应用标识,登录数美后台应用管理查看。
*/
public
static
final
String
APP_ID
=
"
mint
s"
;
public
static
final
String
APP_ID
=
"
goodnew
s"
;
/**
* 加密 KEY。
*/
...
...
app/src/main/java/com/mints/goodnews/manager/TtCsjAdManager.java
View file @
e2740935
...
...
@@ -17,7 +17,7 @@ import com.mints.goodnews.mvp.model.ServerAdBean;
*/
public
class
TtCsjAdManager
{
public
static
final
String
TT_AD_APPID
=
"
5038593
"
;
public
static
final
String
TT_AD_APPID
=
""
;
public
static
final
String
TT_AD_NAME
=
Constant
.
MINTS_APP_NAME
;
/*banner*/
...
...
app/src/main/java/com/mints/goodnews/manager/TzManager.kt
View file @
e2740935
...
...
@@ -12,8 +12,8 @@ import com.tz.sdk.core.engine.IADEngineState
*/
object
TzManager
{
const
val
APP_KEY
=
"
1218b3b5c900a248f88c5eb24c897700
"
const
val
APP_SECRET
=
"
99984798537a2bd19f9b72b40ddaea71
"
const
val
APP_KEY
=
""
const
val
APP_SECRET
=
""
/**
* 初始化
...
...
app/src/main/java/com/mints/goodnews/manager/WnManager.kt
View file @
e2740935
...
...
@@ -12,7 +12,7 @@ import com.wannuosili.sdk.WNAdSdk
*/
object
WnManager
{
private
const
val
APP_ID
=
"
10000454
"
private
const
val
APP_ID
=
""
const
val
WN_AD_VEDIO_DRINK_POSTID
=
"100000512008"
//喝水打卡
const
val
WN_AD_VEDIO_MAIN_POSTID
=
"100000512008"
//我的界面视频
...
...
app/src/main/java/com/mints/goodnews/manager/YlhAdManager.kt
View file @
e2740935
...
...
@@ -13,7 +13,7 @@ import com.qq.e.comm.managers.GDTADManager
object
YlhAdManager
{
/* 优量汇appid */
const
val
YLH_AD_APPID
=
"
1110058445
"
const
val
YLH_AD_APPID
=
""
/* splash-postid */
...
...
app/src/main/java/com/mints/goodnews/manager/YwhzManager.kt
View file @
e2740935
...
...
@@ -14,11 +14,11 @@ import com.mints.goodnews.MintsApplication
*/
object
YwhzManager
{
private
const
val
APPID_DEBUG
=
"
1066
"
private
const
val
APPSECRET_DEBUG
=
"
nfgpxq2x1svo50m8eicv38erc9ugsx6a
"
private
const
val
APPID_DEBUG
=
""
private
const
val
APPSECRET_DEBUG
=
""
private
const
val
APPID_RELEASE
=
"
1050
"
private
const
val
APPSECRET_RELEASE
=
"
ngvbamk7h3i1psj4q4cb2vzst9ts6fml
"
private
const
val
APPID_RELEASE
=
""
private
const
val
APPSECRET_RELEASE
=
""
fun
init
(
application
:
Application
)
{
val
userManager
=
UserManager
.
getInstance
()
...
...
app/src/main/java/com/mints/goodnews/manager/ZhangyueManager.kt
deleted
100644 → 0
View file @
bca1dd75
//package com.mints.goldspace.manager
//
//import android.app.Application
//import com.ireader.ireadersdk.IreaderApi
//import java.lang.Exception
//
///**
// * 描述:掌阅书城
// * 作者:孟崔广
// */
//object ZhangyueManager {
//
// private const val APPID = ""
//
// fun onCreateIreader(application: Application) {
// try {
// IreaderApi.attachBaseContext(application)
// IreaderApi.onCreate(application, APPID)
// } catch (e: Exception) {
// e.printStackTrace()
// }
// }
//}
\ No newline at end of file
app/src/main/java/com/mints/goodnews/ui/fragment/MoneyFragment.kt
View file @
e2740935
...
...
@@ -140,25 +140,25 @@ class MoneyFragment : BaseFragment(), XTabLayout.OnTabSelectedListener {
}
1
->
{
if
(
mainFragment2
==
null
)
{
mainFragment2
=
Main
Fragment
()
mainFragment2
=
News
Fragment
()
}
addOrShowFragment
(
childFragmentManager
,
mainFragment2
!!
,
FRAGMENT_TAG_MAIN2
)
}
2
->
{
if
(
mainFragment3
==
null
)
{
mainFragment3
=
Main
Fragment
()
mainFragment3
=
News
Fragment
()
}
addOrShowFragment
(
childFragmentManager
,
mainFragment3
!!
,
FRAGMENT_TAG_MAIN3
)
}
3
->
{
if
(
mainFragment4
==
null
)
{
mainFragment4
=
Main
Fragment
()
mainFragment4
=
News
Fragment
()
}
addOrShowFragment
(
childFragmentManager
,
mainFragment4
!!
,
FRAGMENT_TAG_MAIN4
)
}
4
->
{
if
(
mainFragment5
==
null
)
{
mainFragment4
=
Main
Fragment
()
mainFragment4
=
News
Fragment
()
}
addOrShowFragment
(
childFragmentManager
,
mainFragment5
!!
,
FRAGMENT_TAG_MAIN5
)
}
...
...
app/src/main/java/com/mints/goodnews/ui/fragment/NewsFragment.kt
0 → 100644
View file @
e2740935
package
com.mints.goodnews.ui.fragment
import
android.text.TextUtils
import
android.view.View
import
com.mints.goodnews.R
import
com.mints.goodnews.ad.video.VideoAdingManager
import
com.mints.goodnews.common.AppConfig
import
com.mints.goodnews.common.Constant
import
com.mints.goodnews.manager.UserManager
import
com.mints.goodnews.mvp.presenters.RsNewsPresenter
import
com.mints.goodnews.mvp.views.RsNewsView
import
com.mints.goodnews.ui.fragment.base.LazyLoadBaseFragment
import
net.grandcentrix.tray.AppPreferences
private
val
TAG
=
NewsFragment
::
class
.
java
.
simpleName
/**
* 描述:首页
* 作者:孟崔广
* 时间:2020/10/10 17:30
*/
class
NewsFragment
:
LazyLoadBaseFragment
(),
RsNewsView
,
View
.
OnClickListener
{
private
val
ps
by
lazy
{
AppPreferences
(
context
)
}
private
val
newsPresenter
by
lazy
{
RsNewsPresenter
()
}
private
val
userManager
by
lazy
{
UserManager
.
getInstance
()
}
// 广告权重相关
private
var
videoAdingManager
:
VideoAdingManager
?
=
null
override
fun
getContentViewLayoutID
()
=
R
.
layout
.
fragment_main_first
override
fun
initViewsAndEvents
()
{
}
override
fun
onFragmentFirstVisible
()
{
newsPresenter
.
attachView
(
this
)
videoAdingManager
=
VideoAdingManager
.
getInstance
(
activity
)
}
override
fun
onFragmentResume
()
{
super
.
onFragmentResume
()
if
(
AppConfig
.
fragmentClickFlag
==
Constant
.
FRAGMENT_CLICK_ONE
)
{
if
(!
TextUtils
.
isEmpty
(
userManager
?.
userID
))
{
}
}
}
override
fun
onPause
()
{
super
.
onPause
()
}
override
fun
onDestroy
()
{
super
.
onDestroy
()
// 广告回调解绑
newsPresenter
.
detachView
()
}
override
fun
onClick
(
v
:
View
)
{
// when (v.id) {
// R.id.rl_fragment_main_redbox -> {
// }
// R.id.cdvvYilanTime -> {
// }
// }
}
override
fun
readSecondsSuc
(
coin
:
Int
,
video
:
Int
,
supr
:
Int
)
{
}
}
\ No newline at end of file
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