Picsart v24.6版本的 MD5 值为:21a61631d94e54da68d2ad9268b8b9d9
以下内容为反编译后的 w.java 源代码,内容仅作参考
package myobfuscated.wg1;
import android.content.Context;
import com.google.android.gms.tasks.CancellationToken;
import com.google.android.gms.tasks.CancellationTokenSource;
import com.google.android.gms.tasks.Task;
import com.google.android.gms.tasks.Tasks;
import com.picsart.studio.editor.history.video.HistoryVideoGeneratorKt;
import java.io.File;
import kotlin.jvm.internal.Intrinsics;
import org.jetbrains.annotations.NotNull;
public final class w implements v {
@NotNull
public final myobfuscated.wf1.c a;
@NotNull
public final myobfuscated.yg1.a b;
@NotNull
public final CancellationTokenSource c;
public w(@NotNull myobfuscated.wf1.c archiveService, @NotNull myobfuscated.yg1.a videoGenerateService) {
Intrinsics.checkNotNullParameter(archiveService, "archiveService");
Intrinsics.checkNotNullParameter(videoGenerateService, "videoGenerateService");
this.a = archiveService;
this.b = videoGenerateService;
new CancellationTokenSource();
this.c = new CancellationTokenSource();
}
@Override
public final String a() {
return this.b.b;
}
@Override
public final String b(@NotNull String path, @NotNull String historyId) {
Task task;
myobfuscated.yg1.a aVar = this.b;
aVar.getClass();
Intrinsics.checkNotNullParameter(path, "path");
Intrinsics.checkNotNullParameter(historyId, "historyId");
CancellationTokenSource cancellationTokenSource = this.c;
Intrinsics.checkNotNullParameter(cancellationTokenSource, "cancellationTokenSource");
String str = aVar.b;
if (str == null || str.length() == 0) {
int i = HistoryVideoGeneratorKt.a;
Object invoke = HistoryVideoGeneratorKt.class.getMethod("generateHistoryVideo", Context.class, String.class, String.class, CancellationToken.class).invoke(null, aVar.a, path, com.appsflyer.internal.h.p("https://link.picsart.com/", historyId), cancellationTokenSource.getToken());
Intrinsics.f(invoke, "null cannot be cast to non-null type com.google.android.gms.tasks.Task<kotlin.String>");
task = (Task) invoke;
} else {
task = Tasks.forResult(aVar.b);
Intrinsics.checkNotNullExpressionValue(task, "forResult(...)");
}
String str2 = (String) Tasks.await(task);
str2.getClass();
aVar.b = str2;
return str2;
}
@Override
public final void c() {
this.c.cancel();
}
@Override
public final Object d(@NotNull String str, @NotNull String str2, @NotNull myobfuscated.mk2.c<? super b> cVar) {
return this.a.b(new File(str), str2, cVar);
}
}