- 28,932 files - Full Java source code - Smali files - Resources Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
56 lines
2.2 KiB
Java
56 lines
2.2 KiB
Java
package com.applovin.impl.sdk;
|
|
|
|
import androidx.annotation.NonNull;
|
|
import androidx.annotation.Nullable;
|
|
import com.applovin.impl.sdk.utils.StringUtils;
|
|
import com.applovin.impl.sj;
|
|
import com.applovin.sdk.AppLovinSdkConfiguration;
|
|
import java.util.List;
|
|
|
|
/* loaded from: classes2.dex */
|
|
public class SdkConfigurationImpl implements AppLovinSdkConfiguration {
|
|
private final List a;
|
|
private final j b;
|
|
|
|
public SdkConfigurationImpl(@Nullable List<String> list, j jVar) {
|
|
this.a = list;
|
|
this.b = jVar;
|
|
}
|
|
|
|
@Override // com.applovin.sdk.AppLovinSdkConfiguration
|
|
public AppLovinSdkConfiguration.ConsentDialogState getConsentDialogState() {
|
|
String str = this.b.g0().getExtraParameters().get("consent_dialog_state");
|
|
if (!StringUtils.isValidString(str)) {
|
|
str = (String) this.b.a(sj.y6);
|
|
}
|
|
return "applies".equalsIgnoreCase(str) ? AppLovinSdkConfiguration.ConsentDialogState.APPLIES : "does_not_apply".equalsIgnoreCase(str) ? AppLovinSdkConfiguration.ConsentDialogState.DOES_NOT_APPLY : AppLovinSdkConfiguration.ConsentDialogState.UNKNOWN;
|
|
}
|
|
|
|
@Override // com.applovin.sdk.AppLovinSdkConfiguration
|
|
public AppLovinSdkConfiguration.ConsentFlowUserGeography getConsentFlowUserGeography() {
|
|
String str = (String) this.b.a(sj.y6);
|
|
return "applies".equalsIgnoreCase(str) ? AppLovinSdkConfiguration.ConsentFlowUserGeography.GDPR : "does_not_apply".equalsIgnoreCase(str) ? AppLovinSdkConfiguration.ConsentFlowUserGeography.OTHER : AppLovinSdkConfiguration.ConsentFlowUserGeography.UNKNOWN;
|
|
}
|
|
|
|
@Override // com.applovin.sdk.AppLovinSdkConfiguration
|
|
public String getCountryCode() {
|
|
return (String) this.b.a(sj.z6);
|
|
}
|
|
|
|
@Override // com.applovin.sdk.AppLovinSdkConfiguration
|
|
@Nullable
|
|
public List<String> getEnabledAmazonAdUnitIds() {
|
|
return this.a;
|
|
}
|
|
|
|
@Override // com.applovin.sdk.AppLovinSdkConfiguration
|
|
public boolean isTestModeEnabled() {
|
|
return this.b.l0().c();
|
|
}
|
|
|
|
@NonNull
|
|
public String toString() {
|
|
return "AppLovinSdkConfiguration{, countryCode=" + getCountryCode() + ", enabledAmazonAdUnitIds=" + getEnabledAmazonAdUnitIds() + ", testModeEnabled=" + isTestModeEnabled() + '}';
|
|
}
|
|
}
|