decord/source/modules/app_database/system/StartupData.native.tsx
github-actions cd74c1f217 chore: update source for alpha 345.5
Skipped 1 file(s) >100MB (GitHub limit): source/__vendor/09xxx/9667_m.js (378 MB)
2026-09-05 10:56:28 +00:00

41 lines
1.1 KiB
TypeScript

// Module ID: 2004
// Function ID: 2005
// Name: getUserId
// Dependencies: [17, 1115, 2005, 2]
// Exports: getUserId, setUserId
// Module 2004 (getUserId)
import set from "set" /* 2 */;
import get_ActivityIndicator from "get ActivityIndicator" /* 17 */;
import set2 from "set" /* 1115 */;
import enforcingDefault from "enforcing" /* 2005 */;
const NativeModules = get_ActivityIndicator.NativeModules;
const result = set.fileFinishedImporting("modules/app_database/system/StartupData.native.tsx");
export const getUserId = function getUserId() {
if (obj.isAndroid()) {
let userId = enforcingDefault.getConstants().userId;
let tmp6 = null;
if (null != userId) {
tmp6 = userId;
}
return tmp6;
} else {
userId = NativeModules.DCDAppDatabase.userId;
if (userId == null) {
userId = null;
}
return userId;
}
obj = set2;
};
export const setUserId = function setUserId(id) {
if (obj.isAndroid()) {
enforcingDefault.setUserId(id);
const obj2 = enforcingDefault;
} else {
const DCDAppDatabase = NativeModules.DCDAppDatabase;
DCDAppDatabase.setUserId(id);
}
};