Initial commit
This commit is contained in:
commit
af3b49f756
16065 files changed
+2938410
No files matched your search
@@ -0,0 +1,75 @@
|
||||
/* Metro module 106; source: unknown; dependencies: [] */
|
||||
function _fun1592(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#1592, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:131:6, offset: 0x00c62686, size: 107 bytes, params: 8, frame: 13
|
||||
const closure = function({httpServerLocation}) {
|
||||
return httpServerLocation.startsWith('/') ? httpServerLocation.slice(1) : httpServerLocation;
|
||||
};
|
||||
const env0_0 = {'0.75': 'ldpi', 1: 'mdpi', '1.5': 'hdpi', 2: 'xhdpi', 3: 'xxhdpi', 4: 'xxxhdpi'};
|
||||
const Set = global.Set;
|
||||
const set = new Set(['gif', 'jpeg', 'jpg', 'ktx', 'png', 'webp', 'xml']);
|
||||
module.exports = {getAndroidResourceFolderName: getAndroidResourceFolderName,
|
||||
getAndroidResourceIdentifier: getAndroidResourceIdentifier, getBasePath: closure};
|
||||
}
|
||||
|
||||
function getAndroidResourceFolderName(a0, a1) { // fn#1594, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:131:305, offset: 0x00c6271d, size: 313 bytes, params: 3, frame: 20
|
||||
var r1;
|
||||
var Number;
|
||||
var Error;
|
||||
var value6;
|
||||
var JSON;
|
||||
var value8;
|
||||
var value;
|
||||
const binding = env0_1;
|
||||
if (binding.has(a0.type)) {
|
||||
if (a1.toString() in env0_0) {
|
||||
r1 = env0_0[a1.toString()];
|
||||
if (r1) {
|
||||
return 'drawable-' + r1;
|
||||
}
|
||||
Error = global.Error;
|
||||
value6 = "Don't know which android drawable suffix to use for scale: " + a1;
|
||||
JSON = global.JSON;
|
||||
value8 = value6 + '\nAsset: ' + JSON.stringify(a0, null, '\t');
|
||||
JSON = global.JSON;
|
||||
value = JSON.stringify(env0_0, null, '\t');
|
||||
value = value8 + '\nPossible scales are:' + value;
|
||||
throw new Error();
|
||||
}
|
||||
Number = global.Number;
|
||||
if (Number.isFinite(a1)) {
|
||||
if (a1 > 0) {
|
||||
r1 = global.Math.round(160 * a1) + 'dpi';
|
||||
if (r1) {
|
||||
return 'drawable-' + r1;
|
||||
}
|
||||
Error = global.Error;
|
||||
value6 = "Don't know which android drawable suffix to use for scale: " + a1;
|
||||
JSON = global.JSON;
|
||||
value8 = value6 + '\nAsset: ' + JSON.stringify(a0, null, '\t');
|
||||
JSON = global.JSON;
|
||||
value = JSON.stringify(env0_0, null, '\t');
|
||||
value = value8 + '\nPossible scales are:' + value;
|
||||
throw new Error();
|
||||
}
|
||||
Error = global.Error;
|
||||
value = a1.toString();
|
||||
value = 'no such scale ' + value;
|
||||
throw new Error();
|
||||
}
|
||||
Error = global.Error;
|
||||
value = a1.toString();
|
||||
value = 'no such scale ' + value;
|
||||
throw new Error();
|
||||
}
|
||||
return 'raw';
|
||||
}
|
||||
|
||||
function getAndroidResourceIdentifier(a0) { // fn#1595, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:131:800, offset: 0x00c62856, size: 129 bytes, params: 2, frame: 13
|
||||
let value = getBasePath(a0);
|
||||
value += '/';
|
||||
value += a0.name;
|
||||
value = value.toLowerCase();
|
||||
value = value.replace(RegExp('\\/', 'g'), '_');
|
||||
value = value.replace(RegExp('([^a-z0-9_])', 'g'), '');
|
||||
return value.replace(RegExp('^(?:assets|assetsunstable_path)_', ''), '');
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user