From b07b1ace6ec3527231467bb6adf28fc9177fb58f Mon Sep 17 00:00:00 2001 From: syneffort Date: Mon, 26 Feb 2024 15:18:57 +0900 Subject: [PATCH] sqlite --- .../LocalDataStorageWithSQLite/App.xaml | 14 + .../LocalDataStorageWithSQLite/App.xaml.cs | 18 + .../LocalDataStorageWithSQLite/AppShell.xaml | 14 + .../AppShell.xaml.cs | 10 + .../LocalDataStorageWithSQLite.csproj | 57 +++ .../LocalDataStorageWithSQLite/MainPage.xaml | 38 ++ .../MainPage.xaml.cs | 46 ++ .../LocalDataStorageWithSQLite/MauiProgram.cs | 30 ++ .../Models/Person.cs | 20 + .../Platforms/Android/AndroidManifest.xml | 6 + .../Platforms/Android/MainActivity.cs | 11 + .../Platforms/Android/MainApplication.cs | 16 + .../Android/Resources/values/colors.xml | 6 + .../Platforms/MacCatalyst/AppDelegate.cs | 10 + .../Platforms/MacCatalyst/Info.plist | 30 ++ .../Platforms/MacCatalyst/Program.cs | 16 + .../Platforms/Tizen/Main.cs | 17 + .../Platforms/Tizen/tizen-manifest.xml | 15 + .../Platforms/Windows/App.xaml | 8 + .../Platforms/Windows/App.xaml.cs | 25 ++ .../Platforms/Windows/Package.appxmanifest | 46 ++ .../Platforms/Windows/app.manifest | 15 + .../Platforms/iOS/AppDelegate.cs | 10 + .../Platforms/iOS/Info.plist | 32 ++ .../Platforms/iOS/Program.cs | 16 + .../Properties/launchSettings.json | 8 + .../Repositories/PersonRepository.cs | 70 +++ .../Resources/AppIcon/appicon.svg | 4 + .../Resources/AppIcon/appiconfg.svg | 8 + .../Resources/Fonts/OpenSans-Regular.ttf | Bin 0 -> 107168 bytes .../Resources/Fonts/OpenSans-Semibold.ttf | Bin 0 -> 111060 bytes .../Resources/Images/dotnet_bot.svg | 93 ++++ .../Resources/Raw/AboutAssets.txt | 15 + .../Resources/Splash/splash.svg | 8 + .../Resources/Styles/Colors.xaml | 46 ++ .../Resources/Styles/Styles.xaml | 405 ++++++++++++++++++ .../StorageUtils/FileSystemStorage.cs | 38 ++ .../StorageUtils/PreferenceStorage.cs | 21 + .../Utils/FileAccessHelper.cs | 16 + MyFirstMauiApp/MyFirstMauiApp.sln | 10 +- 40 files changed, 1267 insertions(+), 1 deletion(-) create mode 100644 MyFirstMauiApp/LocalDataStorageWithSQLite/App.xaml create mode 100644 MyFirstMauiApp/LocalDataStorageWithSQLite/App.xaml.cs create mode 100644 MyFirstMauiApp/LocalDataStorageWithSQLite/AppShell.xaml create mode 100644 MyFirstMauiApp/LocalDataStorageWithSQLite/AppShell.xaml.cs create mode 100644 MyFirstMauiApp/LocalDataStorageWithSQLite/LocalDataStorageWithSQLite.csproj create mode 100644 MyFirstMauiApp/LocalDataStorageWithSQLite/MainPage.xaml create mode 100644 MyFirstMauiApp/LocalDataStorageWithSQLite/MainPage.xaml.cs create mode 100644 MyFirstMauiApp/LocalDataStorageWithSQLite/MauiProgram.cs create mode 100644 MyFirstMauiApp/LocalDataStorageWithSQLite/Models/Person.cs create mode 100644 MyFirstMauiApp/LocalDataStorageWithSQLite/Platforms/Android/AndroidManifest.xml create mode 100644 MyFirstMauiApp/LocalDataStorageWithSQLite/Platforms/Android/MainActivity.cs create mode 100644 MyFirstMauiApp/LocalDataStorageWithSQLite/Platforms/Android/MainApplication.cs create mode 100644 MyFirstMauiApp/LocalDataStorageWithSQLite/Platforms/Android/Resources/values/colors.xml create mode 100644 MyFirstMauiApp/LocalDataStorageWithSQLite/Platforms/MacCatalyst/AppDelegate.cs create mode 100644 MyFirstMauiApp/LocalDataStorageWithSQLite/Platforms/MacCatalyst/Info.plist create mode 100644 MyFirstMauiApp/LocalDataStorageWithSQLite/Platforms/MacCatalyst/Program.cs create mode 100644 MyFirstMauiApp/LocalDataStorageWithSQLite/Platforms/Tizen/Main.cs create mode 100644 MyFirstMauiApp/LocalDataStorageWithSQLite/Platforms/Tizen/tizen-manifest.xml create mode 100644 MyFirstMauiApp/LocalDataStorageWithSQLite/Platforms/Windows/App.xaml create mode 100644 MyFirstMauiApp/LocalDataStorageWithSQLite/Platforms/Windows/App.xaml.cs create mode 100644 MyFirstMauiApp/LocalDataStorageWithSQLite/Platforms/Windows/Package.appxmanifest create mode 100644 MyFirstMauiApp/LocalDataStorageWithSQLite/Platforms/Windows/app.manifest create mode 100644 MyFirstMauiApp/LocalDataStorageWithSQLite/Platforms/iOS/AppDelegate.cs create mode 100644 MyFirstMauiApp/LocalDataStorageWithSQLite/Platforms/iOS/Info.plist create mode 100644 MyFirstMauiApp/LocalDataStorageWithSQLite/Platforms/iOS/Program.cs create mode 100644 MyFirstMauiApp/LocalDataStorageWithSQLite/Properties/launchSettings.json create mode 100644 MyFirstMauiApp/LocalDataStorageWithSQLite/Repositories/PersonRepository.cs create mode 100644 MyFirstMauiApp/LocalDataStorageWithSQLite/Resources/AppIcon/appicon.svg create mode 100644 MyFirstMauiApp/LocalDataStorageWithSQLite/Resources/AppIcon/appiconfg.svg create mode 100644 MyFirstMauiApp/LocalDataStorageWithSQLite/Resources/Fonts/OpenSans-Regular.ttf create mode 100644 MyFirstMauiApp/LocalDataStorageWithSQLite/Resources/Fonts/OpenSans-Semibold.ttf create mode 100644 MyFirstMauiApp/LocalDataStorageWithSQLite/Resources/Images/dotnet_bot.svg create mode 100644 MyFirstMauiApp/LocalDataStorageWithSQLite/Resources/Raw/AboutAssets.txt create mode 100644 MyFirstMauiApp/LocalDataStorageWithSQLite/Resources/Splash/splash.svg create mode 100644 MyFirstMauiApp/LocalDataStorageWithSQLite/Resources/Styles/Colors.xaml create mode 100644 MyFirstMauiApp/LocalDataStorageWithSQLite/Resources/Styles/Styles.xaml create mode 100644 MyFirstMauiApp/LocalDataStorageWithSQLite/StorageUtils/FileSystemStorage.cs create mode 100644 MyFirstMauiApp/LocalDataStorageWithSQLite/StorageUtils/PreferenceStorage.cs create mode 100644 MyFirstMauiApp/LocalDataStorageWithSQLite/Utils/FileAccessHelper.cs diff --git a/MyFirstMauiApp/LocalDataStorageWithSQLite/App.xaml b/MyFirstMauiApp/LocalDataStorageWithSQLite/App.xaml new file mode 100644 index 0000000..3c3bdbe --- /dev/null +++ b/MyFirstMauiApp/LocalDataStorageWithSQLite/App.xaml @@ -0,0 +1,14 @@ + + + + + + + + + + + diff --git a/MyFirstMauiApp/LocalDataStorageWithSQLite/App.xaml.cs b/MyFirstMauiApp/LocalDataStorageWithSQLite/App.xaml.cs new file mode 100644 index 0000000..f29d480 --- /dev/null +++ b/MyFirstMauiApp/LocalDataStorageWithSQLite/App.xaml.cs @@ -0,0 +1,18 @@ +using LocalDataStorageWithSQLite.Repositories; + +namespace LocalDataStorageWithSQLite +{ + public partial class App : Application + { + public static PersonRepository PersonRepo { get; private set; } + + public App(PersonRepository repo) + { + InitializeComponent(); + + MainPage = new AppShell(); + + PersonRepo = repo; + } + } +} diff --git a/MyFirstMauiApp/LocalDataStorageWithSQLite/AppShell.xaml b/MyFirstMauiApp/LocalDataStorageWithSQLite/AppShell.xaml new file mode 100644 index 0000000..7d8dc33 --- /dev/null +++ b/MyFirstMauiApp/LocalDataStorageWithSQLite/AppShell.xaml @@ -0,0 +1,14 @@ + + + + + + diff --git a/MyFirstMauiApp/LocalDataStorageWithSQLite/AppShell.xaml.cs b/MyFirstMauiApp/LocalDataStorageWithSQLite/AppShell.xaml.cs new file mode 100644 index 0000000..cfbeff8 --- /dev/null +++ b/MyFirstMauiApp/LocalDataStorageWithSQLite/AppShell.xaml.cs @@ -0,0 +1,10 @@ +namespace LocalDataStorageWithSQLite +{ + public partial class AppShell : Shell + { + public AppShell() + { + InitializeComponent(); + } + } +} diff --git a/MyFirstMauiApp/LocalDataStorageWithSQLite/LocalDataStorageWithSQLite.csproj b/MyFirstMauiApp/LocalDataStorageWithSQLite/LocalDataStorageWithSQLite.csproj new file mode 100644 index 0000000..38124ca --- /dev/null +++ b/MyFirstMauiApp/LocalDataStorageWithSQLite/LocalDataStorageWithSQLite.csproj @@ -0,0 +1,57 @@ + + + + net7.0-android;net7.0-ios;net7.0-maccatalyst + $(TargetFrameworks);net7.0-windows10.0.19041.0 + + + Exe + LocalDataStorageWithSQLite + true + true + enable + + + LocalDataStorageWithSQLite + + + com.companyname.localdatastoragewithsqlite + 26712f3b-bddd-4b31-86d0-e8ba177a9bc3 + + + 1.0 + 1 + + 11.0 + 13.1 + 21.0 + 10.0.17763.0 + 10.0.17763.0 + 6.5 + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/MyFirstMauiApp/LocalDataStorageWithSQLite/MainPage.xaml b/MyFirstMauiApp/LocalDataStorageWithSQLite/MainPage.xaml new file mode 100644 index 0000000..795ab07 --- /dev/null +++ b/MyFirstMauiApp/LocalDataStorageWithSQLite/MainPage.xaml @@ -0,0 +1,38 @@ + + + + + + + +