GoooBet v1.0版本的 MD5 值为:ff9748f16167bfd7735b669c0a9931c5

以下内容为反编译后的 c0.java 源代码,内容仅作参考


package com.adcolony.sdk;

import android.util.Log;
import com.applovin.sdk.AppLovinEventTypes;
import com.integralads.avid.library.mopub.video.AvidVideoPlaybackListenerImpl;
import java.net.MalformedURLException;
import java.net.URL;
import java.util.HashMap;
import java.util.Queue;
import java.util.concurrent.ConcurrentLinkedQueue;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
import java.util.concurrent.RejectedExecutionException;
import java.util.concurrent.TimeUnit;

public class c0 {
    static boolean e = false;
    private static final int f = 4000;
    private static final int g = 4;
    static final int h = 3;
    static final int i = 2;
    static final int j = 1;
    static final int k = 0;
    static final int l = -1;
    static int m = 3;
    static int n = 1;

    private z0 f75a = y.b();
    private ExecutorService b = null;
    private final Queue<Runnable> c = new ConcurrentLinkedQueue();
    n0 d;

    class a implements f0 {
        a() {
        }

        @Override
        public void a(d0 d0Var) {
            c0.this.b(y.d(d0Var.b(), "module"), 0, y.h(d0Var.b(), AvidVideoPlaybackListenerImpl.MESSAGE), true);
        }
    }

    public class b implements Runnable {

        final int f77a;
        final String b;
        final int c;
        final boolean d;

        b(int i, String str, int i2, boolean z) {
            this.f77a = i;
            this.b = str;
            this.c = i2;
            this.d = z;
        }

        @Override
        public void run() {
            c0.this.a(this.f77a, this.b, this.c);
            int i = 0;
            while (i <= this.b.length() / c0.f) {
                int i2 = i * c0.f;
                i++;
                int min = Math.min(i * c0.f, this.b.length());
                if (this.c == 3) {
                    c0 c0Var = c0.this;
                    if (c0Var.a(y.f(c0Var.f75a, Integer.toString(this.f77a)), 3, this.d)) {
                        Log.d("AdColony [TRACE]", this.b.substring(i2, min));
                    }
                }
                if (this.c == 2) {
                    c0 c0Var2 = c0.this;
                    if (c0Var2.a(y.f(c0Var2.f75a, Integer.toString(this.f77a)), 2, this.d)) {
                        Log.i("AdColony [INFO]", this.b.substring(i2, min));
                    }
                }
                if (this.c == 1) {
                    c0 c0Var3 = c0.this;
                    if (c0Var3.a(y.f(c0Var3.f75a, Integer.toString(this.f77a)), 1, this.d)) {
                        Log.w("AdColony [WARNING]", this.b.substring(i2, min));
                    }
                }
                if (this.c == 0) {
                    c0 c0Var4 = c0.this;
                    if (c0Var4.a(y.f(c0Var4.f75a, Integer.toString(this.f77a)), 0, this.d)) {
                        Log.e("AdColony [ERROR]", this.b.substring(i2, min));
                    }
                }
                if (this.c == -1 && c0.m >= -1) {
                    Log.e("AdColony [FATAL]", this.b.substring(i2, min));
                }
            }
        }
    }

    class c implements f0 {
        c() {
        }

        @Override
        public void a(d0 d0Var) {
            c0.m = y.d(d0Var.b(), AppLovinEventTypes.USER_COMPLETED_LEVEL);
        }
    }

    class d implements f0 {
        d() {
        }

        @Override
        public void a(d0 d0Var) {
            c0.this.b(y.d(d0Var.b(), "module"), 3, y.h(d0Var.b(), AvidVideoPlaybackListenerImpl.MESSAGE), false);
        }
    }

    class e implements f0 {
        e() {
        }

        @Override
        public void a(d0 d0Var) {
            c0.this.b(y.d(d0Var.b(), "module"), 3, y.h(d0Var.b(), AvidVideoPlaybackListenerImpl.MESSAGE), true);
        }
    }

    class f implements f0 {
        f() {
        }

        @Override
        public void a(d0 d0Var) {
            c0.this.b(y.d(d0Var.b(), "module"), 2, y.h(d0Var.b(), AvidVideoPlaybackListenerImpl.MESSAGE), false);
        }
    }

    class g implements f0 {
        g() {
        }

        @Override
        public void a(d0 d0Var) {
            c0.this.b(y.d(d0Var.b(), "module"), 2, y.h(d0Var.b(), AvidVideoPlaybackListenerImpl.MESSAGE), true);
        }
    }

    class h implements f0 {
        h() {
        }

