27 lines
1.6 KiB
TypeScript
27 lines
1.6 KiB
TypeScript
/* Metro module 1582; source: utils/native/ClientInfoUtils.tsx; dependencies: [27, 477, 657, 2] */
|
|
function _fun17598(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#17598, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1709:6, offset: 0x00e70e30, size: 133 bytes, params: 8, frame: 18
|
|
const env0_0 = require;
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
const env0_3 = (require(27) /* metro dependency 27 */).NativeModules;
|
|
(require(2) /* metro dependency 2 */).fileFinishedImporting('utils/native/ClientInfoUtils.tsx');
|
|
exports.getConstants = getConstants_17599;
|
|
exports.getBuildNumberLabel = function() {
|
|
var value = '5867';
|
|
return ['0', '123456', '1234567890'].includes(value) ? 'dev (' + value + ')' : value;
|
|
};
|
|
}
|
|
|
|
function getConstants_17599() { // fn#17599, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1709:201, offset: 0x00e70eb5, size: 151 bytes, params: 1, frame: 13
|
|
const platformUtilsModule = require(477) /* metro dependency 477: PlatformUtils */;
|
|
if (platformUtilsModule.isAndroid()) {
|
|
if ((importDefault(657) /* metro dependency 657: NativeClientInfoModule */) === null) {
|
|
throw new global.Error('Turbo module RTNClientInfoManager is undefined for Android');
|
|
}
|
|
return (importDefault(657) /* metro dependency 657: NativeClientInfoModule */).getConstants();
|
|
}
|
|
const InfoDictionaryManager = NativeModules.InfoDictionaryManager;
|
|
return InfoDictionaryManager.getConstants();
|
|
}
|
|
|