Unverified Commit cad61b18 authored by Chris Bracken's avatar Chris Bracken Committed by GitHub

Mark iOS App ID param as required (#14480)

Previously, the iOS ApplicationPackage subclasses did not mark the
bundleID constructor parameter as @required. This is passed up to the
ApplicationPackage constructor as the id parameter which is already
marked @required and is asserted to be non-null.
parent 024cebf8
...@@ -141,7 +141,7 @@ bool _isBundleDirectory(FileSystemEntity entity) => ...@@ -141,7 +141,7 @@ bool _isBundleDirectory(FileSystemEntity entity) =>
entity is Directory && entity.path.endsWith('.app'); entity is Directory && entity.path.endsWith('.app');
abstract class IOSApp extends ApplicationPackage { abstract class IOSApp extends ApplicationPackage {
IOSApp({String projectBundleId}) : super(id: projectBundleId); IOSApp({@required String projectBundleId}) : super(id: projectBundleId);
/// Creates a new IOSApp from an existing IPA. /// Creates a new IOSApp from an existing IPA.
factory IOSApp.fromIpa(String applicationBinary) { factory IOSApp.fromIpa(String applicationBinary) {
...@@ -239,7 +239,7 @@ class PrebuiltIOSApp extends IOSApp { ...@@ -239,7 +239,7 @@ class PrebuiltIOSApp extends IOSApp {
this.ipaPath, this.ipaPath,
this.bundleDir, this.bundleDir,
this.bundleName, this.bundleName,
String projectBundleId, @required String projectBundleId,
}) : super(projectBundleId: projectBundleId); }) : super(projectBundleId: projectBundleId);
@override @override
......
...@@ -398,7 +398,7 @@ Future<Null> diagnoseXcodeBuildFailure( ...@@ -398,7 +398,7 @@ Future<Null> diagnoseXcodeBuildFailure(
} }
if (result.xcodeBuildExecution != null && if (result.xcodeBuildExecution != null &&
result.xcodeBuildExecution.buildForPhysicalDevice && result.xcodeBuildExecution.buildForPhysicalDevice &&
app.id?.contains('com.example') ?? false) { app.id.contains('com.example')) {
printError(''); printError('');
printError('It appears that your application still contains the default signing identifier.'); printError('It appears that your application still contains the default signing identifier.');
printError("Try replacing 'com.example' with your signing id in Xcode:"); printError("Try replacing 'com.example' with your signing id in Xcode:");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment