fix(core): prevent a circular reference because of SDK_VERSION (#10097)

This commit is contained in:
farfromrefuge
2022-11-18 16:12:08 +00:00
committed by GitHub
parent 2e1d2c175b
commit c957b487a8
3 changed files with 4 additions and 3 deletions

View File

@@ -4,7 +4,6 @@ import { sanitizeModuleName } from '../ui/builder/module-name-sanitizer';
import * as layout from './layout-helper';
import { GC } from './index';
import { Device } from '../platform';
export { layout };
export * from './mainthread-helper';
@@ -192,5 +191,3 @@ export function queueGC(delay = 900, useThrottle?: boolean) {
debouncedGC.get(delay)();
}
}
export const SDK_VERSION = parseInt(Device.sdkVersion, 10);

View File

@@ -3,3 +3,5 @@
* Left here for convenience (over time can eventually remove these)
*/
export * from './index';
export const SDK_VERSION = android.os.Build.VERSION.SDK_INT;

View File

@@ -3,3 +3,5 @@
* Left here for convenience (over time can eventually remove these)
*/
export * from './index';
export const SDK_VERSION = parseFloat(UIDevice.currentDevice.systemVersion);