what-the-bank/sources/o/goN.java

172 lines
6.5 KiB
Java
Raw Normal View History

2024-07-27 18:17:47 +07:00
package o;
import android.content.Context;
import android.os.Build;
import io.flutter.embedding.engine.plugins.FlutterPlugin;
import io.flutter.plugin.common.MethodCall;
import io.flutter.plugin.common.MethodChannel;
import java.util.concurrent.ExecutorService;
/* loaded from: classes.dex */
public final class goN implements FlutterPlugin, MethodChannel.MethodCallHandler {
public static final IeS a = new IeS(0);
private static boolean d;
private Context b;
private MethodChannel e;
public goN() {
C13188fTb c13188fTb = C13188fTb.d;
C13188fTb.a(new tDU(0));
C13188fTb c13188fTb2 = C13188fTb.d;
C13188fTb.a(new tDU(1));
C13188fTb c13188fTb3 = C13188fTb.d;
C13188fTb.a(new pFN());
C13188fTb c13188fTb4 = C13188fTb.d;
C13188fTb.a(new tDU(3));
}
/* loaded from: classes.dex */
public static final class IeS {
private IeS() {
}
public /* synthetic */ IeS(byte b) {
this();
}
}
@Override // io.flutter.plugin.common.MethodChannel.MethodCallHandler
public final void onMethodCall(MethodCall methodCall, MethodChannel.Result result) {
ExecutorService executorService;
ExecutorService executorService2;
ExecutorService executorService3;
C14957gcv.e(methodCall, "");
C14957gcv.e(result, "");
String str = methodCall.method;
if (str != null) {
final Context context = null;
switch (str.hashCode()) {
case -129880033:
if (str.equals("compressWithFileAndGetFile")) {
final Rdm rdm = new Rdm(methodCall, result);
Context context2 = this.b;
if (context2 == null) {
C14957gcv.a("");
} else {
context = context2;
}
C14957gcv.e(context, "");
executorService = OAd.d;
executorService.execute(new Runnable(rdm, context) { // from class: o.Fnf
private Context a;
private Rdm b;
@Override // java.lang.Runnable
public final void run() {
Rdm.b(this.b, this.a);
}
{
this.b = rdm;
this.a = context;
}
});
return;
}
break;
case 86054116:
if (str.equals("compressWithFile")) {
final Rdm rdm2 = new Rdm(methodCall, result);
Context context3 = this.b;
if (context3 == null) {
C14957gcv.a("");
} else {
context = context3;
}
C14957gcv.e(context, "");
executorService2 = OAd.d;
executorService2.execute(new Runnable(rdm2, context) { // from class: o.uyG
private Context b;
private Rdm e;
@Override // java.lang.Runnable
public final void run() {
Rdm.d(this.e, this.b);
}
{
this.e = rdm2;
this.b = context;
}
});
return;
}
break;
case 86233094:
if (str.equals("compressWithList")) {
final Jvw jvw = new Jvw(methodCall, result);
Context context4 = this.b;
if (context4 == null) {
C14957gcv.a("");
} else {
context = context4;
}
C14957gcv.e(context, "");
executorService3 = OAd.d;
executorService3.execute(new Runnable(jvw, context) { // from class: o.GYS
private Jvw c;
private Context d;
@Override // java.lang.Runnable
public final void run() {
Jvw.c(this.c, this.d);
}
{
this.c = jvw;
this.d = context;
}
});
return;
}
break;
case 1262746611:
if (str.equals("getSystemVersion")) {
result.success(Integer.valueOf(Build.VERSION.SDK_INT));
return;
}
break;
case 2067272455:
if (str.equals("showLog")) {
d = C14957gcv.b((Boolean) methodCall.arguments(), Boolean.TRUE);
result.success(1);
return;
}
break;
}
}
result.notImplemented();
}
@Override // io.flutter.embedding.engine.plugins.FlutterPlugin
public final void onAttachedToEngine(FlutterPlugin.FlutterPluginBinding flutterPluginBinding) {
C14957gcv.e(flutterPluginBinding, "");
Context applicationContext = flutterPluginBinding.getApplicationContext();
C14957gcv.c(applicationContext, "");
this.b = applicationContext;
MethodChannel methodChannel = new MethodChannel(flutterPluginBinding.getBinaryMessenger(), "flutter_image_compress");
this.e = methodChannel;
methodChannel.setMethodCallHandler(this);
}
@Override // io.flutter.embedding.engine.plugins.FlutterPlugin
public final void onDetachedFromEngine(FlutterPlugin.FlutterPluginBinding flutterPluginBinding) {
C14957gcv.e(flutterPluginBinding, "");
MethodChannel methodChannel = this.e;
if (methodChannel != null) {
methodChannel.setMethodCallHandler(null);
}
this.e = null;
}
}