32 lines
1.5 KiB
TypeScript
32 lines
1.5 KiB
TypeScript
/* Metro module 4489; source: modules/go_live/utils/getSoundshareAnalyticsContext.tsx; dependencies: [4266, 2] */
|
|
function _fun38257(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#38257, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4667:6, offset: 0x010baee9, size: 104 bytes, params: 8, frame: 17
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
const runningGameStoreNative = importDefault(4266) /* metro dependency 4266: RunningGameStoreNative */;
|
|
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/go_live/utils/getSoundshareAnalyticsContext.tsx');
|
|
exports.default = getSoundshareAnalyticsContext;
|
|
}
|
|
|
|
function getSoundshareAnalyticsContext(a0) { // fn#38258, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4667:205, offset: 0x010baf51, size: 107 bytes, params: 2, frame: 16
|
|
var name;
|
|
var r1;
|
|
var r2;
|
|
var gameForPID;
|
|
if (a0 == null) {
|
|
return {};
|
|
}
|
|
const sourcePid = a0.sourcePid;
|
|
const value = undefined;
|
|
if (sourcePid != null) {
|
|
gameForPID = RunningGameStoreNative.getGameForPID(sourcePid);
|
|
name = gameForPID == null ? value : gameForPID.name;
|
|
r1 = gameForPID == null ? value : gameForPID.id;
|
|
r2 = name;
|
|
} else {
|
|
r1 = value;
|
|
r2 = value;
|
|
}
|
|
return {soundshare_session: a0.soundshareSession, share_game_name: r2, share_game_id: r1};
|
|
}
|
|
|