正在查看: Atlys v4.8.7 应用的 AtlysApplication.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: Atlys v4.8.7 应用的 AtlysApplication.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package com.atlys.android;
import B5.d;
import B5.k;
import Cf.g;
import Cf.h;
import Cf.m;
import Cj.a;
import D0.C0319v;
import E.j;
import Qg.i;
import android.app.Application;
import android.content.Context;
import android.content.IntentFilter;
import android.telephony.TelephonyManager;
import android.text.TextUtils;
import android.util.Log;
import bn.s;
import com.facebook.react.ReactApplication;
import com.facebook.react.ReactHost;
import com.facebook.react.ReactNativeHost;
import com.facebook.react.defaults.DefaultReactHost;
import com.facebook.soloader.SoLoader;
import com.freshchat.consumer.sdk.Freshchat;
import com.freshchat.consumer.sdk.FreshchatNotificationConfig;
import com.google.android.gms.tasks.Tasks;
import com.google.firebase.database.DatabaseException;
import e0.AbstractC1742c;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.LinkedHashMap;
import java.util.Locale;
import java.util.Map;
import java.util.concurrent.Executor;
import ka.V;
import kotlin.Metadata;
import kotlin.jvm.internal.l;
import org.json.JSONException;
import org.json.JSONObject;
import pj.f;
import sj.b;
import u9.c;
import xk.e;
@Metadata(d1 = {"\u0000\u0010\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0004\b\u0007\u0018\u00002\u00020\u00012\u00020\u0002:\u0001\u0005B\u0007¢\u0006\u0004\b\u0003\u0010\u0004¨\u0006\u0006"}, d2 = {"Lcom/atlys/android/AtlysApplication;", "Landroid/app/Application;", "Lcom/facebook/react/ReactApplication;", "<init>", "()V", "B5/a", "app_release"}, k = 1, mv = {1, AbstractC1742c.f23923d, 0})
public final class AtlysApplication extends Application implements ReactApplication, b {
public I8.b f21960c;
public c f21961d;
public C0319v f21962e;
public boolean f21958a = false;
public final f f21959b = new f(new a(this, 2));
public final B5.c f21963f = new B5.c(this, 0);
public final B5.b f21964g = new B5.b(this);
public static void b() {
B5.a aVar = Ep.a.a;
B5.a aVar2 = new B5.a(0);
aVar.getClass();
if (aVar2 == aVar) {
throw new IllegalArgumentException("Cannot plant Timber into itself.".toString());
}
ArrayList arrayList = Ep.a.b;
synchronized (arrayList) {
arrayList.add(aVar2);
Object[] array = arrayList.toArray(new B5.a[0]);
if (array == null) {
throw new NullPointerException("null cannot be cast to non-null type kotlin.Array<T>");
}
Ep.a.c = (B5.a[]) array;
}
}
public final void a() {
synchronized (e.class) {
if (e.u == null) {
if (xk.a.d(this)) {
String str = e.q;
if (!TextUtils.isEmpty(str)) {
Log.i("BranchSDK", str);
}
j.f5210h = true;
}
boolean c10 = xk.a.c(this);
j.q("deferInitForPluginRuntime " + c10);
e.v = c10;
if (c10) {
e.t = c10;
}
xk.a.c = xk.a.a(this);
e i10 = e.i(this, xk.a.f(this));
e.u = i10;
xk.a.e(i10, this);
}
}
String str2 = e.q;
if (!TextUtils.isEmpty(str2)) {
Log.i("BranchSDK", str2);
}
j.f5210h = true;
}
public final void c() {
V v10;
i iVar = new i();
Og.b bVar = new Og.b("https://app.posthog.com");
bVar.C = true;
bVar.D = true;
bVar.E = true;
bVar.F = iVar;
Object systemService = getSystemService("phone");
l.f(systemService, "null cannot be cast to non-null type android.telephony.TelephonyManager");
String networkCountryIso = ((TelephonyManager) systemService).getNetworkCountryIso();
l.g(networkCountryIso, "getNetworkCountryIso(...)");
String upperCase = networkCountryIso.toUpperCase(Locale.ROOT);
l.g(upperCase, "toUpperCase(...)");
V[] values = V.values();
int length = values.length;
int i10 = 0;
while (true) {
if (i10 >= length) {
v10 = null;
break;
}
v10 = values[i10];
if (s.a0(v10.f28827b, upperCase, true)) {
break;
} else {
i10++;
}
}
if (v10 == V.f28723e) {
bVar.k = true;
i iVar2 = new i();
iVar2.a = false;
iVar2.b = false;
iVar2.c = true;
iVar2.d = true;
iVar2.e = 1000L;
bVar.F = iVar2;
}
synchronized (Og.a.a) {
Context applicationContext = getApplicationContext();
if (applicationContext == null) {
applicationContext = this;
}
Og.a.a(applicationContext, bVar);
Ng.a.v.w(bVar);
}
}
public final void d() {
if (!this.f21958a) {
this.f21958a = true;
k kVar = (k) ((d) this.f21959b.e0());
this.f21960c = (I8.b) kVar.f2576e.get();
this.f21961d = kVar.D();
this.f21962e = kVar.F();
}
super.onCreate();
}
public final Object e0() {
return this.f21959b.e0();
}
public final ReactHost getReactHost() {
Context applicationContext = getApplicationContext();
l.g(applicationContext, "getApplicationContext(...)");
return DefaultReactHost.getDefaultReactHost(applicationContext, this.f21964g);
}
public final ReactNativeHost getReactNativeHost() {
return this.f21964g;
}
@Override
public final void onCreate() {
d();
Ge.f a10 = Ge.f.a();
synchronized (a10) {
if (a10.c != null) {
throw new DatabaseException("Calls to setPersistenceEnabled() must be made before any other usage of FirebaseDatabase instance.");
}
a10.b.g();
}
b();
I8.b bVar = this.f21960c;
if (bVar == null) {
l.o("remoteConfig");
throw null;
}
re.i iVar = re.i.a;
Bf.e eVar = new Bf.e();
int[] iArr = Cf.j.k;
eVar.a = 3600L;
Bf.e eVar2 = new Bf.e();
eVar2.a = eVar.a;
Bf.d dVar = bVar.f7254a;
dVar.getClass();
Bf.a aVar = new Bf.a(dVar, eVar2, 0);
Executor executor = dVar.b;
Tasks.call(executor, aVar);
LinkedHashMap linkedHashMap = new LinkedHashMap();
linkedHashMap.put("android_force_update", Boolean.FALSE);
linkedHashMap.put("android_force_update_version_code", 0);
HashMap hashMap = new HashMap();
for (Map.Entry entry : linkedHashMap.entrySet()) {
Object value = entry.getValue();
if (value instanceof byte[]) {
hashMap.put((String) entry.getKey(), new String((byte[]) value));
} else {
hashMap.put((String) entry.getKey(), value.toString());
}
}
try {
Cf.f c10 = g.c();
c10.a = new JSONObject(hashMap);
dVar.e.e(c10.a()).onSuccessTask(iVar, new Af.b(1));
} catch (JSONException e4) {
Log.e("FirebaseRemoteConfig", "The provided defaults map could not be processed.", e4);
Tasks.forResult((Object) null);
}
Cf.j jVar = dVar.f;
m mVar = jVar.h;
mVar.getClass();
long j2 = mVar.a.getLong("minimum_fetch_interval_in_seconds", Cf.j.j);
HashMap hashMap2 = new HashMap(jVar.i);
hashMap2.put("X-Firebase-RC-Fetch-Type", "BASE/1");
jVar.f.b().continueWithTask(jVar.c, new h(jVar, j2, hashMap2)).onSuccessTask(iVar, new Af.b(2)).onSuccessTask(executor, new Bf.b(dVar));
a();
c();
SoLoader.init(this, false);
Aa.d dVar2 = Aa.d.f413a;
Aa.d.b();
a3.b.a(getApplicationContext()).b(this.f21963f, new IntentFilter("com.freshchat.consumer.sdk.UserRestoreIdGenerated"));
Freshchat.getInstance(getApplicationContext()).setNotificationConfig(new FreshchatNotificationConfig().setSmallIcon(2131231699));
}
@Override
public final void onTerminate() {
super.onTerminate();
a3.b.a(getApplicationContext()).d(this.f21963f);
}
}