Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

Merge branch 'main' into mobile-videoeditor

Neeraj Gupta24ea4374cf06
diff --cc mobile/ios/Podfile
index c9d26e696c,c9d26e696c..0993f733e7
--- a/mobile/ios/Podfile
+++ b/mobile/ios/Podfile
@@@ -1,5 -1,5 +1,5 @@@
# Uncomment this line to define a global platform for your project
--platform :ios, '12.0'
++platform :ios, '12.1'
# CocoaPods analytics sends network stats synchronously affecting flutter build latency.
diff --cc mobile/ios/Podfile.lock
index 7315149574,9f74d552a7..2f0349d49d
--- a/mobile/ios/Podfile.lock
+++ b/mobile/ios/Podfile.lock
@@@ -6,8 -6,10 +6,17 @@@ PODS
- connectivity_plus (0.0.1):
- Flutter
- FlutterMacOS
+ - dart_ui_isolate (0.0.1):
+ - Flutter
- device_info_plus (0.0.1):
- Flutter
++ - ffmpeg-kit-ios-min (6.0)
++ - ffmpeg_kit_flutter_min (6.0.3):
++ - ffmpeg_kit_flutter_min/min (= 6.0.3)
++ - Flutter
++ - ffmpeg_kit_flutter_min/min (6.0.3):
++ - ffmpeg-kit-ios-min (= 6.0)
++ - Flutter
- file_saver (0.0.1):
- Flutter
- Firebase/CoreOnly (10.24.0):
@@@ -103,6 -105,6 +112,8 @@@
- Flutter
- image_editor_common (1.0.0):
- Flutter
++ - image_picker_ios (0.0.1):
++ - Flutter
- in_app_purchase_storekit (0.0.1):
- Flutter
- FlutterMacOS
@@@ -226,7 -228,8 +237,9 @@@ DEPENDENCIES
- background_fetch (from `.symlinks/plugins/background_fetch/ios`)
- battery_info (from `.symlinks/plugins/battery_info/ios`)
- connectivity_plus (from `.symlinks/plugins/connectivity_plus/darwin`)
+ - dart_ui_isolate (from `.symlinks/plugins/dart_ui_isolate/ios`)
- device_info_plus (from `.symlinks/plugins/device_info_plus/ios`)
++ - ffmpeg_kit_flutter_min (from `.symlinks/plugins/ffmpeg_kit_flutter_min/ios`)
- file_saver (from `.symlinks/plugins/file_saver/ios`)
- firebase_core (from `.symlinks/plugins/firebase_core/ios`)
- firebase_messaging (from `.symlinks/plugins/firebase_messaging/ios`)
@@@ -242,6 -245,6 +255,7 @@@
- fluttertoast (from `.symlinks/plugins/fluttertoast/ios`)
- home_widget (from `.symlinks/plugins/home_widget/ios`)
- image_editor_common (from `.symlinks/plugins/image_editor_common/ios`)
++ - image_picker_ios (from `.symlinks/plugins/image_picker_ios/ios`)
- in_app_purchase_storekit (from `.symlinks/plugins/in_app_purchase_storekit/darwin`)
- integration_test (from `.symlinks/plugins/integration_test/ios`)
- local_auth_darwin (from `.symlinks/plugins/local_auth_darwin/darwin`)
@@@ -274,6 -277,6 +288,7 @@@
SPEC REPOS:
trunk:
++ - ffmpeg-kit-ios-min
- Firebase
- FirebaseCore
- FirebaseCoreInternal
@@@ -302,8 -305,10 +317,12 @@@ EXTERNAL SOURCES
:path: ".symlinks/plugins/battery_info/ios"
connectivity_plus:
:path: ".symlinks/plugins/connectivity_plus/darwin"
+ dart_ui_isolate:
+ :path: ".symlinks/plugins/dart_ui_isolate/ios"
device_info_plus:
:path: ".symlinks/plugins/device_info_plus/ios"
++ ffmpeg_kit_flutter_min:
++ :path: ".symlinks/plugins/ffmpeg_kit_flutter_min/ios"
file_saver:
:path: ".symlinks/plugins/file_saver/ios"
firebase_core:
@@@ -334,6 -339,6 +353,8 @@@
:path: ".symlinks/plugins/home_widget/ios"
image_editor_common:
:path: ".symlinks/plugins/image_editor_common/ios"
++ image_picker_ios:
++ :path: ".symlinks/plugins/image_picker_ios/ios"
in_app_purchase_storekit:
:path: ".symlinks/plugins/in_app_purchase_storekit/darwin"
integration_test:
@@@ -397,7 -402,8 +418,10 @@@ SPEC CHECKSUMS
background_fetch: 2319bf7e18237b4b269430b7f14d177c0df09c5a
battery_info: 09f5c9ee65394f2291c8c6227bedff345b8a730c
connectivity_plus: ddd7f30999e1faaef5967c23d5b6d503d10434db
+ dart_ui_isolate: d5bcda83ca4b04f129d70eb90110b7a567aece14
device_info_plus: c6fb39579d0f423935b0c9ce7ee2f44b71b9fce6
++ ffmpeg-kit-ios-min: 4e9a088f4ee9629435960b9d68e54848975f1931
++ ffmpeg_kit_flutter_min: 5eff47f4965bf9d1150e98961eb6129f5ae3f28c
file_saver: 503e386464dbe118f630e17b4c2e1190fa0cf808
Firebase: 91fefd38712feb9186ea8996af6cbdef41473442
firebase_core: 66b99b4fb4e5d7cc4e88d4c195fe986681f3466a
@@@ -420,8 -426,8 +444,9 @@@
GoogleUtilities: d053d902a8edaa9904e1bd00c37535385b8ed152
home_widget: 0434835a4c9a75704264feff6be17ea40e0f0d57
image_editor_common: d6f6644ae4a6de80481e89fe6d0a8c49e30b4b43
++ image_picker_ios: c560581cceedb403a6ff17f2f816d7fea1421fc1
in_app_purchase_storekit: 0e4b3c2e43ba1e1281f4f46dd71b0593ce529892
- integration_test: 13825b8a9334a850581300559b8839134b124670
+ integration_test: ce0a3ffa1de96d1a89ca0ac26fca7ea18a749ef4
libwebp: 1786c9f4ff8a279e4dac1e8f385004d5fc253009
local_auth_darwin: c7e464000a6a89e952235699e32b329457608d98
local_auth_ios: 5046a18c018dd973247a0564496c8898dbb5adf9
@@@ -463,6 -469,6 +488,6 @@@
volume_controller: 531ddf792994285c9b17f9d8a7e4dcdd29b3eae9
wakelock_plus: 8b09852c8876491e4b6d179e17dfe2a0b5f60d47
--PODFILE CHECKSUM: c1a8f198a245ed1f10e40b617efdb129b021b225
++PODFILE CHECKSUM: 3c51755c77077d1aa4ef23d06c621f6e2569214c
COCOAPODS: 1.15.2
diff --cc mobile/ios/Runner.xcodeproj/project.pbxproj
index c88f9da380,22d5e8e681..c2a5bfb377
--- a/mobile/ios/Runner.xcodeproj/project.pbxproj
+++ b/mobile/ios/Runner.xcodeproj/project.pbxproj
@@@ -306,6 -307,6 +307,7 @@@
"${BUILT_PRODUCTS_DIR}/fluttertoast/fluttertoast.framework",
"${BUILT_PRODUCTS_DIR}/home_widget/home_widget.framework",
"${BUILT_PRODUCTS_DIR}/image_editor_common/image_editor_common.framework",
++ "${BUILT_PRODUCTS_DIR}/image_picker_ios/image_picker_ios.framework",
"${BUILT_PRODUCTS_DIR}/in_app_purchase_storekit/in_app_purchase_storekit.framework",
"${BUILT_PRODUCTS_DIR}/integration_test/integration_test.framework",
"${BUILT_PRODUCTS_DIR}/libwebp/libwebp.framework",
@@@ -336,6 -337,6 +338,14 @@@
"${BUILT_PRODUCTS_DIR}/video_thumbnail/video_thumbnail.framework",
"${BUILT_PRODUCTS_DIR}/volume_controller/volume_controller.framework",
"${BUILT_PRODUCTS_DIR}/wakelock_plus/wakelock_plus.framework",
++ "${PODS_XCFRAMEWORKS_BUILD_DIR}/ffmpeg-kit-ios-min/ffmpegkit.framework/ffmpegkit",
++ "${PODS_XCFRAMEWORKS_BUILD_DIR}/ffmpeg-kit-ios-min/libavcodec.framework/libavcodec",
++ "${PODS_XCFRAMEWORKS_BUILD_DIR}/ffmpeg-kit-ios-min/libavdevice.framework/libavdevice",
++ "${PODS_XCFRAMEWORKS_BUILD_DIR}/ffmpeg-kit-ios-min/libavfilter.framework/libavfilter",
++ "${PODS_XCFRAMEWORKS_BUILD_DIR}/ffmpeg-kit-ios-min/libavformat.framework/libavformat",
++ "${PODS_XCFRAMEWORKS_BUILD_DIR}/ffmpeg-kit-ios-min/libavutil.framework/libavutil",
++ "${PODS_XCFRAMEWORKS_BUILD_DIR}/ffmpeg-kit-ios-min/libswresample.framework/libswresample",
++ "${PODS_XCFRAMEWORKS_BUILD_DIR}/ffmpeg-kit-ios-min/libswscale.framework/libswscale",
"${PODS_XCFRAMEWORKS_BUILD_DIR}/media_kit_libs_ios_video/Ass.framework/Ass",
"${PODS_XCFRAMEWORKS_BUILD_DIR}/media_kit_libs_ios_video/Avcodec.framework/Avcodec",
"${PODS_XCFRAMEWORKS_BUILD_DIR}/media_kit_libs_ios_video/Avfilter.framework/Avfilter",
@@@ -387,6 -389,6 +398,7 @@@
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/fluttertoast.framework",
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/home_widget.framework",
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/image_editor_common.framework",
++ "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/image_picker_ios.framework",
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/in_app_purchase_storekit.framework",
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/integration_test.framework",
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/libwebp.framework",
@@@ -417,6 -419,6 +429,14 @@@
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/video_thumbnail.framework",
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/volume_controller.framework",
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/wakelock_plus.framework",
++ "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/ffmpegkit.framework",
++ "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/libavcodec.framework",
++ "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/libavdevice.framework",
++ "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/libavfilter.framework",
++ "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/libavformat.framework",
++ "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/libavutil.framework",
++ "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/libswresample.framework",
++ "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/libswscale.framework",
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/Ass.framework",
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/Avcodec.framework",
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/Avfilter.framework",
diff --cc mobile/ios/Runner/Info.plist
index 9afb874e52,fe571afeb1..1e291bfe46
--- a/mobile/ios/Runner/Info.plist
+++ b/mobile/ios/Runner/Info.plist
@@@ -23,7 -23,7 +23,7 @@@
<key>CFBundleSignature</key>
<string>????</string>
<key>MinimumOSVersion</key>
-- <string>12.0</string>
++ <string>12.1</string>
<key>LSApplicationQueriesSchemes</key>
<array>
<string>googlegmail</string>
diff --cc mobile/lib/generated/l10n.dart
index b9fcb10b00,fd50133186..8669484d7c
--- a/mobile/lib/generated/l10n.dart
+++ b/mobile/lib/generated/l10n.dart
@@@ -8704,15 -8774,65 +8774,75 @@@ class S
);
}
+ /// `Saving Edits!`
+ String get savingEdits {
+ return Intl.message(
+ 'Saving Edits!',
+ name: 'savingEdits',
+ desc: '',
+ args: [],
+ );
+ }
++
+ /// `Auto pair`
+ String get autoPair {
+ return Intl.message(
+ 'Auto pair',
+ name: 'autoPair',
+ desc: '',
+ args: [],
+ );
+ }
+
+ /// `Pair with PIN`
+ String get pairWithPin {
+ return Intl.message(
+ 'Pair with PIN',
+ name: 'pairWithPin',
+ desc: '',
+ args: [],
+ );
+ }
+
+ /// `Face recognition`
+ String get faceRecognition {
+ return Intl.message(
+ 'Face recognition',
+ name: 'faceRecognition',
+ desc: '',
+ args: [],
+ );
+ }
+
+ /// `Found faces`
+ String get foundFaces {
+ return Intl.message(
+ 'Found faces',
+ name: 'foundFaces',
+ desc: '',
+ args: [],
+ );
+ }
+
+ /// `Clustering progress`
+ String get clusteringProgress {
+ return Intl.message(
+ 'Clustering progress',
+ name: 'clusteringProgress',
+ desc: '',
+ args: [],
+ );
+ }
+
+ /// `Indexing is paused. It will automatically resume when device is ready.`
+ String get indexingIsPaused {
+ return Intl.message(
+ 'Indexing is paused. It will automatically resume when device is ready.',
+ name: 'indexingIsPaused',
+ desc: '',
+ args: [],
+ );
+ }
}
class AppLocalizationDelegate extends LocalizationsDelegate<S> {
diff --cc mobile/lib/l10n/intl_en.arb
index 00c2de3f5d,0cabea3f05..4811366a28
--- a/mobile/lib/l10n/intl_en.arb
+++ b/mobile/lib/l10n/intl_en.arb
@@@ -1227,5 -1234,10 +1234,12 @@@
"castIPMismatchTitle": "Failed to cast album",
"castIPMismatchBody": "Please make sure you are on the same network as the TV.",
"pairingComplete": "Pairing complete",
- "savingEdits": "Saving Edits!"
- }
++ "savingEdits": "Saving Edits!",
+ "autoPair": "Auto pair",
+ "pairWithPin": "Pair with PIN",
+ "faceRecognition": "Face recognition",
+ "foundFaces": "Found faces",
+ "clusteringProgress": "Clustering progress",
+ "indexingIsPaused": "Indexing is paused. It will automatically resume when device is ready."
+ }
++
diff --cc mobile/lib/main.dart
index 5036ec3033,5418afed89..a559777e6a
--- a/mobile/lib/main.dart
+++ b/mobile/lib/main.dart
@@@ -123,8 -128,9 +128,8 @@@ Future<void> _runBackgroundTask(String
if (_isProcessRunning) {
_logger.info("Background task triggered when process was already running");
await _sync('bgTaskActiveProcess');
- BackgroundFetch.finish(taskId).ignore();
+ BackgroundFetch.finish(taskId);
} else {
- // ignore: unawaited_futures
_runWithLogs(
() async {
_logger.info("Starting background task in $mode mode");
diff --cc mobile/lib/ui/tools/editor/video_editor_page.dart
index 7a7426a73d,0000000000..ef0a25121f
mode 100644,000000..100644
--- a/mobile/lib/ui/tools/editor/video_editor_page.dart
+++ b/mobile/lib/ui/tools/editor/video_editor_page.dart
@@@ -1,258 -1,0 +1,259 @@@
+import 'dart:io';
+import "dart:math";
+
+import 'package:flutter/material.dart';
+import "package:flutter_svg/flutter_svg.dart";
+import "package:logging/logging.dart";
+import 'package:path/path.dart' as path;
+import "package:pedantic/pedantic.dart";
+import "package:photo_manager/photo_manager.dart";
+import "package:photos/core/event_bus.dart";
+import "package:photos/db/files_db.dart";
+import "package:photos/ente_theme_data.dart";
+import "package:photos/events/local_photos_updated_event.dart";
+import "package:photos/generated/l10n.dart";
+import "package:photos/models/file/file.dart";
+import "package:photos/services/sync_service.dart";
+import "package:photos/ui/tools/editor/export_video_service.dart";
+import 'package:photos/ui/tools/editor/video_crop_page.dart';
+import "package:photos/ui/tools/editor/video_editor/video_editor_bottom_action.dart";
+import "package:photos/ui/tools/editor/video_editor/video_editor_main_actions.dart";
+import "package:photos/ui/tools/editor/video_editor/video_editor_navigation_options.dart";
+import "package:photos/ui/tools/editor/video_editor/video_editor_player_control.dart";
+import "package:photos/ui/tools/editor/video_rotate_page.dart";
+import "package:photos/ui/tools/editor/video_trim_page.dart";
+import "package:photos/ui/viewer/file/detail_page.dart";
+import "package:photos/utils/dialog_util.dart";
+import "package:photos/utils/navigation_util.dart";
+import "package:photos/utils/toast_util.dart";
+import "package:video_editor/video_editor.dart";
+
+class VideoEditorPage extends StatefulWidget {
+ const VideoEditorPage({
+ super.key,
+ required this.file,
+ required this.ioFile,
+ required this.detailPageConfig,
+ });
+
+ final EnteFile file;
+ final File ioFile;
+ final DetailPageConfiguration detailPageConfig;
+
+ @override
+ State<VideoEditorPage> createState() => _VideoEditorPageState();
+}
+
+class _VideoEditorPageState extends State<VideoEditorPage> {
+ final _exportingProgress = ValueNotifier<double>(0.0);
+ final _isExporting = ValueNotifier<bool>(false);
+ final _logger = Logger("VideoEditor");
+
+ late final VideoEditorController _controller;
+
+ @override
+ void initState() {
+ super.initState();
+ _controller = VideoEditorController.file(
+ widget.ioFile,
+ minDuration: const Duration(seconds: 1),
+ cropStyle: CropGridStyle(
+ selectedBoundariesColor:
+ const ColorScheme.dark().videoPlayerPrimaryColor,
+ ),
+ trimStyle: TrimSliderStyle(
+ onTrimmedColor: const ColorScheme.dark().videoPlayerPrimaryColor,
+ onTrimmingColor: const ColorScheme.dark().videoPlayerPrimaryColor,
+ ),
+ );
+ _controller.initialize().then((_) => setState(() {})).catchError(
+ (error) {
+ // handle minumum duration bigger than video duration error
+ Navigator.pop(context);
+ },
+ test: (e) => e is VideoMinDurationError,
+ );
+ }
+
+ @override
+ void dispose() async {
+ _exportingProgress.dispose();
+ _isExporting.dispose();
+ _controller.dispose().ignore();
+ ExportService.dispose().ignore();
+ super.dispose();
+ }
+
+ @override
+ Widget build(BuildContext context) {
+ return PopScope(
+ canPop: false,
+ child: Scaffold(
+ backgroundColor: Colors.black,
+ body: _controller.initialized
+ ? SafeArea(
+ child: Stack(
+ children: [
+ Column(
+ children: [
+ Expanded(
+ child: Column(
+ children: [
+ Expanded(
+ child: Hero(
+ tag: "video-editor-preview",
+ child: CropGridViewer.preview(
+ controller: _controller,
+ ),
+ ),
+ ),
+ VideoEditorPlayerControl(
+ controller: _controller,
+ ),
+ VideoEditorMainActions(
+ children: [
+ VideoEditorBottomAction(
+ label: "Trim",
+ child: SvgPicture.asset(
+ "assets/video-editor/video-editor-trim-action.svg",
+ ),
+ onPressed: () => Navigator.push(
+ context,
+ MaterialPageRoute<void>(
+ builder: (context) => VideoTrimPage(
+ controller: _controller,
+ ),
+ ),
+ ),
+ ),
+ const SizedBox(width: 40),
+ VideoEditorBottomAction(
+ label: "Crop",
+ child: SvgPicture.asset(
+ "assets/video-editor/video-editor-crop-action.svg",
+ ),
+ onPressed: () => Navigator.push(
+ context,
+ MaterialPageRoute<void>(
+ builder: (context) => VideoCropPage(
+ controller: _controller,
+ ),
+ ),
+ ),
+ ),
+ const SizedBox(width: 40),
+ VideoEditorBottomAction(
+ label: "Rotate",
+ child: SvgPicture.asset(
+ "assets/video-editor/video-editor-rotate-action.svg",
+ ),
+ onPressed: () => Navigator.push(
+ context,
+ MaterialPageRoute<void>(
+ builder: (context) => VideoRotatePage(
+ controller: _controller,
+ ),
+ ),
+ ),
+ ),
+ ],
+ ),
+ const SizedBox(height: 40),
+ VideoEditorNavigationOptions(
+ secondaryText: "Save copy",
+ onSecondaryPressed: () {
+ exportVideo();
+ },
+ ),
+ ],
+ ),
+ ),
+ ],
+ ),
+ ],
+ ),
+ )
+ : const Center(child: CircularProgressIndicator()),
+ ),
+ );
+ }
+
+ void exportVideo() async {
+ _exportingProgress.value = 0;
+ _isExporting.value = true;
+
+ final config = VideoFFmpegVideoEditorConfig(
+ _controller,
+ format: VideoExportFormat.mp4,
+ // commandBuilder: (config, videoPath, outputPath) {
+ // final List<String> filters = config.getExportFilters();
+ // filters.add('hflip'); // add horizontal flip
+
+ // return '-i $videoPath ${config.filtersCmd(filters)} -preset ultrafast $outputPath';
+ // },
+ );
+
+ await ExportService.runFFmpegCommand(
+ await config.getExecuteConfig(),
+ onProgress: (stats) {
+ _exportingProgress.value =
+ config.getFFmpegProgress(stats.getTime().toInt());
+ },
+ onError: (e, s) => _logger.severe("Error exporting video", e, s),
+ onCompleted: (result) async {
+ _isExporting.value = false;
+ final dialog = createProgressDialog(context, S.of(context).savingEdits);
+ await dialog.show();
+ if (!mounted) return;
+
+ final fileName = path.basenameWithoutExtension(widget.file.title!) +
+ "_edited_" +
+ DateTime.now().microsecondsSinceEpoch.toString() +
+ ".mp4";
+ //Disabling notifications for assets changing to insert the file into
+ //files db before triggering a sync.
+ await PhotoManager.stopChangeNotify();
+ final AssetEntity? newAsset =
+ await (PhotoManager.editor.saveVideo(result, title: fileName));
+ result.deleteSync();
+ final newFile = await EnteFile.fromAsset(
+ widget.file.deviceFolder ?? '',
+ newAsset!,
+ );
+
- newFile.generatedID = await FilesDB.instance.insert(widget.file);
++ newFile.generatedID =
++ await FilesDB.instance.insertAndGetId(widget.file);
+ Bus.instance
+ .fire(LocalPhotosUpdatedEvent([newFile], source: "editSave"));
+ unawaited(SyncService.instance.sync());
+ showShortToast(context, S.of(context).editsSaved);
+ _logger.info("Original file " + widget.file.toString());
+ _logger.info("Saved edits to file " + newFile.toString());
+ final existingFiles = widget.detailPageConfig.files;
+ final files = (await widget.detailPageConfig.asyncLoader!(
+ existingFiles[existingFiles.length - 1].creationTime!,
+ existingFiles[0].creationTime!,
+ ))
+ .files;
+ // the index could be -1 if the files fetched doesn't contain the newly
+ // edited files
+ int selectionIndex =
+ files.indexWhere((file) => file.generatedID == newFile.generatedID);
+ if (selectionIndex == -1) {
+ files.add(newFile);
+ selectionIndex = files.length - 1;
+ }
+ replacePage(
+ context,
+ DetailPage(
+ widget.detailPageConfig.copyWith(
+ files: files,
+ selectedIndex: min(selectionIndex, files.length - 1),
+ ),
+ ),
+ );
+ await dialog.hide();
+ },
+ );
+ }
+}
diff --cc mobile/pubspec.lock
index ad05638ed0,97f5780063..8b987ff0a3
--- a/mobile/pubspec.lock
+++ b/mobile/pubspec.lock
@@@ -950,18 -902,10 +958,18 @@@ packages
dependency: "direct main"
description:
name: fluttertoast
- sha256: "81b68579e23fcbcada2db3d50302813d2371664afe6165bc78148050ab94bf66"
+ sha256: dfdde255317af381bfc1c486ed968d5a43a2ded9c931e87cbecd88767d6a71c1
url: "https://pub.dev"
source: hosted
- version: "8.2.5"
+ version: "8.2.4"
+ fraction:
+ dependency: "direct main"
+ description:
+ name: fraction
+ sha256: "09e9504c9177bbd77df56e5d147abfbb3b43360e64bf61510059c14d6a82d524"
+ url: "https://pub.dev"
+ source: hosted
+ version: "5.0.2"
freezed:
dependency: "direct dev"
description:
@@@ -1115,74 -1059,10 +1123,74 @@@
dependency: transitive
description:
name: image_editor_platform_interface
- sha256: "474517efc770464f7d99942472d8cfb369a3c378e95466ec17f74d2b80bd40de"
+ sha256: ee01ec5e228e10c40f96d7f822c176d4140c15b6706e4a701866ee0cdd1c2b72
url: "https://pub.dev"
source: hosted
- version: "1.1.0"
+ version: "1.0.1"
+ image_picker:
+ dependency: "direct main"
+ description:
+ name: image_picker
- sha256: "33974eca2e87e8b4e3727f1b94fa3abcb25afe80b6bc2c4d449a0e150aedf720"
++ sha256: "021834d9c0c3de46bf0fe40341fa07168407f694d9b2bb18d532dc1261867f7a"
+ url: "https://pub.dev"
+ source: hosted
- version: "1.1.1"
++ version: "1.1.2"
+ image_picker_android:
+ dependency: transitive
+ description:
+ name: image_picker_android
- sha256: "0f57fee1e8bfadf8cc41818bbcd7f72e53bb768a54d9496355d5e8a5681a19f1"
++ sha256: "4161e1f843d8480d2e9025ee22411778c3c9eb7e40076dcf2da23d8242b7b51c"
+ url: "https://pub.dev"
+ source: hosted
- version: "0.8.12+1"
++ version: "0.8.12+3"
+ image_picker_for_web:
+ dependency: transitive
+ description:
+ name: image_picker_for_web
+ sha256: "5d6eb13048cd47b60dbf1a5495424dea226c5faf3950e20bf8120a58efb5b5f3"
+ url: "https://pub.dev"
+ source: hosted
+ version: "3.0.4"
+ image_picker_ios:
+ dependency: transitive
+ description:
+ name: image_picker_ios
- sha256: "4824d8c7f6f89121ef0122ff79bb00b009607faecc8545b86bca9ab5ce1e95bf"
++ sha256: "6703696ad49f5c3c8356d576d7ace84d1faf459afb07accbb0fae780753ff447"
+ url: "https://pub.dev"
+ source: hosted
- version: "0.8.11+2"
++ version: "0.8.12"
+ image_picker_linux:
+ dependency: transitive
+ description:
+ name: image_picker_linux
+ sha256: "4ed1d9bb36f7cd60aa6e6cd479779cc56a4cb4e4de8f49d487b1aaad831300fa"
+ url: "https://pub.dev"
+ source: hosted
+ version: "0.2.1+1"
+ image_picker_macos:
+ dependency: transitive
+ description:
+ name: image_picker_macos
+ sha256: "3f5ad1e8112a9a6111c46d0b57a7be2286a9a07fc6e1976fdf5be2bd31d4ff62"
+ url: "https://pub.dev"
+ source: hosted
+ version: "0.2.1+1"
+ image_picker_platform_interface:
+ dependency: transitive
+ description:
+ name: image_picker_platform_interface
+ sha256: "9ec26d410ff46f483c5519c29c02ef0e02e13a543f882b152d4bfd2f06802f80"
+ url: "https://pub.dev"
+ source: hosted
+ version: "2.10.0"
+ image_picker_windows:
+ dependency: transitive
+ description:
+ name: image_picker_windows
+ sha256: "6ad07afc4eb1bc25f3a01084d28520496c4a3bb0cb13685435838167c9dcedeb"
+ url: "https://pub.dev"
+ source: hosted
+ version: "0.2.1+1"
in_app_purchase:
dependency: "direct main"
description:
@@@ -2735,5 -2598,5 +2767,5 @@@
source: hosted
version: "3.1.2"
sdks:
-- dart: ">=3.3.0 <4.0.0"
- flutter: ">=3.19.0"
- flutter: ">=3.20.0-1.2.pre"
++ dart: ">=3.4.0 <4.0.0"
++ flutter: ">=3.22.0"
diff --cc mobile/pubspec.yaml
index f127d4feda,dfdee3e30a..656a9c85cc
--- a/mobile/pubspec.yaml
+++ b/mobile/pubspec.yaml
@@@ -11,8 -11,8 +11,8 @@@ description: ente photos applicatio
# In iOS, build-name is used as CFBundleShortVersionString while build-number used as CFBundleVersion.
# Read more about iOS versioning at
# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
-
+ version: 0.8.132+652
+
- version: 0.8.98+618
publish_to: none
environment:
@@@ -90,19 -90,16 +91,19 @@@ dependencies
flutter_secure_storage: ^8.0.0
flutter_sodium: ^0.2.0
flutter_staggered_grid_view: ^0.6.2
+ flutter_svg: ^2.0.10+1
fluttertoast: ^8.0.6
+ fraction: ^5.0.2
freezed_annotation: ^2.4.1
google_nav_bar: ^5.0.5
- home_widget: ^0.5.0
+ home_widget: ^0.6.0
html_unescape: ^2.0.0
http: ^1.1.0
image: ^4.0.17
image_editor: ^1.3.0
+ image_picker: ^1.1.1
in_app_purchase: ^3.0.7
- intl: ^0.18.0
+ intl: ^0.19.0
json_annotation: ^4.8.0
latlong2: ^0.9.0
like_button: ^2.0.5
@@@ -235,11 -230,7 +237,8 @@@ flutter_native_splash
flutter:
assets:
- assets/
- - assets/models/cocossd/
- - assets/models/mobilenet/
- - assets/models/scenes/
- assets/models/clip/
+ - assets/video-editor/
fonts:
- family: Inter
fonts: