Idle Tower v2.48版本的 MD5 值为:56f20496f6a85726b376356ed2ecee23

以下内容为反编译后的 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.d;
import com.applovin.impl.sdk.network.c;
import com.applovin.impl.sdk.o;
import com.applovin.impl.sdk.x;
import com.mbridge.msdk.foundation.entity.CampaignEx;
import java.util.regex.Matcher;
import java.util.regex.Pattern;

public class b extends d {

    private final a f1221a;

    public interface a {
        void a(a.b bVar);

        void a(String str);
    }

    public b(o oVar, a aVar) {
        super("TaskFetchDeveloperUri", oVar);
        this.f1221a = 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(CampaignEx.JSON_KEY_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(ShareTarget.METHOD_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.f1221a.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.f1221a.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.f1221a.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.f1221a.a(a.b.DEVELOPER_URI_NOT_FOUND);
            }
        });
    }
}