Commit 0b11498
CloudKit Synchronization + Sharing (pointfreeco#112)
* wip
* wip
* wip
* wip
* wip
* wip
* wip
* wip
* wip
* wip
* wip
* wip
* wip
* a test for deletion
* Fixes pointfreeco#32 failure to compile in release configuration
* wip
* Fix a reference violation.
* wip
* add test
* wip
* wip
* format/
* wip
* wip
* fix tests
* fix tests
* add a test
* wip
* wip
* wip
* wip
* wip
* simplify
* wip
* Delete records in groups.
* wip
* wip
* wip
* some doc updates
* wip
* update package
* Support zones in mock cloud database.
* wip
* wip
* wip
* wip
* wip
* wip
* wip
* wip
* wip
* fix dep
* wip
* wip
* Apply suggestion from @stephencelis
Co-authored-by: Stephen Celis <stephen@stephencelis.com>
* Better way to process record/database changes in tests.
* Fail if we process changes without there being any changes.
* merge fix
* fix import
* Allow sync engine to be initalized with a zone.
* wip
* Updates swift-structured-queries
* 'Float16' is unavailable in Mac Catalyst
While Xcode’s error says 'Float16' is unavailable in Mac Catalyst, the docs suggest it is available on Apple silicon, and unavailable on Intel when targeting macOS. Checking for Intel allows archiving for catalyst.
* Account management.
* Handle account lifecycle events.
* wip
* Support account status in mock cloud kit.
* wip
* wip
* Derive metadatabase URL from database URL
* wip
* wip
* wip
* updates to docs
* write test for certain ck scenario
* wip
* Revert "wip"
This reverts commit ba77edd.
* wip
* get rid of uuid zeros
* docs
* wip
* wip
* Public method for fetching metadata.
* Revert "Public method for fetching metadata."
This reverts commit 6519f17.
* Public method for fetching metadata.
* Apply suggestions from code review
* wip
* wip;
* Update Tests/SharingGRDBTests/Internal/BaseCloudKitTests.swift
Co-authored-by: Stephen Celis <stephen@stephencelis.com>
* Update Tests/SharingGRDBTests/CloudKitTests/AccountLifecycleTests.swift
Co-authored-by: Stephen Celis <stephen@stephencelis.com>
* wip
* fix
* fix test
* wip
* wip
* wip
* todos
* Support in-memory metadatabase.
* wip
* wip
* fix merge
* Improve `SyncEngine.init` (pointfreeco#113)
* Improve `SyncEngine.init`
- Infer default cloud container using SwiftData
- Statically require string identifier primary keyed tables
* wip
* wip
* fix test
* wip
* wip
* wip
* Regenerate macro code for CloudKit tables. (pointfreeco#120)
* Regenerate macro code for CloudKit tables.
* formatting
* fix warnings
* fix typo
* wip
* Add Tagged support to SharingGRDB
* Add uniqueness to tag titles. (pointfreeco#119)
* Add uniqueness to tag titles.
* wip
* wip
* wip
* wip
* wip
* wip
* Improve un-sharing records.
* Add Available Permissions (pointfreeco#123)
Co-authored-by: David Moeller <david.moller@sensorfact.nl>
* Make sync engine play nicely with tests (pointfreeco#124)
* wip
* control dates internally
* wip
* wip
* add a test
* wip
* Handling more CloudKit sharing edge cases (pointfreeco#126)
* wip
* wip
* wip
* wip
* wip
* wip
* wip
* wip
* wip
* clean up
* wip
* wip
* wip
* wip
* Making sharing more testable (pointfreeco#128)
* Beginnings of making sharing more testable.
* wip
* wip
* wip
* wip
* fixes
* wip
* More sharing tests and improvements (pointfreeco#129)
* Fixing more sharing edge cases with tests.
* wip
* wip
* wip
* wip
* dont emit error when unsharing unshared record.
* wip
* fix
---------
Co-authored-by: Stephen Celis <stephen@stephencelis.com>
* Test for generated column behavior. (pointfreeco#136)
* Test for generated column behavior.
* snap
* wip
* Revert examples
* wip
* wip
* wip
* Fix upsert for tables that only have a primary key.
* add some tests
* Add `SyncEngine.{start,stop,isRunning}` (pointfreeco#142)
* Add `SyncEngine.{start,stop}()`
* wip
* wip
* wip
* wip
* wip
* wip
* wip
* Remove unneeded sleeps
* format
---------
Co-authored-by: Brandon Williams <mbrandonw@hey.com>
* CloudKit: Compile tests on non-macOS platforms (pointfreeco#144)
* CloudKit: Compile tests on non-macOS platforms
* Bump GRDB requirement
* wip
* wip
* wip
* Minimize exports
* wip
* wip
* Remove trigger check
* Some permission fixes (pointfreeco#147)
* Fix up some permission loopholes.
* wip
* wip
* clean up
* Document scene delegate methods for accepting shares. (pointfreeco#148)
* Document scene delegate methods for accepting shares.
* Update Sources/SharingGRDBCore/Documentation.docc/Articles/CloudKitSharing.md
---------
Co-authored-by: Stephen Celis <stephen@stephencelis.com>
* Clean up some tests
* Add link to apple docs for deploying schema
* update docs wrt SyncEngine.isSychnronizing
* Delete CK record when updating primary key. (pointfreeco#151)
* Delete CK record when updating primary key.
* wip
* wip
* Validate foreign keys point to synchronized tables. (pointfreeco#152)
* wip
* Lots of updates to docs. (pointfreeco#153)
* Lots of updates to docs.
* db error
* fixes
* Beginning of renaming package to SQLiteData.
* Rename more things.
* wip
* flatten
* wip
* wip
* wip
* wip
* wip
* wip
* wip
* wip
* wip
* wip
* wip
* wip
* wip
* fix test
* wip
* More docs (pointfreeco#154)
* More docs
* wip
* wip
* wip
* wip
* Format SQLiteData entry in README.md table
* wip
* Update Sources/SQLiteData/CloudKit/CloudKitSharing.swift
* Update Sources/SQLiteData/Documentation.docc/Articles/CloudKit.md
* Update Sources/SQLiteData/CloudKit/SyncMetadata.swift
* Format SQLiteData performance table for clarity
---------
Co-authored-by: Stephen Celis <stephen@stephencelis.com>
* Fetch pending record zone changes through metadatabase (pointfreeco#155)
* wip
* docs on uniqueness
* Update README.md
* wip
* Triage some todos (pointfreeco#157)
* Triage todos'
* wip
* wip
* wip
* wip
* wip
* CloudKit docs organization (pointfreeco#158)
* wip
* wip
* wip
* wip
* wip
* wip
* wip
* Add observation to `SyncEngine.isRunning` (pointfreeco#159)
* Add observation to `SyncEngine.isRunning`
* wip
* wip
* wip
* wip
* wip
* fix
* finish test
* Add test for cyclic schemas'
* docs on PK migration
* wip
* docs
* Audit reading from metadatabase (pointfreeco#161)
* Audit metadatabase
* convert more userDatabase to metadatabase
* wip
* wip
* wip
* wip
* format
* wip
* docs
* CloudKit sqlite data pragmas (pointfreeco#162)
* CloudKit: Use virtual table helpers
Let's prefer our builder over SQL strings when it's easy to do so.
* wip
* wip
* wip
* wip
* Move menu into toolbar hstack.
* Fix tests for iOS. (pointfreeco#165)
* Optimize a few sync metadata queries (pointfreeco#169)
Let's select/decode just the data we need.
* More efficient joins to SyncMetadata table (pointfreeco#163)
* Improve tools for joining SyncMetadata table.
* wip
* wip
* wip
* wip
* wip
* wip
---------
Co-authored-by: Stephen Celis <stephen@stephencelis.com>
* Make upsertFromServerRecord async. (pointfreeco#170)
Co-authored-by: Brandon Williams <mbrandonw@hey.com>
* Cloudkit sqlite data send changes background (pointfreeco#167)
* Immediately send pending changes when backgrounding app.
* wip;
* Revert "wip;"
This reverts commit fb68ce7.
* wip
* Revert "Revert "wip;""
This reverts commit 2ddfe3d.
* wip
* wip
* wip
* wip
* wip
* wip
* wip
* Upload unknown records to CloudKit on sign in. (pointfreeco#168)
* Upload unknown records to CloudKit on sign in.
* fix tests
* wip
* wip
* wip
* merge fix
* wip;
* Fix sign out. (pointfreeco#164)
* Fix sign out.
* wip
* fix
* Apply suggestions from code review
* merge fix
---------
Co-authored-by: Stephen Celis <stephen@stephencelis.com>
* fixes
* wip
* wip
* wip
* wip
* wip
* Add `database` for context-sensitive provisioning (pointfreeco#175)
* Add `database` for context-sensitive provisioning
This small helper will take live/test/preview into account to simplify
how folks bootstrap their databases.
* wip
* wip
* Update DefaultDatabase.swift
* wip
* another way to get container identifier
* Modernize SyncUps and add iCloud sync. (pointfreeco#176)
* Modernize SyncUps and add iCloud sync.
* fix tests
* Send sync engine changes on resign foreground. (pointfreeco#177)
* Send changes when resigining active.
* fix
* wip
* Bring back other demo apps. (pointfreeco#178)
* Bring back other demo apps.
* wip
* Rename more references to sqlite-data
* wip
* wip
* wip
* go back to getting cloudkit container identifier from swiftdata
* wip
* A few fixes for Xcode 26. (pointfreeco#180)
* A few fixes for Xcode 26.
* wip
* wip
* Throw error when changing zones for existing record (pointfreeco#179)
* Throw error when moving records between zones.
* wip
* wip
* wip
* wip
* Fix floating point bug (pointfreeco#183)
* Fix floating point comparison bug.
* wip
* wip
* wip;
* wipa
* wip
* wip
* wipa
* Fix Examples/README: project reference (pointfreeco#186)
* Update README.md
- Replace the removed `SharingGRDB.xcworkspace` reference with `Examples.xcodeproj`.
- Explain that each example app is worked on individually by selecting its scheme in Xcode.
* Update README.md
* Perform multiple upserts in a single transaction. (pointfreeco#185)
* Perform multiple upserts in a single transaction.
* wip
* wip
* wip
* wip
* Only reference UIApplication on iOS (pointfreeco#190)
* Modernize reminders (pointfreeco#184)
* Modernize reminders with triggers.
* wip;
* wip
* wip;
* wip
* wip
* wip
* Update Examples/Reminders/Schema.swift
* fix tests
---------
Co-authored-by: Stephen Celis <stephen@stephencelis.com>
* Add zone to sync metadata (pointfreeco#187)
* Store zone data in sync metadata.
* wip
* wip
* wip
* wip
* wip
* wip
* Support moving records across zones (pointfreeco#188)
* wip
* wip
* wip
* wip
* wip
* wip
* wip
* wip
* wip
* wip
* wip
* clean up
* fix snapshot
* wip
* wip
* wip
* wip
* support moving shares between zones and receiving saves before deletes
* wip
* Update Sources/SQLiteData/CloudKit/Internal/Triggers.swift
* wip
* wip
* wip
* format
* wip;
---------
Co-authored-by: Stephen Celis <stephen@stephencelis.com>
---------
Co-authored-by: Stephen Celis <stephen@stephencelis.com>
* wip
* Fix zone deletion (pointfreeco#192)
* wip
* wip
* wip
---------
Co-authored-by: Brandon Williams <135203+mbrandonw@users.noreply.github.com>
Co-authored-by: Brandon Williams <mbrandonw@hey.com>
Co-authored-by: Rob Feldmann <me@robfeldmann.com>
Co-authored-by: David Moeller <david_moeller@me.com>
Co-authored-by: David Moeller <david.moller@sensorfact.nl>
Co-authored-by: Yoshinori Imajo <y.imajo@gmail.com>
Co-authored-by: Michael Thingnes <thimic@users.noreply.github.com>1 parent 368fb3c commit 0b11498
185 files changed
Lines changed: 23045 additions & 2476 deletions
File tree
- .github
- ISSUE_TEMPLATE
- workflows
- Examples
- CaseStudies
- CloudKitDemo
- Assets.xcassets
- AccentColor.colorset
- AppIcon.appiconset
- Examples.xcodeproj
- RemindersTests
- Reminders
- SyncUpTests
- SyncUps
- Sources
- SQLiteDataTestSupport
- SQLiteData
- CloudKit
- Internal
- Documentation.docc
- Articles
- Extensions
- Resources
- Internal
- StructuredQueries+GRDB
- Traits
- SharingGRDBCore
- Documentation.docc
- Articles
- MigrationGuides
- Extensions
- Internal
- SharingGRDB
- Documentation.docc
- StructuredQueriesGRDBCore
- Documentation.docc
- Internal
- StructuredQueriesGRDB
- Documentation.docc
- Tests
- SQLiteDataTests
- CloudKitTests
- Internal
- SharingGRDBTests
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
30 | | - | |
| 30 | + | |
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
6 | | - | |
| 5 | + | |
| 6 | + | |
7 | 7 | | |
8 | | - | |
9 | | - | |
| 8 | + | |
| 9 | + | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
| 12 | + | |
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
| 39 | + | |
39 | 40 | | |
40 | 41 | | |
41 | 42 | | |
42 | 43 | | |
| 44 | + | |
| 45 | + | |
43 | 46 | | |
44 | 47 | | |
45 | 48 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
| 20 | + | |
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
27 | | - | |
| 27 | + | |
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
| |||
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
59 | | - | |
| 59 | + | |
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
64 | 64 | | |
65 | 65 | | |
66 | | - | |
| 66 | + | |
67 | 67 | | |
68 | 68 | | |
69 | 69 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
8 | 9 | | |
9 | 10 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
6 | | - | |
7 | | - | |
8 | | - | |
| 5 | + | |
9 | 6 | | |
| 7 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
63 | | - | |
| 63 | + | |
64 | 64 | | |
65 | 65 | | |
66 | 66 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
113 | 113 | | |
114 | 114 | | |
115 | 115 | | |
116 | | - | |
| 116 | + | |
117 | 117 | | |
118 | 118 | | |
119 | 119 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
| 6 | + | |
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| |||
100 | 100 | | |
101 | 101 | | |
102 | 102 | | |
103 | | - | |
| 103 | + | |
104 | 104 | | |
105 | 105 | | |
106 | 106 | | |
| |||
0 commit comments