decord/source/modules/app_database/system/StartupData.native.tsx

42 lines
1.1 KiB
TypeScript
Raw Normal View History

2026-08-25 06:04:03 +00:00
// Module ID: 1974
// Function ID: 1975
2026-07-20 16:05:17 +00:00
// Name: getUserId
2026-08-25 06:04:03 +00:00
// Dependencies: [17, 500, 1975, 2]
2026-07-20 16:05:17 +00:00
// Exports: getUserId, setUserId
2026-08-25 06:04:03 +00:00
// Module 1974 (getUserId)
2026-08-24 06:08:38 +00:00
import set from "set" /* 2 */;
import get_ActivityIndicator from "get ActivityIndicator" /* 17 */;
import set2 from "set" /* 500 */;
2026-08-25 06:04:03 +00:00
import enforcingDefault from "enforcing" /* 1975 */;
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/app_database/system/StartupData.native.tsx");
2026-07-20 16:05:17 +00:00
export const getUserId = function getUserId() {
if (obj.isAndroid()) {
2026-08-24 06:08:38 +00:00
let userId = enforcingDefault.getConstants().userId;
2026-07-29 08:29:29 +00:00
let tmp6 = null;
if (null != userId) {
tmp6 = userId;
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
return tmp6;
2026-07-20 16:05:17 +00:00
} else {
2026-07-29 08:29:29 +00:00
userId = NativeModules.DCDAppDatabase.userId;
if (userId == null) {
userId = null;
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
return userId;
2026-07-20 16:05:17 +00:00
}
2026-08-24 06:08:38 +00:00
obj = set2;
2026-07-20 16:05:17 +00:00
};
export const setUserId = function setUserId(id) {
if (obj.isAndroid()) {
2026-08-24 06:08:38 +00:00
enforcingDefault.setUserId(id);
const obj2 = enforcingDefault;
2026-07-20 16:05:17 +00:00
} else {
const DCDAppDatabase = NativeModules.DCDAppDatabase;
DCDAppDatabase.setUserId(id);
}
};