Perfume Of Love v2.14.9版本的 MD5 值为:16011aefc5a55805771706ce3b259b4e
以下内容为反编译后的 OutstreamAdTemplateResourceCache.java 源代码,内容仅作参考
package com.smaato.sdk.richmedia.util;
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.rawresourceloader.RawResourceLoader;
import com.smaato.sdk.core.simplehttp.SimpleHttpClient;
import com.smaato.sdk.richmedia_light.R;
public class OutstreamAdTemplateResourceCache extends DnsBasedResourceCache {
private final RawResourceLoader rawResourceLoader;
@Override
protected String getDomainForDnsQuery() {
return "smaato_outstream_ad_template\\.txt.sdk-files.smaato.net";
}
@Override
protected String getResourceUrl() {
return "https://sdk-files.smaato.net/smaato_outstream_ad_template.txt";
}
public OutstreamAdTemplateResourceCache(SharedPreferences sharedPreferences, Schedulers schedulers, DnsResolver dnsResolver, RawResourceLoader rawResourceLoader, SimpleHttpClient simpleHttpClient, Logger logger) {
super(sharedPreferences, schedulers, dnsResolver, "outstream_ad_template", simpleHttpClient, logger);
this.rawResourceLoader = rawResourceLoader;
start();
}
@Override
protected String getInitialResource() {
return this.rawResourceLoader.readRawTextFile(R.raw.html_player_vast);
}
}