Skip to content

Commit

Permalink
Try to fix ios build again.
Browse files Browse the repository at this point in the history
  • Loading branch information
Komodo5197 committed Dec 20, 2023
1 parent 22613c8 commit d3843d2
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions ios/Runner/AppDelegate.swift
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import UIKit
import Flutter
import flutter_downloader

@UIApplicationMain
@objc class AppDelegate: FlutterAppDelegate {
Expand All @@ -9,7 +8,6 @@ import flutter_downloader
didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?
) -> Bool {
GeneratedPluginRegistrant.register(with: self)
FlutterDownloaderPlugin.setPluginRegistrantCallback(registerPlugins)

// Exclude the documents folder from iCloud backup since we keep songs there.
try! setExcludeFromiCloudBackup(isExcluded: true)
Expand All @@ -24,10 +22,3 @@ private func setExcludeFromiCloudBackup(isExcluded: Bool) throws {
values.isExcludedFromBackup = isExcluded
try fileOrDirectoryURL.setResourceValues(values)
}


private func registerPlugins(registry: FlutterPluginRegistry) {
if (!registry.hasPlugin("FlutterDownloaderPlugin")) {
FlutterDownloaderPlugin.register(with: registry.registrar(forPlugin: "FlutterDownloaderPlugin")!)
}
}

0 comments on commit d3843d2

Please sign in to comment.