mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
chore: cleanup utils packaging
This commit is contained in:
@ -1,6 +1,6 @@
|
||||
import * as textModule from '../text';
|
||||
import { getNativeApplication } from '../application';
|
||||
import { SDK_VERSION } from '../utils/utils';
|
||||
import { SDK_VERSION } from '../utils';
|
||||
|
||||
import type { IFileSystemAccess } from './file-system-access';
|
||||
|
||||
|
||||
@ -1,12 +1,13 @@
|
||||
import { ad } from './native-helper';
|
||||
import { SDK_VERSION } from '../utils';
|
||||
import { FileSystemAccess } from '../file-system/file-system-access';
|
||||
import { Trace } from '../trace';
|
||||
|
||||
export { ad, dataDeserialize, dataSerialize, iOSNativeHelper } from './native-helper';
|
||||
export * from './utils-common';
|
||||
export * from './common';
|
||||
export { Source } from './debug';
|
||||
|
||||
export const SDK_VERSION = android.os.Build.VERSION.SDK_INT;
|
||||
|
||||
const MIN_URI_SHARE_RESTRICTED_APK_VERSION = 24;
|
||||
|
||||
export function GC() {
|
||||
|
||||
@ -2,9 +2,11 @@ import { iOSNativeHelper } from './native-helper';
|
||||
import { Trace } from '../trace';
|
||||
|
||||
export { dataDeserialize, dataSerialize, iOSNativeHelper } from './native-helper';
|
||||
export * from './utils-common';
|
||||
export * from './common';
|
||||
export { Source } from './debug';
|
||||
|
||||
export const SDK_VERSION = parseFloat(UIDevice.currentDevice.systemVersion);
|
||||
|
||||
export function openFile(filePath: string): boolean {
|
||||
try {
|
||||
const appPath = iOSNativeHelper.getCurrentAppPath();
|
||||
|
||||
@ -1,7 +0,0 @@
|
||||
/**
|
||||
* A lot of plugins still used utils/utils
|
||||
* Left here for convenience (over time can eventually remove these)
|
||||
*/
|
||||
export * from './index';
|
||||
|
||||
export const SDK_VERSION = android.os.Build.VERSION.SDK_INT;
|
||||
1
packages/core/utils/utils.d.ts
vendored
1
packages/core/utils/utils.d.ts
vendored
@ -1 +0,0 @@
|
||||
export * from './index';
|
||||
@ -1,7 +0,0 @@
|
||||
/**
|
||||
* A lot of plugins still used utils/utils
|
||||
* 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