mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
fix(core): prevent a circular reference because of SDK_VERSION (#10097)
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user