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