Skip to content

armgit / ente

Public Imported from GitHub
0

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

Fix build failed for locker

AmanRajSinghMourya0e7c1d9da87d
diff --git a/mobile/apps/photos/pubspec.lock b/mobile/apps/photos/pubspec.lock
index c81bf52c83..61cadf1aad 100644
--- a/mobile/apps/photos/pubspec.lock
+++ b/mobile/apps/photos/pubspec.lock
@@ -2858,13 +2858,14 @@ packages:
source: git
version: "3.0.0"
video_player:
- dependency: "direct main"
+ dependency: "direct overridden"
description:
- name: video_player
- sha256: "0d55b1f1a31e5ad4c4967bfaa8ade0240b07d20ee4af1dfef5f531056512961a"
- url: "https://pub.dev"
- source: hosted
- version: "2.10.0"
+ path: "packages/video_player/video_player"
+ ref: android_video_roation_fix
+ resolved-ref: "0acef25ca43206e02a0758b51d5fd176e3d8c6b8"
+ url: "https://github.com/ente-io/packages.git"
+ source: git
+ version: "2.7.0"
video_player_android:
dependency: transitive
description:
diff --git a/mobile/apps/photos/pubspec.yaml b/mobile/apps/photos/pubspec.yaml
index 3c9cd7bcd2..f9e11eb0c0 100644
--- a/mobile/apps/photos/pubspec.yaml
+++ b/mobile/apps/photos/pubspec.yaml
@@ -217,7 +217,6 @@ dependencies:
git:
url: https://github.com/ente-io/video_editor_fork.git
ref: master
- video_player: ^2.10.0
video_thumbnail: ^0.5.6
visibility_detector: ^0.4.0+2
wakelock_plus: ^1.1.1
@@ -253,6 +252,13 @@ dependency_overrides:
url: https://github.com/media-kit/media-kit
path: media_kit_video
protobuf: ^3.1.0
+ # Override to match chewie fork's dependency on video_player from git
+ # This resolves conflict between chewie (git) and video_editor (hosted)
+ video_player:
+ git:
+ url: https://github.com/ente-io/packages.git
+ ref: android_video_roation_fix
+ path: packages/video_player/video_player/
watcher: ^1.1.0
win32: "5.10.1"
diff --git a/mobile/apps/photos/pubspec_overrides.yaml b/mobile/apps/photos/pubspec_overrides.yaml
index 85ee358259..ccd819bd28 100644
--- a/mobile/apps/photos/pubspec_overrides.yaml
+++ b/mobile/apps/photos/pubspec_overrides.yaml
@@ -1,4 +1,4 @@
-# melos_managed_dependency_overrides: ente_cast,ente_cast_normal,ente_crypto,ente_feature_flag,onnx_dart,ffi,flutter_sodium,intl,js,media_kit,media_kit_libs_ios_video,media_kit_libs_video,media_kit_video,protobuf,watcher,win32,log_viewer,native_video_editor
+# melos_managed_dependency_overrides: ente_cast,ente_cast_normal,ente_crypto,ente_feature_flag,onnx_dart,ffi,flutter_sodium,intl,js,media_kit,media_kit_libs_ios_video,media_kit_libs_video,media_kit_video,protobuf,watcher,win32,log_viewer,native_video_editor,video_player
dependency_overrides:
ente_cast:
path: plugins/ente_cast
@@ -40,3 +40,8 @@ dependency_overrides:
path: ../../packages/log_viewer
native_video_editor:
path: ../../packages/native_video_editor
+ video_player:
+ git:
+ url: https://github.com/ente-io/packages.git
+ ref: android_video_roation_fix
+ path: packages/video_player/video_player/
diff --git a/mobile/packages/configuration/.flutter-plugins b/mobile/packages/configuration/.flutter-plugins
deleted file mode 100644
index a788946466..0000000000
--- a/mobile/packages/configuration/.flutter-plugins
+++ /dev/null
@@ -1,21 +0,0 @@
-# This is a generated file; do not edit or check into version control.
-device_info_plus=/Users/amanraj/.pub-cache/hosted/pub.dev/device_info_plus-9.1.2/
-flutter_secure_storage=/Users/amanraj/.pub-cache/hosted/pub.dev/flutter_secure_storage-9.2.4/
-flutter_secure_storage_linux=/Users/amanraj/.pub-cache/hosted/pub.dev/flutter_secure_storage_linux-1.2.3/
-flutter_secure_storage_macos=/Users/amanraj/.pub-cache/hosted/pub.dev/flutter_secure_storage_macos-3.1.3/
-flutter_secure_storage_web=/Users/amanraj/.pub-cache/hosted/pub.dev/flutter_secure_storage_web-1.2.1/
-flutter_secure_storage_windows=/Users/amanraj/.pub-cache/hosted/pub.dev/flutter_secure_storage_windows-3.1.2/
-package_info_plus=/Users/amanraj/.pub-cache/hosted/pub.dev/package_info_plus-8.3.0/
-path_provider=/Users/amanraj/.pub-cache/hosted/pub.dev/path_provider-2.1.5/
-path_provider_android=/Users/amanraj/.pub-cache/hosted/pub.dev/path_provider_android-2.2.15/
-path_provider_foundation=/Users/amanraj/.pub-cache/hosted/pub.dev/path_provider_foundation-2.4.1/
-path_provider_linux=/Users/amanraj/.pub-cache/hosted/pub.dev/path_provider_linux-2.2.1/
-path_provider_windows=/Users/amanraj/.pub-cache/hosted/pub.dev/path_provider_windows-2.3.0/
-sentry_flutter=/Users/amanraj/.pub-cache/hosted/pub.dev/sentry_flutter-8.14.2/
-shared_preferences=/Users/amanraj/.pub-cache/hosted/pub.dev/shared_preferences-2.5.3/
-shared_preferences_android=/Users/amanraj/.pub-cache/hosted/pub.dev/shared_preferences_android-2.4.7/
-shared_preferences_foundation=/Users/amanraj/.pub-cache/hosted/pub.dev/shared_preferences_foundation-2.5.4/
-shared_preferences_linux=/Users/amanraj/.pub-cache/hosted/pub.dev/shared_preferences_linux-2.4.1/
-shared_preferences_web=/Users/amanraj/.pub-cache/hosted/pub.dev/shared_preferences_web-2.4.3/
-shared_preferences_windows=/Users/amanraj/.pub-cache/hosted/pub.dev/shared_preferences_windows-2.4.1/
-sodium_libs=/Users/amanraj/.pub-cache/hosted/pub.dev/sodium_libs-2.2.1+6/
diff --git a/mobile/packages/logging/.flutter-plugins b/mobile/packages/logging/.flutter-plugins
deleted file mode 100644
index 9b8a33aaa7..0000000000
--- a/mobile/packages/logging/.flutter-plugins
+++ /dev/null
@@ -1,14 +0,0 @@
-# This is a generated file; do not edit or check into version control.
-package_info_plus=/Users/amanraj/.pub-cache/hosted/pub.dev/package_info_plus-8.3.0/
-path_provider=/Users/amanraj/.pub-cache/hosted/pub.dev/path_provider-2.1.5/
-path_provider_android=/Users/amanraj/.pub-cache/hosted/pub.dev/path_provider_android-2.2.15/
-path_provider_foundation=/Users/amanraj/.pub-cache/hosted/pub.dev/path_provider_foundation-2.4.1/
-path_provider_linux=/Users/amanraj/.pub-cache/hosted/pub.dev/path_provider_linux-2.2.1/
-path_provider_windows=/Users/amanraj/.pub-cache/hosted/pub.dev/path_provider_windows-2.3.0/
-sentry_flutter=/Users/amanraj/.pub-cache/hosted/pub.dev/sentry_flutter-8.14.2/
-shared_preferences=/Users/amanraj/.pub-cache/hosted/pub.dev/shared_preferences-2.5.3/
-shared_preferences_android=/Users/amanraj/.pub-cache/hosted/pub.dev/shared_preferences_android-2.4.7/
-shared_preferences_foundation=/Users/amanraj/.pub-cache/hosted/pub.dev/shared_preferences_foundation-2.5.4/
-shared_preferences_linux=/Users/amanraj/.pub-cache/hosted/pub.dev/shared_preferences_linux-2.4.1/
-shared_preferences_web=/Users/amanraj/.pub-cache/hosted/pub.dev/shared_preferences_web-2.4.3/
-shared_preferences_windows=/Users/amanraj/.pub-cache/hosted/pub.dev/shared_preferences_windows-2.4.1/
diff --git a/mobile/packages/network/.flutter-plugins b/mobile/packages/network/.flutter-plugins
deleted file mode 100644
index 1cea5815b1..0000000000
--- a/mobile/packages/network/.flutter-plugins
+++ /dev/null
@@ -1,26 +0,0 @@
-# This is a generated file; do not edit or check into version control.
-cronet_http=/Users/amanraj/.pub-cache/hosted/pub.dev/cronet_http-1.4.0/
-cupertino_http=/Users/amanraj/.pub-cache/hosted/pub.dev/cupertino_http-2.2.0/
-device_info_plus=/Users/amanraj/.pub-cache/hosted/pub.dev/device_info_plus-9.1.2/
-flutter_secure_storage=/Users/amanraj/.pub-cache/hosted/pub.dev/flutter_secure_storage-9.2.4/
-flutter_secure_storage_linux=/Users/amanraj/.pub-cache/hosted/pub.dev/flutter_secure_storage_linux-1.2.3/
-flutter_secure_storage_macos=/Users/amanraj/.pub-cache/hosted/pub.dev/flutter_secure_storage_macos-3.1.3/
-flutter_secure_storage_web=/Users/amanraj/.pub-cache/hosted/pub.dev/flutter_secure_storage_web-1.2.1/
-flutter_secure_storage_windows=/Users/amanraj/.pub-cache/hosted/pub.dev/flutter_secure_storage_windows-3.1.2/
-jni=/Users/amanraj/.pub-cache/hosted/pub.dev/jni-0.14.2/
-objective_c=/Users/amanraj/.pub-cache/hosted/pub.dev/objective_c-7.1.0/
-package_info_plus=/Users/amanraj/.pub-cache/hosted/pub.dev/package_info_plus-8.3.0/
-path_provider=/Users/amanraj/.pub-cache/hosted/pub.dev/path_provider-2.1.5/
-path_provider_android=/Users/amanraj/.pub-cache/hosted/pub.dev/path_provider_android-2.2.15/
-path_provider_foundation=/Users/amanraj/.pub-cache/hosted/pub.dev/path_provider_foundation-2.4.1/
-path_provider_linux=/Users/amanraj/.pub-cache/hosted/pub.dev/path_provider_linux-2.2.1/
-path_provider_windows=/Users/amanraj/.pub-cache/hosted/pub.dev/path_provider_windows-2.3.0/
-sentry_flutter=/Users/amanraj/.pub-cache/hosted/pub.dev/sentry_flutter-8.14.2/
-shared_preferences=/Users/amanraj/.pub-cache/hosted/pub.dev/shared_preferences-2.5.3/
-shared_preferences_android=/Users/amanraj/.pub-cache/hosted/pub.dev/shared_preferences_android-2.4.7/
-shared_preferences_foundation=/Users/amanraj/.pub-cache/hosted/pub.dev/shared_preferences_foundation-2.5.4/
-shared_preferences_linux=/Users/amanraj/.pub-cache/hosted/pub.dev/shared_preferences_linux-2.4.1/
-shared_preferences_web=/Users/amanraj/.pub-cache/hosted/pub.dev/shared_preferences_web-2.4.3/
-shared_preferences_windows=/Users/amanraj/.pub-cache/hosted/pub.dev/shared_preferences_windows-2.4.1/
-sodium_libs=/Users/amanraj/.pub-cache/hosted/pub.dev/sodium_libs-2.2.1+6/
-ua_client_hints=/Users/amanraj/.pub-cache/hosted/pub.dev/ua_client_hints-1.4.1/