- 28,932 files - Full Java source code - Smali files - Resources Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
88 lines
2.6 KiB
Java
88 lines
2.6 KiB
Java
package com.ironsource;
|
|
|
|
import com.ironsource.sdk.utils.IronSourceStorageUtils;
|
|
import kotlin.Result;
|
|
import kotlin.ResultKt;
|
|
import kotlin.jvm.functions.Function1;
|
|
import kotlin.jvm.internal.Intrinsics;
|
|
import org.json.JSONObject;
|
|
|
|
/* loaded from: classes2.dex */
|
|
public final class c implements sa<JSONObject> {
|
|
private final ic a;
|
|
private final String b;
|
|
private final de c;
|
|
private final Function1 d;
|
|
private zf e;
|
|
|
|
public c(ic fileUrl, String destinationPath, de downloadManager, Function1 onFinish) {
|
|
Intrinsics.checkNotNullParameter(fileUrl, "fileUrl");
|
|
Intrinsics.checkNotNullParameter(destinationPath, "destinationPath");
|
|
Intrinsics.checkNotNullParameter(downloadManager, "downloadManager");
|
|
Intrinsics.checkNotNullParameter(onFinish, "onFinish");
|
|
this.a = fileUrl;
|
|
this.b = destinationPath;
|
|
this.c = downloadManager;
|
|
this.d = onFinish;
|
|
this.e = new zf(b(), v8.h);
|
|
}
|
|
|
|
private final JSONObject c(zf zfVar) {
|
|
return new JSONObject(IronSourceStorageUtils.readFile(zfVar));
|
|
}
|
|
|
|
@Override // com.ironsource.hn
|
|
public void a(zf file) {
|
|
Intrinsics.checkNotNullParameter(file, "file");
|
|
if (Intrinsics.areEqual(file.getName(), v8.h)) {
|
|
try {
|
|
i().invoke(Result.m4059boximpl(Result.m4060constructorimpl(c(file))));
|
|
} catch (Exception e) {
|
|
i9.d().a(e);
|
|
Function1 i = i();
|
|
Result.Companion companion = Result.Companion;
|
|
i.invoke(Result.m4059boximpl(Result.m4060constructorimpl(ResultKt.createFailure(e))));
|
|
}
|
|
}
|
|
}
|
|
|
|
@Override // com.ironsource.hn
|
|
public void a(zf zfVar, rf error) {
|
|
Intrinsics.checkNotNullParameter(error, "error");
|
|
Function1 i = i();
|
|
Result.Companion companion = Result.Companion;
|
|
i.invoke(Result.m4059boximpl(Result.m4060constructorimpl(ResultKt.createFailure(new Exception("Unable to download abTestMap.json: " + error.b())))));
|
|
}
|
|
|
|
@Override // com.ironsource.sa
|
|
public String b() {
|
|
return this.b;
|
|
}
|
|
|
|
@Override // com.ironsource.sa
|
|
public void b(zf zfVar) {
|
|
Intrinsics.checkNotNullParameter(zfVar, "<set-?>");
|
|
this.e = zfVar;
|
|
}
|
|
|
|
@Override // com.ironsource.sa
|
|
public ic c() {
|
|
return this.a;
|
|
}
|
|
|
|
@Override // com.ironsource.sa
|
|
public Function1 i() {
|
|
return this.d;
|
|
}
|
|
|
|
@Override // com.ironsource.sa
|
|
public zf j() {
|
|
return this.e;
|
|
}
|
|
|
|
@Override // com.ironsource.sa
|
|
public de k() {
|
|
return this.c;
|
|
}
|
|
}
|