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
@@ -6,10 +6,11 @@ import com.example.data.model.MealFoodItem
|
||||
import com.example.data.model.MealType
|
||||
import com.example.util.CsvImporter
|
||||
import org.junit.Assert.assertEquals
|
||||
import org.junit.Assert.assertTrue
|
||||
import org.junit.Test
|
||||
import java.io.ByteArrayInputStream
|
||||
import java.text.SimpleDateFormat
|
||||
import java.time.LocalDateTime
|
||||
import java.time.ZoneId
|
||||
import java.time.format.DateTimeFormatter
|
||||
import java.util.Locale
|
||||
|
||||
class CsvImporterTest {
|
||||
@@ -57,8 +58,11 @@ class CsvImporterTest {
|
||||
|
||||
@Test
|
||||
fun testDeduplicationIgnoresExistingMeal() {
|
||||
val dateFormat = SimpleDateFormat("dd/MM/yyyy HH:mm", Locale.FRENCH)
|
||||
val timestamp = dateFormat.parse("08/11/2026 12:30")!!.time
|
||||
val formatter = DateTimeFormatter.ofPattern("dd/MM/yyyy HH:mm", Locale.FRENCH)
|
||||
val timestamp = LocalDateTime.parse("08/11/2026 12:30", formatter)
|
||||
.atZone(ZoneId.systemDefault())
|
||||
.toInstant()
|
||||
.toEpochMilli()
|
||||
|
||||
val existingMeal = MealEntry(
|
||||
id = "existing_1",
|
||||
|
||||
Reference in new issue
Block a user