π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
Merge remote-tracking branch 'upstream/main' into np/fix-exif-date-parsing
Neeraj Guptaf3feb48f6fda
diff --cc mobile/apps/photos/lib/utils/exif_util.dartindex de659ae667,8d98f9e7ca..5d9afeac26--- a/mobile/apps/photos/lib/utils/exif_util.dart+++ b/mobile/apps/photos/lib/utils/exif_util.dart@@@ -25,16 -26,16 +26,23 @@@ const kExifDateTimePattern = "yyyy:MM:dconst kEmptyExifDateTime = "0000:00:00 00:00:00";final _logger = Logger("ExifUtil");+final _standardExifDateTimePattern = RegExp(+ r'^\d{4}:(0[1-9]|1[0-2]):(0[1-9]|[12]\d|3[01]) ([01]\d|2[0-3]):([0-5]\d):([0-5]\d)$',+);+final _isoExifDateTimePattern = RegExp(+ r'^(\d{4})-(0[1-9]|1[0-2])-(0[1-9]|[12]\d|3[01])[T ]([01]\d|2[0-3]):([0-5]\d):([0-5]\d)([\.:]\d+)?([Zz]|[+-](?:[01]\d|2[0-3]):?[0-5]\d)?$',+);+final _offsetPattern = RegExp(r'^([Zz]|[+-](?:[01]\d|2[0-3]):?[0-5]\d)$');+ bool shouldReadExif(EnteFile file) {+ return file.fileType == FileType.image || file.fileType == FileType.livePhoto;+ }+Future<Map<String, IfdTag>> getExif(EnteFile file) async {try {+ if (!shouldReadExif(file)) {+ return <String, IfdTag>{};+ }final File? originFile = await getFile(file, isOrigin: true);if (originFile == null) {throw Exception("Failed to fetch origin file");diff --cc mobile/apps/photos/scripts/internal_changes.txtindex 97b5ee10a1,333567e805..3c2bf86ed0--- a/mobile/apps/photos/scripts/internal_changes.txt+++ b/mobile/apps/photos/scripts/internal_changes.txt@@@ -1,5 -1,5 +1,6 @@@Latest changes:+- Neeraj: Fix incorrect upload dates for photos with ISO-like metadata timestamps+ - Neeraj: Skip image EXIF parsing for videos- Neeraj: Fix iOS crash when playing Pixel Long Shot (.LS) videos- Neeraj: Fix Android video preview/export generation by restoring ffmpeg x264 support- Neeraj: Fix video edit delete navigation