decord/source/modules/app_database/system/StartupData.native.tsx
github-actions e510164e6b chore: update source for alpha 346.2
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4759.js (118.4 MB)
2026-09-10 05:38:07 +00:00

40 lines
1.1 KiB
TypeScript

// Module ID: 2004
// Function ID: 2005
// Name: StartupData
// Dependencies: [17, 1115, 2005, 2]
// Exports: getUserId, setUserId
// Module 2004 (StartupData)
import _mod17 from "module_17" /* 17 */;
import PlatformUtils from "PlatformUtils" /* 1115 */;
import NativeAppDatabaseModuleDefault from "NativeAppDatabaseModule" /* 2005 */;
import size from "module_2" /* 2 */;
const NativeModules = _mod17.NativeModules;
const result = size.fileFinishedImporting("modules/app_database/system/StartupData.native.tsx");
export const getUserId = function getUserId() {
if (obj.isAndroid()) {
const userId = NativeAppDatabaseModuleDefault.getConstants().userId;
let tmp6 = null;
if (null != userId) {
tmp6 = userId;
}
return tmp6;
} else {
let userId1 = NativeModules.DCDAppDatabase.userId;
if (userId1 == null) {
userId1 = null;
}
return userId1;
}
obj = PlatformUtils;
};
export const setUserId = function setUserId(id) {
if (obj.isAndroid()) {
NativeAppDatabaseModuleDefault.setUserId(id);
} else {
const DCDAppDatabase = NativeModules.DCDAppDatabase;
DCDAppDatabase.setUserId(id);
}
};