Increase template Swift version from 4 to 5 (#41882)

This commit is contained in:
Jenn Magder
2019-10-15 12:37:13 -07:00
committed by GitHub
parent 649cf82018
commit dda74a1993
10 changed files with 31 additions and 26 deletions

View File

@@ -394,7 +394,6 @@
);
PRODUCT_BUNDLE_IDENTIFIER = com.yourcompany.flutterView;
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_VERSION = 4.0;
};
name = Profile;
};
@@ -522,7 +521,6 @@
);
PRODUCT_BUNDLE_IDENTIFIER = com.yourcompany.flutterView;
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_VERSION = 4.0;
};
name = Debug;
};
@@ -544,7 +542,6 @@
);
PRODUCT_BUNDLE_IDENTIFIER = com.yourcompany.flutterView;
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_VERSION = 4.0;
};
name = Release;
};

View File

@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>IDEDidComputeMac32BitWarning</key>
<true/>
</dict>
</plist>

View File

@@ -160,7 +160,7 @@
TargetAttributes = {
97C146ED1CF9000F007C117D = {
CreatedOnToolsVersion = 7.3.1;
LastSwiftMigration = 0820;
LastSwiftMigration = 1100;
};
};
};
@@ -330,7 +330,7 @@
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
SWIFT_VERSION = 4.0;
SWIFT_VERSION = 5.0;
};
name = Profile;
};
@@ -462,7 +462,7 @@
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
SWIFT_VERSION = 4.0;
SWIFT_VERSION = 5.0;
};
name = Debug;
};
@@ -487,7 +487,7 @@
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
SWIFT_VERSION = 4.0;
SWIFT_VERSION = 5.0;
};
name = Release;
};

View File

@@ -67,7 +67,7 @@ enum MyFlutterErrorCode {
NotificationCenter.default.addObserver(
self,
selector: #selector(AppDelegate.onBatteryStateDidChange),
name: NSNotification.Name.UIDeviceBatteryStateDidChange,
name: UIDevice.batteryStateDidChangeNotification,
object: nil)
return nil
}