|
1 | 1 | =============================================================================== |
2 | 2 | PROJECT EXPORT |
3 | | -Generated: Wed Dec 24 10:16:37 PM CST 2025 |
| 3 | +Generated: Wed Dec 24 10:17:39 PM CST 2025 |
4 | 4 | Project Path: /home/kushal/src/dotnet/MyDesktopApplication |
5 | 5 | =============================================================================== |
6 | 6 |
|
@@ -5082,8 +5082,8 @@ MODIFIED: 2025-12-24 22:10:48 |
5082 | 5082 |
|
5083 | 5083 | ================================================================================ |
5084 | 5084 | FILE: src/MyDesktopApplication.Android/App.axaml.cs |
5085 | | -SIZE: 2.10 KB |
5086 | | -MODIFIED: 2025-12-24 22:16:37 |
| 5085 | +SIZE: 1.85 KB |
| 5086 | +MODIFIED: 2025-12-24 22:17:39 |
5087 | 5087 | ================================================================================ |
5088 | 5088 |
|
5089 | 5089 | using Avalonia; |
@@ -5149,70 +5149,62 @@ public partial class App : Application |
5149 | 5149 | System.Diagnostics.Debug.WriteLine($"Error initializing ViewModel: {ex.Message}"); |
5150 | 5150 | } |
5151 | 5151 | } |
5152 | | - |
5153 | | - public App(IntPtr javaReference, Android.Runtime.JniHandleOwnership transfer) : base(javaReference, transfer) |
5154 | | - { |
5155 | | - } |
5156 | | - |
5157 | | - public App(IntPtr javaReference, Android.Runtime.JniHandleOwnership transfer) : base(javaReference, transfer) |
5158 | | - { |
5159 | | - } |
5160 | 5152 | } |
5161 | 5153 |
|
5162 | 5154 |
|
5163 | 5155 | ================================================================================ |
5164 | 5156 | FILE: src/MyDesktopApplication.Android/App.cs |
5165 | | -SIZE: 1.51 KB |
5166 | | -MODIFIED: 2025-12-24 22:15:06 |
| 5157 | +SIZE: 1.39 KB |
| 5158 | +MODIFIED: 2025-12-24 22:17:18 |
5167 | 5159 | ================================================================================ |
5168 | 5160 |
|
5169 | | -// using Avalonia; |
5170 | | -// using Avalonia.Controls.ApplicationLifetimes; |
5171 | | -// using Avalonia.Markup.Xaml; |
5172 | | -// using Microsoft.Extensions.DependencyInjection; |
5173 | | -// using MyDesktopApplication.Android.Views; |
5174 | | -// using MyDesktopApplication.Core.Interfaces; |
5175 | | -// using MyDesktopApplication.Infrastructure; |
5176 | | -// using MyDesktopApplication.Shared.ViewModels; |
| 5161 | +using Avalonia; |
| 5162 | +using Avalonia.Controls.ApplicationLifetimes; |
| 5163 | +using Avalonia.Markup.Xaml; |
| 5164 | +using Microsoft.Extensions.DependencyInjection; |
| 5165 | +using MyDesktopApplication.Android.Views; |
| 5166 | +using MyDesktopApplication.Core.Interfaces; |
| 5167 | +using MyDesktopApplication.Infrastructure; |
| 5168 | +using MyDesktopApplication.Shared.ViewModels; |
5177 | 5169 |
|
5178 | | -// namespace MyDesktopApplication.Android; |
| 5170 | +namespace MyDesktopApplication.Android; |
5179 | 5171 |
|
5180 | | -// public partial class App : Avalonia.Application |
5181 | | -// { |
5182 | | -// private IServiceProvider? _services; |
| 5172 | +public class App : Avalonia.Application |
| 5173 | +{ |
| 5174 | + private IServiceProvider? _services; |
5183 | 5175 |
|
5184 | | -// // public override void Initialize() |
5185 | | -// // { |
5186 | | -// // AvaloniaXamlLoader.Load(this); |
5187 | | -// // } |
| 5176 | + public override void Initialize() |
| 5177 | + { |
| 5178 | + AvaloniaXamlLoader.Load(this); |
| 5179 | + } |
5188 | 5180 |
|
5189 | | -// public override async void OnFrameworkInitializationCompleted() |
5190 | | -// { |
5191 | | -// var services = new ServiceCollection(); |
| 5181 | + public override async void OnFrameworkInitializationCompleted() |
| 5182 | + { |
| 5183 | + var services = new ServiceCollection(); |
5192 | 5184 |
|
5193 | | -// var dbPath = Path.Combine( |
5194 | | -// Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData), |
5195 | | -// "countryquiz.db"); |
| 5185 | + var dbPath = Path.Combine( |
| 5186 | + Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData), |
| 5187 | + "countryquiz.db"); |
5196 | 5188 |
|
5197 | | -// services.AddInfrastructure(dbPath); |
5198 | | -// services.AddTransient<CountryQuizViewModel>(); |
| 5189 | + services.AddInfrastructure(dbPath); |
| 5190 | + services.AddTransient<CountryQuizViewModel>(); |
5199 | 5191 |
|
5200 | | -// _services = services.BuildServiceProvider(); |
| 5192 | + _services = services.BuildServiceProvider(); |
5201 | 5193 |
|
5202 | | -// await DependencyInjection.InitializeDatabaseAsync(_services); |
| 5194 | + await DependencyInjection.InitializeDatabaseAsync(_services); |
5203 | 5195 |
|
5204 | | -// if (ApplicationLifetime is ISingleViewApplicationLifetime singleViewLifetime) |
5205 | | -// { |
5206 | | -// var vm = _services.GetRequiredService<CountryQuizViewModel>(); |
5207 | | -// var mainView = new MainView { DataContext = vm }; |
5208 | | -// singleViewLifetime.MainView = mainView; |
| 5196 | + if (ApplicationLifetime is ISingleViewApplicationLifetime singleViewLifetime) |
| 5197 | + { |
| 5198 | + var vm = _services.GetRequiredService<CountryQuizViewModel>(); |
| 5199 | + var mainView = new MainView { DataContext = vm }; |
| 5200 | + singleViewLifetime.MainView = mainView; |
5209 | 5201 |
|
5210 | | -// _ = vm.InitializeAsync(); |
5211 | | -// } |
| 5202 | + _ = vm.InitializeAsync(); |
| 5203 | + } |
5212 | 5204 |
|
5213 | | -// base.OnFrameworkInitializationCompleted(); |
5214 | | -// } |
5215 | | -// } |
| 5205 | + base.OnFrameworkInitializationCompleted(); |
| 5206 | + } |
| 5207 | +} |
5216 | 5208 |
|
5217 | 5209 |
|
5218 | 5210 | ================================================================================ |
@@ -5296,10 +5288,11 @@ public class AnswerStateToForegroundConverter : IMultiValueConverter |
5296 | 5288 |
|
5297 | 5289 | ================================================================================ |
5298 | 5290 | FILE: src/MyDesktopApplication.Android/MainActivity.cs |
5299 | | -SIZE: .58 KB |
5300 | | -MODIFIED: 2025-12-24 22:16:17 |
| 5291 | +SIZE: .60 KB |
| 5292 | +MODIFIED: 2025-12-24 22:17:18 |
5301 | 5293 | ================================================================================ |
5302 | 5294 |
|
| 5295 | +using Android.App; |
5303 | 5296 | using Android.Content.PM; |
5304 | 5297 | using Avalonia; |
5305 | 5298 | using Avalonia.Android; |
@@ -8569,7 +8562,7 @@ MODIFIED: 2025-12-21 17:58:28 |
8569 | 8562 |
|
8570 | 8563 |
|
8571 | 8564 | =============================================================================== |
8572 | | -EXPORT COMPLETED: Wed Dec 24 10:16:38 PM CST 2025 |
| 8565 | +EXPORT COMPLETED: Wed Dec 24 10:17:40 PM CST 2025 |
8573 | 8566 | Total Files Found: 71 |
8574 | 8567 | Files Exported: 71 |
8575 | 8568 | Files Skipped: 0 (binary or large files) |
|
0 commit comments