Skip to content

Fixed Xcode 14 compilation: avoid @available properties#1661

Merged
NachoSoto merged 3 commits into
mainfrom
xcode14-compilation-fix
Jun 7, 2022
Merged

Fixed Xcode 14 compilation: avoid @available properties#1661
NachoSoto merged 3 commits into
mainfrom
xcode14-compilation-fix

Conversation

@NachoSoto

@NachoSoto NachoSoto commented Jun 6, 2022

Copy link
Copy Markdown
Contributor

Fixes #1660 and SDKONCALL-24.
This is the same approach used in #1596.

Fixes #1660.
This is the same approach used in #1596.
@NachoSoto NachoSoto requested a review from a team June 6, 2022 21:24
@available(watchOS, unavailable)
@available(tvOS, unavailable)
lazy var sk2Helper = SK2BeginRefundRequestHelper()
var sk2Helper: SK2BeginRefundRequestHelper {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

image

Danger Zone

@NachoSoto NachoSoto requested a review from a team June 6, 2022 21:30
@NachoSoto

Copy link
Copy Markdown
Contributor Author

The else is broken, fixing it.

@NachoSoto

Copy link
Copy Markdown
Contributor Author

Okay this is ready now.

@taquitos taquitos left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🚢 🐐

@NachoSoto NachoSoto merged commit 2880c80 into main Jun 7, 2022
@NachoSoto NachoSoto deleted the xcode14-compilation-fix branch June 7, 2022 00:15
@aboedo

aboedo commented Jun 7, 2022

Copy link
Copy Markdown
Member

awesome! should we prepare a release for it?

@NachoSoto

Copy link
Copy Markdown
Contributor Author

I'm not against it, but we might have to make one release for every beta.

@taquitos

taquitos commented Jun 7, 2022

Copy link
Copy Markdown
Contributor

I think since this makes it compile in Xcode 14, we should do a release, it could be blocking customers from testing 😄

@NachoSoto

Copy link
Copy Markdown
Contributor Author

Since they're building with a beta version of Xcode anyway and can't even be released, they could point to main, right?

@taquitos

taquitos commented Jun 7, 2022

Copy link
Copy Markdown
Contributor

Yeah, I'm just thinking about how we can cut down any further noise to support.

@NachoSoto

Copy link
Copy Markdown
Contributor Author

That's fair. Okay I can do a 4.5.2

@NachoSoto

Copy link
Copy Markdown
Contributor Author

But let me see if I can wrap up #1666, it would be nice to include too.

@NachoSoto NachoSoto mentioned this pull request Jun 7, 2022
NachoSoto added a commit that referenced this pull request Jun 7, 2022
_This version supports Xcode 14 beta 1_

* `PurchasesOrchestrator.handleDeferredTransaction`: check `NSError.domain` too (#1665) via NachoSoto (@NachoSoto)
* `PurchasesOrchestrator`: replaced manual `Lock` with `Atomic` (#1664) via NachoSoto (@NachoSoto)
* `CodableStrings.decoding_error`: added underlying error information (#1668) via NachoSoto (@NachoSoto)
* Fixed Xcode 14 compilation: avoid `@available` properties (#1661) via NachoSoto (@NachoSoto)
NachoSoto added a commit that referenced this pull request Jun 14, 2022
NachoSoto added a commit that referenced this pull request Jun 14, 2022
NachoSoto added a commit that referenced this pull request Jun 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Xcode 14] Stored properties cannot be marked potentially unavailable with '@available'

3 participants