Initial commit

This commit is contained in:
janisslsm committed 2026-07-27 16:20:00 +03:00
commit af3b49f756
16065 files changed
+2938410

No files matched your search

@@ -0,0 +1,40 @@
/* Metro module 11105; source: modules/device/native/getDeviceMediaPhotos.tsx; dependencies: [27, 3, 1216, 477, 11106, 2] */
function _fun85071(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#85071, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11291:6, offset: 0x01f62885, size: 166 bytes, params: 8, frame: 19
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_3 = (require(27) /* metro dependency 27 */).NativeModules;
let value = importDefault(3) /* metro dependency 3: Logger */;
value = new value('DeviceMedia.tsx');
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/device/native/getDeviceMediaPhotos.tsx');
exports.default = getDeviceMediaPhotos;
}
function getDeviceMediaPhotos({batchSize, endCursor, lastAssetIndex, lastNodeImageUri, extensions, onFetched, onError = getDeviceMediaPhotosU}) { // fn#85072, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11291:247, offset: 0x01f6292b, size: 280 bytes, params: 2, frame: 21
var CameraRollUtils;
var value;
const platformUtilsModule = require(477) /* metro dependency 477: PlatformUtils */;
if (platformUtilsModule.isIOS()) {
if ((importDefault(11106) /* metro dependency 11106: DCDPhotos */) != null) {
value = importDefault(11106) /* metro dependency 11106: DCDPhotos */;
value = value.getPhotos({'first': null, 'groupTypes': 'Recents', 'assetType': 'All', first: batchSize,
after: endCursor, extensions: extensions});
value = value.then(onFetched);
value.catch(onError);
}
} else {
CameraRollUtils = NativeModules.CameraRollUtils;
value = CameraRollUtils.getPhotos({first: batchSize, assetType: 'All', after: lastNodeImageUri,
offset: lastAssetIndex, extensions: extensions});
value = value.then(onFetched);
value.catch(onError);
}
}
function getDeviceMediaPhotosU(a0) { // fn#85073, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11291:373, owner: getDeviceMediaPhotos.u, offset: 0x01f62a43, size: 100 bytes, params: 2, frame: 16
const value = environment.__proto__;
env1_4.log('CameraRollUtils -- Failed to get photos with error ' + a0);
(importDefault(1216) /* metro dependency 1216: SentryUtilsNative */).captureException(a0,
{tags: {source: 'DEVICE_MEDIA'}});
}