Repository navigation
Commit 51d3a8e
committed
feat: android.storeCodeUncompressed build flag
With "android": { "storeCodeUncompressed": true } in app/package.json, the
app template adds .js, .mjs, .cjs, .map and the three metadata streams to
androidResources.noCompress, so they are stored in the APK and
loadCodeFromApk reads them without inflating. It costs APK size and is
independent of loadCodeFromApk, though it only pays off together with it.
noCompress matches by file-name suffix across the whole APK, not only under
assets/app, which is why the metadata streams are listed by full name
rather than as ".dat". The list is exposed as
project.ext.nsUncompressedCodeSuffixes.1 parent b537105 commit 51d3a8e
1 file changed
Lines changed: 22 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
216 | 216 | | |
217 | 217 | | |
218 | 218 | | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
219 | 237 | | |
220 | 238 | | |
221 | 239 | | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
222 | 244 | | |
223 | 245 | | |
224 | 246 | | |
| |||
0 commit comments