File tree Expand file tree Collapse file tree 3 files changed +21
-6
lines changed
apps/src/templates/export/expo Expand file tree Collapse file tree 3 files changed +21
-6
lines changed Original file line number Diff line number Diff line change @@ -33,14 +33,25 @@ export default class CustomAsset {
33
33
// Ignore this because it throws if the dir already exists on Android
34
34
}
35
35
}
36
- ({ md5 } = await FileSystem.downloadAsync(this.asset.uri, localUri, {
36
+ if (this.asset.localUri) {
37
+ await FileSystem.copyAsync({
38
+ from: this.asset.localUri,
39
+ to: localUri,
40
+ });
41
+ ({ md5 } = await FileSystem.getInfoAsync(localUri, {
37
42
cache: true,
38
43
md5: true,
39
- }));
44
+ }));
45
+ } else {
46
+ ({ md5 } = await FileSystem.downloadAsync(this.asset.uri, localUri, {
47
+ cache: true,
48
+ md5: true,
49
+ }));
50
+ }
40
51
if (md5 !== this.asset.hash) {
41
52
throw new Error(
42
53
`Downloaded file for asset '${this.fileName} ` +
43
- `Located at ${this.asset. localUri} ` +
54
+ `Located at ${localUri} ` +
44
55
`failed MD5 integrity check`
45
56
);
46
57
}
Original file line number Diff line number Diff line change 4
4
"description": "<% - appName %> from Code.org Code Studio.",
5
5
"slug": "<% - appName .replace (/ ([^ a-zA-Z0-9 _\- ] + )/ gi , ' -' ) %> ",
6
6
"privacy": "public",
7
- "sdkVersion": "32 .0.0",
7
+ "sdkVersion": "31 .0.0",
8
8
"platforms": ["ios", "android"],
9
9
"version": "1.0.0",
10
10
"orientation": "portrait",
15
15
"backgroundColor": "#ffffff"
16
16
},
17
17
"updates": {
18
+ "enabled": false,
18
19
"fallbackToCacheTimeout": 0
19
20
},
21
+ "assetBundlePatterns": [
22
+ "**/*"
23
+ ],
20
24
"packagerOpts": {
21
25
"assetExts": [
22
26
"html",
Original file line number Diff line number Diff line change 8
8
"eject": "expo eject"
9
9
},
10
10
"dependencies": {
11
- "expo": "^32 .0.0 ",
11
+ "expo": "^31 .0.4 ",
12
12
"expo-cli": "^2.6.14",
13
13
"react": "16.5.0",
14
- "react-native": "https://github.com/expo/react-native/archive/sdk-32 .0.0 .tar.gz"
14
+ "react-native": "https://github.com/expo/react-native/archive/sdk-31 .0.1 .tar.gz"
15
15
}
16
16
}
You can’t perform that action at this time.
0 commit comments