Krisenvorrat Inventar-App – Android-App (Kotlin) zur Verwaltung eines Krisenvorrats-Inventars
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 |
||
|---|---|---|
| .github | ||
| .vscode | ||
| Anforderungen | ||
| app | ||
| gradle | ||
| memories/repo | ||
| .gitignore | ||
| build.gradle.kts | ||
| gradle.properties | ||
| gradlew | ||
| gradlew.bat | ||
| settings.gradle.kts | ||