summaryrefslogtreecommitdiff
path: root/android-app/app/src/main/AndroidManifest.xml
diff options
context:
space:
mode:
authorClaude <noreply@anthropic.com>2026-05-25 18:12:11 +0000
committerClaude <noreply@anthropic.com>2026-05-25 18:12:11 +0000
commit02776054778c3cbc8aefc43376b105becfec2b86 (patch)
tree1ab6db199bc09ff4a6c83e51e271124ee08b7960 /android-app/app/src/main/AndroidManifest.xml
parent619deab18a0cd56d844c5911a9bbda20d4439269 (diff)
Persist log entries and photos; stamp with GPS location
- LogbookStorage: Moshi-backed JSON persistence to getExternalFilesDir, photos saved to Pictures/Nav/ instead of cache - LogbookRepository: file-backed replacement for in-memory store, loads saved entries on init so they survive app restarts - VoiceLogViewModel: expose entries StateFlow, accept lat/lon in save() - VoiceLogFragment: switch camera to TakePicture(Uri) via FileProvider for full-res photos; gallery copies content URI to persistent storage; passes current GPS position to save(); shows scrollable entries list - MainViewModel: expose currentPosition StateFlow updated on each GPS fix - AndroidManifest: add FileProvider for Pictures/Nav/ directory - TripReportViewModel: updated to use LogbookRepository https://claude.ai/code/session_01YUbuZNDAoLea4cf9UGQ9qn
Diffstat (limited to 'android-app/app/src/main/AndroidManifest.xml')
-rw-r--r--android-app/app/src/main/AndroidManifest.xml9
1 files changed, 9 insertions, 0 deletions
diff --git a/android-app/app/src/main/AndroidManifest.xml b/android-app/app/src/main/AndroidManifest.xml
index 23817bb..1701e17 100644
--- a/android-app/app/src/main/AndroidManifest.xml
+++ b/android-app/app/src/main/AndroidManifest.xml
@@ -23,6 +23,15 @@
<service
android:name=".LocationService"
android:foregroundServiceType="location" />
+ <provider
+ android:name="androidx.core.content.FileProvider"
+ android:authorities="${applicationId}.fileprovider"
+ android:exported="false"
+ android:grantUriPermissions="true">
+ <meta-data
+ android:name="android.support.FILE_PROVIDER_PATHS"
+ android:resource="@xml/file_paths" />
+ </provider>
<activity
android:name=".MainActivity"
android:exported="true"