π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
Add "QR Codes" discover section
laurenspriem8bc2bc4b8af7
diff --git a/mobile/apps/photos/lib/l10n/intl_en.arb b/mobile/apps/photos/lib/l10n/intl_en.arbindex 11403f9b43..6a0708d3de 100644--- a/mobile/apps/photos/lib/l10n/intl_en.arb+++ b/mobile/apps/photos/lib/l10n/intl_en.arb@@ -513,6 +513,7 @@},"discover_identity": "Identity","discover_screenshots": "Screenshots",+ "discover_qr_codes": "QR Codes","discover_receipts": "Receipts","discover_notes": "Notes","discover_memes": "Memes",diff --git a/mobile/apps/photos/lib/models/ml/discover/prompt.dart b/mobile/apps/photos/lib/models/ml/discover/prompt.dartindex 08a652483e..fdc1bd93f7 100644--- a/mobile/apps/photos/lib/models/ml/discover/prompt.dart+++ b/mobile/apps/photos/lib/models/ml/discover/prompt.dart@@ -1,4 +1,4 @@-// https://discover.ente.io/v1.json+// https://discover.ente.io/v3.jsonclass Prompt {final String id;final int position;diff --git a/mobile/apps/photos/lib/services/magic_cache_service.dart b/mobile/apps/photos/lib/services/magic_cache_service.dartindex b12826bba1..1885f58bc2 100644--- a/mobile/apps/photos/lib/services/magic_cache_service.dart+++ b/mobile/apps/photos/lib/services/magic_cache_service.dart@@ -87,6 +87,8 @@ String getLocalizedTitle(BuildContext context, String title) {return context.l10n.discover_identity;case 'Screenshots':return context.l10n.discover_screenshots;+ case 'QR Codes':+ return context.l10n.discover_qr_codes;case 'Receipts':return context.l10n.discover_receipts;case 'Notes':@@ -226,7 +228,7 @@ GenericSearchResult? toGenericSearchResult(class MagicCacheService {static const _lastMagicCacheUpdateTime = "last_magic_cache_update_time";- static const _kMagicPromptsDataUrl = "https://discover.ente.io/v2.json";+ static const _kMagicPromptsDataUrl = "https://discover.ente.io/v3.json";/// Delay is for cache update to be done not during app init, during which a/// lot of other things are happening.