正在查看: Aplazo v2.4.68 应用的 StatsigOptions.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: Aplazo v2.4.68 应用的 StatsigOptions.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package com.statsig.androidsdk;
import Bc.b;
import com.pubnub.api.models.TokenBitmask;
import gi.o;
import hi.I;
import java.util.Locale;
import java.util.Map;
import kotlin.jvm.functions.Function1;
import kotlin.jvm.internal.DefaultConstructorMarker;
import kotlin.jvm.internal.l;
import kotlin.jvm.internal.m;
import ui.c;
public final class StatsigOptions {
@b("api")
private String api;
private c customCacheKey;
@b("disableCurrentActivityLogging")
private boolean disableCurrentActivityLogging;
@b("disableDiagnosticsLogging")
private boolean disableDiagnosticsLogging;
@b("disableHashing")
private Boolean disableHashing;
private boolean disableLogEventRetries;
@b("enableAutoValueUpdate")
private boolean enableAutoValueUpdate;
private Map<String, String> environment;
private Function1 evaluationCallback;
@b("eventLoggingAPI")
private String eventLoggingAPI;
@b("initTimeoutMs")
private long initTimeoutMs;
@b("initializeOffline")
private boolean initializeOffline;
@b("initializeValues")
private Map<String, ? extends Object> initializeValues;
@b("loadCacheAsync")
private boolean loadCacheAsync;
@b("overrideStableID")
private String overrideStableID;
@b("userObjectValidator")
private Function1 userObjectValidator;
public static final class AnonymousClass1 extends m implements c {
public static final AnonymousClass1 INSTANCE = new AnonymousClass1();
public AnonymousClass1() {
super(2);
}
public final String invoke(String str, StatsigUser statsigUser) {
l.e(str, "sdkKey");
l.e(statsigUser, "user");
return statsigUser.getCacheKey() + ':' + str;
}
}
public StatsigOptions() {
this(null, null, false, false, 0L, false, null, false, null, false, null, null, null, null, false, 32767, null);
}
public final String getApi() {
return this.api;
}
public final c getCustomCacheKey() {
return this.customCacheKey;
}
public final boolean getDisableCurrentActivityLogging() {
return this.disableCurrentActivityLogging;
}
public final boolean getDisableDiagnosticsLogging() {
return this.disableDiagnosticsLogging;
}
public final Boolean getDisableHashing() {
return this.disableHashing;
}
public final boolean getDisableLogEventRetries() {
return this.disableLogEventRetries;
}
public final boolean getEnableAutoValueUpdate() {
return this.enableAutoValueUpdate;
}
public final Map<String, String> getEnvironment() {
return this.environment;
}
public final Function1 getEvaluationCallback() {
return this.evaluationCallback;
}
public final String getEventLoggingAPI() {
return this.eventLoggingAPI;
}
public final long getInitTimeoutMs() {
return this.initTimeoutMs;
}
public final boolean getInitializeOffline() {
return this.initializeOffline;
}
public final Map<String, Object> getInitializeValues() {
return this.initializeValues;
}
public final boolean getLoadCacheAsync() {
return this.loadCacheAsync;
}
public final String getOverrideStableID() {
return this.overrideStableID;
}
public final Function1 getUserObjectValidator() {
return this.userObjectValidator;
}
public final void setApi(String str) {
l.e(str, "<set-?>");
this.api = str;
}
public final void setCustomCacheKey(c cVar) {
l.e(cVar, "<set-?>");
this.customCacheKey = cVar;
}
public final void setDisableCurrentActivityLogging(boolean z) {
this.disableCurrentActivityLogging = z;
}
public final void setDisableDiagnosticsLogging(boolean z) {
this.disableDiagnosticsLogging = z;
}
public final void setDisableHashing(Boolean bool) {
this.disableHashing = bool;
}
public final void setDisableLogEventRetries(boolean z) {
this.disableLogEventRetries = z;
}
public final void setEnableAutoValueUpdate(boolean z) {
this.enableAutoValueUpdate = z;
}
public final void setEnvironmentParameter(String str, String str2) {
l.e(str, "key");
l.e(str2, "value");
Map<String, String> map = this.environment;
if (map == null) {
this.environment = I.g(new o[]{new o(str, str2)});
} else {
map.put(str, str2);
}
}
public final void setEvaluationCallback(Function1 function1) {
this.evaluationCallback = function1;
}
public final void setEventLoggingAPI(String str) {
l.e(str, "<set-?>");
this.eventLoggingAPI = str;
}
public final void setInitTimeoutMs(long j) {
this.initTimeoutMs = j;
}
public final void setInitializeOffline(boolean z) {
this.initializeOffline = z;
}
public final void setInitializeValues(Map<String, ? extends Object> map) {
this.initializeValues = map;
}
public final void setLoadCacheAsync(boolean z) {
this.loadCacheAsync = z;
}
public final void setOverrideStableID(String str) {
this.overrideStableID = str;
}
public final void setTier(Tier tier) {
l.e(tier, "tier");
String obj = tier.toString();
if (obj == null) {
throw new NullPointerException("null cannot be cast to non-null type java.lang.String");
}
String lowerCase = obj.toLowerCase(Locale.ROOT);
l.d(lowerCase, "(this as java.lang.Strin….toLowerCase(Locale.ROOT)");
setEnvironmentParameter("tier", lowerCase);
}
public final void setUserObjectValidator(Function1 function1) {
this.userObjectValidator = function1;
}
public final Map<String, Object> toMap$build_release() {
return I.f(new o[]{new o("api", this.api), new o("disableCurrentActivityLogging", Boolean.valueOf(this.disableCurrentActivityLogging)), new o("disableDiagnosticsLogging", Boolean.valueOf(this.disableDiagnosticsLogging)), new o("initTimeoutMs", Long.valueOf(this.initTimeoutMs)), new o("enableAutoValueUpdate", Boolean.valueOf(this.enableAutoValueUpdate)), new o("overrideStableID", this.overrideStableID), new o("loadCacheAsync", Boolean.valueOf(this.loadCacheAsync)), new o("initializeValues", this.initializeValues), new o("disableHashing", this.disableHashing), new o("environment", this.environment)});
}
public StatsigOptions(String str, String str2, boolean z, boolean z2, long j, boolean z3, String str3, boolean z4, Map<String, ? extends Object> map, boolean z5, Boolean bool, Function1 function1, Function1 function12, c cVar, boolean z6) {
l.e(str, "api");
l.e(str2, "eventLoggingAPI");
l.e(cVar, "customCacheKey");
this.api = str;
this.eventLoggingAPI = str2;
this.disableCurrentActivityLogging = z;
this.disableDiagnosticsLogging = z2;
this.initTimeoutMs = j;
this.enableAutoValueUpdate = z3;
this.overrideStableID = str3;
this.loadCacheAsync = z4;
this.initializeValues = map;
this.initializeOffline = z5;
this.disableHashing = bool;
this.userObjectValidator = function1;
this.evaluationCallback = function12;
this.customCacheKey = cVar;
this.disableLogEventRetries = z6;
}
public StatsigOptions(String str, String str2, boolean z, boolean z2, long j, boolean z3, String str3, boolean z4, Map map, boolean z5, Boolean bool, Function1 function1, Function1 function12, c cVar, boolean z6, int i, DefaultConstructorMarker defaultConstructorMarker) {
this((i & 1) != 0 ? "https://api.statsig.com/v1" : str, (i & 2) == 0 ? str2 : "https://api.statsig.com/v1", (i & 4) != 0 ? false : z, (i & 8) != 0 ? false : z2, (i & 16) != 0 ? 5000L : j, (i & 32) != 0 ? false : z3, (i & 64) != 0 ? null : str3, (i & TokenBitmask.JOIN) != 0 ? false : z4, (i & 256) != 0 ? null : map, (i & 512) != 0 ? false : z5, (i & 1024) != 0 ? Boolean.FALSE : bool, (i & 2048) != 0 ? null : function1, (i & 4096) == 0 ? function12 : null, (i & 8192) != 0 ? AnonymousClass1.INSTANCE : cVar, (i & 16384) != 0 ? false : z6);
}
}