mirror of
https://github.com/venera-app/venera.git
synced 2025-09-27 15:57:25 +00:00
fix ios & macos
This commit is contained in:
@@ -21,6 +21,6 @@
|
|||||||
<key>CFBundleVersion</key>
|
<key>CFBundleVersion</key>
|
||||||
<string>1.0</string>
|
<string>1.0</string>
|
||||||
<key>MinimumOSVersion</key>
|
<key>MinimumOSVersion</key>
|
||||||
<string>12.0</string>
|
<string>14.0</string>
|
||||||
</dict>
|
</dict>
|
||||||
</plist>
|
</plist>
|
||||||
|
@@ -3,7 +3,7 @@ import UIKit
|
|||||||
import UniformTypeIdentifiers
|
import UniformTypeIdentifiers
|
||||||
|
|
||||||
@UIApplicationMain
|
@UIApplicationMain
|
||||||
@objc class AppDelegate: FlutterAppDelegate {
|
@objc class AppDelegate: FlutterAppDelegate, UIDocumentPickerDelegate {
|
||||||
var flutterResult: FlutterResult?
|
var flutterResult: FlutterResult?
|
||||||
var directoryPath: URL!
|
var directoryPath: URL!
|
||||||
|
|
||||||
|
@@ -43,7 +43,7 @@ class AppDelegate: FlutterAppDelegate {
|
|||||||
openPanel.begin { (result) in
|
openPanel.begin { (result) in
|
||||||
if result == .OK {
|
if result == .OK {
|
||||||
self.directoryPath = openPanel.urls.first
|
self.directoryPath = openPanel.urls.first
|
||||||
if !self.directoryPath?.startAccessingSecurityScopedResource() ?? false {
|
if let directoryPath = self.directoryPath, !directoryPath.startAccessingSecurityScopedResource() {
|
||||||
self.flutterResult?(nil)
|
self.flutterResult?(nil)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user