Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/vctoon-home/nativeappstore
in .net build Native App,you may want to save some data in local, so you can use this package to save data in local.
https://github.com/vctoon-home/nativeappstore
avalonia desktop maui winform wpf
Last synced: about 4 hours ago
JSON representation
in .net build Native App,you may want to save some data in local, so you can use this package to save data in local.
- Host: GitHub
- URL: https://github.com/vctoon-home/nativeappstore
- Owner: Vctoon-Home
- License: mit
- Created: 2023-08-21T01:26:34.000Z (over 1 year ago)
- Default Branch: alpha
- Last Pushed: 2024-04-11T08:15:20.000Z (10 months ago)
- Last Synced: 2025-02-01T10:15:18.930Z (about 4 hours ago)
- Topics: avalonia, desktop, maui, winform, wpf
- Language: C#
- Homepage:
- Size: 260 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# NativeAppStore
[![GitHub license](https://img.shields.io/badge/license-MIT-blue.svg)](https://mit-license.org/)
[![GitHub Stars](https://img.shields.io/github/stars/zyknow/NativeAppStore.svg)](https://github.com/zyknow/NativeAppStore/stargazers)
[![GitHub Issues](https://img.shields.io/github/issues/zyknow/NativeAppStore.svg)](https://github.com/zyknow/NativeAppStore/issues)## Introduction
in .net build Native App,you may want to save some data in local, so you can use this package to save data in local.
## Nuget Packages
| Name | Version | Download |
|-----------------------|---------------------------------------------------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------|
| NativeAppStore | [![NativeAppStore](https://img.shields.io/nuget/v/NativeAppStore.svg)](https://www.nuget.org/packages/NativeAppStore/) | [![NativeAppStore](https://img.shields.io/nuget/dt/NativeAppStore.svg)](https://www.nuget.org/packages/NativeAppStore/) |## Guide
in many ui framework, exit hooks many cannot must be invoke (like anrdoid),so you may need give the save decision to
user,or global
exception catcher to save stores.or if you have any ideas,Welcome to create this rep [Issues](https://github.com/zyknow/NativeAppStore/issues)
## Usage
1. Add Package Reference `NativeAppStore`
2. Add Services```csharp
services.AddStores(GetType().Assembly, opt => { opt.EnabledCreatorStoreLoad = true; });
```3. Create Store
```csharp
public class MainWindowStore : StoreBase
{
}
```4. To Save Store On App Exit Or Global Exception Catch
```csharp
// that will save all stores
StoreSaveExecutor.SaveAllStores();// or invoke store save
store.SaveStore();
```## Framework Tests
### Avalonia
* Desktop
* [x] Windows
* [ ] Mac
* [ ] Linux
* Mobile
* [x] Android
* [ ] iOS
* ~~WebAssembly~~### Maui
* Desktop
* [x] Windows
* [ ] Mac
* [ ] Windows
* Mobile
* [ ] Android
* [ ] iOS### Others
* [x] WPF
* [x] Winform## Author
[Zyknow](https://github.com/zyknow)
## License
> You can check out the full license [here](https://github.com/zyknow/NativeAppStore/blob/master/LICENSE)
This project is licensed under the terms of the **MIT** license.