Adds Microsoft.Maui.Essentials package and <UseMaui>true</UseMaui> to src/PostIt/PostIt/PostIt.csproj so the shared project can compile code that calls MAUI Essentials APIs (Microsoft.Maui.ApplicationModel.*). Also adds a draft ContactService that wraps Contacts.Default.GetAllAsync() behind a runtime platform check and permission request. WIP caveats: - The portable MAUI Essentials facade compiles on net10.0 but throws NotImplementedInReferenceAssemblyException at runtime when no platform-specific MAUI Essentials binary is loaded. A PostIt.Android project (or equivalent) must reference the Android MAUI Essentials implementation for Contacts.Default.GetAllAsync() to actually work. - On desktop (Linux/macOS/Windows) the API is unsupported by design; ContactService currently throws PlatformNotSupportedException. A desktop stub returning Array.Empty<Contact>() is the likely next step. - No tests yet. The scaffold is unverified at runtime; build passes. |
||
|---|---|---|
| .. | ||
| PostIt | ||
| PostIt.Android | ||
| PostIt.Browser | ||
| PostIt.Desktop | ||
| Directory.Packages.props | ||