decord/source/1097_ANDROID_DEFAULT_BUNDLE_NAME.js

70 lines
2.7 KiB
JavaScript
Raw Normal View History

2026-07-20 16:05:17 +00:00
// Module ID: 1097
2026-07-25 08:10:48 +00:00
// Function ID: 12568
2026-07-20 16:05:17 +00:00
// Name: ANDROID_DEFAULT_BUNDLE_NAME
2026-07-23 10:11:24 +00:00
// Dependencies: [27, 794, 978]
2026-07-20 16:05:17 +00:00
// Exports: createReactNativeRewriteFrames
// Module 1097 (ANDROID_DEFAULT_BUNDLE_NAME)
2026-07-23 10:11:24 +00:00
import { Platform } from "get ActivityIndicator";
2026-07-20 16:05:17 +00:00
export const ANDROID_DEFAULT_BUNDLE_NAME = "app:///index.android.bundle";
export const IOS_DEFAULT_BUNDLE_NAME = "app:///main.jsbundle";
export const createReactNativeRewriteFrames = function createReactNativeRewriteFrames() {
2026-07-23 10:11:24 +00:00
let obj = require(794) /* registerSpanErrorInstrumentation */;
2026-07-20 16:05:17 +00:00
obj = {
iteratee(platform) {
if ("java" !== platform.platform) {
if ("cocoa" !== platform.platform) {
if (platform.filename) {
2026-07-23 10:11:24 +00:00
delete tmp.abs_path;
2026-07-20 16:05:17 +00:00
const str = platform.filename;
const str3 = platform.filename.replace(/^file:\/\//, "");
platform.filename = platform.filename.replace(/^file:\/\//, "").replace(/^address at /, "").replace(/^.*\/[^.]+(\.app|CodePush|.*(?=\/))/, "");
if ("[native code]" !== platform.filename) {
if ("native" !== platform.filename) {
2026-07-23 10:11:24 +00:00
let isHermesEnabledResult = outer1_0(outer1_1[2]).isHermesEnabled();
2026-07-20 16:05:17 +00:00
if (isHermesEnabledResult) {
isHermesEnabledResult = 1 === platform.lineno;
}
if (isHermesEnabledResult) {
isHermesEnabledResult = undefined !== platform.colno;
}
if (isHermesEnabledResult) {
platform.colno = platform.colno + 1;
}
2026-07-23 10:11:24 +00:00
const obj3 = outer1_0(outer1_1[2]);
2026-07-20 16:05:17 +00:00
if (obj.isExpo()) {
platform.filename = "app:///index.android.bundle";
return platform;
} else {
2026-07-23 10:11:24 +00:00
outer1_0(outer1_1[2]).isExpo();
2026-07-20 16:05:17 +00:00
if ("/InternalBytecode.js" === platform.filename) {
platform.in_app = false;
}
const filename = platform.filename;
if (0 === filename.indexOf("/")) {
const _HermesInternal2 = HermesInternal;
let combined = "" + "app://" + platform.filename;
} else {
const _HermesInternal = HermesInternal;
combined = "" + "app://" + "/" + platform.filename;
}
platform.filename = combined;
return platform;
}
2026-07-23 10:11:24 +00:00
obj = outer1_0(outer1_1[2]);
2026-07-20 16:05:17 +00:00
}
}
return platform;
} else {
return platform;
}
}
}
return platform;
}
};
return obj.rewriteFramesIntegration(obj);
};