-
Notifications
You must be signed in to change notification settings - Fork 27.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Default new project to the ios-signing-cert development team #90021
Conversation
8ae5e5c
to
8966162
Compare
f15c3f1
to
c54464b
Compare
required Terminal terminal, | ||
bool shouldExitOnNoCerts = false, | ||
}) async { | ||
if (!platform.isMacOS) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should this be an exception?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Or not...
[plugin_dependencies_test] [STDOUT] Executing: /b/s/w/ir/x/w/recipe_cleanup/tmpbKETFw/flutter sdk/bin/flutter create --org io.flutter.devicelab.plugin_a --template=plugin --platforms=android,ios /b/s/w/ir/x/t/flutter_plugin_dependencies.FXIOVA/plugin_a in /b/s/w/ir/x/t/flutter_plugin_dependencies.FXIOVA with environment {BOT: true, LANG: en_US.UTF-8}
[plugin_dependencies_test] [STDOUT] stderr:
[plugin_dependencies_test] [STDOUT] stderr: Exception: Codesigning identity lookup is only supported on macOS.
Let's keep this null, flutter create
follows this code path on non-macOS as well, you should be able to create an iOS app on any platform (and presumably check it in and later test on macOS).
packages/flutter_tools/test/commands.shard/permeable/build_apk_test.dart
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM % some nits
@@ -231,6 +232,17 @@ class CreateCommand extends CreateBase { | |||
} | |||
|
|||
final String dartSdk = globals.cache.dartSdkBuild; | |||
final bool includeIos = featureFlags.isIOSEnabled && platforms.contains('ios'); | |||
String developmentTeam; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How about init it with '', so later, we only need to check if (iosDevelopmentTeam.isNotEmpty)
, it would also fit better with NNBD, and make the migration easier.
And nits: maybe iosDevelopmentTeam would be a better name as it was only used for iOS.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd prefer if we left it as uninitialized, so we can differentiate between explicitly set as an empty string and never set.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there a specific meaning of development team explicitly set as empty string? @jmagman Might be able to answer that. I was looking at the line below 'iosDevelopmentTeam': iosDevelopmentTeam ?? '',
thinking that they should be the same.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In terms of build settings, ''
overrides the project setting and sets it to nothing. Null should inherit from the project setting.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
And generally, null means uninitialized, empty string means set to something, and that thing is the empty string. We shouldn't have the empty string mean "not set" in some places and not others.
@@ -375,6 +376,8 @@ abstract class CreateBase extends FlutterCommand { | |||
'withPluginHook': withPluginHook, | |||
'androidLanguage': androidLanguage, | |||
'iosLanguage': iosLanguage, | |||
'hasIosDevelopmentTeam': iosDevelopmentTeam != null && iosDevelopmentTeam.isNotEmpty, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can just be 'hasIosDevelopmentTeam': iosDevelopmentTeam.isNotEmpty
if taking my suggestion above.
@@ -375,6 +376,8 @@ abstract class CreateBase extends FlutterCommand { | |||
'withPluginHook': withPluginHook, | |||
'androidLanguage': androidLanguage, | |||
'iosLanguage': iosLanguage, | |||
'hasIosDevelopmentTeam': iosDevelopmentTeam != null && iosDevelopmentTeam.isNotEmpty, | |||
'iosDevelopmentTeam': iosDevelopmentTeam ?? '', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can just be 'iosDevelopmentTeam': iosDevelopmentTeam,
if taking my suggestion above.
@@ -437,6 +443,9 @@ | |||
buildSettings = { | |||
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; | |||
CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; | |||
{{#hasIosDevelopmentTeam}} | |||
DEVELOPMENT_TEAM = {{iosDevelopmentTeam}}; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just curious, what happens for DEVELOPMENT_TEAM = "";
, would it be cleaner that DEVELOPMENT_TEAM is set to an empty string if the developer didn't set it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If DEVELOPMENT_TEAM = "";
then the user could set it at the project level (say they have multiple executable targets, like notification extensions, etc) but it would be set to nothing at the target level. If we don't have something good to put here we should leave it off.
@jmagman Do you think you will land this soon? If so I can start the project-name work after you land this so I can directly use the new flags etc. |
Sorry, this fell down the list a bit. I will work on this today. |
Awesome, then I'll hold off coding the project-name thing until we land this one so I can directly use your code :) |
c54464b
to
51f449d
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Set
DEVELOPMENT_TEAM
Xcode build setting if the Developer Team is already saved influtter config
.Fixes #90020