正在查看: RummyCircle v11000.89 应用的 a.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: RummyCircle v11000.89 应用的 a.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package com.microsoft.codepush.react;
import android.content.Context;
import android.content.pm.PackageManager;
import com.facebook.react.B;
import com.facebook.react.bridge.NativeModule;
import com.facebook.react.bridge.ReactApplicationContext;
import com.facebook.react.u;
import com.facebook.react.uimanager.ViewManager;
import com.games24x7.pgstorage.utils.StorageDataType;
import java.io.File;
import java.util.ArrayList;
import java.util.List;
import org.json.JSONObject;
public final class a implements B {
public static boolean i = false;
public static boolean j = false;
public static String k = null;
public static String l = "https://codepush.appcenter.ms/";
public static String m;
public static a n;
public boolean a = false;
public String b;
public final f c;
public final d d;
public final k e;
public final String f;
public final Context g;
public final boolean h;
public a(Context context, String str) {
Context applicationContext = context.getApplicationContext();
this.g = applicationContext;
String absolutePath = context.getFilesDir().getAbsolutePath();
f fVar = new f();
fVar.a = absolutePath;
this.c = fVar;
d dVar = new d();
dVar.a = applicationContext.getSharedPreferences("CodePush", 0);
this.d = dVar;
this.f = "aMJoinfyFE9Dd3CNb3MYx3vzsuAQg24x7";
this.h = false;
k kVar = new k();
kVar.a = applicationContext.getSharedPreferences("CodePush", 0);
this.e = kVar;
if (k == null) {
try {
k = applicationContext.getPackageManager().getPackageInfo(applicationContext.getPackageName(), 0).versionName;
} catch (PackageManager.NameNotFoundException e) {
throw new e("Unable to get package info for " + this.g.getPackageName(), e);
}
}
n = this;
String d = d("PublicKey");
if (d != null) {
m = d;
}
String d2 = d("ServerUrl");
if (d2 != null) {
l = d2;
}
a(null);
f();
l = str;
}
public final void a(u uVar) {
com.facebook.react.devsupport.interfaces.c cVar;
if (this.h && this.e.e(null)) {
if (uVar != null && (cVar = uVar.i) != null) {
cVar.m();
throw null;
}
File file = new File(this.g.getFilesDir(), "ReactNativeDevBundle.js");
if (file.exists()) {
file.delete();
}
}
}
public final void b() {
j.b(h.a(this.c.a, "CodePush"));
k kVar = this.e;
kVar.a.edit().remove("CODE_PUSH_PENDING_UPDATE").commit();
kVar.a.edit().remove("CODE_PUSH_FAILED_UPDATES").commit();
}
public final long c() {
Context context = this.g;
try {
return Long.parseLong(context.getResources().getString(context.getResources().getIdentifier("CODE_PUSH_APK_BUILD_TIME", StorageDataType.DT_STRING, context.getPackageName())).replaceAll("\"", ""));
} catch (Exception e) {
throw new e("Error in getting binary resources modified time", e);
}
}
public final List<NativeModule> createNativeModules(ReactApplicationContext reactApplicationContext) {
CodePushNativeModule codePushNativeModule = new CodePushNativeModule(reactApplicationContext, this, this.c, this.d, this.e);
CodePushDialog codePushDialog = new CodePushDialog(reactApplicationContext);
ArrayList arrayList = new ArrayList();
arrayList.add(codePushNativeModule);
arrayList.add(codePushDialog);
return arrayList;
}
public final List<ViewManager> createViewManagers(ReactApplicationContext reactApplicationContext) {
return new ArrayList();
}
public final String d(String str) {
Context context = this.g;
int identifier = context.getResources().getIdentifier("CodePush".concat(str), StorageDataType.DT_STRING, context.getPackageName());
if (identifier == 0) {
return null;
}
String string = context.getString(identifier);
if (!string.isEmpty()) {
return string;
}
h.h("Specified " + str + " is empty");
return null;
}
public final java.lang.String e(java.lang.String r7) {
throw new UnsupportedOperationException("Method not decompiled: com.microsoft.codepush.react.a.e(java.lang.String):java.lang.String");
}
public final void f() {
throw new UnsupportedOperationException("Method not decompiled: com.microsoft.codepush.react.a.f():void");
}
public final boolean g(JSONObject jSONObject) {
try {
String optString = jSONObject.optString("binaryModifiedTime", null);
Long valueOf = optString != null ? Long.valueOf(Long.parseLong(optString)) : null;
String optString2 = jSONObject.optString("appVersion", null);
long c = c();
if (valueOf != null && valueOf.longValue() == c) {
if (k.equals(optString2)) {
return true;
}
}
return false;
} catch (NumberFormatException e) {
throw new e("Error in reading binary modified date from package metadata", e);
}
}
}