Picsart v24.6版本的 MD5 值为:21a61631d94e54da68d2ad9268b8b9d9
以下内容为反编译后的 Tutorials.java 源代码,内容仅作参考
package com.picsart.studio.editor.tool.dispersion;
import android.content.Context;
import com.picsart.koin.PAKoinHolder;
import com.picsart.studio.R;
import com.picsart.studio.apiv3.model.TutorialItem;
import java.io.File;
import java.util.Objects;
import kotlin.jvm.internal.Intrinsics;
import myobfuscated.pn2.g0;
import myobfuscated.pn2.o0;
import myobfuscated.yn1.c;
import org.jetbrains.annotations.NotNull;
public final class Tutorials {
@NotNull
public static final TutorialItem a;
public interface a {
void a(String str);
}
static {
TutorialItem tutorialItem = new TutorialItem();
TutorialItem tutorialItem2 = new TutorialItem();
a = tutorialItem2;
tutorialItem.setTutorialName("tutorial_cutout");
tutorialItem.setTutorialVideoName("tutorial_cutout");
tutorialItem.setTutorialVideoPath(c.q() ? "https://cdn156.picsart.com/225904321000301.gif" : "https://cdn176.picsart.com/225903507000301.gif");
tutorialItem.setTutorialImageResourceId(Integer.valueOf((int) R.drawable.cutout_tutorial_image));
tutorialItem2.setTutorialName("tutorial_dispersion");
tutorialItem2.setTutorialVideoName("tutorial_dispersion");
tutorialItem2.setTutorialVideoPath(c.q() ? "https://cdn159.picsart.com/229084416048202.gif" : "https://cdn156.picsart.com/229084416038202.gif");
tutorialItem2.setTutorialImageResourceId(Integer.valueOf((int) R.drawable.dispersion_tutorial_image));
}
public static void a(@NotNull TutorialItem tutorialItem, @NotNull Context context, a aVar) {
Intrinsics.checkNotNullParameter(tutorialItem, "tutorialItem");
Intrinsics.checkNotNullParameter(context, "context");
File externalFilesDir = context.getExternalFilesDir(null);
String str = File.separator;
String str2 = externalFilesDir + str + context.getString(R.string.cache_tutorial_videos) + str;
File file = new File(str2, tutorialItem.getTutorialVideoName());
if (file.exists()) {
aVar.a(file.getAbsolutePath());
return;
}
File parentFile = file.getParentFile();
Objects.requireNonNull(parentFile);
parentFile.mkdirs();
kotlinx.coroutines.b.c(g0.a(o0.a), null, null, new Tutorials$loadTutorial$1((myobfuscated.tr0.b) PAKoinHolder.d(context, myobfuscated.tr0.b.class, null, 12), tutorialItem, str2, aVar, null), 3);
}
}