Skip to content
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion DittoHeartbeat/DittoHeartbeat.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFrameworks>net8.0;net8.0-android;net8.0-ios;net8.0-maccatalyst</TargetFrameworks>
<TargetFrameworks>net8.0;net8.0-android;net8.0-ios;net8.0-maccatalyst;net8.0-windows10.0.19041.0</TargetFrameworks>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>

Expand All @@ -15,7 +15,9 @@
<PackageProjectUrl>https://ditto.live</PackageProjectUrl>
<RepositoryUrl>https://github.com/getditto/DittoDotnetTools</RepositoryUrl>
<RepositoryType>git</RepositoryType>

<_DittoIncludeNativeAndroidLibs>False</_DittoIncludeNativeAndroidLibs>
<EnableWindowsTargeting>true</EnableWindowsTargeting>
</PropertyGroup>
<ItemGroup>
<None Include="../LICENSE" Pack="true" PackagePath="\" />
Expand Down
4 changes: 2 additions & 2 deletions DittoPresenceViewer/DittoPresenceViewer.csproj
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFrameworks>net8.0-android;net8.0-ios;net8.0-maccatalyst</TargetFrameworks>
<!-- <TargetFrameworks Condition="$([MSBuild]::IsOSPlatform('windows'))">$(TargetFrameworks);net8.0-windows10.0.19041.0</TargetFrameworks> -->
<TargetFrameworks>net8.0-android;net8.0-ios;net8.0-maccatalyst;net8.0-windows10.0.19041.0</TargetFrameworks>
<UseMaui>true</UseMaui>
<SingleProject>true</SingleProject>
<ImplicitUsings>enable</ImplicitUsings>
Expand All @@ -26,6 +25,7 @@
<RepositoryType>git</RepositoryType>

<_DittoIncludeNativeAndroidLibs>False</_DittoIncludeNativeAndroidLibs>
<EnableWindowsTargeting>true</EnableWindowsTargeting>
</PropertyGroup>
<ItemGroup>
<None Include="../LICENSE" Pack="true" PackagePath="\" />
Expand Down
12 changes: 10 additions & 2 deletions SampleApp/MauiProgram.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,17 @@ public static MauiApp CreateMauiApp()

private static Ditto SetupDitto()
{
var id = DittoIdentity.OnlinePlayground("<APP_ID>", "<TOKEN>", false);
var appId = "<APP_ID>";
var id = DittoIdentity.OnlinePlayground(appId, "<PLAYGROUND_TOKEN>", true);

var ditto = new Ditto(id, Path.Combine(FileSystem.Current.AppDataDirectory, "ditto"));

var config = ditto.TransportConfig;
config.Connect.WebsocketUrls.Add($"wss://{appId}.cloud.ditto.live");
config.EnableAllPeerToPeer();

ditto.TransportConfig = config;

var ditto = new Ditto(id);
ditto.DisableSyncWithV3();
ditto.StartSync();

Expand Down
2 changes: 1 addition & 1 deletion SampleApp/SampleApp.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<PropertyGroup>
<TargetFrameworks>net8.0-android;net8.0-ios;net8.0-maccatalyst</TargetFrameworks>
<!--<TargetFrameworks Condition="$([MSBuild]::IsOSPlatform('windows'))">$(TargetFrameworks);net8.0-windows10.0.19041.0</TargetFrameworks>-->
<TargetFrameworks Condition="$([MSBuild]::IsOSPlatform('windows'))">$(TargetFrameworks);net8.0-windows10.0.19041.0</TargetFrameworks>
<!-- Uncomment to also build the tizen app. You will need to install tizen by following this: https://github.com/Samsung/Tizen.NET -->
<!-- <TargetFrameworks>$(TargetFrameworks);net8.0-tizen</TargetFrameworks> -->

Expand Down