Skip to content
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

Enhancement/swift5migration #870

Merged
merged 3 commits into from
May 29, 2019
Merged

Enhancement/swift5migration #870

merged 3 commits into from
May 29, 2019

Conversation

amrangry
Copy link

Enable static analyzer check for missing localizability
+
Swift 5 support

AmrAngry added 2 commits April 16, 2019 18:53
…nfiguration

Migrate for ensuring that all localized file goes to en.Iproj not English.Iproj
@appfrilans
Copy link

Love to see this merged!

@salmaanahmed
Copy link

This should be merged soon, waiting for it

@iDevid
Copy link

iDevid commented May 3, 2019

Waitin' for this :)

@dfed
Copy link

dfed commented May 13, 2019

We should also update lottie-ios.podspec to use 5.0 as the swift_version

@thedrick
Copy link
Contributor

Thanks for this PR @amrangry - I'm working on this now. Could you make the change @dfed suggested before we merge this in? I'm going to do a bump of Lottie that only includes this change

@Coeur
Copy link
Contributor

Coeur commented May 14, 2019

@thedrick @dfed changing the minimum swift version is out of scope here: this PR is to fix the localizability and test swift 5 on the EXAMPLE project (by adding Base,) and could be merged as is.

Changing the minimum swift version in the podspec is not strictly needed and should be done in a separate PR. It would also be a breaking change for users on Xcode 10.1 that have other dependencies on Swift 3 for instance.

Also, if we just wait a bit for the release of CocoaPods 1.7.0 (coming soon, see https://github.com/cocoapods/cocoapods/releases), then we'll be able to specify multiple supported swift versions like [4.2, 5.0] instead of just the minimum one.

@dfed
Copy link

dfed commented May 14, 2019

@Coeur maybe I'm missing something. I see that the SWIFT_VERSION is changed on Lottie.xcodeproj in this PR. It's good practice to keep the Xcode project's Swift version and the Cocoapods Swift version in sync. I don't actually see any changes to the Example directory in this PR.

Changing the minimum swift version in the podspec is not strictly needed and should be done in a separate PR. It would also be a breaking change for users on Xcode 10.1 that have other dependencies on Swift 3 for instance.

You're right that adding Base, could be done in a different PR from updating to Swift 5 on the Xcode project. But that isn't what was done as far as I can tell.

Regarding breaking changes: I'd been thinking that most consumers of Swift Cocoapods are manually setting their swift_version when integrating pods to avoid breakages these days. But you're right that even setting the SWIFT_VERSION in Lottie.xcodeproj/project.pbxproj could be a breaking change for someone integrating Lottie via submodules. We should probably revert that part of the change then.

Also, if we just wait a bit for the release of CocoaPods 1.7.0 (coming soon, see https://github.com/cocoapods/cocoapods/releases), then we'll be able to specify multiple supported swift versions like [4.2, 5.0] instead of just the minimum one.

I'm excited for this! But in the meantime, we should keep our Xcode project SWIFT_VERSION and Cocoapods swift_version in sync

@Coeur
Copy link
Contributor

Coeur commented May 14, 2019

Oh, you're right, the change is affecting Carthage builds and/or submodules integrations.

Well, maybe let's postpone this change until the release of CocoaPods 1.7.0 (which, I believe, will be during the WWDC week, so that they can validate it with Xcode 11 beta)

@vg-identance
Copy link

@Coeur Cocoapods 1.7.0 just released https://github.com/CocoaPods/CocoaPods/releases/tag/1.7.0

@Coeur
Copy link
Contributor

Coeur commented May 23, 2019

@vg-identance yeah, with a regression, I know: CocoaPods/CocoaPods#8837

@buba447
Copy link
Collaborator

buba447 commented May 29, 2019

@Coeur We will add the 'multiple swift versions' in a different pull request when cocoapods gets sorted out. Im going to go ahead and merge this PR and ship Swift 5 under 3.1.0

@buba447 buba447 merged commit c3ca094 into airbnb:master May 29, 2019
calda pushed a commit that referenced this pull request Nov 28, 2022
calda pushed a commit that referenced this pull request Dec 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

9 participants