mirror of
https://github.com/allankoechke/turso.git
synced 2026-11-30 11:12:58 +00:00
Exercise the completed replica API through packed NativeAOT, Android, and iOS consumers so package layout, native asset resolution, trimming, and sync exports are checked before NuGet publication. Keep the published turso_sdk_kit filenames and package version unchanged while allowing samples to select locally packed package versions. Tests: dotnet format whitespace; local NuGet pack inspection; win-x64 NativeAOT packaged consumer run
18 lines
501 B
C#
18 lines
501 B
C#
using Turso.Samples;
|
|
|
|
var directory = Path.Combine(Path.GetTempPath(), $"turso-nativeaot-{Guid.NewGuid():N}");
|
|
Directory.CreateDirectory(directory);
|
|
|
|
try
|
|
{
|
|
var result = ReplicaPackageSmoke.Run(Path.Combine(directory, "replica.db"));
|
|
Console.WriteLine($"Rows: {result.Rows}");
|
|
Console.WriteLine($"Stats revision: {result.Revision}");
|
|
Console.WriteLine("Checkpoint: complete");
|
|
Console.WriteLine("Disposed: complete");
|
|
}
|
|
finally
|
|
{
|
|
Directory.Delete(directory, recursive: true);
|
|
}
|