Skip to content

Commit 6bfd1bb

Browse files
committed
Upgrade Swift to version 4.2
1 parent 5ed64ac commit 6bfd1bb

File tree

4 files changed

+13
-5
lines changed

4 files changed

+13
-5
lines changed

example/ios/Runner.xcodeproj/project.pbxproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -445,7 +445,7 @@
445445
SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
446446
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
447447
SWIFT_SWIFT3_OBJC_INFERENCE = Default;
448-
SWIFT_VERSION = 4.0;
448+
SWIFT_VERSION = 4.2;
449449
VALID_ARCHS = "arm64 armv7 armv7s";
450450
VERSIONING_SYSTEM = "apple-generic";
451451
};
@@ -473,7 +473,7 @@
473473
PRODUCT_NAME = "$(TARGET_NAME)";
474474
SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
475475
SWIFT_SWIFT3_OBJC_INFERENCE = Default;
476-
SWIFT_VERSION = 4.0;
476+
SWIFT_VERSION = 4.2;
477477
VERSIONING_SYSTEM = "apple-generic";
478478
};
479479
name = Release;
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3+
<plist version="1.0">
4+
<dict>
5+
<key>BuildSystemType</key>
6+
<string>Original</string>
7+
</dict>
8+
</plist>

example/ios/Runner/AppDelegate.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import Flutter
55
@objc class AppDelegate: FlutterAppDelegate {
66
override func application(
77
_ application: UIApplication,
8-
didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?
8+
didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?
99
) -> Bool {
1010
GeneratedPluginRegistrant.register(with: self)
1111
return super.application(application, didFinishLaunchingWithOptions: launchOptions)

ios/google_api_availability.podspec

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
#
44
Pod::Spec.new do |s|
55
s.name = 'google_api_availability'
6-
s.version = '1.0.4'
6+
s.version = '1.0.5'
77
s.summary = 'A Flutter plugin to check the availability of Google Play Services on an Android device.'
88
s.description = <<-DESC
99
A Flutter plugin to check the availability of Google Play Services on an Android device.
@@ -15,7 +15,7 @@ A Flutter plugin to check the availability of Google Play Services on an Android
1515
s.source_files = 'Classes/**/*'
1616
s.public_header_files = 'Classes/**/*.h'
1717
s.dependency 'Flutter'
18-
18+
s.swift_version = '4.2'
1919
s.ios.deployment_target = '8.0'
2020
end
2121

0 commit comments

Comments
 (0)