MD5 校验值:b359069a22e95e2832438c301625aae5
h.java 文件包含反编译后的源代码,请注意,该内容仅供学习和参考使用,不得用于非法用途。
package y1; 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.reactnativecommunity.clipboard.ClipboardModule; public class h extends n { public h(ReactApplicationContext reactApplicationContext) { super(reactApplicationContext); o(new Intent("com.instagram.share.ADD_TO_STORY")); } private void r(ReadableMap readableMap) { String str; String string; String str2; if (!m.k("backgroundImage", readableMap) && !m.k("backgroundVideo", readableMap) && !m.k("stickerImage", readableMap)) { throw new IllegalArgumentException("Invalid background or sticker assets provided."); } Activity currentActivity = this.f25401a.getCurrentActivity(); if (currentActivity == null) { p.d(false, "Something went wrong"); return; } this.f25402b.putExtra("bottom_background_color", "#906df4"); this.f25402b.putExtra("top_background_color", "#837DF4"); if (m.k("attributionURL", readableMap)) { this.f25402b.putExtra("content_url", readableMap.getString("attributionURL")); } if (m.k("backgroundTopColor", readableMap)) { this.f25402b.putExtra("top_background_color", readableMap.getString("backgroundTopColor")); } if (m.k("backgroundBottomColor", readableMap)) { this.f25402b.putExtra("bottom_background_color", readableMap.getString("backgroundBottomColor")); } Boolean bool = Boolean.FALSE; if (m.k("useInternalStorage", readableMap)) { bool = Boolean.valueOf(readableMap.getBoolean("useInternalStorage")); } Boolean valueOf = Boolean.valueOf(m.k("backgroundImage", readableMap) || m.k("backgroundVideo", readableMap)); if (valueOf.booleanValue()) { if (m.k("backgroundImage", readableMap)) { str = readableMap.getString("backgroundImage"); } else if (m.k("backgroundVideo", readableMap)) { string = readableMap.getString("backgroundVideo"); str2 = "video/*"; x1.d dVar = new x1.d(string, str2, AppStateModule.APP_STATE_BACKGROUND, bool, this.f25401a); this.f25402b.setDataAndType(dVar.d(), dVar.c()); this.f25402b.setFlags(1); } else { str = ""; } str2 = ClipboardModule.MIMETYPE_JPEG; string = str; x1.d dVar2 = new x1.d(string, str2, AppStateModule.APP_STATE_BACKGROUND, bool, this.f25401a); this.f25402b.setDataAndType(dVar2.d(), dVar2.c()); this.f25402b.setFlags(1); } if (m.k("stickerImage", readableMap)) { x1.d dVar3 = new x1.d(readableMap.getString("stickerImage"), ClipboardModule.MIMETYPE_PNG, "sticker", bool, this.f25401a); if (!valueOf.booleanValue()) { this.f25402b.setType("image/*"); } this.f25402b.putExtra("interactive_asset_uri", dVar3.d()); currentActivity.grantUriPermission("com.instagram.android", dVar3.d(), 1); } } @Override public String c() { return null; } @Override public String i() { return "com.instagram.android"; } @Override public String j() { return "https://play.google.com/store/apps/details?id=com.instagram.android"; } @Override public void m(ReadableMap readableMap) { super.m(readableMap); r(readableMap); q(readableMap); } }