正在查看: Zepto v25.1.4 应用的 Plotline.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: Zepto v25.1.4 应用的 Plotline.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package so.plotline.insights;
import android.app.Activity;
import android.content.Context;
import android.os.Handler;
import android.os.Looper;
import androidx.fragment.app.FragmentActivity;
import androidx.room.Room;
import androidx.room.RoomDatabase;
import androidx.room.migration.Migration;
import androidx.sqlite.db.framework.FrameworkSQLiteDatabase;
import com.inmobi.media.de;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Iterator;
import java.util.List;
import java.util.Set;
import java.util.concurrent.ConcurrentHashMap;
import org.json.JSONException;
import org.json.JSONObject;
import so.plotline.insights.Database.UserDatabase;
import so.plotline.insights.Database.q;
import so.plotline.insights.Database.z;
import so.plotline.insights.Helpers.DebugHelper;
import so.plotline.insights.Listeners.PlotlineEventsListener;
import so.plotline.insights.Listeners.PlotlineRedirectListener;
import so.plotline.insights.Models.b0;
import so.plotline.insights.Models.j;
import so.plotline.insights.Models.m;
import so.plotline.insights.Models.o;
import so.plotline.insights.Models.x;
import so.plotline.insights.Tasks.g;
import so.plotline.insights.Tasks.g.a;
import so.plotline.insights.Tasks.h;
import so.plotline.insights.a;
public class Plotline {
public static Plotline d0;
public g A;
public so.plotline.insights.Tasks.d B;
public UserDatabase C;
public ActivityCallback D;
public ArrayList E;
public ArrayList F;
public ArrayList G;
public JSONObject H;
public final ArrayList I;
public final so.plotline.insights.Helpers.b J;
public int K;
public Boolean L;
public String M;
public String N;
public String O;
public a.o P;
public final HashMap Q;
public final HashSet R;
public List S;
public z.a T;
public h U;
public PlotlineEventsListener V;
public PlotlineRedirectListener W;
public JSONObject X;
public int Y;
public boolean Z;
public boolean a0;
public final ConcurrentHashMap b0;
public Boolean c;
public final ConcurrentHashMap c0;
public Boolean f8404d;
public Boolean f8405e;
public Boolean f8406f;
public Boolean f8407g;
public Boolean f8408h;
public Boolean f8409i;
public long f8410j;
public long f8411k;
public final m f8412l;
public final so.plotline.insights.Models.a f8413m;
public String f8414n;
public Set o;
public Set p;
public HashMap q;
public String r;
public Set s;
public int t;
public int u;
public Set v;
public Set w;
public final b0 x;
public final j y;
public final o z;
public String a = "";
public String b = "https://api.plotline.so";
public class a extends Migration {
public final void a(FrameworkSQLiteDatabase frameworkSQLiteDatabase) {
frameworkSQLiteDatabase.c0("ALTER TABLE events ADD COLUMN timestamps TEXT");
frameworkSQLiteDatabase.c0("CREATE TABLE IF NOT EXISTS `widget_data` (`clientElementId` TEXT NOT NULL, `widgetData` TEXT, `lastUpdated` INTEGER, PRIMARY KEY(`clientElementId`))");
}
}
public class b extends Migration {
public final void a(FrameworkSQLiteDatabase frameworkSQLiteDatabase) {
frameworkSQLiteDatabase.c0("CREATE TABLE IF NOT EXISTS `init_data` (`id` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, `initData` TEXT)");
}
}
public class c extends Migration {
public final void a(FrameworkSQLiteDatabase frameworkSQLiteDatabase) {
frameworkSQLiteDatabase.c0("CREATE TABLE IF NOT EXISTS `storyview` (`storyId` TEXT NOT NULL PRIMARY KEY, `last_viewed_slide_index` INTEGER, `lastUpdated` INTEGER)");
frameworkSQLiteDatabase.c0("ALTER TABLE events ADD COLUMN properties TEXT");
}
}
public class d extends Migration {
public final void a(FrameworkSQLiteDatabase frameworkSQLiteDatabase) {
frameworkSQLiteDatabase.c0("ALTER TABLE `init_data` ADD COLUMN `ttl` INTEGER");
frameworkSQLiteDatabase.c0("ALTER TABLE `init_data` ADD COLUMN `lastInitTime` INTEGER");
}
}
public class e extends Migration {
public final void a(FrameworkSQLiteDatabase frameworkSQLiteDatabase) {
frameworkSQLiteDatabase.c0("CREATE TABLE IF NOT EXISTS `stored_events` (`eventId` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, `eventName` TEXT, `eventProperties` TEXT, `timestamp` INTEGER)");
}
}
public Plotline() {
Boolean bool = Boolean.FALSE;
this.c = bool;
this.f8404d = bool;
this.f8405e = bool;
this.f8406f = bool;
Boolean bool2 = Boolean.TRUE;
this.f8407g = bool2;
this.f8408h = bool2;
this.f8409i = bool;
this.f8410j = 1000L;
this.f8411k = 500L;
this.f8412l = new m();
this.f8413m = new so.plotline.insights.Models.a();
this.f8414n = "en";
this.o = new HashSet();
this.p = new HashSet();
this.q = new HashMap();
this.r = "NONE";
this.s = new HashSet();
this.t = 0;
this.u = 0;
this.v = new HashSet();
this.w = new HashSet();
this.x = new b0();
this.y = new j();
this.z = new o();
this.E = new ArrayList();
this.F = new ArrayList();
this.G = new ArrayList();
this.H = new JSONObject();
this.I = new ArrayList();
this.J = new so.plotline.insights.Helpers.b();
this.K = -1;
this.L = bool;
this.M = "";
this.N = "";
this.O = "NATIVE";
this.P = null;
this.Q = new HashMap();
this.R = new HashSet();
this.S = new ArrayList();
this.T = null;
this.V = null;
this.W = null;
this.X = null;
this.Y = 0;
this.Z = false;
this.a0 = false;
this.b0 = new ConcurrentHashMap();
this.c0 = new ConcurrentHashMap();
}
public static Plotline b() {
if (d0 == null) {
d0 = new Plotline();
}
return d0;
}
public static void e(JSONObject jSONObject) {
if (jSONObject != null) {
so.plotline.insights.Tasks.a.a(new so.plotline.insights.Database.e(jSONObject));
}
}
public static void h(JSONObject jSONObject) {
char c2;
if (jSONObject != null) {
b().J.getClass();
Iterator<String> keys = jSONObject.keys();
while (keys.hasNext()) {
String next = keys.next();
try {
String string = jSONObject.getString(next);
if (so.plotline.insights.Helpers.b.f(string)) {
switch (next.hashCode()) {
case -1724546052:
if (next.equals("description")) {
c2 = 1;
break;
}
c2 = 65535;
break;
case -1355773796:
if (next.equals("disabledButtonBackground")) {
c2 = 11;
break;
}
c2 = 65535;
break;
case -1332194002:
if (next.equals("background")) {
c2 = 0;
break;
}
c2 = 65535;
break;
case -1037014141:
if (next.equals("optionBackground")) {
c2 = 4;
break;
}
c2 = 65535;
break;
case -859201775:
if (next.equals("asteriskColor")) {
c2 = '\n';
break;
}
c2 = 65535;
break;
case 110371416:
if (next.equals("title")) {
c2 = 2;
break;
}
c2 = 65535;
break;
case 241688379:
if (next.equals("progressBackground")) {
c2 = '\t';
break;
}
c2 = 65535;
break;
case 337453851:
if (next.equals("disabledButtonText")) {
c2 = '\f';
break;
}
c2 = 65535;
break;
case 358545279:
if (next.equals("buttonText")) {
c2 = 7;
break;
}
c2 = 65535;
break;
case 772289348:
if (next.equals("progressValue")) {
c2 = '\b';
break;
}
c2 = 65535;
break;
case 938409217:
if (next.equals("optionBorder")) {
c2 = 5;
break;
}
c2 = 65535;
break;
case 1320321536:
if (next.equals("buttonBackground")) {
c2 = 6;
break;
}
c2 = 65535;
break;
case 1373568834:
if (next.equals("optionText")) {
c2 = 3;
break;
}
c2 = 65535;
break;
default:
c2 = 65535;
break;
}
switch (c2) {
case 0:
so.plotline.insights.Helpers.b.a = string;
break;
case 1:
so.plotline.insights.Helpers.b.b = string;
break;
case 2:
so.plotline.insights.Helpers.b.c = string;
break;
case 3:
so.plotline.insights.Helpers.b.f8208d = string;
break;
case 4:
so.plotline.insights.Helpers.b.f8209e = string;
break;
case 5:
so.plotline.insights.Helpers.b.f8210f = string;
break;
case 6:
so.plotline.insights.Helpers.b.f8211g = string;
break;
case 7:
so.plotline.insights.Helpers.b.f8212h = string;
break;
case '\b':
so.plotline.insights.Helpers.b.f8213i = string;
break;
case '\t':
so.plotline.insights.Helpers.b.f8214j = string;
break;
case '\n':
so.plotline.insights.Helpers.b.f8215k = string;
break;
case 11:
so.plotline.insights.Helpers.b.f8217m = string;
break;
case '\f':
so.plotline.insights.Helpers.b.f8216l = string;
break;
}
}
} catch (JSONException e2) {
e2.printStackTrace();
}
}
try {
if (jSONObject.has("studyTitleStyle")) {
so.plotline.insights.Helpers.b.f8218n = new x(jSONObject.getJSONObject("studyTitleStyle"));
}
if (jSONObject.has("studyDescriptionStyle")) {
so.plotline.insights.Helpers.b.o = new x(jSONObject.getJSONObject("studyDescriptionStyle"));
}
if (jSONObject.has("studyOptionStyle")) {
so.plotline.insights.Helpers.b.p = new x(jSONObject.getJSONObject("studyOptionStyle"));
}
if (jSONObject.has("studyButtonStyle")) {
so.plotline.insights.Helpers.b.q = new x(jSONObject.getJSONObject("studyButtonStyle"));
}
} catch (Exception e3) {
e3.printStackTrace();
}
}
}
public static void i(Context context, String str) {
if (str != null) {
b().f8414n = str;
try {
e(new JSONObject().put("locale", str));
} catch (JSONException unused) {
}
q.c(context, "locale", str);
}
}
public static void j(Boolean bool) {
try {
b().f8405e = bool;
if (bool.booleanValue()) {
ActivityCallback.a();
g gVar = b().A;
gVar.getClass();
try {
gVar.b.clear();
} catch (Exception e2) {
e2.printStackTrace();
}
}
} catch (Exception e3) {
e3.printStackTrace();
}
}
public static void k(String str, JSONObject jSONObject) {
if (str != null) {
Track.b(null, str, jSONObject);
}
}
public static void l(Activity activity, String str) {
if (str != null) {
if (!str.startsWith("a:")) {
str = "a:".concat(str);
}
Plotline b2 = b();
b2.N = str;
a.o oVar = b2.P;
if (oVar != null) {
oVar.a(str);
}
if (str != null) {
Track.b(null, str, null);
}
int i2 = 1;
if (b().A != null) {
b().A.c = true;
}
Plotline b3 = b();
g gVar = new g();
gVar.b = new HashSet();
gVar.c = false;
gVar.f8429e = 0L;
gVar.a = str;
g.a aVar = gVar.new a();
gVar.f8428d = aVar;
Activity c2 = b().c();
if (c2 != null) {
c2.getWindow().getDecorView().getViewTreeObserver().addOnScrollChangedListener(aVar);
}
b3.A = gVar;
b().A.a(activity);
try {
new Handler(Looper.getMainLooper()).post(new de(str, i2));
} catch (Exception e2) {
e2.printStackTrace();
}
}
}
public final ArrayList a() {
ActivityCallback activityCallback = this.D;
if (activityCallback == null || activityCallback.a == null) {
return null;
}
ArrayList arrayList = new ArrayList();
FragmentActivity fragmentActivity = activityCallback.a;
if (fragmentActivity != null && (fragmentActivity instanceof FragmentActivity)) {
arrayList.addAll(fragmentActivity.getSupportFragmentManager().I());
}
return arrayList;
}
public final Activity c() {
Activity activity;
ActivityCallback activityCallback = this.D;
if (activityCallback == null || (activity = activityCallback.a) == null) {
return null;
}
return activity;
}
public final Boolean d() {
return Boolean.valueOf(this.f8404d.booleanValue() || this.f8405e.booleanValue());
}
public final void f() {
try {
if (this.t != 0) {
this.u++;
DebugHelper.a();
}
} catch (Exception unused) {
}
}
public final synchronized void g(Context context) {
if (this.C != null) {
return;
}
a aVar = new a(1, 2);
b bVar = new b(2, 3);
c cVar = new c(3, 4);
d dVar = new d(4, 5);
e eVar = new e(5, 6);
RoomDatabase.Builder a2 = Room.a(context.getApplicationContext(), UserDatabase.class, "event-db-4");
a2.a(new Migration[]{aVar, bVar, cVar, dVar, eVar});
this.C = (UserDatabase) a2.b();
}
}