Skip to content
Merged
Changes from all 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
2 changes: 1 addition & 1 deletion samples/todoapp/TodoApp.Uno/TodoApp.Uno/App.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
/// Initializes the singleton application object. This is the first line of authored code
/// executed, and as such is the logical equivalent of main() or WinMain().
/// </summary>
public App()

Check warning on line 15 in samples/todoapp/TodoApp.Uno/TodoApp.Uno/App.xaml.cs

View workflow job for this annotation

GitHub Actions / todoapp-uno / desktop

Non-nullable field 'dbConnection' must contain a non-null value when exiting constructor. Consider adding the 'required' modifier or declaring the field as nullable.

Check warning on line 15 in samples/todoapp/TodoApp.Uno/TodoApp.Uno/App.xaml.cs

View workflow job for this annotation

GitHub Actions / todoapp-uno / desktop

Non-nullable field 'dbConnection' must contain a non-null value when exiting constructor. Consider adding the 'required' modifier or declaring the field as nullable.

Check warning on line 15 in samples/todoapp/TodoApp.Uno/TodoApp.Uno/App.xaml.cs

View workflow job for this annotation

GitHub Actions / todoapp-uno / browserwasm

Non-nullable field 'dbConnection' must contain a non-null value when exiting constructor. Consider adding the 'required' modifier or declaring the field as nullable.

Check warning on line 15 in samples/todoapp/TodoApp.Uno/TodoApp.Uno/App.xaml.cs

View workflow job for this annotation

GitHub Actions / todoapp-uno / android

Non-nullable field 'dbConnection' must contain a non-null value when exiting constructor. Consider adding the 'required' modifier or declaring the field as nullable.

Check warning on line 15 in samples/todoapp/TodoApp.Uno/TodoApp.Uno/App.xaml.cs

View workflow job for this annotation

GitHub Actions / todoapp-uno / android

Non-nullable field 'dbConnection' must contain a non-null value when exiting constructor. Consider adding the 'required' modifier or declaring the field as nullable.

Check warning on line 15 in samples/todoapp/TodoApp.Uno/TodoApp.Uno/App.xaml.cs

View workflow job for this annotation

GitHub Actions / todoapp-uno / windows

Non-nullable field 'dbConnection' must contain a non-null value when exiting constructor. Consider adding the 'required' modifier or declaring the field as nullable.

Check warning on line 15 in samples/todoapp/TodoApp.Uno/TodoApp.Uno/App.xaml.cs

View workflow job for this annotation

GitHub Actions / todoapp-uno / windows

Non-nullable field 'dbConnection' must contain a non-null value when exiting constructor. Consider adding the 'required' modifier or declaring the field as nullable.

Check warning on line 15 in samples/todoapp/TodoApp.Uno/TodoApp.Uno/App.xaml.cs

View workflow job for this annotation

GitHub Actions / todoapp-uno / ios-maccatalyst

Non-nullable field 'dbConnection' must contain a non-null value when exiting constructor. Consider adding the 'required' modifier or declaring the field as nullable.

Check warning on line 15 in samples/todoapp/TodoApp.Uno/TodoApp.Uno/App.xaml.cs

View workflow job for this annotation

GitHub Actions / todoapp-uno / ios-maccatalyst

