Skip to content

Commit 7061f63

Browse files
committed
chore(): use scoped packages
1 parent 2c15f7f commit 7061f63

File tree

5 files changed

+3080
-18
lines changed

5 files changed

+3080
-18
lines changed

src/http/http.android.ts

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@ import {
88
SaveImageStorageKey,
99
TNSHttpSettings
1010
} from './http-request-common';
11-
import * as types from 'tns-core-modules/utils/types';
12-
import { isString } from 'tns-core-modules/utils/types';
13-
import { NetworkAgent } from 'tns-core-modules/debugger';
14-
import { getString, setString } from 'tns-core-modules/application-settings';
15-
import { File, Folder, knownFolders, path } from 'tns-core-modules/file-system';
11+
import * as types from '@nativescript/core/utils/types';
12+
import { isString } from '@nativescript/core/utils/types';
13+
import { NetworkAgent } from '@nativescript/core/debugger';
14+
import { getString, setString } from '@nativescript/core/application-settings';
15+
import { File, Folder, knownFolders, path } from '@nativescript/core/file-system';
1616
import { FileManager } from '..';
1717

1818
export type CancellablePromise = Promise<any> & { cancel: () => void };
@@ -531,9 +531,11 @@ export class Http {
531531

532532
}
533533

534-
535-
resolve(result.filePath);
536-
requestCallbacks.delete(id);
534+
// Investigate why a timeout is needed 🤔
535+
setTimeout(()=>{
536+
resolve(result.filePath);
537+
requestCallbacks.delete(id);
538+
},500)
537539
},
538540
onError(param0: string, param1: java.lang.Exception): void {
539541
reject({

src/http/http.ios.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import * as types from 'tns-core-modules/utils/types';
2-
import { File, knownFolders, path } from 'tns-core-modules/file-system';
1+
import * as types from '@nativescript/core/utils/types';
2+
import { File, knownFolders, path } from '@nativescript/core/file-system';
33
import { FileManager } from '../file/file';
44
import {
55
fileNameFromPath,
@@ -11,7 +11,7 @@ import {
1111
SaveImageStorageKey,
1212
TNSHttpSettings
1313
} from './http-request-common';
14-
import { getString, setString } from 'tns-core-modules/application-settings';
14+
import { getString, setString } from '@nativescript/core/application-settings';
1515

1616
export type CancellablePromise = Promise<any> & { cancel: () => void };
1717

0 commit comments

Comments
 (0)