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

Set target deployment to iOS 15.0 #1878

Merged
merged 4 commits into from Nov 1, 2023
Merged

Conversation

amy-at-kickstarter
Copy link
Contributor

@amy-at-kickstarter amy-at-kickstarter commented Nov 1, 2023

📲 What

This drops support for iOS 14 and makes our minimum target iOS 15.

🤔 Why

We only want to support three iOS versions at a time - so now we have 15, 16 and 17.

✅ Acceptance criteria

  • Tests pass

Regression Tests

  • Apple sign-in button on Login page is unchanged
  • Still able to go to Login/Signup from PledgeViewController
  • Still able to report a project
  • Still able to use Change Email view from Settings page
  • New password/reset password styles are unchanged

@@ -112,10 +112,8 @@ public final class LoginToutViewController: UIViewController, MFMailComposeViewC
_ = self.backgroundImageView
|> backgroundImageViewStyle

if #available(iOS 13.0, *) {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Phew, now these are some old checks!

return ChangeEmailViewController.instantiate()
}
let changeEmailView = ChangeEmailView()
return UIHostingController(rootView: changeEmailView)
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we want to clean up/delete the old ChangeEmailViewController, or leave it until SwiftUI is no longer 'experimental'? The new ChangeEmailView is definitely missing some tests, for instance, but it's not like this was behind a feature flag...

Copy link
Contributor

@scottkicks scottkicks Nov 1, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we could get rid of it now or separately. We had just kept it for iOS 14 and to have it as a reference while we played with SwiftUI.

@amy-at-kickstarter amy-at-kickstarter self-assigned this Nov 1, 2023
Copy link

codecov bot commented Nov 1, 2023

Codecov Report

Merging #1878 (01730ae) into main (5191fae) will increase coverage by 0.01%.
The diff coverage is 32.00%.

@@            Coverage Diff             @@
##             main    #1878      +/-   ##
==========================================
+ Coverage   83.95%   83.97%   +0.01%     
==========================================
  Files        1222     1222              
  Lines      111082   111058      -24     
  Branches    29522    29505      -17     
==========================================
- Hits        93261    93257       -4     
+ Misses      16807    16789      -18     
+ Partials     1014     1012       -2     
Files Coverage Δ
...tures/ChangeEmail/Controller/ChangeEmailView.swift 0.00% <ø> (ø)
...atures/MessageBanner/Views/MessageBannerView.swift 0.00% <ø> (ø)
...res/ProjectPage/Views/ReportProjectLabelView.swift 0.00% <ø> (ø)
...Features/ReportProject/ReportProjectFormView.swift 0.00% <ø> (ø)
...Features/ReportProject/ReportProjectInfoView.swift 0.00% <ø> (ø)
...dViews/ViewModifiers/TextInputFieldModifiers.swift 0.00% <ø> (ø)
...emoteConfig/RemoteConfigFeature+HelpersTests.swift 100.00% <ø> (ø)
Library/String+Attributed.swift 65.62% <ø> (ø)
Library/Styles/Fonts.swift 54.94% <100.00%> (+0.20%) ⬆️
Library/SwiftUI+Extensions/Text+HTML.swift 0.00% <ø> (ø)
... and 7 more

... and 1 file with indirect coverage changes

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@amy-at-kickstarter amy-at-kickstarter marked this pull request as ready for review November 1, 2023 13:58
guard #available(iOS 14.5, *), supportedModels.contains(ProcessInfo().environment[modelKey] ?? "") else {
fatalError("Please only test and record screenshots on an iPhone 8 simulator running iOS 14.5")
guard #available(iOS 15, *), supportedModels.contains(ProcessInfo().environment[modelKey] ?? "") else {
fatalError("Please only test and record screenshots on an iPhone 8 simulator running iOS 15.5")
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note that CircleCI was already testing against 15.5, so no updates to snapshots are needed

Copy link
Contributor

@scottkicks scottkicks left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 😄

There's actually one more #available(iOS 15, *) in TestCase.swift line: 94 that we could clean up

return ChangeEmailViewController.instantiate()
}
let changeEmailView = ChangeEmailView()
return UIHostingController(rootView: changeEmailView)
Copy link
Contributor

@scottkicks scottkicks Nov 1, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we could get rid of it now or separately. We had just kept it for iOS 14 and to have it as a reference while we played with SwiftUI.

@amy-at-kickstarter
Copy link
Contributor Author

LGTM 😄

There's actually one more #available(iOS 15, *) in TestCase.swift line: 94 that we could clean up

Whoops, good catch! I'll grab that one.

@amy-at-kickstarter amy-at-kickstarter merged commit 7588768 into main Nov 1, 2023
7 checks passed
@amy-at-kickstarter amy-at-kickstarter deleted the feat/adyer/target-ios-15 branch November 1, 2023 18:30
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

2 participants