π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
Remove internal feature flags for swipe-to-select
ashilkn4f2a332706c2
diff --git a/mobile/apps/photos/lib/models/gallery/gallery_groups.dart b/mobile/apps/photos/lib/models/gallery/gallery_groups.dartindex da5b55db3c..7b101ef6df 100644--- a/mobile/apps/photos/lib/models/gallery/gallery_groups.dart+++ b/mobile/apps/photos/lib/models/gallery/gallery_groups.dart@@ -366,7 +366,7 @@ class GalleryGroups {// Only add dummy files if swipe-to-select feature is enabled// Dummy files are used for gesture tracking in swipe-to-select- if (flagService.internalUser && !limitSelectionToOne) {+ if (!limitSelectionToOne) {// Add dummy files to fill the last row if neededfinal incompleteRowCount = groupFiles.length % crossAxisCount;if (incompleteRowCount != 0) {@@ -392,7 +392,7 @@ class GalleryGroups {endCreationTime: lastFile.creationTime!);- if (flagService.internalUser && !limitSelectionToOne) {+ if (!limitSelectionToOne) {_allFilesWithDummies.addAll(groupFiles);}diff --git a/mobile/apps/photos/lib/ui/viewer/gallery/component/dummy_file_widget.dart b/mobile/apps/photos/lib/ui/viewer/gallery/component/dummy_file_widget.dartindex dd9e75336b..2a820cb41a 100644--- a/mobile/apps/photos/lib/ui/viewer/gallery/component/dummy_file_widget.dart+++ b/mobile/apps/photos/lib/ui/viewer/gallery/component/dummy_file_widget.dart@@ -1,7 +1,6 @@import "package:flutter/material.dart";import "package:photos/models/file/dummy_file.dart";import "package:photos/models/selected_files.dart";-import "package:photos/service_locator.dart";import "package:photos/ui/viewer/gallery/component/swipe_selectable_file_widget.dart";/// A widget that displays a dummy placeholder in the gallery grid.@@ -20,8 +19,7 @@ class DummyFileWidget extends StatelessWidget {@overrideWidget build(BuildContext context) {- final shouldEnableSwipeSelection =- flagService.internalUser && !limitSelectionToOne;+ final shouldEnableSwipeSelection = !limitSelectionToOne;const Widget dummyContent = SizedBox.expand();diff --git a/mobile/apps/photos/lib/ui/viewer/gallery/component/gallery_file_widget.dart b/mobile/apps/photos/lib/ui/viewer/gallery/component/gallery_file_widget.dartindex 7134f543ed..eec53815bd 100644--- a/mobile/apps/photos/lib/ui/viewer/gallery/component/gallery_file_widget.dart+++ b/mobile/apps/photos/lib/ui/viewer/gallery/component/gallery_file_widget.dart@@ -6,7 +6,6 @@ import "package:photos/core/constants.dart";import 'package:photos/models/file/file.dart';import "package:photos/models/gallery_type.dart";import "package:photos/models/selected_files.dart";-import "package:photos/service_locator.dart";import "package:photos/services/app_lifecycle_service.dart";import "package:photos/theme/ente_theme.dart";import "package:photos/ui/common/touch_cross_detector.dart";@@ -63,8 +62,7 @@ class _GalleryFileWidgetState extends State<GalleryFileWidget> {@overrideWidget build(BuildContext context) {// Check if swipe selection should be enabled- final shouldEnableSwipeSelection =- flagService.internalUser && !widget.limitSelectionToOne;+ final shouldEnableSwipeSelection = !widget.limitSelectionToOne;final Widget fileContent = _buildFileContent(context);diff --git a/mobile/apps/photos/lib/ui/viewer/gallery/gallery.dart b/mobile/apps/photos/lib/ui/viewer/gallery/gallery.dartindex 4d1d71f0e9..cdba904ed6 100644--- a/mobile/apps/photos/lib/ui/viewer/gallery/gallery.dart+++ b/mobile/apps/photos/lib/ui/viewer/gallery/gallery.dart@@ -297,8 +297,7 @@ class GalleryState extends State<Gallery> {widget.selectedFiles?.addListener(_selectedFilesListener);- if (widget.galleryType == GalleryType.homepage &&- flagService.internalUser) {+ if (widget.galleryType == GalleryType.homepage) {_swipeActiveNotifier.addListener(() {Bus.instance.fire(HomepageSwipeToSelectInProgressEvent(@@ -480,9 +479,7 @@ class GalleryState extends State<Gallery> {}void _updateSwipeHelper() {- if (widget.selectedFiles != null &&- _allFilesWithDummies.isNotEmpty &&- flagService.internalUser) {+ if (widget.selectedFiles != null && _allFilesWithDummies.isNotEmpty) {// Dispose existing helper if present_swipeHelper?.dispose();// Use allFilesWithDummies to match the rendered grid structure.@@ -611,8 +608,7 @@ class GalleryState extends State<Gallery> {return widget.loadingWidget;}- final shouldEnableSwipeSelection =- flagService.internalUser && widget.limitSelectionToOne == false;+ final shouldEnableSwipeSelection = widget.limitSelectionToOne == false;return SwipeSelectionWrapper(isEnabled: shouldEnableSwipeSelection,diff --git a/mobile/apps/photos/scripts/internal_changes.txt b/mobile/apps/photos/scripts/internal_changes.txtindex 22ce4cf47a..828501c0d2 100644--- a/mobile/apps/photos/scripts/internal_changes.txt+++ b/mobile/apps/photos/scripts/internal_changes.txt@@ -1,4 +1,4 @@-- Ashil: (i) Swipe to select improvements (changes in auto scroll speed calcuation, added haptics and bug that I caught)+- Ashil: Swipe to select improvements (changes in auto scroll speed calcuation, added haptics and bug that I caught)- Laurens: Show empty persons and fallback for face thumbnail issues- Prateek: (i) Add native video editor to boost performance- Neeraj: Remove feature flags from manage_links_widget (album layout, allow joining album, copy embed HTML)@@ -16,7 +16,7 @@- Prateek: Add logging for background task execution- Prateek: (i) Add detailed debug logging for upload preparation, pre-upload checks, file queueing, and upload progress tracking- Laurens: (i) OCR UX improvements based on feedback-- Ashil: (i) Swipe to select+- Ashil: Swipe to select- Laurens: Improve clip memories- Laurens: Add OCR capability for Android devices (behind feature flag)- Neeraj: Add auth.ente.io to iOS associated domains for password AutoFill