Modern Apps git

← Modern-Apps.git

notes: sync and wear UI imports follow the protocol into wearlink

Commit
b6ccdfaec02b4e5e4f93b7868de3645e63d2612f
Author
Vayun Mathur <[email protected]>
When
2026-12-01 17:07 UTC (4 days ago)
Parents
c8b6c97
Follow-up to 6c66f46ff: WearNotesSync and the two wear
note screens rewire their WearNotesProtocol references to
com.vayunmathur.library.wearlink.notes. Without them the
committed tree referenced the deleted app-side copies.

Diff

notes-wear/src/main/java/com/vayunmathur/notes/wear/ui/WearNoteScreen.kt
diff --git a/notes-wear/src/main/java/com/vayunmathur/notes/wear/ui/WearNoteScreen.kt b/notes-wear/src/main/java/com/vayunmathur/notes/wear/ui/WearNoteScreen.ktindex c45de5c488..584b564bdc 100644--- a/notes-wear/src/main/java/com/vayunmathur/notes/wear/ui/WearNoteScreen.kt+++ b/notes-wear/src/main/java/com/vayunmathur/notes/wear/ui/WearNoteScreen.kt@@ -41,7 +41,7 @@ fun WearNoteScreen(  */ @Composable internal fun WearNoteContent(-    note: com.vayunmathur.notes.wear.domain.WearNote?,+    note: com.vayunmathur.library.wearlink.notes.WearNote?,     onEdit: (String) -> Unit,     onDelete: (String) -> Unit,     onBack: () -> Unit,
notes-wear/src/main/java/com/vayunmathur/notes/wear/ui/WearNotesListScreen.kt
diff --git a/notes-wear/src/main/java/com/vayunmathur/notes/wear/ui/WearNotesListScreen.kt b/notes-wear/src/main/java/com/vayunmathur/notes/wear/ui/WearNotesListScreen.ktindex 3a4631e35c..4353dafe16 100644--- a/notes-wear/src/main/java/com/vayunmathur/notes/wear/ui/WearNotesListScreen.kt+++ b/notes-wear/src/main/java/com/vayunmathur/notes/wear/ui/WearNotesListScreen.kt@@ -45,7 +45,7 @@ fun WearNotesListScreen(  */ @Composable internal fun WearNotesListContent(-    notes: List<com.vayunmathur.notes.wear.domain.WearNote>,+    notes: List<com.vayunmathur.library.wearlink.notes.WearNote>,     pendingCount: Int,     onOpenNote: (String) -> Unit,     onCreateNote: () -> Unit,
notes/src/main/java/com/vayunmathur/notes/sync/WearNotesSync.kt
diff --git a/notes/src/main/java/com/vayunmathur/notes/sync/WearNotesSync.kt b/notes/src/main/java/com/vayunmathur/notes/sync/WearNotesSync.ktindex 71cc3a3c8f..0300a8e0d8 100644--- a/notes/src/main/java/com/vayunmathur/notes/sync/WearNotesSync.kt+++ b/notes/src/main/java/com/vayunmathur/notes/sync/WearNotesSync.kt@@ -11,14 +11,14 @@ import com.vayunmathur.notes.data.NoteBody import com.vayunmathur.notes.data.NotesRepository import com.vayunmathur.notes.data.body import com.vayunmathur.notes.data.withBody-import com.vayunmathur.notes.domain.WearNote-import com.vayunmathur.notes.domain.WearNoteOp-import com.vayunmathur.notes.domain.WearNotesProtocol-import com.vayunmathur.notes.domain.WearNotesSnapshot-import com.vayunmathur.notes.domain.WearOpKind-import com.vayunmathur.notes.domain.WearWatchState-import com.vayunmathur.notes.domain.buildWearSnapshot-import com.vayunmathur.notes.domain.wearNoteWins+import com.vayunmathur.library.wearlink.notes.WearNote+import com.vayunmathur.library.wearlink.notes.WearNoteOp+import com.vayunmathur.library.wearlink.notes.WearNotesProtocol+import com.vayunmathur.library.wearlink.notes.WearNotesSnapshot+import com.vayunmathur.library.wearlink.notes.WearOpKind+import com.vayunmathur.library.wearlink.notes.WearWatchState+import com.vayunmathur.library.wearlink.notes.buildWearSnapshot+import com.vayunmathur.library.wearlink.notes.wearNoteWins import kotlinx.coroutines.CoroutineScope import kotlinx.coroutines.Dispatchers import kotlinx.coroutines.Job@@ -55,7 +55,7 @@ data class WearNotesSyncState(  * belt-and-braces check) — a text replacement would destroy those blocks.  * An UPSERT is likewise refused when the watch could only have seen a  * truncated copy of the note: the snapshot caps title/body (see- * [com.vayunmathur.notes.domain.buildWearSnapshot]), so an edit built+ * [com.vayunmathur.library.wearlink.notes.buildWearSnapshot]), so an edit built  * from it carries none of the text past the cap, and applying it would  * silently delete that unseen tail. DELETE tombstones any note, matching  * [NotesRepository.delete] semantics so the deletion also propagates over