Kufar v3.2.0版本的 MD5 值为:6a4d203db1c561c7e3bcd50d23fed59f
以下内容为反编译后的 b.java 源代码,内容仅作参考
package com.applovin.impl.mediation.debugger.c;
import android.text.TextUtils;
import androidx.browser.trusted.sharing.ShareTarget;
import com.applovin.impl.mediation.debugger.a;
import com.applovin.impl.sdk.e.u;
import com.applovin.impl.sdk.network.c;
import com.applovin.impl.sdk.p;
import com.applovin.impl.sdk.y;
import com.mbridge.msdk.foundation.entity.CampaignEx;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
public class b extends com.applovin.impl.sdk.e.a {
private final a f30662a;
public interface a {
void a(a.b bVar);
void a(String str);
}
public b(p pVar, a aVar) {
super("TaskFetchDeveloperUri", pVar);
this.f30662a = aVar;
}
@Override
public void run() {
String valueOf;
if (this.f31732f.S() != null) {
valueOf = String.valueOf(this.f31732f.Q().B().d());
} else {
valueOf = String.valueOf(this.f31732f.R().h().get(CampaignEx.JSON_KEY_PACKAGE_NAME));
}
if (y.a()) {
this.f31734h.b(this.f31733g, "Looking up developer URI for package name: " + valueOf);
}
this.f31732f.M().a((com.applovin.impl.sdk.e.a) new u<String>(com.applovin.impl.sdk.network.c.a(this.f31732f).b(ShareTarget.METHOD_GET).a("https://play.google.com/store/apps/details?id=" + valueOf).a((c.a) "").c(false).a(), this.f31732f) {
@Override
public void a(String str, int i11) {
if (TextUtils.isEmpty(str)) {
if (y.a()) {
this.f31734h.e(this.f31733g, "No developer URI found - response is empty");
}
b.this.f30662a.a(a.b.DEVELOPER_URI_NOT_FOUND);
}
Matcher matcher = Pattern.compile("(?<=\"appstore:developer_url\" content=\").+?(?=\">)").matcher(str);
if (matcher.find()) {
String group = matcher.group();
if (y.a()) {
this.f31734h.b(this.f31733g, "Found developer URI: " + group);
}
b.this.f30662a.a(group);
return;
}
if (y.a()) {
this.f31734h.e(this.f31733g, "Unable to find developer URI from the Play Store listing metadata");
}
b.this.f30662a.a(a.b.DEVELOPER_URI_NOT_FOUND);
}
@Override
public void a(int i11, String str, String str2) {
if (y.a()) {
this.f31734h.e(this.f31733g, "Unable to fetch developer URI due to: " + str + ", and received error code: " + i11);
}
b.this.f30662a.a(a.b.DEVELOPER_URI_NOT_FOUND);
}
});
}
}