diff --git a/DittoHeartbeat/DittoHeartbeat.csproj b/DittoHeartbeat/DittoHeartbeat.csproj index 6e6f184..f934f9d 100644 --- a/DittoHeartbeat/DittoHeartbeat.csproj +++ b/DittoHeartbeat/DittoHeartbeat.csproj @@ -1,7 +1,7 @@ - net8.0;net8.0-android;net8.0-ios;net8.0-maccatalyst + net8.0;net8.0-android;net8.0-ios;net8.0-maccatalyst;net8.0-windows10.0.19041.0 enable enable @@ -15,7 +15,9 @@ https://ditto.live https://github.com/getditto/DittoDotnetTools git + <_DittoIncludeNativeAndroidLibs>False + true diff --git a/DittoPresenceViewer/DittoPresenceViewer.csproj b/DittoPresenceViewer/DittoPresenceViewer.csproj index c70c2b0..d8b8e39 100644 --- a/DittoPresenceViewer/DittoPresenceViewer.csproj +++ b/DittoPresenceViewer/DittoPresenceViewer.csproj @@ -1,8 +1,7 @@ - net8.0-android;net8.0-ios;net8.0-maccatalyst - + net8.0-android;net8.0-ios;net8.0-maccatalyst;net8.0-windows10.0.19041.0 true true enable @@ -26,6 +25,7 @@ git <_DittoIncludeNativeAndroidLibs>False + true diff --git a/SampleApp/MauiProgram.cs b/SampleApp/MauiProgram.cs index df249b1..3d89464 100644 --- a/SampleApp/MauiProgram.cs +++ b/SampleApp/MauiProgram.cs @@ -31,9 +31,17 @@ public static MauiApp CreateMauiApp() private static Ditto SetupDitto() { - var id = DittoIdentity.OnlinePlayground("", "", false); + var appId = ""; + var id = DittoIdentity.OnlinePlayground(appId, "", true); + + var ditto = new Ditto(id, Path.Combine(FileSystem.Current.AppDataDirectory, "ditto")); + + var config = ditto.TransportConfig; + config.Connect.WebsocketUrls.Add(""); + config.EnableAllPeerToPeer(); + + ditto.TransportConfig = config; - var ditto = new Ditto(id); ditto.DisableSyncWithV3(); ditto.StartSync(); diff --git a/SampleApp/SampleApp.csproj b/SampleApp/SampleApp.csproj index 4806350..1d65f16 100644 --- a/SampleApp/SampleApp.csproj +++ b/SampleApp/SampleApp.csproj @@ -2,7 +2,7 @@ net8.0-android;net8.0-ios;net8.0-maccatalyst - + $(TargetFrameworks);net8.0-windows10.0.19041.0