Skip to content

Commit

Permalink
chore: refactoring to try and prevent import warning
Browse files Browse the repository at this point in the history
  • Loading branch information
farfromrefug committed Nov 20, 2022
1 parent 21b94b9 commit 9ea7d2b
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion packages/core/utils/index.android.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { ad } from './native-helper';
import { SDK_VERSION } from '../utils';
import { FileSystemAccess } from '../file-system/file-system-access';
import { Trace } from '../trace';

Expand All @@ -8,6 +7,7 @@ export * from './utils-common';
export { Source } from './debug';

const MIN_URI_SHARE_RESTRICTED_APK_VERSION = 24;
export const SDK_VERSION = android.os.Build.VERSION.SDK_INT;

export function GC() {
gc();
Expand Down
2 changes: 2 additions & 0 deletions packages/core/utils/index.ios.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ export { dataDeserialize, dataSerialize, iOSNativeHelper } from './native-helper
export * from './utils-common';
export { Source } from './debug';

export const SDK_VERSION = parseFloat(UIDevice.currentDevice.systemVersion);

export function openFile(filePath: string): boolean {
try {
const appPath = iOSNativeHelper.getCurrentAppPath();
Expand Down
2 changes: 0 additions & 2 deletions packages/core/utils/utils.android.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,3 @@
* Left here for convenience (over time can eventually remove these)
*/
export * from './index';

export const SDK_VERSION = android.os.Build.VERSION.SDK_INT;
2 changes: 0 additions & 2 deletions packages/core/utils/utils.ios.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,3 @@
* Left here for convenience (over time can eventually remove these)
*/
export * from './index';

export const SDK_VERSION = parseFloat(UIDevice.currentDevice.systemVersion);

0 comments on commit 9ea7d2b

Please sign in to comment.