| /expo/packages/expo-asset/src/__tests__/ |
| H A D | Asset-test.ts | 11 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 D | downloadAppAsync.ts | 19 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 D | PlatformUtils.ts | 47 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 D | Asset.ts | 8 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 D | PlatformUtils.web.ts | 8 export async function downloadAsync(uri, hash, type, name): Promise<string> { function
|
| /expo/packages/expo-asset/build/ |
| H A D | PlatformUtils.js | 35 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 D | Asset.js | 7 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 D | PlatformUtils.web.d.ts | 5 export declare function downloadAsync(uri: any, hash: any, type: any, name: any): Promise<string>; function
|
| H A D | PlatformUtils.web.js | 6 export async function downloadAsync(uri, hash, type, name) { function
|
| H A D | PlatformUtils.d.ts | 12 export declare function downloadAsync(uri: any, hash: any, type: any, name: any): Promise<string>;
|
| H A D | Asset.d.ts | 100 downloadAsync(): Promise<this>;
|
| /expo/apps/test-suite/tests/ |
| H A D | FileSystem.js | 38 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 D | Asset.web.js | 26 await asset.downloadAsync(); 35 await asset.downloadAsync();
|
| H A D | Asset.js | 42 await asset.downloadAsync(); 51 await asset.downloadAsync();
|
| /expo/docs/public/static/examples/v47.0.0/filesystem/ |
| H A D | gifManagement.ts | 29 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 D | gifManagement.ts | 29 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 D | gifManagement.ts | 29 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 D | gifManagement.ts | 29 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 D | gifManagement.ts | 29 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 D | FontLoader.ts | 45 if (!asset.downloadAsync) { 52 await asset.downloadAsync();
|
| /expo/packages/expo-font/build/ |
| H A D | FontLoader.js | 34 if (!asset.downloadAsync) { 37 await asset.downloadAsync();
|
| /expo/packages/expo-font/src/__tests__/ |
| H A D | Font-test.native.ts | 14 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 D | FileSystem.js | 200 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 D | FileSystem.d.ts | 119 export declare function downloadAsync(uri: string, fileUri: string, options?: DownloadOptions): Pro… 204 downloadAsync(): Promise<FileSystemDownloadResult | undefined>;
|
| /expo/packages/expo-file-system/src/ |
| H A D | FileSystem.ts | 251 export async function downloadAsync( function 256 if (!ExponentFileSystem.downloadAsync) { 260 return await ExponentFileSystem.downloadAsync(uri, fileUri, { 485 async downloadAsync(): Promise<FileSystemDownloadResult | undefined> {
|