        @Override
        public void a(d0 d0Var) {
            c0.this.b(y.d(d0Var.b(), "module"), 1, y.h(d0Var.b(), AvidVideoPlaybackListenerImpl.MESSAGE), false);
        }
    }

    class i implements f0 {
        i() {
        }

        @Override
        public void a(d0 d0Var) {
            c0.this.b(y.d(d0Var.b(), "module"), 1, y.h(d0Var.b(), AvidVideoPlaybackListenerImpl.MESSAGE), true);
        }
    }

    class j implements f0 {
        j() {
        }

        @Override
        public void a(d0 d0Var) {
            c0.this.b(y.d(d0Var.b(), "module"), 0, y.h(d0Var.b(), AvidVideoPlaybackListenerImpl.MESSAGE), false);
        }
    }

    void b(int i2, int i3, String str, boolean z) {
        if (a(a(i2, i3, str, z))) {
            return;
        }
        synchronized (this.c) {
            this.c.add(a(i2, i3, str, z));
        }
    }

    public void c() {
        ExecutorService executorService = this.b;
        if (executorService == null || executorService.isShutdown() || this.b.isTerminated()) {
            this.b = Executors.newSingleThreadExecutor();
        }
        synchronized (this.c) {
            while (!this.c.isEmpty()) {
                a(this.c.poll());
            }
        }
    }

    public void a(int i2, String str, boolean z) {
        b(0, i2, str, z);
    }

    private Runnable a(int i2, int i3, String str, boolean z) {
        return new b(i2, str, i3, z);
    }

    boolean a(z0 z0Var, int i2, boolean z) {
        int d2 = y.d(z0Var, "print_level");
        boolean b2 = y.b(z0Var, "log_private");
        if (z0Var.c() == 0) {
            d2 = m;
            b2 = e;
        }
        return (!z || b2) && d2 != 4 && d2 >= i2;
    }

    public void b() {
        com.adcolony.sdk.a.a("Log.set_log_level", new c());
        com.adcolony.sdk.a.a("Log.public.trace", new d());
        com.adcolony.sdk.a.a("Log.private.trace", new e());
        com.adcolony.sdk.a.a("Log.public.info", new f());
        com.adcolony.sdk.a.a("Log.private.info", new g());
        com.adcolony.sdk.a.a("Log.public.warning", new h());
        com.adcolony.sdk.a.a("Log.private.warning", new i());
        com.adcolony.sdk.a.a("Log.public.error", new j());
        com.adcolony.sdk.a.a("Log.private.error", new a());
    }

    boolean a(z0 z0Var, int i2) {
        int d2 = y.d(z0Var, "send_level");
        if (z0Var.c() == 0) {
            d2 = n;
        }
        return d2 >= i2 && d2 != 4;
    }

    public void a(HashMap<String, Object> hashMap) {
        try {
            n0 n0Var = new n0(new z(new URL("https://wd.adcolony.com/logs")), Executors.newSingleThreadScheduledExecutor(), hashMap);
            this.d = n0Var;
            n0Var.a(5L, TimeUnit.SECONDS);
        } catch (MalformedURLException e2) {
            e2.printStackTrace();
        }
    }

    public void a(int i2, String str, int i3) {
        if (this.d == null) {
            return;
        }
        if (i3 == 3 && a(y.f(this.f75a, Integer.toString(i2)), 3)) {
            this.d.a(str);
            return;
        }
        if (i3 == 2 && a(y.f(this.f75a, Integer.toString(i2)), 2)) {
            this.d.c(str);
            return;
        }
        if (i3 == 1 && a(y.f(this.f75a, Integer.toString(i2)), 1)) {
            this.d.d(str);
        } else if (i3 == 0 && a(y.f(this.f75a, Integer.toString(i2)), 0)) {
            this.d.b(str);
        }
    }

    z0 a(y0 y0Var) {
        z0 b2 = y.b();
        for (int i2 = 0; i2 < y0Var.c(); i2++) {
            z0 b3 = y.b(y0Var, i2);
            y.a(b2, Integer.toString(y.d(b3, "id")), b3);
        }
        return b2;
    }

    private boolean a(Runnable runnable) {
        try {
            ExecutorService executorService = this.b;
            if (executorService == null || executorService.isShutdown() || this.b.isTerminated()) {
                return false;
            }
            this.b.submit(runnable);
            return true;
        } catch (RejectedExecutionException unused) {
            Log.e("ADCLogError", "Internal error when submitting log to executor service.");
            return false;
        }
    }

    public n0 a() {
        return this.d;
    }

    public void b(y0 y0Var) {
        this.f75a = a(y0Var);
    }
}