mirror of
https://github.com/bleackstorm/satiea.git
synced 2026-12-03 07:41:56 +01:00
feat: support meal photo URIs and improve UI events
- Add `photoUris` field to `MealEntry` and update Firestore rules. - Implement `UiEvent` handling in `MainActivity` for navigation/links. - Remove sensitive email data from error logs and clean up manifest.
This commit is contained in:
1 parent
f0487453c9
commit
87bbb448c2
34 files changed
+2026
-1170
No files matched your search
@@ -0,0 +1,22 @@
|
||||
package com.example.domain
|
||||
|
||||
import android.content.Context
|
||||
import android.content.Intent
|
||||
import android.net.Uri
|
||||
import com.example.data.model.MealEntry
|
||||
import com.example.util.CsvExporter
|
||||
|
||||
class CsvExportUseCase(private val context: Context) {
|
||||
|
||||
suspend fun writeToUri(targetUri: Uri, meals: List<MealEntry>): Result<Int> {
|
||||
return CsvExporter.writeCsvToUri(context, targetUri, meals)
|
||||
}
|
||||
|
||||
suspend fun createShareIntent(activityContext: Context, meals: List<MealEntry>): Result<Intent> {
|
||||
return CsvExporter.shareCsvFile(activityContext, meals)
|
||||
}
|
||||
|
||||
fun defaultFileName(): String {
|
||||
return CsvExporter.buildDefaultFileName()
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user