Skip to content

Commit

Permalink
Merge pull request #77 from MXCzkEVM/dapps_redesign
Browse files Browse the repository at this point in the history
fix: Prevent storage permission
  • Loading branch information
reasje authored Oct 28, 2024
2 parents 5746371 + 7b7db89 commit f55daa4
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion lib/features/dapps/helpers/permissions_helpers.dart
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,12 @@ class PermissionsHelper {
final key = keys[i];
final value = values[i];

if (value == 'required') {
// Currently since we use OS file picker and import & export are working fine
// without storage permission we don't need to request It.
// Also storage permission is deprecated in Android +13, We will need to
// use videos, photos, audio, manageExternalStorage permissions separately
// How to use? https://developer.android.com/about/versions/13/behavior-changes-13#granular-media-permissions
if (value == 'required' && key != 'storage') {
final permission = PermissionUtils.permissions[key];
if (permission != null) {
needPermissions.add(permission);
Expand Down

0 comments on commit f55daa4

Please sign in to comment.