Repository navigation
Conversation
Kotlin and Compose. The person signs in on www.icloud.com inside a WebView, and the app reads the Notes CloudKit database from within that page, so no Mac, iPhone backup or file copy is needed. Notes are cached in app storage for offline reading. Built on GitHub Actions.
Following Apple's Human Interface Guidelines: inset grouped lists on the grouped background, large title, capsule search field, a Notes gold accent that meets 4.5:1 in light and dark, two-pane split view from 700 dp so portrait iPad-size tablets get it, pull to refresh, a more menu instead of text buttons, a confirmed sign-out, and a count in the bottom bar. Text styles follow the iPadOS Dynamic Type sizes.
Read the paragraph style runs of a note (kind, indent, checklist done flag) and draw checklists with round checkboxes, bulleted, dashed and numbered lists, headings and monospaced lines. Display only: ticking is not written back yet.
NoteDoc is a line-for-line Kotlin port of ICLOUD-SDK's notes_doc.py (the CRDT edit Notes merges), checked byte for byte against vectors the Python code made. A save reads the note fresh, refuses if it changed elsewhere, and sends one records/modify with the change tag, under this app's own writer id. Notes with formatting the SDK does not write stay read-only.
… drawings, sound Character formatting (bold, italic, underline, strikethrough), clickable links, headings, bulleted, dashed and numbered lists with indents, block quotes and monospaced lines. Attachments are read from their own iCloud records and kept on the tablet: tables from their CRDT document, pictures and drawings as images, scanned documents rendered page by page from their PDF, recordings playable, hashtags inline.
… keeps a note read-only
…ting The edit engine writes the kinds of line Notes has (headings, subheadings, monospaced, bulleted, dashed and numbered lists), list levels and block quotes, and keeps each kept character's format (bold, italic, underline, strikethrough, links, fonts), alignment and list numbers. On notes the SDK writes, the bytes are still the SDK's. The editor draws the lines as Notes does and gets an Aa menu to change a line's kind and level.
… first line is left as it is
…ist number restamp, first line kept as it is, no shared checklist ids, last empty line shown, taps forgotten after use
…s as it is; test edits a body line
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.
Hi! This adds a second app next to the original one, in its own folder
tablet/. Nothing in the existing Skip app is changed; the root README gets a short section pointing to it.What it is
A Kotlin/Compose Android app that signs in to iCloud on the device (Apple's own sign-in page in a WebView) and reads and edits Apple Notes directly. No Mac, no backup, no file permissions.
What it does
Keeping notes intact
Notes are CRDT documents. The edit engine (
NoteDoc.kt) is a port of a tested reference implementation, and the unit tests replay 278 recorded edits and require the same bytes back. Every save reads the note first and sends nothing if it changed elsewhere. Tested against real notes, with the Mac receiving every change without duplicates.Limits
Locked notes stay closed; notes with attachments are read-only; voice recordings show by name only; no "new note" yet.
Building
.github/workflows/tablet.ymlruns the unit tests and builds the APK on pushes touchingtablet/. It signs with a fixed debug key from the secretDEBUG_KEYSTORE_B64; without that secret the step needs adjusting (or the key line removed).Happy to change the layout, naming or anything else if you'd prefer it another way.