Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 9ea7d2b

Browse filesBrowse files
committed
chore: refactoring to try and prevent import warning
1 parent 21b94b9 commit 9ea7d2b
Copy full SHA for 9ea7d2b

File tree

Expand file treeCollapse file tree

4 files changed

+3
-5
lines changed
Filter options
Expand file treeCollapse file tree

4 files changed

+3
-5
lines changed

‎packages/core/utils/index.android.ts

Copy file name to clipboardExpand all lines: packages/core/utils/index.android.ts
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import { ad } from './native-helper';
2-
import { SDK_VERSION } from '../utils';
32
import { FileSystemAccess } from '../file-system/file-system-access';
43
import { Trace } from '../trace';
54

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

109
const MIN_URI_SHARE_RESTRICTED_APK_VERSION = 24;
10+
export const SDK_VERSION = android.os.Build.VERSION.SDK_INT;
1111

1212
export function GC() {
1313
gc();

‎packages/core/utils/index.ios.ts

Copy file name to clipboardExpand all lines: packages/core/utils/index.ios.ts
+2Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ export { dataDeserialize, dataSerialize, iOSNativeHelper } from './native-helper
55
export * from './utils-common';
66
export { Source } from './debug';
77

8+
export const SDK_VERSION = parseFloat(UIDevice.currentDevice.systemVersion);
9+
810
export function openFile(filePath: string): boolean {
911
try {
1012
const appPath = iOSNativeHelper.getCurrentAppPath();

‎packages/core/utils/utils.android.ts

Copy file name to clipboardExpand all lines: packages/core/utils/utils.android.ts
-2Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,3 @@
33
* Left here for convenience (over time can eventually remove these)
44
*/
55
export * from './index';
6-
7-
export const SDK_VERSION = android.os.Build.VERSION.SDK_INT;

‎packages/core/utils/utils.ios.ts

Copy file name to clipboardExpand all lines: packages/core/utils/utils.ios.ts
-2Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,3 @@
33
* Left here for convenience (over time can eventually remove these)
44
*/
55
export * from './index';
6-
7-
export const SDK_VERSION = parseFloat(UIDevice.currentDevice.systemVersion);

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.