File tree 6 files changed +25
-10
lines changed 6 files changed +25
-10
lines changed Original file line number Diff line number Diff line change @@ -571,7 +571,7 @@ export default {
571
571
sessionId : `${ getEnvironmentPrefix ( ) } -${ project . getCurrentId ( ) } ` ,
572
572
files,
573
573
name : project . getCurrentName ( ) ,
574
- sdkVersion : '32 .0.0' ,
574
+ sdkVersion : '31 .0.0' ,
575
575
} ) ;
576
576
577
577
// Important that index.html comes first:
Original file line number Diff line number Diff line change @@ -293,7 +293,7 @@ export default {
293
293
sessionId : `${ getEnvironmentPrefix ( ) } -${ project . getCurrentId ( ) } ` ,
294
294
files,
295
295
name : project . getCurrentName ( ) ,
296
- sdkVersion : '32 .0.0' ,
296
+ sdkVersion : '31 .0.0' ,
297
297
} ) ;
298
298
299
299
// Important that index.html comes first:
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
}
Original file line number Diff line number Diff line change 24
24
}
25
25
</style >
26
26
</head >
27
- <body class =" <%- exportClass %>" style =" margin :0 ; overflow :hidden ; position :absolute ; top :0 ; left :0 ; width :<%- appWidth %>px; height :<%- appHeight %>px;" >
28
- <div id =" sketch" class =" <%- exportClass %>" style =" position : absolute ;" ></div >
27
+ <body class =" <%- exportClass %>" style =" margin :0 ; overflow :hidden ; user-select : none ; -webkit-user-select : none ; -webkit-touch-callout : none ; position :fixed ; top :0 ; left :0 ; width :<%- appWidth %>px; height :<%- appHeight %>px;" >
28
+ <div id =" sketch" class =" <%- exportClass %>" style =" position :absolute ;" ></div >
29
29
<div id =" soft-buttons" class =" soft-buttons-none" >
30
30
<button id =" leftButton" disabled className =" arrow" >
31
31
</button >
You can’t perform that action at this time.
0 commit comments