Commit c6d4c32d authored by mengcuiguang2's avatar mengcuiguang2

代码优化

parent 538254fa
......@@ -12,8 +12,8 @@ android {
applicationId "com.mints.helivideo"
minSdkVersion rootProject.ext.androidMinSdkVersion
targetSdkVersion rootProject.ext.androidTargetSdkVersion
versionCode 12
versionName "1.1.1"
versionCode 13
versionName "1.1.2"
flavorDimensions "default"
// dex突破65535的限制
......
......@@ -107,57 +107,49 @@ public class TTAdManagerHolder {
return new TTCustomController() {
@Override
public boolean isCanUseWifiState() {
if (AppPreferencesManager.INSTANCE.get()
.getBoolean(Constant.LOAN_PERMISSION_FLAG, true)) return false;
public boolean isCanUsePhoneState() {
return false;
}
return super.isCanUseWifiState();
@Override
public boolean isCanUseWifiState() {
return false;
}
@Override
public String getMacAddress() {
if (AppPreferencesManager.INSTANCE.get()
.getBoolean(Constant.LOAN_PERMISSION_FLAG, true)) return "";
return super.getMacAddress();
return "";
}
@Override
public boolean isCanUseWriteExternal() {
if (AppPreferencesManager.INSTANCE.get()
.getBoolean(Constant.LOAN_PERMISSION_FLAG, true)) return false;
return super.isCanUseWriteExternal();
return false;
}
@Override
public String getDevOaid() {
if (AppPreferencesManager.INSTANCE.get()
.getBoolean(Constant.LOAN_PERMISSION_FLAG, true)) return "";
return super.getDevOaid();
return "";
}
@Override
public boolean isCanUseAndroidId() {
if (AppPreferencesManager.INSTANCE.get()
.getBoolean(Constant.LOAN_PERMISSION_FLAG, true)) return false;
return super.isCanUseAndroidId();
return false;
}
@Override
public String getAndroidId() {
if (AppPreferencesManager.INSTANCE.get()
.getBoolean(Constant.LOAN_PERMISSION_FLAG, true)) return "";
return super.getAndroidId();
return "";
}
@Override
public MediationPrivacyConfig getMediationPrivacyConfig() {
return new MediationPrivacyConfig() {
@Override
public boolean isCanUseOaid() {
return false;
}
@Override
public boolean isLimitPersonalAds() {
if (AppPreferencesManager.INSTANCE.get()
......
......@@ -186,7 +186,7 @@ public interface LoanService {
*
* @return
*/
@POST("api/vedio/topTabs")
@POST("api/vedio/topTabs/v0821")
Observable<BaseResponse<BannerList>> topTabs();
/**
......
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