-
Notifications
You must be signed in to change notification settings - Fork 28.7k
Remove deprecated Objective-C iOS app create template #169547
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
base: master
Are you sure you want to change the base?
Conversation
@@ -212,7 +212,7 @@ void main() { | ||
workflow: 'create', | ||
commandHasTerminal: false, | ||
createAndroidLanguage: 'java', | ||
createIosLanguage: 'objc', | ||
createIosLanguage: 'swift', |
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.
Keep the createIosLanguage
usage data to check when -t plugin
usages becomes low enough to remove that too.
@@ -1761,91 +1726,7 @@ void main() { | ||
}, | ||
); | ||
|
||
testUsingContext( | ||
'Correct info.plist key-value pairs for swift iOS module.', |
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.
This test was redundant, iOS modules are only supported for Objective-C.
@@ -1,121 +0,0 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> |
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.
Odd we had an Objective-C and Swift version of schemes, they were identical except for a single BlueprintIdentifier
.
d8e1c03
to
f52fb00
Compare
); | ||
}); | ||
|
||
section('Build Objective-C application with Swift and Objective-C plugins as libraries'); | ||
section('Build iOS application with Swift and Objective-C plugins as frameworks'); |
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.
This diff is confusing, but I removed the Build Objective-C application with Swift and Objective-C plugins as libraries
and Build Objective-C application with Swift and Objective-C plugins as frameworks
sections, and renamed Build Swift iOS application with Swift and Objective-C plugins as frameworks
to remove "Swift".
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 🎉
@@ -3185,34 +3064,6 @@ void main() { | ||
overrides: <Type, Generator>{FeatureFlags: () => TestFeatureFlags(), Logger: () => logger}, | ||
); | ||
|
||
testUsingContext( | ||
'plugin includes native Objective-C unit tests', |
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.
Optional: instead of deleting this, you could rename it "Obj-C plugin includes native Swift unit tests" and adjust the expectations accordingly.
But it also wouldn't really matter if a feature I think almost nobody but us uses regresses for a deprecated flag, so I'm fine with axing 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.
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.
); | ||
if (stringArg('ios-language') == 'objc') { | ||
globals.printWarning( | ||
'Please comment in https://github.com/flutter/flutter/issues/148586 describing your use-case for using Objective-C instead of Swift.', |
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.
This will need an update per #148586 (comment)
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.
(It's interesting that the warning has been in stable for (I think; I didn't check branch alignment) 5 months now, and we haven't had any comments so far.)
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.
Updated the link.
I suppose it wasn't a very beloved feature. I checked again and in the last 3 months the Obj-C app creation is ~1%.
Remove Objective-C template for new apps. Existing apps won't be impacted.
Keep Objective-C templates for plugins, though their example apps will be Swift instead. See #148586 (comment)
Move
templates/app/ios-swift.tmpl
totemplates/app/ios.tmpl
.Fixes #148586
Pre-launch Checklist
///
).If you need help, consider asking for advice on the #hackers-new channel on Discord.