Skip to content

Commit

Permalink
Hide documents dir in iOS
Browse files Browse the repository at this point in the history
  • Loading branch information
jmshrv committed Aug 1, 2021
1 parent 41f7797 commit 5f9f9bf
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
4 changes: 0 additions & 4 deletions ios/Runner/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,6 @@
<integer>4</integer>
<key>LSRequiresIPhoneOS</key>
<true/>
<key>LSSupportsOpeningDocumentsInPlace</key>
<true/>
<key>NSAppTransportSecurity</key>
<dict>
<key>NSAllowsArbitraryLoads</key>
Expand Down Expand Up @@ -64,8 +62,6 @@
<string>UIInterfaceOrientationLandscapeLeft</string>
<string>UIInterfaceOrientationLandscapeRight</string>
</array>
<key>UISupportsDocumentBrowser</key>
<true/>
<key>UIViewControllerBasedStatusBarAppearance</key>
<false/>
</dict>
Expand Down
1 change: 1 addition & 0 deletions lib/services/getInternalSongDir.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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<Directory> 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()) {
Expand Down

0 comments on commit 5f9f9bf

Please sign in to comment.