Initial commit
This commit is contained in:
commit
af3b49f756
16065 files changed
+2938410
No files matched your search
@@ -0,0 +1,53 @@
|
||||
/* Metro module 8080; source: modules/rpc/native/server/NativeRPCHelpers.tsx; dependencies: [5, 4135, 661, 8081, 8076, 2] */
|
||||
function _fun64748(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#64748, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8265:6, offset: 0x01bb416f, size: 186 bytes, params: 8, frame: 19
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = importDefault(5) /* metro dependency 5 */;
|
||||
const env0_4 = (require(4135) /* metro dependency 4135: Constants */).TransportTypes;
|
||||
const env0_5 = (require(661) /* metro dependency 661: Constants */).RPCCloseCodes;
|
||||
const value = _fun64749();
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/rpc/native/server/NativeRPCHelpers.tsx');
|
||||
exports.validateSocketClient = value;
|
||||
exports.getDeprecatedVoiceSettings = getDeprecatedVoiceSettings;
|
||||
exports.getVoiceSettings = getVoiceSettings;
|
||||
}
|
||||
|
||||
function _fun64749() { // fn#64749, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8265:157, offset: 0x01bb4229, size: 32 bytes, params: 1, frame: 12
|
||||
const env0_0 = env0_3(_fun64751);
|
||||
return _fun64752;
|
||||
}
|
||||
|
||||
function getDeprecatedVoiceSettings() { // fn#64753, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8265:682, offset: 0x01bb4357, size: 45 bytes, params: 1, frame: 11
|
||||
return (require(8081) /* metro dependency 8081: RPCHelpers */).getDeprecatedVoiceSettingsWithShortcut(function() {
|
||||
return [];
|
||||
});
|
||||
}
|
||||
|
||||
function getVoiceSettings(a0) { // fn#64755, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8265:762, offset: 0x01bb4384, size: 49 bytes, params: 2, frame: 13
|
||||
return (require(8081) /* metro dependency 8081: RPCHelpers */).getVoiceSettingsWithShortcut(a0, function() {
|
||||
return '';
|
||||
});
|
||||
}
|
||||
|
||||
function* _fun64751(a0, a1, a2) { // fn#64751, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8265:177, offset: 0x01bb4252, size: 261 bytes, params: 4, frame: 22
|
||||
var Promise;
|
||||
if (false) {
|
||||
return undefined;
|
||||
}
|
||||
value = environment.__proto__.__proto__;
|
||||
env2_0(env2_2[3]).validateOriginAndUpdateSocket(a0, a1);
|
||||
if (a2 == null) {
|
||||
Promise = global.Promise;
|
||||
return Promise.reject(new env2_1(env2_2[4])({closeCode: env2_5.INVALID_CLIENTID}, 'No Client ID Specified'));
|
||||
}
|
||||
const transport = a0.transport;
|
||||
const POST_MESSAGE = env2_4.POST_MESSAGE;
|
||||
const value4 = env2_0(env2_2[3]);
|
||||
yield value4.processSocketThrottlers(a2, transport !== POST_MESSAGE, a0.abortController.signal);
|
||||
if (false) {
|
||||
return undefined;
|
||||
}
|
||||
return env2_0(env2_2[3]).validateSocketApplication(a0, a2, a1);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,10 @@
|
||||
/* Metro module 13012; source: modules/rpc/native/server/NativeRPCServerManager.tsx; dependencies: [13013, 13015, 2] */
|
||||
function _fun99301(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#99301, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13202:6, offset: 0x021c362f, size: 125 bytes, params: 8, frame: 17
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
let value = importDefault(13013) /* metro dependency 13013: RPCServerManager */;
|
||||
value = new value(importDefault(13015) /* metro dependency 13015: NativeRPCImplementation */);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/rpc/native/server/NativeRPCServerManager.tsx');
|
||||
exports.default = value;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,152 @@
|
||||
/* Metro module 13058; source: modules/rpc/native/server/commands/activities.tsx; dependencies: [5, 4135, 661, 4661, 4122, 13029, 8076, 9151, 13018, 4662, 4673, 7860, 4132, 2] */
|
||||
function _fun99698(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#99698, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13248:6, offset: 0x021d2019, size: 366 bytes, params: 8, frame: 27
|
||||
var object2;
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = importDefault(5) /* metro dependency 5 */;
|
||||
let value = require(4135) /* metro dependency 4135: Constants */;
|
||||
const RPC_AUTHENTICATED_SCOPE = value.RPC_AUTHENTICATED_SCOPE;
|
||||
const RPC_LOCAL_SCOPE = value.RPC_LOCAL_SCOPE;
|
||||
const RPC_SCOPE_CONFIG = value.RPC_SCOPE_CONFIG;
|
||||
value = require(661) /* metro dependency 661: Constants */;
|
||||
const env0_4 = value.InstantInviteSources;
|
||||
const RPCCommands = value.RPCCommands;
|
||||
const env0_5 = value.RPCErrors;
|
||||
const env0_6 = (require(4661) /* metro dependency 4661: NativePermissionConstants */).NativePermissionTypes;
|
||||
object2 = {};
|
||||
const OPEN_INVITE_DIALOG = RPCCommands.OPEN_INVITE_DIALOG;
|
||||
let ANY = RPC_SCOPE_CONFIG.ANY;
|
||||
const OAuth2Scopes = (require(4122) /* metro dependency 4122: OAuth2Scopes */).OAuth2Scopes;
|
||||
let RPC = OAuth2Scopes.RPC;
|
||||
object2[OPEN_INVITE_DIALOG] = {scope: {[ANY]: [RPC, RPC_LOCAL_SCOPE, RPC_AUTHENTICATED_SCOPE]},
|
||||
handler: handler_99699};
|
||||
const INITIATE_IMAGE_UPLOAD = RPCCommands.INITIATE_IMAGE_UPLOAD;
|
||||
ANY = RPC_SCOPE_CONFIG.ANY;
|
||||
RPC = OAuth2Scopes.RPC;
|
||||
object2[INITIATE_IMAGE_UPLOAD] = {scope: {[ANY]: [RPC, RPC_LOCAL_SCOPE, RPC_AUTHENTICATED_SCOPE]},
|
||||
handler: handler_99700};
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/rpc/native/server/commands/activities.tsx');
|
||||
exports.default = object2;
|
||||
}
|
||||
|
||||
function handler_99699({socket}) { // fn#99699, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13248:356, offset: 0x021d2187, size: 206 bytes, params: 2, frame: 18
|
||||
const value3 = (require(13029) /* metro dependency 13029: validateOpenInviteDialog */).validateOpenInviteDialog();
|
||||
const channel = value3.channel;
|
||||
if (value3.frame != null) {
|
||||
throw new (importDefault(8076) /* metro dependency 8076: RPCError */)({errorCode: RPCErrors.UNKNOWN_ERROR},
|
||||
'Cannot support frames (yet)');
|
||||
}
|
||||
const instantInviteUtilsModule = require(9151) /* metro dependency 9151: InstantInviteUtils */;
|
||||
const showInstantInviteActionSheet = instantInviteUtilsModule.showInstantInviteActionSheet;
|
||||
const ACTIVITY_INVITE = InstantInviteSources.ACTIVITY_INVITE;
|
||||
Reflect.apply(showInstantInviteActionSheet, instantInviteUtilsModule, [channel, {source: ACTIVITY_INVITE,
|
||||
targetApplicationId: socket.application.id ?? undefined}]);
|
||||
}
|
||||
|
||||
function handler_99700({socket}) { // fn#99700, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13248:733, offset: 0x021d2255, size: 42 bytes, params: 2, frame: 11
|
||||
return env0_3(_fun99702)();
|
||||
}
|
||||
|
||||
function* _fun99702() { // fn#99702, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13248:750, offset: 0x021d228a, size: 733 bytes, params: 1, frame: 23
|
||||
var environment;
|
||||
var object2;
|
||||
var value11;
|
||||
var value12;
|
||||
var property;
|
||||
var value14;
|
||||
var uploadImageAttachment;
|
||||
var value15;
|
||||
var url;
|
||||
var value17;
|
||||
if (false) {
|
||||
return undefined;
|
||||
}
|
||||
value = environment.__proto__;
|
||||
const id2 = require.application.id;
|
||||
if (id2 == null) {
|
||||
value = environment.__proto__.__proto__;
|
||||
throw new env2_1(env2_2[6])({errorCode: env2_5.INVALID_COMMAND}, 'No application.');
|
||||
}
|
||||
value = environment.__proto__.__proto__;
|
||||
let binding = env2_1;
|
||||
const value3 = undefined;
|
||||
const value4 = binding(env2_2[8])();
|
||||
const id = value4 == null ? value3 : value4.id;
|
||||
if (id == null) {
|
||||
throw new env2_1(env2_2[6])({errorCode: env2_5.UNKNOWN_ERROR}, 'Unable to find selected channel');
|
||||
}
|
||||
const value5 = env2_1(env2_2[9]);
|
||||
const requestPermission = value5.requestPermission;
|
||||
const PHOTOS = env2_6.PHOTOS;
|
||||
yield Reflect.apply(requestPermission, value5, [PHOTOS]).catch(_fun99703);
|
||||
const value7 = undefined;
|
||||
if (false) {
|
||||
return value7;
|
||||
}
|
||||
binding = env2_1;
|
||||
const binding2 = env2_2;
|
||||
if (value7) {
|
||||
value11 = binding(binding2[10]);
|
||||
yield value11.launchImageLibraryAsync({'mediaType': 'photo', 'includeBase64': false, 'selectionLimit': 1});
|
||||
value12 = undefined;
|
||||
if (false) {
|
||||
return value12;
|
||||
}
|
||||
property = value12.assets[0];
|
||||
if (property == null) {
|
||||
throw new env2_1(env2_2[6])({errorCode: env2_5.UNKNOWN_ERROR}, 'No image selected');
|
||||
}
|
||||
binding = env2_0;
|
||||
value14 = binding(env2_2[11]);
|
||||
uploadImageAttachment = value14.uploadImageAttachment;
|
||||
object2 = {};
|
||||
object2.name = property.fileName;
|
||||
object2.type = property.type;
|
||||
object2.uri = property.uri;
|
||||
yield Reflect.apply(uploadImageAttachment, value14, [id2, id, object2]);
|
||||
value15 = undefined;
|
||||
if (false) {
|
||||
return value15;
|
||||
}
|
||||
if (value15 == null) {
|
||||
value17 = env2_1(env2_2[6]);
|
||||
object2 = {};
|
||||
object2.errorCode = env2_5.UNKNOWN_ERROR;
|
||||
value = global.JSON.stringify(value15);
|
||||
value = new value17(object2, value);
|
||||
throw value;
|
||||
}
|
||||
url = value15.url;
|
||||
if (url == null) {
|
||||
value17 = env2_1(env2_2[6]);
|
||||
object2 = {};
|
||||
object2.errorCode = env2_5.UNKNOWN_ERROR;
|
||||
value = global.JSON.stringify(value15);
|
||||
value = new value17(object2, value);
|
||||
throw value;
|
||||
}
|
||||
binding = env2_1;
|
||||
if (value15 instanceof binding(env2_2[12])) {
|
||||
value17 = env2_1(env2_2[6]);
|
||||
object2 = {};
|
||||
object2.errorCode = env2_5.UNKNOWN_ERROR;
|
||||
value = global.JSON.stringify(value15);
|
||||
value = new value17(object2, value);
|
||||
throw value;
|
||||
}
|
||||
url = value15.url;
|
||||
return {image_url: url};
|
||||
}
|
||||
const value9 = binding(binding2[6]);
|
||||
const UNKNOWN_ERROR = env2_5.UNKNOWN_ERROR;
|
||||
throw new value9({errorCode: UNKNOWN_ERROR}, 'Missing photo permissions');
|
||||
}
|
||||
|
||||
function _fun99703() { // fn#99703, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13248:1051, offset: 0x021d2567, size: 73 bytes, params: 1, frame: 13
|
||||
const value = environment.__proto__.__proto__.__proto__;
|
||||
const value2 = env3_1(env3_2[6]);
|
||||
const UNKNOWN_ERROR = env3_5.UNKNOWN_ERROR;
|
||||
throw new value2({errorCode: UNKNOWN_ERROR}, 'Failed requesting photo permissions');
|
||||
}
|
||||
|
||||
@@ -0,0 +1,70 @@
|
||||
/* Metro module 13059; source: modules/rpc/native/server/commands/auth.tsx; dependencies: [4234, 661, 8076, 7504, 1239, 13060, 2] */
|
||||
function _fun99704(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#99704, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13249:6, offset: 0x021d25b0, size: 185 bytes, params: 8, frame: 19
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const applicationStore = importDefault(4234) /* metro dependency 4234: ApplicationStore */;
|
||||
let value = require(661) /* metro dependency 661: Constants */;
|
||||
const env0_4 = value.ComponentActions;
|
||||
const env0_5 = value.ApplicationFlags;
|
||||
const env0_6 = value.RPCErrors;
|
||||
value = importDefault(13060) /* metro dependency 13060: AuthCommandsFactory */;
|
||||
value = value(_fun99705, function() {
|
||||
});
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/rpc/native/server/commands/auth.tsx');
|
||||
exports.default = value;
|
||||
}
|
||||
|
||||
function _fun99705({clientId, authorizations, scopes, parsedPermissions, responseType, redirectUri, codeChallenge, codeChallengeMethod, state, guildId, channelId, prompt, disableGuildSelect, disclosures, integrationType}) { // fn#99705, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13249:187, offset: 0x021d2669, size: 189 bytes, params: 2, frame: 11
|
||||
const Promise = global.Promise;
|
||||
const value = Object.create(Promise.prototype, {constructor: {value: Promise}});
|
||||
const promise = new Promise(_fun99706);
|
||||
return promise instanceof Object ? promise : value;
|
||||
}
|
||||
|
||||
function _fun99706(a0, a1) { // fn#99706, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13249:421, offset: 0x021d2726, size: 390 bytes, params: 3, frame: 19
|
||||
const env0_0 = a0;
|
||||
const env0_1 = a1;
|
||||
const integrationTypeBinding = integrationType;
|
||||
const value2 = undefined;
|
||||
const r3 = integrationTypeBinding != null ? authorizations == null ? value2 : authorizations.get(integrationType) : value2;
|
||||
const r9 = (r3 == null ? value2 : r3.application) ?? ApplicationStore.getApplication(clientId);
|
||||
const object2 = {};
|
||||
object2.clientId = clientId;
|
||||
object2.scopes = scopes ?? [];
|
||||
object2.responseType = responseType;
|
||||
object2.redirectUri = redirectUri;
|
||||
object2.codeChallenge = codeChallenge;
|
||||
object2.codeChallengeMethod = codeChallengeMethod;
|
||||
object2.state = state;
|
||||
object2.guildId = guildId;
|
||||
object2.channelId = channelId;
|
||||
object2.permissions = parsedPermissions;
|
||||
object2.prompt = prompt;
|
||||
object2.disableGuildSelect = typeof disableGuildSelect === 'boolean' ? disableGuildSelect : disableGuildSelect === 'true';
|
||||
object2.showLogout = false;
|
||||
object2.callback = callback_99707;
|
||||
const applicationFlagUtilsModule = require(7504) /* metro dependency 7504: ApplicationFlagUtils */;
|
||||
const hasApplicationFlag = applicationFlagUtilsModule.hasApplicationFlag;
|
||||
const EMBEDDED = ApplicationFlags.EMBEDDED;
|
||||
object2.isEmbeddedFlow = Reflect.apply(hasApplicationFlag, applicationFlagUtilsModule, [r9, EMBEDDED]);
|
||||
object2.disclosures = disclosures;
|
||||
object2.integrationType = integrationType;
|
||||
const ComponentDispatch = (require(1239) /* metro dependency 1239: ComponentDispatchUtils */).ComponentDispatch;
|
||||
const dispatch = ComponentDispatch.dispatch;
|
||||
const SHOW_OAUTH2_MODAL = ComponentActions.SHOW_OAUTH2_MODAL;
|
||||
Reflect.apply(dispatch, ComponentDispatch, [SHOW_OAUTH2_MODAL, object2]);
|
||||
return value2;
|
||||
}
|
||||
|
||||
function callback_99707(a0) { // fn#99707, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13249:768, offset: 0x021d28ac, size: 122 bytes, params: 2, frame: 16
|
||||
var value;
|
||||
if (a0.location != null) {
|
||||
env0_0(a0.location);
|
||||
} else {
|
||||
value = environment.__proto__.__proto__;
|
||||
require(new (importDefault(8076) /* metro dependency 8076: RPCError */)({errorCode: RPCErrors.OAUTH2_ERROR},
|
||||
'User cancelled authorization'));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,80 @@
|
||||
/* Metro module 13062; source: modules/rpc/native/server/commands/unsupported.tsx; dependencies: [661, 13063, 2] */
|
||||
function _fun99730(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#99730, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13252:6, offset: 0x021d410a, size: 985 bytes, params: 8, frame: 19
|
||||
var object2;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const RPCCommands = (require(661) /* metro dependency 661: Constants */).RPCCommands;
|
||||
object2 = {};
|
||||
const SET_USER_VOICE_SETTINGS = RPCCommands.SET_USER_VOICE_SETTINGS;
|
||||
const unsupportedCommand = (require(13063) /* metro dependency 13063: unavailableCommand */).unsupportedCommand;
|
||||
object2[SET_USER_VOICE_SETTINGS] = unsupportedCommand;
|
||||
const SET_USER_VOICE_SETTINGS_2 = RPCCommands.SET_USER_VOICE_SETTINGS_2;
|
||||
object2[SET_USER_VOICE_SETTINGS_2] = unsupportedCommand;
|
||||
const PUSH_TO_TALK = RPCCommands.PUSH_TO_TALK;
|
||||
object2[PUSH_TO_TALK] = unsupportedCommand;
|
||||
const SET_VOICE_SETTINGS_2 = RPCCommands.SET_VOICE_SETTINGS_2;
|
||||
object2[SET_VOICE_SETTINGS_2] = unsupportedCommand;
|
||||
const SET_VOICE_SETTINGS = RPCCommands.SET_VOICE_SETTINGS;
|
||||
object2[SET_VOICE_SETTINGS] = unsupportedCommand;
|
||||
const SEND_ACTIVITY_JOIN_INVITE = RPCCommands.SEND_ACTIVITY_JOIN_INVITE;
|
||||
object2[SEND_ACTIVITY_JOIN_INVITE] = unsupportedCommand;
|
||||
const CLOSE_ACTIVITY_JOIN_REQUEST = RPCCommands.CLOSE_ACTIVITY_JOIN_REQUEST;
|
||||
object2[CLOSE_ACTIVITY_JOIN_REQUEST] = unsupportedCommand;
|
||||
const ACTIVITY_INVITE_USER = RPCCommands.ACTIVITY_INVITE_USER;
|
||||
object2[ACTIVITY_INVITE_USER] = unsupportedCommand;
|
||||
const ACCEPT_ACTIVITY_INVITE = RPCCommands.ACCEPT_ACTIVITY_INVITE;
|
||||
object2[ACCEPT_ACTIVITY_INVITE] = unsupportedCommand;
|
||||
const OPEN_SHARE_MOMENT_DIALOG = RPCCommands.OPEN_SHARE_MOMENT_DIALOG;
|
||||
object2[OPEN_SHARE_MOMENT_DIALOG] = unsupportedCommand;
|
||||
const INVITE_BROWSER = RPCCommands.INVITE_BROWSER;
|
||||
object2[INVITE_BROWSER] = unsupportedCommand;
|
||||
const DEEP_LINK = RPCCommands.DEEP_LINK;
|
||||
object2[DEEP_LINK] = unsupportedCommand;
|
||||
const CONNECTIONS_CALLBACK = RPCCommands.CONNECTIONS_CALLBACK;
|
||||
object2[CONNECTIONS_CALLBACK] = unsupportedCommand;
|
||||
const BILLING_POPUP_BRIDGE_CALLBACK = RPCCommands.BILLING_POPUP_BRIDGE_CALLBACK;
|
||||
object2[BILLING_POPUP_BRIDGE_CALLBACK] = unsupportedCommand;
|
||||
const BRAINTREE_POPUP_BRIDGE_CALLBACK = RPCCommands.BRAINTREE_POPUP_BRIDGE_CALLBACK;
|
||||
object2[BRAINTREE_POPUP_BRIDGE_CALLBACK] = unsupportedCommand;
|
||||
const GIFT_CODE_BROWSER = RPCCommands.GIFT_CODE_BROWSER;
|
||||
object2[GIFT_CODE_BROWSER] = unsupportedCommand;
|
||||
const GUILD_TEMPLATE_BROWSER = RPCCommands.GUILD_TEMPLATE_BROWSER;
|
||||
object2[GUILD_TEMPLATE_BROWSER] = unsupportedCommand;
|
||||
const BROWSER_HANDOFF = RPCCommands.BROWSER_HANDOFF;
|
||||
object2[BROWSER_HANDOFF] = unsupportedCommand;
|
||||
const SET_OVERLAY_LOCKED = RPCCommands.SET_OVERLAY_LOCKED;
|
||||
object2[SET_OVERLAY_LOCKED] = unsupportedCommand;
|
||||
const OPEN_OVERLAY_ACTIVITY_INVITE = RPCCommands.OPEN_OVERLAY_ACTIVITY_INVITE;
|
||||
object2[OPEN_OVERLAY_ACTIVITY_INVITE] = unsupportedCommand;
|
||||
const OPEN_OVERLAY_GUILD_INVITE = RPCCommands.OPEN_OVERLAY_GUILD_INVITE;
|
||||
object2[OPEN_OVERLAY_GUILD_INVITE] = unsupportedCommand;
|
||||
const OPEN_OVERLAY_VOICE_SETTINGS = RPCCommands.OPEN_OVERLAY_VOICE_SETTINGS;
|
||||
object2[OPEN_OVERLAY_VOICE_SETTINGS] = unsupportedCommand;
|
||||
const VALIDATE_APPLICATION = RPCCommands.VALIDATE_APPLICATION;
|
||||
object2[VALIDATE_APPLICATION] = unsupportedCommand;
|
||||
const GET_ENTITLEMENT_TICKET = RPCCommands.GET_ENTITLEMENT_TICKET;
|
||||
object2[GET_ENTITLEMENT_TICKET] = unsupportedCommand;
|
||||
const START_PURCHASE = RPCCommands.START_PURCHASE;
|
||||
object2[START_PURCHASE] = unsupportedCommand;
|
||||
const START_PREMIUM_PURCHASE = RPCCommands.START_PREMIUM_PURCHASE;
|
||||
object2[START_PREMIUM_PURCHASE] = unsupportedCommand;
|
||||
const ENCOURAGE_HW_ACCELERATION = RPCCommands.ENCOURAGE_HW_ACCELERATION;
|
||||
object2[ENCOURAGE_HW_ACCELERATION] = unsupportedCommand;
|
||||
const TOGGLE_VIDEO = RPCCommands.TOGGLE_VIDEO;
|
||||
object2[TOGGLE_VIDEO] = unsupportedCommand;
|
||||
const TOGGLE_SCREENSHARE = RPCCommands.TOGGLE_SCREENSHARE;
|
||||
object2[TOGGLE_SCREENSHARE] = unsupportedCommand;
|
||||
const SEND_GENERIC_EVENT = RPCCommands.SEND_GENERIC_EVENT;
|
||||
object2[SEND_GENERIC_EVENT] = (require(13063) /* metro dependency 13063: unavailableCommand */).deprecatedCommand;
|
||||
const OPEN_MESSAGE = RPCCommands.OPEN_MESSAGE;
|
||||
object2[OPEN_MESSAGE] = unsupportedCommand;
|
||||
const OPEN_INVITE = RPCCommands.OPEN_INVITE;
|
||||
object2[OPEN_INVITE] = unsupportedCommand;
|
||||
const SHARE_INTERACTION = RPCCommands.SHARE_INTERACTION;
|
||||
object2[SHARE_INTERACTION] = unsupportedCommand;
|
||||
const SET_SUPPRESS_NOTIFICATIONS = RPCCommands.SET_SUPPRESS_NOTIFICATIONS;
|
||||
object2[SET_SUPPRESS_NOTIFICATIONS] = unsupportedCommand;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/rpc/native/server/commands/unsupported.tsx');
|
||||
exports.default = object2;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,21 @@
|
||||
/* Metro module 13061; source: modules/rpc/native/server/commands/voiceSettings.tsx; dependencies: [4135, 661, 4122, 8080, 2] */
|
||||
function _fun99728(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#99728, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13251:6, offset: 0x021d4003, size: 226 bytes, params: 8, frame: 23
|
||||
var object2;
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const RPC_SCOPE_CONFIG = (require(4135) /* metro dependency 4135: Constants */).RPC_SCOPE_CONFIG;
|
||||
const RPCCommands = (require(661) /* metro dependency 661: Constants */).RPCCommands;
|
||||
object2 = {};
|
||||
const GET_VOICE_SETTINGS = RPCCommands.GET_VOICE_SETTINGS;
|
||||
const ANY = RPC_SCOPE_CONFIG.ANY;
|
||||
const {RPC, RPC_VOICE_READ} = (require(4122) /* metro dependency 4122: OAuth2Scopes */).OAuth2Scopes;
|
||||
object2[GET_VOICE_SETTINGS] = {scope: {[ANY]: [RPC, RPC_VOICE_READ]}, handler: handler_99729};
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/rpc/native/server/commands/voiceSettings.tsx');
|
||||
exports.default = object2;
|
||||
}
|
||||
|
||||
function handler_99729() { // fn#99729, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13251:259, offset: 0x021d40e5, size: 37 bytes, params: 1, frame: 11
|
||||
return (require(8080) /* metro dependency 8080: NativeRPCHelpers */).getDeprecatedVoiceSettings();
|
||||
}
|
||||
|
||||
@@ -0,0 +1,15 @@
|
||||
/* Metro module 8072; source: modules/rpc/native/server/transports/WebViewPostMessageTransport.tsx; dependencies: [3, 8073, 8074, 8080, 8084, 2] */
|
||||
function _fun64077(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#64077, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8250:6, offset: 0x01b9a9f7, size: 199 bytes, params: 8, frame: 21
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
let value = importDefault(3) /* metro dependency 3: Logger */;
|
||||
value = new value('RPCServer:PostMessage');
|
||||
value = new (importDefault(8074) /* metro dependency 8074: PostMessageTransport */)((require(8080) /* metro dependency 8080: NativeRPCHelpers */).validateSocketClient,
|
||||
value, importDefault(8084) /* metro dependency 8084: WebViewWindowProxySocketFactory */, function(a0, a1,
|
||||
{id}) {
|
||||
a1.info('Socket Message: ' + id, importDefault(dependencyMap[1])(a0));
|
||||
});
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/rpc/native/server/transports/WebViewPostMessageTransport.tsx');
|
||||
exports.default = value;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,23 @@
|
||||
/* Metro module 8084; source: modules/rpc/native/server/transports/WebViewWindowProxySocketFactory.tsx; dependencies: [8085, 8073, 2] */
|
||||
function _fun64806(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#64806, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8269:6, offset: 0x01bb5ccf, size: 97 bytes, params: 8, frame: 17
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/rpc/native/server/transports/WebViewWindowProxySocketFactory.tsx');
|
||||
exports.default = _default_64807;
|
||||
}
|
||||
|
||||
function _default_64807({origin, postMessageToRPCClient, frameId, version, encoding, logger, postClose}) { // fn#64807, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8269:105, offset: 0x01bb5d30, size: 147 bytes, params: 2, frame: 19
|
||||
let value = importDefault(8085) /* metro dependency 8085: PostMessageProxySocket */;
|
||||
const object2 = {origin: origin, postMessageToRPCClient: postMessageToRPCClient, frameId: frameId, version: version,
|
||||
encoding: encoding, logger: logger, postClose: postClose, onSendingToRPCClient: onSendingToRPCClient};
|
||||
const value2 = Object.create(value.prototype, {constructor: {value: value}});
|
||||
value = new value(object2);
|
||||
return value instanceof Object ? value : value2;
|
||||
}
|
||||
|
||||
function onSendingToRPCClient(a0, a1) { // fn#64808, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8269:317, owner: _default_64807.onSendingToRPCClient, offset: 0x01bb5dc3, size: 81 bytes, params: 3, frame: 15
|
||||
const loggerBinding = logger;
|
||||
loggerBinding.info('Socket Emit: ' + a1,
|
||||
(importDefault(8073) /* metro dependency 8073: stripSensitiveLoggingData */)(a0));
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user