得物.apk(点击下载) / ARResourceHelper$takeCameraPermission$2.java
package com.shizhuang.duapp.modules.mall_ar.utils;
import android.content.Context;
import androidx.activity.ComponentActivity;
import ar0.c;
import ar0.d;
import com.meituan.robust.ChangeQuickRedirect;
import com.meituan.robust.PatchProxy;
import com.shizhuang.duapp.stream.MediaSdkManager;
import df1.f;
import fr0.a;
import java.io.File;
import kotlin.Metadata;
import kotlin.Unit;
import kotlin.jvm.functions.Function0;
import kotlin.jvm.functions.Function1;
import kotlin.jvm.internal.Lambda;
import org.jetbrains.annotations.Nullable;
@Metadata(bv = {1, 0, 3}, d1 = {"\u0000\b\n\u0000\n\u0002\u0010\u0002\n\u0000\u0010\u0000\u001a\u00020\u0001H\n¢\u0006\u0002\b\u0002"}, d2 = {"<anonymous>", "", "invoke"}, k = 3, mv = {1, 4, 2})
/* compiled from: ARResourceHelper.kt */
public final class ARResourceHelper$takeCameraPermission$2 extends Lambda implements Function0<Unit> {
public static ChangeQuickRedirect changeQuickRedirect;
public final /* synthetic */ d this$0;
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
public ARResourceHelper$takeCameraPermission$2(d dVar) {
super(0);
this.this$0 = dVar;
}
@Override // kotlin.jvm.functions.Function0
public final void invoke() {
if (!PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 208780, new Class[0], Void.TYPE).isSupported) {
d dVar = this.this$0;
ComponentActivity a5 = dVar.a();
AnonymousClass1 r92 = new Function0<Unit>(this) {
/* class com.shizhuang.duapp.modules.mall_ar.utils.ARResourceHelper$takeCameraPermission$2.AnonymousClass1 */
public static ChangeQuickRedirect changeQuickRedirect;
public final /* synthetic */ ARResourceHelper$takeCameraPermission$2 this$0;
{
this.this$0 = r1;
}
@Override // kotlin.jvm.functions.Function0
public final void invoke() {
if (!PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 208781, new Class[0], Void.TYPE).isSupported) {
MediaSdkManager.h(MediaSdkManager.f26043a, this.this$0.this$0.a(), new Function0<Unit>(this) {
/* class com.shizhuang.duapp.modules.mall_ar.utils.ARResourceHelper$takeCameraPermission$2.AnonymousClass1.AnonymousClass1 */
public static ChangeQuickRedirect changeQuickRedirect;
public final /* synthetic */ AnonymousClass1 this$0;
{
this.this$0 = r1;
}
@Override // kotlin.jvm.functions.Function0
public final void invoke() {
if (!PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 208782, new Class[0], Void.TYPE).isSupported) {
d dVar = this.this$0.this$0.this$0;
if (!PatchProxy.proxy(new Object[0], dVar, d.changeQuickRedirect, false, 208770, new Class[0], Void.TYPE).isSupported) {
f.f31484a.b(dVar.b, new ARResourceHelper$loadSo$1(dVar));
}
}
}
}, null, 4);
}
}
};
AnonymousClass2 r102 = new Function1<String, Unit>(this) {
/* class com.shizhuang.duapp.modules.mall_ar.utils.ARResourceHelper$takeCameraPermission$2.AnonymousClass2 */
public static ChangeQuickRedirect changeQuickRedirect;
public final /* synthetic */ ARResourceHelper$takeCameraPermission$2 this$0;
{
this.this$0 = r1;
}
/* Return type fixed from 'java.lang.Object' to match base method */
/* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */
@Override // kotlin.jvm.functions.Function1
public /* bridge */ /* synthetic */ Unit invoke(String str) {
invoke(str);
return Unit.INSTANCE;
}
public final void invoke(@Nullable String str) {
if (!PatchProxy.proxy(new Object[]{str}, this, changeQuickRedirect, false, 208783, new Class[]{String.class}, Void.TYPE).isSupported) {
this.this$0.this$0.a().finish();
}
}
};
if (!PatchProxy.proxy(new Object[]{a5, r92, r102}, dVar, d.changeQuickRedirect, false, 208769, new Class[]{Context.class, Function0.class, Function1.class}, Void.TYPE).isSupported && a5 != null) {
String d = a.f32442a.d(a5);
if (new File(d, "ComposeMakeup.bundle/ComposeMakeup.bundle/ComposeMakeup/beauty_Android_camera/config.json").exists()) {
Unit unit = (Unit) r92.invoke();
return;
}
File file = new File(d);
if (!file.exists()) {
file.mkdirs();
}
tl.a.r("https://apk.poizon.com/duApp/Android_Config/Assets/resouces/ComposeMakeup.bundle.zip", d, "ComposeMakeup.bundle.zip", new c(a5, d, r102, r92));
}
}
}
}