Commit 4a5242fb authored by wanglei's avatar wanglei

...

parent 20ecd512
......@@ -23,15 +23,15 @@ object InstallHelps {
fun init() {
//InstallReferrer not empty
if (!TextUtils.isEmpty(AppPreferences.getInstance().getString("install_source", ""))) {
if (AdmobMaxHelper.haveSpAdmobTrueMaxFalse()) {
AdmobMaxHelper.initAdmobMaxAd()
requestCfg(false)
} else {
requestCfg(true)
}
return
}
// if (!TextUtils.isEmpty(AppPreferences.getInstance().getString("install_source", ""))) {
// if (AdmobMaxHelper.haveSpAdmobTrueMaxFalse()) {
// AdmobMaxHelper.initAdmobMaxAd()
// requestCfg(false)
// } else {
// requestCfg(true)
// }
// return
// }
val referrerClient = InstallReferrerClient.newBuilder(BaseApplication.context).build()
......@@ -52,9 +52,9 @@ object InstallHelps {
AppPreferences.getInstance().put("referrer", response.installReferrer)
if (listOf("gclid", "facebook", "instagram").all { !installInfo.contains(it, true) }) {
//自然用户
if(BuildConfig.DEBUG){
if (BuildConfig.DEBUG) {
AppPreferences.getInstance().put("install_source", "channel")
}else{
} else {
AppPreferences.getInstance().put("install_source", "origin")
}
} else {
......
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