manifest.json
The file that describes a native bundle and pairs its pieces.
Every native bundle has a manifest.json. A bundle loaded from a folder without one is refused, because it is the contract between your build, your update server and the app.
{
"target": "ios",
"renderer": { "module": "oct:renderer", "target": "universal", "text": "host",
"capabilities": ["scoped-styles", "visibility", "class-name-alias"] },
"hostProtocol": 2,
"hermesBytecode": 96,
"octane": "0.23.2",
"files": {
"app.js": "<sha256>", "app.css": "<sha256>", "app.hbc": "<sha256>", "app.ofrm": "<sha256>"
},
"frame": {
"file": "app.ofrm", "format": 4, "hbcFnv": "<FNV-1a 64 of app.hbc>",
"hosts": 35, "restyled": 0, "pageRestyle": false, "styles": [12, 12], "bytes": 6440
}
}| Field | Meaning |
|---|---|
target | The target this bundle was built for |
renderer | Octane renderer settings the bundle was compiled with |
hostProtocol | Version of the commands the bundle sends to the native host. The app refuses bundles above OctapusBundle.supportedHostProtocol |
hermesBytecode | Hermes bytecode version of app.hbc. The app also reads it from the file itself and refuses other versions |
octane | Octane version the bundle was built with |
files | SHA-256 of each file in the bundle, for integrity checks on download |
frame | The first-screen snapshot, or null when built without --bake |
frame
| Field | Meaning |
|---|---|
file | Snapshot file name |
format | .ofrm version (4) |
hbcFnv | FNV-1a 64 of the app.hbc it was baked from. The snapshot is only used with that bytecode |
hosts | Elements in the first commit |
restyled | Elements restyled on device because their style depends on the viewport |
pageRestyle | true if the page itself depends on the viewport, so everything is restyled |
styles | Distinct computed styles for light and dark |
bytes | Snapshot size |
The values in the example are illustrative.