Commit 4894fee6 authored by mengcuiguang's avatar mengcuiguang

更新新闻sdk

parent b8a88eca
...@@ -246,6 +246,7 @@ dependencies { ...@@ -246,6 +246,7 @@ dependencies {
implementation 'com.tencent.mm.opensdk:wechat-sdk-android-without-mta:+' implementation 'com.tencent.mm.opensdk:wechat-sdk-android-without-mta:+'
implementation(name: 'xrsdk-release_tbs', ext: 'aar') implementation(name: 'xrsdk-release_tbs', ext: 'aar')
implementation(name: 'xrsharesdk-release_tbs', ext: 'aar') implementation(name: 'xrsharesdk-release_tbs', ext: 'aar')
implementation(name: 'windAd-2.25.0', ext: 'aar')
implementation 'com.scwang.smart:refresh-layout-kernel:2.0.3' implementation 'com.scwang.smart:refresh-layout-kernel:2.0.3'
implementation 'com.scwang.smart:refresh-header-classics:2.0.3' implementation 'com.scwang.smart:refresh-header-classics:2.0.3'
implementation 'com.scwang.smart:refresh-footer-classics:2.0.3' implementation 'com.scwang.smart:refresh-footer-classics:2.0.3'
......
...@@ -398,6 +398,22 @@ ...@@ -398,6 +398,22 @@
</provider> </provider>
<!-- sigmob -->
<activity
android:name="com.sigmob.sdk.base.common.AdActivity"
android:configChanges="keyboardHidden|orientation|screenSize"
android:theme="@android:style/Theme.DeviceDefault" />
<provider
android:name="com.sigmob.sdk.SigmobFileProvider"
android:authorities="${applicationId}.sigprovider"
android:exported="false"
android:grantUriPermissions="true">
<meta-data
android:name="android.support.FILE_PROVIDER_PATHS"
android:resource="@xml/sigmob_provider_paths" />
</provider>
<!-- 来电秀 --> <!-- 来电秀 -->
<service <service
android:name=".call.service.PhoneListenService" android:name=".call.service.PhoneListenService"
......
...@@ -11,12 +11,14 @@ import com.xr.xrsdk.XRNewsManager ...@@ -11,12 +11,14 @@ import com.xr.xrsdk.XRNewsManager
object RsNewsManager { object RsNewsManager {
private const val APP_ID = "19e575538d2947ad9323e6c2a70d9a7f" private const val APP_ID = "19e575538d2947ad9323e6c2a70d9a7f"
// private const val APP_ID = "wx99a2f75faabecd8c"
private const val WX_APP_ID = "wxc8ac2985f6a805e2" private const val WX_APP_ID = "wxc8ac2985f6a805e2"
/** /**
* 初始化 * 初始化
*/ */
fun init(application: Application) { fun init(application: Application) {
QbSdk.initX5Environment(application, null)
XRNewsManager.getInstance().init(application, APP_ID,WX_APP_ID) XRNewsManager.getInstance().init(application, APP_ID,WX_APP_ID)
} }
} }
...@@ -49,7 +49,6 @@ class WrapperActivity : BaseActivity(), View.OnClickListener { ...@@ -49,7 +49,6 @@ class WrapperActivity : BaseActivity(), View.OnClickListener {
var currentFragment: Fragment? var currentFragment: Fragment?
when (wrapperType) { when (wrapperType) {
Constant.WRAPPER_TYPE_NEWS -> { Constant.WRAPPER_TYPE_NEWS -> {
layoutWrapper.visibility = View.GONE
tv_title.text = "新闻" tv_title.text = "新闻"
currentFragment = RsNewsFragment() currentFragment = RsNewsFragment()
} }
......
...@@ -48,6 +48,6 @@ class RsNewsFragment : LazyLoadBaseFragment(), RsNewsView, FinishReadNewsCallBac ...@@ -48,6 +48,6 @@ class RsNewsFragment : LazyLoadBaseFragment(), RsNewsView, FinishReadNewsCallBac
override fun finishRead(id: String, seconds: Int) { override fun finishRead(id: String, seconds: Int) {
LogUtil.d("RsNewsFragment","id:${id}") LogUtil.d("RsNewsFragment","id:${id}")
rsNewsPresenter.addNewsSeconds(seconds) // rsNewsPresenter.addNewsSeconds(seconds)
} }
} }
\ 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