Skip to content

Commit

Permalink
Remove the packages that uses photo & video permissions (#901)
Browse files Browse the repository at this point in the history
  • Loading branch information
AhmedHanafy725 authored Feb 6, 2025
1 parent a521660 commit 2325626
Show file tree
Hide file tree
Showing 3 changed files with 65 additions and 78 deletions.
4 changes: 2 additions & 2 deletions app/lib/helpers/download_helper.dart
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
import 'dart:io';
import 'package:dio/dio.dart';
import 'package:open_filex/open_filex.dart';
import 'package:open_file/open_file.dart';
import 'package:path_provider/path_provider.dart';
import 'package:threebotlogin/helpers/logger.dart';

// https://www.youtube.com/watch?v=6tfBflFUO7s
Future openFile(File? file) async {
if (file != null && file.path.isNotEmpty) {
OpenFilex.open(file.path);
OpenFile.open(file.path);
}
}

Expand Down
130 changes: 61 additions & 69 deletions app/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -254,14 +254,6 @@ packages:
url: "https://pub.dev"
source: hosted
version: "3.1.2"
country_picker:
dependency: "direct main"
description:
name: country_picker
sha256: "9b14c04f9a35e99f6de6bcbc453a556bb98345aecb481c7a0e843c94c2bee1f8"
url: "https://pub.dev"
source: hosted
version: "2.0.27"
crisp_chat:
dependency: "direct main"
description:
Expand Down Expand Up @@ -295,7 +287,7 @@ packages:
source: hosted
version: "1.0.2"
cupertino_icons:
dependency: "direct main"
dependency: transitive
description:
name: cupertino_icons
sha256: ba631d1c7f7bef6b729a622b7b752645a2d076dba9976925b8f25725a30e1ee6
Expand Down Expand Up @@ -1063,14 +1055,70 @@ packages:
url: "https://pub.dev"
source: hosted
version: "2.1.0"
open_filex:
open_file:
dependency: "direct main"
description:
name: open_filex
sha256: dcb7bd3d32db8db5260253a62f1564c02c2c8df64bc0187cd213f65f827519bd
name: open_file
sha256: d17e2bddf5b278cb2ae18393d0496aa4f162142ba97d1a9e0c30d476adf99c0e
url: "https://pub.dev"
source: hosted
version: "3.5.10"
open_file_android:
dependency: transitive
description:
name: open_file_android
sha256: "58141fcaece2f453a9684509a7275f231ac0e3d6ceb9a5e6de310a7dff9084aa"
url: "https://pub.dev"
source: hosted
version: "1.0.6"
open_file_ios:
dependency: transitive
description:
name: open_file_ios
sha256: "02996f01e5f6863832068e97f8f3a5ef9b613516db6897f373b43b79849e4d07"
url: "https://pub.dev"
source: hosted
version: "1.0.3"
open_file_linux:
dependency: transitive
description:
name: open_file_linux
sha256: d189f799eecbb139c97f8bc7d303f9e720954fa4e0fa1b0b7294767e5f2d7550
url: "https://pub.dev"
source: hosted
version: "0.0.5"
open_file_mac:
dependency: transitive
description:
name: open_file_mac
sha256: "1440b1e37ceb0642208cfeb2c659c6cda27b25187a90635c9d1acb7d0584d324"
url: "https://pub.dev"
source: hosted
version: "1.0.3"
open_file_platform_interface:
dependency: transitive
description:
name: open_file_platform_interface
sha256: "101b424ca359632699a7e1213e83d025722ab668b9fd1412338221bf9b0e5757"
url: "https://pub.dev"
source: hosted
version: "1.0.3"
open_file_web:
dependency: transitive
description:
name: open_file_web
sha256: e3dbc9584856283dcb30aef5720558b90f88036360bd078e494ab80a80130c4f
url: "https://pub.dev"
source: hosted
version: "0.0.4"
open_file_windows:
dependency: transitive
description:
name: open_file_windows
sha256: d26c31ddf935a94a1a3aa43a23f4fff8a5ff4eea395fe7a8cb819cf55431c875
url: "https://pub.dev"
source: hosted
version: "4.6.0"
version: "0.0.3"
package_config:
dependency: transitive
description:
Expand Down Expand Up @@ -1167,54 +1215,6 @@ packages:
url: "https://pub.dev"
source: hosted
version: "0.0.2"
permission_handler:
dependency: "direct main"
description:
name: permission_handler
sha256: "18bf33f7fefbd812f37e72091a15575e72d5318854877e0e4035a24ac1113ecb"
url: "https://pub.dev"
source: hosted
version: "11.3.1"
permission_handler_android:
dependency: transitive
description:
name: permission_handler_android
sha256: "71bbecfee799e65aff7c744761a57e817e73b738fedf62ab7afd5593da21f9f1"
url: "https://pub.dev"
source: hosted
version: "12.0.13"
permission_handler_apple:
dependency: transitive
description:
name: permission_handler_apple
sha256: e6f6d73b12438ef13e648c4ae56bd106ec60d17e90a59c4545db6781229082a0
url: "https://pub.dev"
source: hosted
version: "9.4.5"
permission_handler_html:
dependency: transitive
description:
name: permission_handler_html
sha256: "38f000e83355abb3392140f6bc3030660cfaef189e1f87824facb76300b4ff24"
url: "https://pub.dev"
source: hosted
version: "0.1.3+5"
permission_handler_platform_interface:
dependency: transitive
description:
name: permission_handler_platform_interface
sha256: e9c8eadee926c4532d0305dff94b85bf961f16759c3af791486613152af4b4f9
url: "https://pub.dev"
source: hosted
version: "4.2.3"
permission_handler_windows:
dependency: transitive
description:
name: permission_handler_windows
sha256: "1a790728016f79a41216d88672dbc5df30e686e811ad4e698bfc51f76ad91f1e"
url: "https://pub.dev"
source: hosted
version: "0.2.1"
petitparser:
dependency: transitive
description:
Expand Down Expand Up @@ -1847,14 +1847,6 @@ packages:
url: "https://pub.dev"
source: hosted
version: "0.1.0"
universal_io:
dependency: transitive
description:
name: universal_io
sha256: "1722b2dcc462b4b2f3ee7d188dad008b6eb4c40bbd03a3de451d82c78bba9aad"
url: "https://pub.dev"
source: hosted
version: "2.2.2"
universal_platform:
dependency: transitive
description:
Expand Down
9 changes: 2 additions & 7 deletions app/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,22 +39,17 @@ dependencies:
shared_preferences: ^2.3.5
http: ^1.3.0
package_info_plus: ^8.1.3
cupertino_icons: ^1.0.8
google_fonts: ^6.2.1
# intl_phone_field: ^3.2.0
flagsmith: ^6.0.0
flutter_inappwebview: ^6.1.5
sodium_libs: ^3.4.3+1
uni_links: ^0.5.1
uni_links: ^0.5.1 # update it
pbkdf2ns: ^0.0.2
# qr_code_scanner: ^1.0.1
flutter_json_viewer: ^1.0.1
device_info_plus: ^11.2.1
permission_handler: ^11.3.1
path_provider: ^2.1.5
dio: ^5.7.0
open_filex: ^4.6.0
country_picker: ^2.0.27
open_file: ^3.5.10
pinenacl: ^0.6.0
pinput: ^5.0.1
build_runner: ^2.4.13
Expand Down

0 comments on commit 2325626

Please sign in to comment.