Implement export functionality in the Settings screen allowing users to share their inventory data as JSON (via FileProvider + ACTION_SEND with EXTRA_STREAM) or Markdown (via ACTION_SEND with EXTRA_TEXT). Key changes: - ShareContent sealed interface for export events (Json with URI, Markdown with text) - SettingsViewModel: exportJson() writes to cache file and creates FileProvider URI; exportMarkdown() provides text directly - SettingsUiState: isExporting, shareContent, exportError fields - SettingsScreen: LaunchedEffect consumes share events and opens Android Share Sheet via Intent.createChooser - FileProvider registered in AndroidManifest with cache-path config - MockK added as test dependency for FileProvider static mocking - 8 new unit tests covering export success, failure, and state cleanup Closes #37 |
||
|---|---|---|
| .. | ||
| src | ||
| build.gradle.kts | ||
| proguard-rules.pro | ||