Commit e2740935 authored by mengcuiguang's avatar mengcuiguang

代码优化

parent bca1dd75
Pipeline #218 canceled with stages
......@@ -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 = ""
......
......@@ -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
......
......@@ -23,7 +23,7 @@ public class LiebaoManager {
/**
* APP_ID
*/
public static final String APP_ID = "taojinkongjian";
public static final String APP_ID = "";
/**
* APP_HOST
......
......@@ -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 = ""
/**
* 初始化
......
......@@ -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 = ""
/**
* 初始化
......
......@@ -21,7 +21,7 @@ public class ShumeiManager {
/**
* 应用标识,登录数美后台应用管理查看。
*/
public static final String APP_ID = "mints";
public static final String APP_ID = "goodnews";
/**
* 加密 KEY。
*/
......
......@@ -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*/
......
......@@ -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 = ""
/**
* 初始化
......
......@@ -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" //我的界面视频
......
......@@ -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 */
......
......@@ -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()
......
//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
......@@ -140,25 +140,25 @@ class MoneyFragment : BaseFragment(), XTabLayout.OnTabSelectedListener {
}
1 -> {
if (mainFragment2 == null) {
mainFragment2 = MainFragment()
mainFragment2 = NewsFragment()
}
addOrShowFragment(childFragmentManager, mainFragment2!!, FRAGMENT_TAG_MAIN2)
}
2 -> {
if (mainFragment3 == null) {
mainFragment3 = MainFragment()
mainFragment3 = NewsFragment()
}
addOrShowFragment(childFragmentManager, mainFragment3!!, FRAGMENT_TAG_MAIN3)
}
3 -> {
if (mainFragment4 == null) {
mainFragment4 = MainFragment()
mainFragment4 = NewsFragment()
}
addOrShowFragment(childFragmentManager, mainFragment4!!, FRAGMENT_TAG_MAIN4)
}
4 -> {
if (mainFragment5 == null) {
mainFragment4 = MainFragment()
mainFragment4 = NewsFragment()
}
addOrShowFragment(childFragmentManager, mainFragment5!!, FRAGMENT_TAG_MAIN5)
}
......
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
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment