Happy to announce the release of Couchbase Lite 2.0 Developer Build 19 (DB 19) . The DB19 release is available for iOS(Swift, ObjC), .NET , Android platforms and includes a bunch of bug fixes, API enhancements and optimizations
Developer Builds give you the opportunity to engage with Couchbase engineers and provide early feedback to influence key aspects of Couchbase Mobile 2.0. It will give us insight into how you use new features in your projects, where you run into issues, and how we can help resolve them.
About Couchbase Lite 2.0:
Couchbase Lite 2.0 is a groundbreaking new release for Couchbase Mobile. Key enhancements include a cross-platform common core, simplified Query API with full-text search capabilities, automated conflict resolution that can be customized and a new and improved replication protocol
Couchbase Mobile 2.0 Workshop/ Tutorial :
We have a full stack workshop available for Android and iOS. Support for .Net is coming soon.
Since the bd19 vresion, I’ve an exception when I try to save the document :
$exception {System.InvalidCastException: Cannot encode Persistance.Airline to Fleece!
at LiteCore.Interop.FLSliceExtensions.FLEncode(Object obj, FLEncoder* enc)
at LiteCore.Interop.FLSliceExtensions.FLEncode[TVal](IDictionary`2 dict, FLEncoder* enc)
at Couchbase.Lite.Internal.Doc.InMemoryDictionary.FLEncode(FLEncoder* enc)
at LiteCore.Interop.FLSliceExtensions.FLEncode(Object obj, FLEncoder* enc)
at Couchbase.Lite.Document.Encode()
at Couchbase.Lite.Document.SaveInto(C4Document** outDoc, Boolean deletion)
at Couchbase.Lite.Document.Save(IConflictResolver resolver, Boolean deletion)
at Couchbase.Lite.Document.b__23_0()
at Couchbase.Lite.Support.ThreadSafety.DoLocked(Action a)
at Couchbase.Lite.Document.Save()
at Couchbase.Lite.Database.<>c__DisplayClass64_0.b__0()
at Couchbase.Lite.Support.ThreadSafety.DoLocked(Action a)
at Couchbase.Lite.Database.Save(Document document)
at Persistance.CouchbaseHelper.AddAirlineDocument(Airline airline, Database db)
at CouchBaseT2.MainPage.BtnAdd_Clicked(Object sender, EventArgs e)
at Xamarin.Forms.Button.SendClicked()
at Xamarin.Forms.Platform.UWP.ButtonRenderer.OnButtonClick(Object sender, RoutedEventArgs e)} System.InvalidCastException
Here is my Airline Class :
public partial class Airline
{
[JsonProperty("callsign")]
public string Callsign { get; set; }
[JsonProperty("country")]
public string Country { get; set; }
[JsonProperty("iata")]
public string Iata { get; set; }
[JsonProperty("icao")]
public string Icao { get; set; }
[JsonProperty("id")]
public long Id { get; set; }
[JsonProperty("name")]
public string Name { get; set; }
[JsonProperty("type")]
public string Type { get; set; }
[JsonIgnore]
public string Infos { get => $"{Id} - {Country} - {Name}"; }
}
Thank you, when are we expecting the next build DB 20 that might have fixes for Logging verbosity mismatch that our code currency having problem with after integrating DB18 ? Does new releases come out every month?
The goal is to have a Developer Build out every couple of weeks. We should have DB 20 out pretty soon - tentatively end of this week (@daniel.petersen?)
Can you indicate the specific GitHub issue related to logging that you mention so we can confirm if that’s in DB20.
And actually that issue by itself is a really tiny fix. If you patch it onto the db019 commit and build it yourself you can check the change immediately.
Thanks so much. Just wondering if there is a way to get notified immediately when the new release is out there or have to keep checking in the release notes pages every now and then.