Chomp v9.11版本的 MD5 值为:8dd6a6008d51ff2822fc9bfb17203c9f

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


package g6;

import android.content.Context;
import android.content.pm.PackageManager;
import com.inmobi.choice.core.cmpapi.CmpApiModel;
import com.inmobi.choice.core.model.PurposeRestriction;
import com.p1.chompsms.util.d0;
import com.p1.chompsms.util.d2;
import com.p1.chompsms.util.y0;
import java.io.File;
import r4.r0;
import r4.x0;
public final class g extends b implements c {
    public final int f14154e;
    public final o f14155f;
    public final q f14156g;

    public g(Context context, int i10) {
        super(context);
        int i11;
        this.f14154e = i10;
        boolean z10 = true;
        if (i10 == 1) {
            super(context);
            this.f14155f = new o("com.p1.chompsms.emojione", new x5.k(this));
            this.f14156g = new q(new File(context.getFilesDir(), "j-emojis.zip"), "", this, new h2.p(17));
        } else if (i10 != 2) {
            if (i10 != 3) {
                this.f14155f = new o("com.p1.chompsms.androidemojis", new r2.m(19));
                this.f14156g = new q(new File(context.getFilesDir(), "ab-emojis.zip"), "https://emojis-chompsms-com.s3.amazonaws.com/AndroidBlobEmojis-10008.zip", this, new h2.p(16));
                return;
            }
            super(context);
            this.f14155f = new o("com.p1.chompsms.iosemojis", null);
            this.f14156g = new q(new File(context.getFilesDir(), "i-emojis.zip"), "https://emojis-chompsms-com.s3.amazonaws.com/Emojis-90080000.zip", this, new u5.s(this));
        } else {
            super(context);
            q qVar = this.f14156g;
            if (qVar == null || !qVar.i()) {
                c6.f c10 = c6.f.c();
                c10.getClass();
                try {
                    i11 = ((Context) c10.f2989g).getPackageManager().getPackageInfo("com.p1.chompsms.emojis", 0).versionCode;
                } catch (PackageManager.NameNotFoundException unused) {
                    i11 = -1;
                }
                if (i11 <= 100003) {
                    z10 = false;
                }
            }
            if (!z10) {
                y0.Y(1.0f);
            }
            this.f14155f = new o("com.p1.chompsms.emojis", new o0.g(this, 9));
            this.f14156g = new q(new File(context.getFilesDir(), "t-emojis.zip"), "https://emojis-chompsms-com.s3.amazonaws.com/TwitterEmojis-70000.zip", this, new h2.p(18));
        }
    }

    @Override
    public final String a() {
        int i10 = this.f14154e;
        Context context = this.f14147a;
        switch (i10) {
            case 0:
                return context.getString(x0.android_blob_emoji_download_name);
            case 1:
                return context.getString(x0.joypixels_emoji_download_name);
            case 2:
                return context.getString(x0.twitter_emoji_download_name);
            default:
                return context.getString(x0.ios_emoji_download_name);
        }
    }

    @Override
    public final int b() {
        switch (this.f14154e) {
            case 0:
                return 128156;
            default:
                return 10084;
        }
    }

    @Override
    public final String c() {
        switch (this.f14154e) {
            case 0:
                return "Android Blob";
            case 1:
                return "JoyPixels";
            case 2:
                return "X (Twitter)";
            default:
                return this.f14147a.getString(x0.ios);
        }
    }

    @Override
    public final String d() {
        int i10 = this.f14154e;
        Context context = this.f14147a;
        switch (i10) {
            case 0:
                return context.getString(x0.download_android_emojis_summary);
            case 1:
                return context.getString(x0.download_joy_pixels_emojis_summary);
            case 2:
                return context.getString(x0.download_twitter_emojis_summary);
            default:
                return context.getString(x0.download_ios_emojis_summary);
        }
    }

    @Override
    public final String e() {
        switch (this.f14154e) {
            case 1:
                return "com.p1.chompsms.emojione";
            case 2:
            default:
                return super.e();
            case 3:
                return "com.p1.chompsms.iosemojis";
        }
    }

    @Override
    public final boolean f() {
        int i10 = this.f14154e;
        q qVar = this.f14156g;
        switch (i10) {
            case 0:
                return (c6.f.c().d("com.p1.chompsms.androidemojis") || qVar.i()) ? false : true;
            case 1:
                return qVar.o();
            case 2:
                return qVar.o();
            default:
                return qVar.o();
        }
    }

    @Override
    public final String g() {
        switch (this.f14154e) {
            case 0:
                return "";
            case 1:
                return "";
            case 2:
                return "";
            default:
                m k10 = k();
                return k10 instanceof c ? ((c) k10).g() : null;
        }
    }

    @Override
    public final String getId() {
        switch (this.f14154e) {
            case 0:
                return "3";
            case 1:
                return "4";
            case 2:
                return "1";
            default:
                return CmpApiModel.apiVersion;
        }
    }

    @Override
    public final x5.q h() {
        return this.f14156g;
    }

    @Override
    public final d0 i(d0 d0Var) {
        switch (this.f14154e) {
            case 3:
                d0Var.b(PurposeRestriction.hashSeparator, new d2(this.f14147a.getResources().getDrawable(r0.emoji_neutral)));
                return d0Var;
            default:
                super.i(d0Var);
                return d0Var;
        }
    }

    @Override
    public final h2.v j() {
        switch (this.f14154e) {
            case 0:
                return new h2.v("androidblob");
            case 1:
                return new h2.v("joypixels");
            case 2:
                return new h2.v("twitter");
            default:
                return null;
        }
    }

    @Override
    public final m k() {
        int i10 = this.f14154e;
        m mVar = this.f14155f;
        m mVar2 = this.f14156g;
        switch (i10) {
            case 0:
                if (!mVar2.i()) {
                    break;
                }
                mVar = mVar2;
                return mVar;
            case 1:
                if (!mVar2.i() && c6.f.c().d("com.p1.chompsms.emojione")) {
                    return mVar;
                }
                mVar = mVar2;
                return mVar;
            case 2:
                if (!mVar2.i() && c6.f.c().d("com.p1.chompsms.emojis")) {
                    return mVar;
                }
                mVar = mVar2;
                return mVar;
            default:
                if (!c6.f.c().d("com.p1.chompsms.iosemojis")) {
                    mVar = mVar2;
                }
                return mVar;
        }
    }
}