From 5f9f9bf81d7648a85e839f99d4850b09b0fe3380 Mon Sep 17 00:00:00 2001
From: UnicornsOnLSD <44349936+UnicornsOnLSD@users.noreply.github.com>
Date: Sun, 1 Aug 2021 02:45:41 +0100
Subject: [PATCH] Hide documents dir in iOS
---
ios/Runner/Info.plist | 4 ----
lib/services/getInternalSongDir.dart | 1 +
2 files changed, 1 insertion(+), 4 deletions(-)
diff --git a/ios/Runner/Info.plist b/ios/Runner/Info.plist
index 2211378ee..edfc7f5f7 100644
--- a/ios/Runner/Info.plist
+++ b/ios/Runner/Info.plist
@@ -32,8 +32,6 @@
4
LSRequiresIPhoneOS
- LSSupportsOpeningDocumentsInPlace
-
NSAppTransportSecurity
NSAllowsArbitraryLoads
@@ -64,8 +62,6 @@
UIInterfaceOrientationLandscapeLeft
UIInterfaceOrientationLandscapeRight
- UISupportsDocumentBrowser
-
UIViewControllerBasedStatusBarAppearance
diff --git a/lib/services/getInternalSongDir.dart b/lib/services/getInternalSongDir.dart
index 8887c30de..d7af45e62 100644
--- a/lib/services/getInternalSongDir.dart
+++ b/lib/services/getInternalSongDir.dart
@@ -5,6 +5,7 @@ import 'package:path_provider/path_provider.dart';
/// Returns the "internal storage" directory for songs (applicationDocumentsDirectory + /songs).
/// If it doesn't exist, the directory is created.
Future getInternalSongDir() async {
+ // TODO: Start using support directory by default, keep this around for legacy
Directory appDir = await getApplicationDocumentsDirectory();
Directory songDir = Directory(appDir.path + "/songs");
if (!await songDir.exists()) {