正在查看: CityMall v1.42.1 应用的 C6362i.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: CityMall v1.42.1 应用的 C6362i.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package f0;
import android.app.Activity;
import android.content.Intent;
import com.facebook.react.bridge.ReactApplicationContext;
import com.facebook.react.bridge.ReadableMap;
import com.facebook.react.modules.appstate.AppStateModule;
import com.google.firebase.remoteconfig.RemoteConfigConstants;
import com.reactnativecommunity.clipboard.ClipboardModule;
public class C6362i extends o {
public C6362i(ReactApplicationContext reactApplicationContext) {
super(reactApplicationContext);
n(new Intent("com.instagram.share.ADD_TO_STORY"));
}
private void q(ReadableMap readableMap) {
String str;
String string;
String str2;
if (!n.j("backgroundImage", readableMap) && !n.j("backgroundVideo", readableMap) && !n.j("stickerImage", readableMap)) {
throw new IllegalArgumentException("Invalid background or sticker assets provided.");
}
Activity currentActivity = this.f50810a.getCurrentActivity();
if (currentActivity == null) {
r.a("Something went wrong");
return;
}
this.f50811b.putExtra("source_application", readableMap.getString(RemoteConfigConstants.RequestFieldKey.APP_ID));
this.f50811b.putExtra("bottom_background_color", "#906df4");
this.f50811b.putExtra("top_background_color", "#837DF4");
if (n.j("attributionURL", readableMap)) {
this.f50811b.putExtra("content_url", readableMap.getString("attributionURL"));
}
if (n.j("backgroundTopColor", readableMap)) {
this.f50811b.putExtra("top_background_color", readableMap.getString("backgroundTopColor"));
}
if (n.j("backgroundBottomColor", readableMap)) {
this.f50811b.putExtra("bottom_background_color", readableMap.getString("backgroundBottomColor"));
}
Boolean bool = Boolean.FALSE;
if (n.j("useInternalStorage", readableMap)) {
bool = Boolean.valueOf(readableMap.getBoolean("useInternalStorage"));
}
if (n.j("linkUrl", readableMap)) {
this.f50811b.putExtra("link_url", readableMap.getString("linkUrl"));
}
if (n.j("linkText", readableMap)) {
this.f50811b.putExtra("link_text", readableMap.getString("linkText"));
}
boolean z8 = n.j("backgroundImage", readableMap) || n.j("backgroundVideo", readableMap);
if (z8) {
if (n.j("backgroundImage", readableMap)) {
str = readableMap.getString("backgroundImage");
} else if (n.j("backgroundVideo", readableMap)) {
string = readableMap.getString("backgroundVideo");
str2 = "video/*";
e0.e eVar = new e0.e(string, str2, AppStateModule.APP_STATE_BACKGROUND, bool, this.f50810a);
this.f50811b.setDataAndType(eVar.d(), eVar.c());
this.f50811b.setFlags(1);
} else {
str = "";
}
str2 = ClipboardModule.MIMETYPE_JPEG;
string = str;
e0.e eVar2 = new e0.e(string, str2, AppStateModule.APP_STATE_BACKGROUND, bool, this.f50810a);
this.f50811b.setDataAndType(eVar2.d(), eVar2.c());
this.f50811b.setFlags(1);
}
if (n.j("stickerImage", readableMap)) {
e0.e eVar3 = new e0.e(readableMap.getString("stickerImage"), ClipboardModule.MIMETYPE_PNG, "sticker", bool, this.f50810a);
if (!z8) {
this.f50811b.setType("image/*");
}
this.f50811b.putExtra("interactive_asset_uri", eVar3.d());
currentActivity.grantUriPermission("com.instagram.android", eVar3.d(), 1);
}
}
@Override
protected String b() {
return null;
}
@Override
protected String h() {
return "com.instagram.android";
}
@Override
protected String i() {
return "https://play.google.com/store/apps/details?id=com.instagram.android";
}
@Override
public void l(ReadableMap readableMap) {
super.l(readableMap);
q(readableMap);
p(readableMap);
}
}