ZStore v1.7版本的 MD5 值为:ca9bb200afd8d690876bd39318f8215c
以下内容为反编译后的 b.java 源代码,内容仅作参考
package com.applovin.impl.mediation.debugger.c;
import android.text.TextUtils;
import com.applovin.impl.mediation.debugger.a;
import com.applovin.impl.sdk.e.d;
import com.applovin.impl.sdk.network.c;
import com.applovin.impl.sdk.o;
import com.applovin.impl.sdk.x;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
public class b extends d {
private final a a;
public interface a {
void a(a.b bVar);
void a(String str);
}
public b(o oVar, a aVar) {
super("TaskFetchDeveloperUri", oVar);
this.a = aVar;
}
@Override
public void run() {
String valueOf;
if (this.f.T() != null) {
valueOf = String.valueOf(this.f.R().B().d());
} else {
valueOf = String.valueOf(this.f.S().h().get("package_name"));
}
x xVar = this.h;
if (x.a()) {
this.h.b(this.g, "Looking up developer URI for package name: " + valueOf);
}
this.f.N().a((d) new com.applovin.impl.sdk.e.x<String>(com.applovin.impl.sdk.network.c.a(this.f).b("GET").a("https://play.google.com/store/apps/details?id=" + valueOf).a((c.a) "").c(false).a(), this.f) {
@Override
public void a(String str, int i) {
if (TextUtils.isEmpty(str)) {
x xVar2 = this.h;
if (x.a()) {
this.h.e(this.g, "No developer URI found - response is empty");
}
b.this.a.a(a.b.DEVELOPER_URI_NOT_FOUND);
}
Matcher matcher = Pattern.compile("(?<=\"appstore:developer_url\" content=\").+?(?=\">)").matcher(str);
if (matcher.find()) {
String group = matcher.group();
x xVar3 = this.h;
if (x.a()) {
this.h.b(this.g, "Found developer URI: " + group);
}
b.this.a.a(group);
return;
}
x xVar4 = this.h;
if (x.a()) {
this.h.e(this.g, "Unable to find developer URI from the Play Store listing metadata");
}
b.this.a.a(a.b.DEVELOPER_URI_NOT_FOUND);
}
@Override
public void a(int i, String str, String str2) {
x xVar2 = this.h;
if (x.a()) {
this.h.e(this.g, "Unable to fetch developer URI due to: " + str + ", and received error code: " + i);
}
b.this.a.a(a.b.DEVELOPER_URI_NOT_FOUND);
}
});
}
}