From 053db0bbdc44fc8ee184d098eaa6cda294b84e9b Mon Sep 17 00:00:00 2001
From: $urasek-805 <166690799+Surasak-805@users.noreply.github.com>
Date: Fri, 7 Mar 2025 22:05:52 +0700
Subject: [PATCH] Revert "fix(ios): downloads not working due to permission
errors (#2180)"
This reverts commit 2ea807077151ab913632f37bbe67d7132dbf8e61.
---
ios/Runner/AppDelegate.swift | 7 +------
ios/Runner/Info.plist | 8 +-------
2 files changed, 2 insertions(+), 13 deletions(-)
diff --git a/ios/Runner/AppDelegate.swift b/ios/Runner/AppDelegate.swift
index f512ac86..b6363034 100644
--- a/ios/Runner/AppDelegate.swift
+++ b/ios/Runner/AppDelegate.swift
@@ -1,17 +1,12 @@
import UIKit
import Flutter
-@UIApplicationMain
+@main
@objc class AppDelegate: FlutterAppDelegate {
override func application(
_ application: UIApplication,
didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?
) -> Bool {
- // Add this to get Documents directory path
- if let documentsPath = FileManager.default.urls(for: .documentDirectory, in: .userDomainMask).first?.path {
- UserDefaults.standard.set(documentsPath, forKey: "download_path")
- }
-
GeneratedPluginRegistrant.register(with: self)
return super.application(application, didFinishLaunchingWithOptions: launchOptions)
}
diff --git a/ios/Runner/Info.plist b/ios/Runner/Info.plist
index 91b7ad94..ffd511a4 100644
--- a/ios/Runner/Info.plist
+++ b/ios/Runner/Info.plist
@@ -72,11 +72,5 @@
_spotube._tcp
- UIFileSharingEnabled
-
- LSSupportsOpeningDocumentsInPlace
-
- UISupportsDocumentBrowser
-
-
+
\ No newline at end of file