Commit 4ca626ff authored by jyx's avatar jyx

删除聚乐云SDK

parent 6c51f049
......@@ -242,14 +242,9 @@ dependencies {
implementation 'com.tencent.mm.opensdk:wechat-sdk-android-without-mta:+'
implementation(name: 'xrsdk-release_tbs', ext: 'aar')
// 枫岚
// implementation(name: 'mh-adsdk', ext: 'aar')
// implementation(name: 'mh-adsdk-ext', ext: 'aar')
implementation(name: 'mh-adsdk', ext: 'aar')
implementation(name: 'mh-adsdk-ext', ext: 'aar')
// implementation(name: 'ks_3.3.5.3', ext: 'aar')
// 聚乐云
implementation(name: 'okgo-2.2', ext: 'aar')
implementation(name: 'scenemodule-2.2', ext: 'aar')
implementation(name: 'scenead-2.2', ext: 'aar')
implementation 'com.just.agentweb:agentweb:4.1.2'
// 喜马拉雅 已集成
// 微转阅读(集成h5)
//天卓SDK的珊瑚2.0组件
......
package com.wenshu.youyou.manager
import android.app.Activity
import android.text.TextUtils
import com.fly.scenemodule.SceneUtil
import com.fly.scenemodule.model.GDTInfo
import com.fly.scenemodule.model.TTInfo
import com.wenshu.youyou.MintsApplication
import com.wenshu.youyou.common.AppConfig
/**
* 描述:聚乐云SDK
*/
object SceneManager {
const val SCENE_CHANNEL_Id = ""
/**
* 初始化
*/
fun initScene() {
val userId = UserManager.getInstance().userID
// 初始化聚乐云
SceneUtil.initSdk(SCENE_CHANNEL_Id, userId, MintsApplication.OAID)
//穿山甲-------
val ttInfo = TTInfo()
ttInfo.csJ_Appid = TtCsjAdManager.TT_AD_APPID
ttInfo.csJ_VideoId = TtCsjAdManager.TT_AD_VEDIO_JULEYUN
ttInfo.csJ_BannerId = TtCsjAdManager.TT_AD_BANNER_JULEYUN
ttInfo.csJ_InteractionId = TtCsjAdManager.TT_AD_INSERT_LOADING_ID_JULEYUN
SceneUtil.initCSJConfig(ttInfo)
//广点通-------
val gdtInfo = GDTInfo()
gdtInfo.gdT_Appid = YlhAdManager.YLH_AD_APPID
// gdtInfo.gdT_VideoId = YlhAdManager.YLH_AD_VEDIO_JULEYUN_POSTID
gdtInfo.gdT_ExpressId = YlhAdManager.YLH_AD_NATIVEEXPRESS_JULEYUN
gdtInfo.GDT_InteractionId = YlhAdManager.YLH_AD_INTERSTITIALAD_JULEYUN
SceneUtil.initGDTConfig(gdtInfo)
}
/**
* 账号同步
*/
fun signIn(activity: Activity) {
if (!TextUtils.isEmpty(UserManager.getInstance().userID)) {
SceneUtil.signIn(activity, SCENE_CHANNEL_Id, UserManager.getInstance().userID, MintsApplication.OAID)
AppConfig.scene_flag = true
}
}
}
\ No newline at end of file
......@@ -7,7 +7,6 @@ import androidx.core.content.ContextCompat
import com.wenshu.youyou.R
import com.wenshu.youyou.common.Constant
import com.wenshu.youyou.manager.RsNewsManager
import com.wenshu.youyou.manager.SceneManager
import com.wenshu.youyou.mvp.model.AccountMsgBean
import com.wenshu.youyou.mvp.presenters.AccountMergePresenter
import com.wenshu.youyou.mvp.views.AccountMergeView
......@@ -145,7 +144,6 @@ class AccountMergeActivity : BaseActivity(), View.OnClickListener, AccountMergeV
override fun toKeepAccountSuc() {
showToast("账号合并成功!")
SceneManager.signIn(this)
RsNewsManager.init(baseApplication)
......
......@@ -99,7 +99,6 @@ class MobileLoginActivity : BaseActivity(), LoginView, View.OnClickListener {
// 每日任务是否刷新任务数
TrackManager.getInstance().innerApp()
SceneManager.signIn(this)
RsNewsManager.init(baseApplication)
// false-登录 true-绑定手机号
......
......@@ -15,7 +15,6 @@ import com.wenshu.youyou.common.Constant
import com.wenshu.youyou.login.LoginApi
import com.wenshu.youyou.login.OnLoginListener
import com.wenshu.youyou.manager.RsNewsManager
import com.wenshu.youyou.manager.SceneManager
import com.wenshu.youyou.manager.TrackManager
import com.wenshu.youyou.manager.YwhzManager
import com.wenshu.youyou.mvp.model.WXInfo
......@@ -30,7 +29,6 @@ import com.tbruyelle.rxpermissions.RxPermissions
import kotlinx.android.synthetic.main.activity_wx_login.*
import java.util.*
/**
* 描述:微信登录
* 作者:孟崔广
......@@ -125,7 +123,6 @@ class WxLoginActivity : BaseActivity()
// 每日任务是否刷新任务数
TrackManager.getInstance().innerApp()
SceneManager.signIn(this)
RsNewsManager.init(baseApplication)
showToast("登录成功")
......
......@@ -14,13 +14,11 @@ import androidx.core.content.ContextCompat
import androidx.recyclerview.widget.DividerItemDecoration
import androidx.viewpager.widget.ViewPager
import com.component.dly.xzzq_ywsdk.YwSDK_WebActivity.Companion.open
import com.fly.scenemodule.SceneUtil
import com.wenshu.youyou.BuildConfig
import com.wenshu.youyou.R
import com.wenshu.youyou.ad.banner.BannerManager
import com.wenshu.youyou.ad.express.PreLoadExpressManager
import com.wenshu.youyou.ad.express.TTPreLoadCarrierExpressManager
import com.wenshu.youyou.ad.express.TTPreLoadExpressXmlyManager
import com.wenshu.youyou.ad.video.VideoAdingManager
import com.wenshu.youyou.common.AppConfig
import com.wenshu.youyou.common.Constant
......@@ -294,7 +292,7 @@ class MyFragment : BaseFragment(),
}
override fun userLoginSuc() {
SceneManager.signIn(requireActivity())
// SceneManager.signIn(requireActivity())
RsNewsManager.init(baseApplication)
myPresenter.getAutoUserHallBaseMsg()
......@@ -904,9 +902,6 @@ class MyFragment : BaseFragment(),
Constant.HOT_ACTIVITY_CARD -> {
readyGo(EraseActivity::class.java)
}
Constant.HOT_ACTIVITY_LIEBAO -> {
readyGo(LiebaoGameActivity::class.java)
}
Constant.HOT_ACTIVITY_MORNINGCLOCK -> {
TTPreLoadCarrierExpressManager.getInstance().loadTtFrameLayout(TtCsjAdManager.TT_AD_NATIVEEXPRESS_MORNINGCLOCK)
readyGo(MorningClockActivity::class.java)
......@@ -923,12 +918,12 @@ class MyFragment : BaseFragment(),
.request(Manifest.permission.READ_PHONE_STATE)
.subscribe { granted: Boolean ->
if (granted) {
if (AppConfig.scene_flag) {
// 猜成语
SceneUtil.cCy(requireActivity())
} else {
SceneManager.signIn(requireActivity())
}
// if (AppConfig.scene_flag) {
// // 猜成语
// SceneUtil.cCy(requireActivity())
// } else {
// SceneManager.signIn(requireActivity())
// }
} else {
showMissingPermissionDialog("设备")
}
......@@ -939,12 +934,12 @@ class MyFragment : BaseFragment(),
.request(Manifest.permission.READ_PHONE_STATE)
.subscribe { granted: Boolean ->
if (granted) {
if (AppConfig.scene_flag) {
// 答题
SceneUtil.daTi(requireActivity())
} else {
SceneManager.signIn(requireActivity())
}
// if (AppConfig.scene_flag) {
// // 答题
// SceneUtil.daTi(requireActivity())
// } else {
// SceneManager.signIn(requireActivity())
// }
} else {
showMissingPermissionDialog("设备")
}
......@@ -955,12 +950,12 @@ class MyFragment : BaseFragment(),
.request(Manifest.permission.READ_PHONE_STATE)
.subscribe { granted: Boolean ->
if (granted) {
if (AppConfig.scene_flag) {
// 刮刮乐
SceneUtil.scrapPage(requireActivity())
} else {
SceneManager.signIn(requireActivity())
}
// if (AppConfig.scene_flag) {
// // 刮刮乐
// SceneUtil.scrapPage(requireActivity())
// } else {
// SceneManager.signIn(requireActivity())
// }
} else {
showMissingPermissionDialog("设备")
}
......
......@@ -11,7 +11,7 @@ import android.content.pm.PackageInfo
import android.content.pm.PackageManager
import android.os.Build
import android.provider.Settings
import com.fly.scenemodule.util.StringUtilMy
import android.text.TextUtils
import com.wenshu.youyou.MintsApplication
......@@ -127,7 +127,7 @@ object AppUtil {
}
fun getTimePkgUsed(paramContext: Context, paramString: String): Int {
if (StringUtilMy.stringAvalable(paramString) && checkPackInfo(paramContext, paramString) && Build.VERSION.SDK_INT >= 21) {
if (!TextUtils.isEmpty(paramString) && checkPackInfo(paramContext, paramString) && Build.VERSION.SDK_INT >= 21) {
val usageStatsManager = paramContext.getSystemService("usagestats") as UsageStatsManager
var l = System.currentTimeMillis()
val list = usageStatsManager.queryUsageStats(UsageStatsManager.INTERVAL_BEST, l - 5 * 60 * 1000L, l)
......
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