Repository navigation
Publish to Otto with native reports and installation lifecycle telemetry - #21
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add
ota-ns publishto send a packed, signed release to Otto using an app-scopedOTTO_TOKEN. Publication validates local bytes, app-defined channels and optional native fingerprints before transmission. Manifest/directive signing remains unchanged and private keys stay with the publisher.Initialize remote reporting when a cold launch calls
markReady()before the first check. Carry an optional persistent app-scopedinstallIdon lifecycle events and checks; include precise check timestamps, confirmed/prepared release references and the original native recovery time. Older anonymous payloads remain valid. Encode asset path segments to preserve reserved filename characters. EN/PT docs now describe Otto operations and actual lifecycle event names, replacing obsolete Orbit integration guidance and canonical documentation links.Validation:
npm run checkpassed with 54 tests and documentation builds passed. CI is green on the current head. Tests cover publication/fingerprint validation, request/event compatibility, identified cold-launch reporting and recovery timestamps. Against a local Otto server, a signed R8 Android build on a physical Android 16 device and an iOS 26.2 Simulator Release build completed real CLI publication, signed OTA activation, file reuse, intentional startup crashes, offline recovery, delayed recovery telemetry and signed rollback to embedded. The Console retained two stable installation references. The acceptance details are recorded in the bilingual validation guide.Related to #20. Console integration: https://github.com/getcortexlabs/otto/pull/6. npm release and real hosted DNS/SMTP acceptance remain separate; this PR does not claim physical iPhone validation or production deployment.