Home
last modified time | relevance | path

Searched refs:downloadAsync (Results 1 – 25 of 96) sorted by relevance

1234

/expo/packages/expo-asset/src/__tests__/
H A DAsset-test.ts11 downloadAsync: jest.fn(),
135 FileSystem.downloadAsync.mockReturnValueOnce({ md5: mockImageMetadata.hash });
136 await asset.downloadAsync();
158 expect(await asset.downloadAsync()).toEqual(
171 await expect(asset.downloadAsync()).rejects.toThrowError('failed MD5 integrity check');
184 await asset.downloadAsync();
186 expect(FileSystem.downloadAsync).not.toHaveBeenCalled();
196 FileSystem.downloadAsync.mockReturnValue({ md5: mockImageMetadata.hash });
198 await Promise.all([asset.downloadAsync(), asset.downloadAsync()]);
200 expect(FileSystem.downloadAsync).toHaveBeenCalledTimes(1);
[all …]
/expo/packages/@expo/cli/src/utils/
H A DdownloadAppAsync.ts19 async function downloadAsync({ function
74 await downloadAsync({ url, outputPath: tmpPath, cacheDirectory, onProgress });
80 await downloadAsync({ url, outputPath, cacheDirectory, onProgress });
/expo/packages/expo-asset/src/
H A DPlatformUtils.ts47 export async function downloadAsync(uri, hash, type, name): Promise<string> { function
66 const { md5 } = await FileSystem.downloadAsync(uri, localUri, {
97 await FileSystem.downloadAsync(uri, localUri);
H A DAsset.ts8 import { downloadAsync, IS_ENV_WITH_UPDATES_ENABLED } from './PlatformUtils';
133 return Promise.all(moduleIds.map((moduleId) => Asset.fromModule(moduleId).downloadAsync()));
240 async downloadAsync(): Promise<this> {
263 this.localUri = await downloadAsync(this.uri, this.hash, this.type, this.name);
H A DPlatformUtils.web.ts8 export async function downloadAsync(uri, hash, type, name): Promise<string> { function
/expo/packages/expo-asset/build/
H A DPlatformUtils.js35 export async function downloadAsync(uri, hash, type, name) { function
52 const { md5 } = await FileSystem.downloadAsync(uri, localUri, {
78 await FileSystem.downloadAsync(uri, localUri);
H A DAsset.js7 import { downloadAsync, IS_ENV_WITH_UPDATES_ENABLED } from './PlatformUtils';
107 return Promise.all(moduleIds.map((moduleId) => Asset.fromModule(moduleId).downloadAsync()));
201 async downloadAsync() { method in Asset
224 this.localUri = await downloadAsync(this.uri, this.hash, this.type, this.name);
H A DPlatformUtils.web.d.ts5 export declare function downloadAsync(uri: any, hash: any, type: any, name: any): Promise<string>; function
H A DPlatformUtils.web.js6 export async function downloadAsync(uri, hash, type, name) { function
H A DPlatformUtils.d.ts12 export declare function downloadAsync(uri: any, hash: any, type: any, name: any): Promise<string>;
H A DAsset.d.ts100 downloadAsync(): Promise<this>;
/expo/apps/test-suite/tests/
H A DFileSystem.js38 await throws(() => FS.downloadAsync('http://www.google.com', p + '../hello/world'));
40 await throws(() => FS.downloadAsync('http://www.google.com', p + '../hello/world'));
65 const { md5, headers } = await FS.downloadAsync(
80 await asset.downloadAsync();
121 const { md5 } = await FS.downloadAsync(
379 const { md5 } = await FS.downloadAsync(
425 await FS.downloadAsync('https://nonexistent-subdomain.expo.io', localUri, {
452 const { status } = await FS.downloadAsync('https://github.com/omg1231sdfaljs', localUri, {
466 await FS.downloadAsync(remoteUrl, localUri);
479 await FS.downloadAsync(remoteUrl, localFileUri);
H A DAsset.web.js26 await asset.downloadAsync();
35 await asset.downloadAsync();
H A DAsset.js42 await asset.downloadAsync();
51 await asset.downloadAsync();
/expo/docs/public/static/examples/v47.0.0/filesystem/
H A DgifManagement.ts29 await Promise.all(gifIds.map(id => FileSystem.downloadAsync(gifUrl(id), gifFileUri(id))));
47 await FileSystem.downloadAsync(gifUrl(gifId), fileUri);
/expo/docs/public/static/examples/v46.0.0/filesystem/
H A DgifManagement.ts29 await Promise.all(gifIds.map(id => FileSystem.downloadAsync(gifUrl(id), gifFileUri(id))));
47 await FileSystem.downloadAsync(gifUrl(gifId), fileUri);
/expo/docs/public/static/examples/unversioned/filesystem/
H A DgifManagement.ts29 await Promise.all(gifIds.map(id => FileSystem.downloadAsync(gifUrl(id), gifFileUri(id))));
47 await FileSystem.downloadAsync(gifUrl(gifId), fileUri);
/expo/docs/public/static/examples/v49.0.0/filesystem/
H A DgifManagement.ts29 await Promise.all(gifIds.map(id => FileSystem.downloadAsync(gifUrl(id), gifFileUri(id))));
47 await FileSystem.downloadAsync(gifUrl(gifId), fileUri);
/expo/docs/public/static/examples/v48.0.0/filesystem/
H A DgifManagement.ts29 await Promise.all(gifIds.map(id => FileSystem.downloadAsync(gifUrl(id), gifFileUri(id))));
47 await FileSystem.downloadAsync(gifUrl(gifId), fileUri);
/expo/packages/expo-font/src/
H A DFontLoader.ts45 if (!asset.downloadAsync) {
52 await asset.downloadAsync();
/expo/packages/expo-font/build/
H A DFontLoader.js34 if (!asset.downloadAsync) {
37 await asset.downloadAsync();
/expo/packages/expo-font/src/__tests__/
H A DFont-test.native.ts14 type MockAsset = { downloaded: boolean; downloadAsync: () => Promise<void>; localUri?: string };
15 type MockAssetOptions = { localUri?: string; downloaded?: boolean; downloadAsync?: any };
23 downloadAsync: jest.fn(async () => { constant
84 downloadAsync: jest.fn(async () => {}), constant
141 downloadAsync: jest.fn(async () => {}),
177 downloadAsync: jest.fn(async () => {}), constant
210 downloadAsync: jest.fn(async () => {}), constant
/expo/packages/expo-file-system/build/
H A DFileSystem.js200 export async function downloadAsync(uri, fileUri, options = {}) { function
201 if (!ExponentFileSystem.downloadAsync) {
204 return await ExponentFileSystem.downloadAsync(uri, fileUri, {
381 async downloadAsync() { method in DownloadResumable
H A DFileSystem.d.ts119 export declare function downloadAsync(uri: string, fileUri: string, options?: DownloadOptions): Pro…
204 downloadAsync(): Promise<FileSystemDownloadResult | undefined>;
/expo/packages/expo-file-system/src/
H A DFileSystem.ts251 export async function downloadAsync( function
256 if (!ExponentFileSystem.downloadAsync) {
260 return await ExponentFileSystem.downloadAsync(uri, fileUri, {
485 async downloadAsync(): Promise<FileSystemDownloadResult | undefined> {

1234