Non-nullable field 'dbConnection' must contain a non-null value when exiting constructor. Consider adding the 'required' modifier or declaring the field as nullable.
{
this.InitializeComponent();

Expand All @@ -34,7 +34,7 @@
var builder = this.CreateBuilder(args)
// Add navigation support for toolkit controls such as TabBar and NavigationView
.UseToolkitNavigation()
.Configure(host => host

Check warning on line 37 in samples/todoapp/TodoApp.Uno/TodoApp.Uno/App.xaml.cs

View workflow job for this annotation

GitHub Actions / todoapp-uno / ios-maccatalyst

Using member 'Uno.Extensions.HostBuilderExtensions.UseNavigation(IHostBuilder, Action<IViewRegistry, IRouteRegistry>, Func<IServiceCollection, IViewRegistry>, Func<IServiceCollection, IRouteRegistry>, Func<NavigationConfiguration, NavigationConfiguration>, Action<HostBuilderContext, IServiceCollection>)' which has 'RequiresUnreferencedCodeAttribute' can break functionality when trimming application code. Cannot statically analyze the type of instance so its members may be trimmed.

Check warning on line 37 in samples/todoapp/TodoApp.Uno/TodoApp.Uno/App.xaml.cs

View workflow job for this annotation

GitHub Actions / todoapp-uno / ios-maccatalyst

Using member 'Uno.Extensions.HostBuilderExtensions.UseNavigation(IHostBuilder, Action<IViewRegistry, IRouteRegistry>, Func<IServiceCollection, IViewRegistry>, Func<IServiceCollection, IRouteRegistry>, Func<NavigationConfiguration, NavigationConfiguration>, Action<HostBuilderContext, IServiceCollection>)' which has 'RequiresUnreferencedCodeAttribute' can break functionality when trimming application code. Cannot statically analyze the type of instance so its members may be trimmed.
#if DEBUG
// Switch to Development environment when running in DEBUG
.UseEnvironment(Environments.Development)
Expand All @@ -54,19 +54,19 @@
MainWindow = builder.Window;

#if DEBUG
MainWindow.EnableHotReload();
MainWindow.UseStudio();
#endif
MainWindow.SetWindowIcon();

// We have to build here so that the services are initialized and we can call InitializeDatabase
// before navigating. This enables us to load the data when the page is loaded
Host = builder.Build();

Check warning on line 63 in samples/todoapp/TodoApp.Uno/TodoApp.Uno/App.xaml.cs

View workflow job for this annotation

GitHub Actions / todoapp-uno / ios-maccatalyst

Using member 'Uno.Extensions.Hosting.IApplicationBuilder.Build()' which has 'RequiresUnreferencedCodeAttribute' can break functionality when trimming application code. Cannot statically analyze the type of instance so its members may be trimmed.

Check warning on line 63 in samples/todoapp/TodoApp.Uno/TodoApp.Uno/App.xaml.cs

View workflow job for this annotation

GitHub Actions / todoapp-uno / ios-maccatalyst

Using member 'Uno.Extensions.Hosting.IApplicationBuilder.Build()' which has 'RequiresUnreferencedCodeAttribute' can break functionality when trimming application code. Cannot statically analyze the type of instance so its members may be trimmed.

InitializeDatabase();

// We still make this navigation call so we use the Uno Navigation extension, which automatically wires
// up view models with their page using the ViewMap and RouteMap below.
Host = await builder.NavigateAsync<Shell>();

Check warning on line 69 in samples/todoapp/TodoApp.Uno/TodoApp.Uno/App.xaml.cs

View workflow job for this annotation

GitHub Actions / todoapp-uno / ios-maccatalyst

Using member 'Uno.Extensions.ApplicationBuilderExtensions.NavigateAsync<TShell>(IApplicationBuilder, Func<IServiceProvider, INavigator, Task>)' which has 'RequiresUnreferencedCodeAttribute' can break functionality when trimming application code. Cannot statically analyze the type of instance so its members may be trimmed.

Check warning on line 69 in samples/todoapp/TodoApp.Uno/TodoApp.Uno/App.xaml.cs

View workflow job for this annotation

GitHub Actions / todoapp-uno / ios-maccatalyst

Using member 'Uno.Extensions.ApplicationBuilderExtensions.NavigateAsync<TShell>(IApplicationBuilder, Func<IServiceProvider, INavigator, Task>)' which has 'RequiresUnreferencedCodeAttribute' can break functionality when trimming application code. Cannot statically analyze the type of instance so its members may be trimmed.

}

Expand Down
Loading