Perfume Of Love v2.14.9版本的 MD5 值为:16011aefc5a55805771706ce3b259b4e
以下内容为反编译后的 GenericRemoteConfigResourceCache.java 源代码,内容仅作参考
package com.smaato.sdk.core.remoteconfig;
import android.content.SharedPreferences;
import com.smaato.sdk.core.dns.DnsResolver;
import com.smaato.sdk.core.dnsbasedresource.DnsBasedResourceCache;
import com.smaato.sdk.core.flow.Schedulers;
import com.smaato.sdk.core.log.Logger;
import com.smaato.sdk.core.simplehttp.SimpleHttpClient;
import com.smaato.sdk.core_light.BuildConfig;
public class GenericRemoteConfigResourceCache extends DnsBasedResourceCache {
private final GenericRemoteConfig configAtStartOfSdk;
@Override
protected String getDomainForDnsQuery() {
return "smaato_sdk_remote_config\\.json.sdk-files.smaato.net";
}
@Override
protected String getInitialResource() {
return "";
}
@Override
protected String getResourceUrl() {
return "https://sdk-files.smaato.net/smaato_sdk_remote_config.json";
}
public GenericRemoteConfigResourceCache(SharedPreferences sharedPreferences, Schedulers schedulers, DnsResolver dnsResolver, Logger logger, SimpleHttpClient simpleHttpClient) {
super(sharedPreferences, schedulers, dnsResolver, "remote_config_url_template", simpleHttpClient, logger);
this.configAtStartOfSdk = new GenericRemoteConfig(super.getBlocking());
if (getLocalVersionNumber().isEmpty()) {
saveLocalVersionNumber(BuildConfig.SDK_REMOTE_CONFIG_VERSION);
}
start();
}
public GenericRemoteConfig getConfig() {
return this.configAtStartOfSdk;
}
}