Commit f6ccde5a authored by mengcuiguang's avatar mengcuiguang

代码优化

parent 06c876ac
Pipeline #207 canceled with stages
......@@ -208,21 +208,6 @@ dependencies {
implementation(name: 'umeng-asms-armeabi-v1.2.2', ext: 'aar')
implementation(name: 'umeng-apm-armeabi-v1.2.0', ext: 'aar')
// TalkingDada(已集成)
// 一览视频
implementation("com.yilan.sdk:ui:3.3.1.8") {
exclude group: 'com.yilan.sdk', module: 'yb_extra'
exclude group: 'com.yilan.sdk', module: 'gdt'
exclude group: 'com.yilan.sdk', module: 'ks'
}
implementation('com.aliyun.ams:alicloud-android-httpdns:1.2.3@aar') {
transitive true
}
implementation 'tv.danmaku.ijk.media:ijkplayer-java:0.8.8'
implementation 'tv.danmaku.ijk.media:ijkplayer-armv7a:0.8.8'
implementation 'tv.danmaku.ijk.media:ijkplayer-armv5:0.8.8'
implementation 'tv.danmaku.ijk.media:ijkplayer-arm64:0.8.8'
implementation 'tv.danmaku.ijk.media:ijkplayer-x86:0.8.8'
implementation 'tv.danmaku.ijk.media:ijkplayer-x86_64:0.8.8'
// 数美
implementation files('libs/smantifraud.aar')
// 猎豹游戏
......@@ -236,18 +221,9 @@ dependencies {
implementation "org.greenrobot:eventbus:3.1.0-RC"
// 闪电盒子
implementation(name: 'wannuosili_ad_2.2.0', ext: 'aar')
// 瑞狮新闻
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: '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组件
......
......@@ -21,7 +21,6 @@ import com.mints.goodnews.manager.RsNewsManager;
import com.mints.goodnews.manager.TtCsjAdManager;
import com.mints.goodnews.manager.TzManager;
import com.mints.goodnews.manager.WnManager;
import com.mints.goodnews.manager.YlVideoManager;
import com.mints.goodnews.manager.YlhAdManager;
import com.mints.goodnews.net.LoanService;
import com.mints.goodnews.utils.ForegroundOrBackground;
......@@ -139,8 +138,6 @@ public class MintsApplication extends MultiDexApplication {
// 天卓珊瑚
TzManager.INSTANCE.initTz(this);
// 一览视频
YlVideoManager.INSTANCE.init(this);
// 猎豹游戏初始化
LiebaoManager.getInstance().initCmGameSdk();
......
package com.mints.goodnews.manager
import android.app.Application
import com.yilan.sdk.ui.YLUIInit
import com.yilan.sdk.ui.configs.CommentConfig
import com.yilan.sdk.ui.configs.FeedConfig
import com.yilan.sdk.ui.configs.YLUIConfig
/**
* 描述:一览视频(好兔)
* 作者:孟崔广
*/
object YlVideoManager {
private const val ACCESSKEY = "yl9u9jlth8wg"
private const val ACCESSTOKEN = "whgsojm7b9t4tpkr5hhd261byllsb6ea"
fun init(application: Application) {
YLUIInit.getInstance()
.setCrashOpen(false)
.setApplication(application)
.setAccessKey(ACCESSKEY)
.setAccessToken(ACCESSTOKEN)
.build()
//页面个性化配置
YLUIConfig.getInstance() //抖音样式小视频配置
.littleLikeShow(true) //是否显示点赞
.littleShareShow(false) //是否显示分享
.littleShowGuide(true) //是否显示新手引导滑动浮层(第一次安装进入显示)
.littleComment(CommentConfig.CommentType.DISMISS_COMMENT) //评论,参数详见文档;
//feed流短视频样式配置
.videoComment(CommentConfig.CommentType.DISMISS_COMMENT) //评论,参数详见文档;
.videoLikeShow(false) //是否显示点赞
.videoShareShow(false) //是否显示分享
.followAvailable(false) //关注功能是否可用
.feedAvatarClickable(true) //头像是否支持点击跳转到作者页面
.feedPlayAuto(true) //feed自动播放
.feedSwipeRefreshEnable(true) //feed是否可以下拉刷新
FeedConfig.getInstance().playerStyle = FeedConfig.STYLE_FEED_PLAY //FeedConfig.STYLE_FEED_PLAY当前页面播放
}
}
\ No newline at end of file
......@@ -564,7 +564,7 @@ class FriendsFragment(private var isResume: Boolean = false) : BaseFragment(), F
allcoinBig.divide(rateBig).setScale(2, BigDecimal.ROUND_DOWN).toString()
}
val content = SpanUtils()
.append("我已在尤友赚了")
.append("我已在喜闻赚了")
.append(sumCoin).setFontSize(BubbleUtils.dp2px(10))
.setForegroundColor(
ContextCompat.getColor(mContext, R.color.color_E72C2B)
......
......@@ -6,13 +6,6 @@ buildscript {
jcenter()
maven { url "https://jitpack.io" }
//添加一览视频 maven地址
maven {
url 'http://nexus.1lan.tv/repository/maven-releases/'
}
maven {
url 'http://maven.aliyun.com/nexus/content/repositories/releases/'
}
}
dependencies {
classpath 'com.android.tools.build:gradle:4.0.1'
......@@ -26,13 +19,6 @@ allprojects {
jcenter()
maven { url "https://jitpack.io" }
//添加一览 maven地址
maven {
url 'http://nexus.1lan.tv/repository/maven-releases/'
}
maven {
url 'http://maven.aliyun.com/nexus/content/repositories/releases/'
}
}
}
......
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