Support exporting reports on desktop
This commit is contained in:
parent
38df3b293c
commit
5d0103cb24
|
|
@ -429,7 +429,9 @@ class ReportsScreenVM {
|
|||
if (kIsWeb) {
|
||||
WebUtils.downloadTextFile(filename, csvData);
|
||||
} else {
|
||||
final directory = await getApplicationDocumentsDirectory();
|
||||
final directory = await (isDesktopOS()
|
||||
? getDownloadsDirectory()
|
||||
: getApplicationDocumentsDirectory());
|
||||
final filePath =
|
||||
directory.path + file.Platform.pathSeparator + filename;
|
||||
final csvFile = file.File(filePath);
|
||||
|
|
|
|||
|
|
@ -4,11 +4,13 @@
|
|||
<dict>
|
||||
<key>com.apple.security.app-sandbox</key>
|
||||
<true/>
|
||||
<key>com.apple.security.network.client</key>
|
||||
<true/>
|
||||
<key>com.apple.security.files.downloads.read-write</key>
|
||||
<true/>
|
||||
<key>com.apple.security.cs.allow-jit</key>
|
||||
<true/>
|
||||
<key>com.apple.security.network.server</key>
|
||||
<true/>
|
||||
<key>com.apple.security.network.client</key>
|
||||
<true/>
|
||||
</dict>
|
||||
</plist>
|
||||
|
|
|
|||
|
|
@ -6,5 +6,7 @@
|
|||
<true/>
|
||||
<key>com.apple.security.network.client</key>
|
||||
<true/>
|
||||
<key>com.apple.security.files.downloads.read-write</key>
|
||||
<true/>
|
||||
</dict>
|
||||
</plist>
|
||||
|
|
|
|||
Loading…
Reference in New Issue