Sync format¶
Bastion for Windows reads and writes the same sync format as the other platforms. The source of the format is the Swift models in Bastion for Apple.
The fixture¶
WindowsApp/Bastion.Core.Tests/csharp-hosts-fixture.json is a copy of the host format from Bastion for Apple. HostStoreTests reads it and shows that the C# side can decode Swift's format.
When the format changes in Bastion for Apple¶
- Update the fixture from
Tests/fixtures/in Bastion for Apple. - Update
Host,HostStore,Snippet,SyncState,SyncEngineandSyncCrypto. - Run the tests. Never change a fixture to make a test pass.