Skip to content

Commit 4fa6870

Browse files
[Example] iOS: re-run flutter create to update to current recommended project setup
1 parent 1c79a62 commit 4fa6870

File tree

6 files changed

+91
-133
lines changed

6 files changed

+91
-133
lines changed

example/ios/Flutter/AppFrameworkInfo.plist

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,6 @@
2121
<key>CFBundleVersion</key>
2222
<string>1.0</string>
2323
<key>MinimumOSVersion</key>
24-
<string>11.0</string>
24+
<string>12.0</string>
2525
</dict>
2626
</plist>

example/ios/Podfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Uncomment this line to define a global platform for your project
2-
# platform :ios, '11.0'
2+
# platform :ios, '12.0'
33

44
# CocoaPods analytics sends network stats synchronously affecting flutter build latency.
55
ENV['COCOAPODS_DISABLE_STATS'] = 'true'

example/ios/Runner.xcodeproj/project.pbxproj

+85-85
Large diffs are not rendered by default.

example/ios/Runner/AppDelegate.swift

-10
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import UIKit
22
import Flutter
3-
import flutter_downloader
43

54
@UIApplicationMain
65
@objc class AppDelegate: FlutterAppDelegate {
@@ -9,15 +8,6 @@ import flutter_downloader
98
didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?
109
) -> Bool {
1110
GeneratedPluginRegistrant.register(with: self)
12-
FlutterDownloaderPlugin.setPluginRegistrantCallback(registerPlugins)
13-
1411
return super.application(application, didFinishLaunchingWithOptions: launchOptions)
1512
}
1613
}
17-
18-
private func registerPlugins(registry: FlutterPluginRegistry) {
19-
if (!registry.hasPlugin("FlutterDownloaderPlugin")) {
20-
FlutterDownloaderPlugin.register(with: registry.registrar(forPlugin: "FlutterDownloaderPlugin")!)
21-
}
22-
}
23-

example/ios/Runner/Info.plist

+4-9
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
33
<plist version="1.0">
44
<dict>
5-
<key>CADisableMinimumFrameDurationOnPhone</key>
6-
<true/>
75
<key>CFBundleDevelopmentRegion</key>
86
<string>$(DEVELOPMENT_LANGUAGE)</string>
97
<key>CFBundleDisplayName</key>
@@ -26,13 +24,6 @@
2624
<string>$(FLUTTER_BUILD_NUMBER)</string>
2725
<key>LSRequiresIPhoneOS</key>
2826
<true/>
29-
<key>UIApplicationSupportsIndirectInputEvents</key>
30-
<true/>
31-
<key>UIBackgroundModes</key>
32-
<array>
33-
<string>fetch</string>
34-
<string>remote-notification</string>
35-
</array>
3627
<key>UILaunchStoryboardName</key>
3728
<string>LaunchScreen</string>
3829
<key>UIMainStoryboardFile</key>
@@ -50,5 +41,9 @@
5041
<string>UIInterfaceOrientationLandscapeLeft</string>
5142
<string>UIInterfaceOrientationLandscapeRight</string>
5243
</array>
44+
<key>CADisableMinimumFrameDurationOnPhone</key>
45+
<true/>
46+
<key>UIApplicationSupportsIndirectInputEvents</key>
47+
<true/>
5348
</dict>
5449
</plist>

example/test/widget_test.dart

-27
This file was deleted.

0 commit comments

Comments
 (0)