decord/source/modules/gateway/getCachedUseAltGateway.native.tsx

31 lines
871 B
TypeScript
Raw Normal View History

2026-08-25 06:04:03 +00:00
// Module ID: 13112
// Function ID: 13113
2026-07-20 16:05:17 +00:00
// Name: getCachedUseAltGateway
2026-07-29 08:29:29 +00:00
// Dependencies: [17, 500, 502, 2]
2026-07-20 16:05:17 +00:00
// Exports: default
2026-08-25 06:04:03 +00:00
// Module 13112 (getCachedUseAltGateway)
2026-08-24 06:08:38 +00:00
import set from "set" /* 2 */;
import get_ActivityIndicator from "get ActivityIndicator" /* 17 */;
import enforcingDefault from "enforcing" /* 502 */;
2026-07-23 10:11:24 +00:00
2026-08-24 06:08:38 +00:00
const NativeModules = get_ActivityIndicator.NativeModules;
const result = set.fileFinishedImporting("modules/gateway/getCachedUseAltGateway.native.tsx");
2026-07-20 16:05:17 +00:00
export default function getCachedUseAltGateway() {
if (obj.isAndroid()) {
2026-08-24 06:08:38 +00:00
let flag2 = enforcingDefault.getConstants().useAltGateway;
2026-07-29 08:29:29 +00:00
if (flag2 == null) {
flag2 = false;
}
let flag = flag2;
2026-08-24 06:08:38 +00:00
const obj2 = enforcingDefault;
2026-07-20 16:05:17 +00:00
} else {
2026-07-29 08:29:29 +00:00
flag = NativeModules.DCDFastConnectManager.useAltGateway;
if (flag == null) {
flag = false;
}
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
return flag;
2026-07-20 16:05:17 +00:00
};