Skip to content

armgit / ente

Public Imported from GitHub
0

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

[Fix] Enable interfaction handling for MLController in iOS

Neeraj Gupta82af918c6cdd
diff --git a/mobile/ios/Podfile.lock b/mobile/ios/Podfile.lock
index 19cdc95eaf..3e4684855a 100644
--- a/mobile/ios/Podfile.lock
+++ b/mobile/ios/Podfile.lock
@@ -104,8 +104,6 @@ PODS:
- GoogleUtilities/UserDefaults (8.0.2):
- GoogleUtilities/Logger
- GoogleUtilities/Privacy
- - heif_converter (1.0.0):
- - Flutter
- home_widget (0.0.1):
- Flutter
- image_editor_common (1.0.0):
@@ -262,7 +260,6 @@ DEPENDENCIES:
- flutter_secure_storage (from `.symlinks/plugins/flutter_secure_storage/ios`)
- flutter_sodium (from `.symlinks/plugins/flutter_sodium/ios`)
- fluttertoast (from `.symlinks/plugins/fluttertoast/ios`)
- - heif_converter (from `.symlinks/plugins/heif_converter/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`)
@@ -361,8 +358,6 @@ EXTERNAL SOURCES:
:path: ".symlinks/plugins/flutter_sodium/ios"
fluttertoast:
:path: ".symlinks/plugins/fluttertoast/ios"
- heif_converter:
- :path: ".symlinks/plugins/heif_converter/ios"
home_widget:
:path: ".symlinks/plugins/home_widget/ios"
image_editor_common:
@@ -465,7 +460,6 @@ SPEC CHECKSUMS:
fluttertoast: e9a18c7be5413da53898f660530c56f35edfba9c
GoogleDataTransport: aae35b7ea0c09004c3797d53c8c41f66f219d6a7
GoogleUtilities: 26a3abef001b6533cf678d3eb38fd3f614b7872d
- heif_converter: e3802659e4104e27e28c4d7bff07903da2f69318
home_widget: 0434835a4c9a75704264feff6be17ea40e0f0d57
image_editor_common: d6f6644ae4a6de80481e89fe6d0a8c49e30b4b43
image_picker_ios: c560581cceedb403a6ff17f2f816d7fea1421fc1
diff --git a/mobile/ios/Runner.xcodeproj/project.pbxproj b/mobile/ios/Runner.xcodeproj/project.pbxproj
index 11f3101242..142efc1059 100644
--- a/mobile/ios/Runner.xcodeproj/project.pbxproj
+++ b/mobile/ios/Runner.xcodeproj/project.pbxproj
@@ -303,7 +303,6 @@
"${BUILT_PRODUCTS_DIR}/flutter_secure_storage/flutter_secure_storage.framework",
"${BUILT_PRODUCTS_DIR}/flutter_sodium/flutter_sodium.framework",
"${BUILT_PRODUCTS_DIR}/fluttertoast/fluttertoast.framework",
- "${BUILT_PRODUCTS_DIR}/heif_converter/heif_converter.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",
@@ -398,7 +397,6 @@
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/flutter_secure_storage.framework",
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/flutter_sodium.framework",
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/fluttertoast.framework",
- "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/heif_converter.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",
diff --git a/mobile/lib/app.dart b/mobile/lib/app.dart
index e1e76869e5..f9f73d766b 100644
--- a/mobile/lib/app.dart
+++ b/mobile/lib/app.dart
@@ -124,21 +124,26 @@ class _EnteAppState extends State<EnteApp> with WidgetsBindingObserver {
),
);
} else {
- return MaterialApp(
- title: "ente",
- themeMode: ThemeMode.system,
- theme: lightThemeData,
- darkTheme: darkThemeData,
- home: const HomeWidget(),
- debugShowCheckedModeBanner: false,
- builder: EasyLoading.init(),
- locale: locale,
- supportedLocales: appSupportedLocales,
- localeListResolutionCallback: localResolutionCallBack,
- localizationsDelegates: const [
- ...AppLocalizations.localizationsDelegates,
- S.delegate,
- ],
+ return Listener(
+ onPointerDown: (event) {
+ MachineLearningController.instance.onUserInteraction();
+ },
+ child: MaterialApp(
+ title: "ente",
+ themeMode: ThemeMode.system,
+ theme: lightThemeData,
+ darkTheme: darkThemeData,
+ home: const HomeWidget(),
+ debugShowCheckedModeBanner: false,
+ builder: EasyLoading.init(),
+ locale: locale,
+ supportedLocales: appSupportedLocales,
+ localeListResolutionCallback: localResolutionCallBack,
+ localizationsDelegates: const [
+ ...AppLocalizations.localizationsDelegates,
+ S.delegate,
+ ],
+ ),
);
}
}