Commit c1da1177 authored by 张释方's avatar 张释方

添加愉悦赚

parent 52049f15
...@@ -367,6 +367,13 @@ dependencies { ...@@ -367,6 +367,13 @@ dependencies {
// } // 普通版本 // } // 普通版本
// compile(name: 'open_ad_sdk', ext: 'aar') // compile(name: 'open_ad_sdk', ext: 'aar')
//愉悦赚
//微信小程序sdk
implementation 'com.tencent.mm.opensdk:wechat-sdk-android-without-mta:+'
implementation(name: 'mduisdk_v3.1.0.15_support_msa_1.0.13', ext: 'aar')
//腾讯x5内核
implementation 'com.tencent.tbs.tbssdk:sdk:43903'
......
{
"version": 1,
"artifactType": {
"type": "APK",
"kind": "Directory"
},
"applicationId": "com.mints.goodmoney",
"variantName": "goodmoneypkgRelease",
"elements": [
{
"type": "SINGLE",
"filters": [],
"properties": [],
"versionCode": 24,
"versionName": "1.2.3",
"enabled": true,
"outputFile": "goodmoneypkg_1.2.3.apk"
}
]
}
\ No newline at end of file
...@@ -781,3 +781,20 @@ ...@@ -781,3 +781,20 @@
-keep class **.R$* { -keep class **.R$* {
<fields>; } <fields>; }
# ======================= 听读 END ================ # ======================= 听读 END ================
# ======================= 愉悦赚 START ================
-dontwarn com.tencent.**
#-- 微信sdk--
-keep class com.tencent.** {
*;
}
-keep class android.support.v4.** { *; }
-keep class android.support.v7.** { *; }
-keep class com.bun.miitmdid.core.** {*;}
-keep class com.mdad.sdk.mduisdk.AsoWebViewActivity {
public <methods>;
}
-keep class com.mdad.sdk.mduisdk.shouguan.** { *; }
# ======================= 愉悦赚 END ================
\ No newline at end of file
...@@ -6,6 +6,7 @@ import com.mints.goodmoney.manager.UserManager ...@@ -6,6 +6,7 @@ import com.mints.goodmoney.manager.UserManager
object Constant { object Constant {
/** /**
* 首次弹出权限声明 * 首次弹出权限声明
*/ */
...@@ -186,7 +187,7 @@ object Constant { ...@@ -186,7 +187,7 @@ object Constant {
// 热门活动类型 // 热门活动类型
//小满 //小满
const val HOT_ACTIVITY_SHEEP = "TO_XMKJ" const val HOT_ACTIVITY_SHEEP = "TO_XMKJ"
const val HOT_ACTIVITY_YYZ="TO_YYZ"
const val HOT_ACTIVITY_WATER = "water" const val HOT_ACTIVITY_WATER = "water"
const val HOT_ACTIVITY_WALK = "walk" const val HOT_ACTIVITY_WALK = "walk"
const val HOT_ACTIVITY_CARD = "card" const val HOT_ACTIVITY_CARD = "card"
......
package com.mints.goodmoney.manager
import android.app.Activity
import android.app.Application
import android.util.Log
import com.mdad.sdk.mduisdk.AdManager
import com.mdad.sdk.mduisdk.CommonCallBack
object YyzManager {
private const val KEY = "37e179d05b23b0a"
private const val APPID = "550"
fun initYyz(appActivity: Application) {
//当用户登陆了且权限具备了后执行初始化操作
//当用户登陆了且权限具备了后执行初始化操作
AdManager.getInstance(appActivity).init(appActivity, APPID, UserManager.getInstance().userID, KEY, object : CommonCallBack<Any?> {
override fun onSuccess(response: String) { //初始化成功
Log.e("hyw", "init onSuccess:$response")
}
override fun onFailure(response: String) { //初始化失败
Log.e("hyw", "init onFailure:$response")
}
})
}
fun openYyzTask(activity: Activity) {
AdManager.getInstance(activity).openYyzTask(activity);
}
}
\ No newline at end of file
...@@ -94,6 +94,7 @@ class MobileLoginActivity : BaseActivity(), LoginView, View.OnClickListener { ...@@ -94,6 +94,7 @@ class MobileLoginActivity : BaseActivity(), LoginView, View.OnClickListener {
try { try {
// 登录成功初始化鱼玩盒子userid // 登录成功初始化鱼玩盒子userid
YwhzManager.init(baseApplication) YwhzManager.init(baseApplication)
YyzManager.initYyz(baseApplication)
} catch (e: Exception) { } catch (e: Exception) {
} }
......
...@@ -118,6 +118,7 @@ class WxLoginActivity : BaseActivity() ...@@ -118,6 +118,7 @@ class WxLoginActivity : BaseActivity()
try { try {
// 登录成功初始化鱼玩盒子userid // 登录成功初始化鱼玩盒子userid
YwhzManager.init(baseApplication) YwhzManager.init(baseApplication)
YyzManager.initYyz(baseApplication)
} catch (e: Exception) { } catch (e: Exception) {
} }
......
...@@ -63,6 +63,8 @@ class MainMyAdapter(context: Context, taskData: MutableList<MyInfo.AutoListBean> ...@@ -63,6 +63,8 @@ class MainMyAdapter(context: Context, taskData: MutableList<MyInfo.AutoListBean>
// 蘑菇星球 // 蘑菇星球
const val TO_MOKU = "TO_MOKU" const val TO_MOKU = "TO_MOKU"
//愉悦赚
const val TO_YYZ="TO_YYZ"
} }
private var mContext: Context = context private var mContext: Context = context
......
...@@ -871,6 +871,14 @@ class MyFragment : BaseFragment(), ...@@ -871,6 +871,14 @@ class MyFragment : BaseFragment(),
MainMyAdapter.TO_MOKU -> { MainMyAdapter.TO_MOKU -> {
gotoMoku() gotoMoku()
} }
MainMyAdapter.TO_YYZ->{
// 愉悦赚事件
if (!userManager.userIsLogin()) {
readyGo(WxLoginActivity::class.java)
return
}
YyzManager.openYyzTask(requireActivity())
}
} }
} }
} }
...@@ -978,6 +986,14 @@ class MyFragment : BaseFragment(), ...@@ -978,6 +986,14 @@ class MyFragment : BaseFragment(),
return return
} }
} }
Constant.HOT_ACTIVITY_YYZ -> {
// 愉悦赚事件
if (!userManager.userIsLogin()) {
readyGo(WxLoginActivity::class.java)
return
}
YyzManager.openYyzTask(requireActivity())
}
Constant.HOT_ACTIVITY_CAICY -> { Constant.HOT_ACTIVITY_CAICY -> {
RxPermissions(requireActivity()) RxPermissions(requireActivity())
.request(Manifest.permission.READ_PHONE_STATE) .request(Manifest.permission.READ_PHONE_STATE)
......
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