Proxy Master v3.4.9版本的 MD5 值为:14d0aa2468d13530c8f6e96bcc114bf5
以下内容为反编译后的 SDKConfig.java 源代码,内容仅作参考
package com.tenjin.android.config;
import com.android.billingclient.api.BillingClient;
import com.tenjin.android.utils.TenjinUtils;
import java.util.HashMap;
public class SDKConfig {
private static final Boolean ILRD_ENABLED = Boolean.TRUE;
private static final Boolean SUBSCRIPTION_ENABLED = Boolean.FALSE;
private final HashMap<String, Object> _store = new HashMap<>();
public SDKConfig() {
loadDefaults();
loadOverrides();
}
private void loadDefaults() {
HashMap<String, Object> hashMap = this._store;
String str = SDKConfigKeys.TenjinConfigKeyILRDEnabled;
Boolean bool = Boolean.FALSE;
hashMap.put(str, bool);
this._store.put(SDKConfigKeys.TenjinConfigKeySubscriptionEnabled, bool);
this._store.put(SDKConfigKeys.TenjinConfigKeySubscriptionHost, "https://subscription-server.staging.tenjin.com");
this._store.put(SDKConfigKeys.TenjinConfigKeySubscriptionEndpoint, BillingClient.FeatureType.SUBSCRIPTIONS);
this._store.put(SDKConfigKeys.TenjinConfigKeyBaseHost, "https://track.tenjin.com");
}
private void loadOverrides() {
Boolean bool = ILRD_ENABLED;
if (bool.booleanValue() || !TenjinUtils.isNullOrEmpty(System.getenv(SDKConfigKeys.TenjinConfigKeyILRDEnabled)).booleanValue()) {
this._store.put(SDKConfigKeys.TenjinConfigKeyILRDEnabled, bool);
}
Boolean bool2 = SUBSCRIPTION_ENABLED;
if (bool2.booleanValue() || !TenjinUtils.isNullOrEmpty(System.getenv(SDKConfigKeys.TenjinConfigKeySubscriptionEnabled)).booleanValue()) {
this._store.put(SDKConfigKeys.TenjinConfigKeySubscriptionEnabled, bool2);
}
}
public Boolean boolForKey(String str) {
Object obj = this._store.get(str);
if (obj instanceof Boolean) {
return (Boolean) obj;
}
return null;
}
public void set(String str, Object obj) {
this._store.put(str, obj);
obj.toString();
}
public String stringForKey(String str) {
Object obj = this._store.get(str);
if (obj instanceof String) {
return (String) obj;
}
return null;
}
}