Skip to content

xrOS: fixed SubscriptionStoreView for visionOS beta 2#2884

Merged
NachoSoto merged 2 commits into
mainfrom
fix-SubscriptionStoreView-visionOS-beta-2
Jul 26, 2023
Merged

xrOS: fixed SubscriptionStoreView for visionOS beta 2#2884
NachoSoto merged 2 commits into
mainfrom
fix-SubscriptionStoreView-visionOS-beta-2

Conversation

@joshdholtz

Copy link
Copy Markdown
Member

Motivation

visionOS beta 2 had compile errors in SubscriptionStoreView

Description

Replaced DefaultSubscriptionStoreMarketingContent with AutomaticSubscriptionStoreMarketingContent

@joshdholtz joshdholtz requested a review from a team July 26, 2023 03:09
@joshdholtz joshdholtz changed the title xrOS: fixed `` for visionOS beta 2 xrOS: fixed SubscriptionStoreView for visionOS beta 2 Jul 26, 2023
@joshdholtz joshdholtz added the pr:fix A bug fix label Jul 26, 2023
@codecov

codecov Bot commented Jul 26, 2023

Copy link
Copy Markdown

Codecov Report

Merging #2884 (0b11c92) into main (fb15ee6) will decrease coverage by 0.01%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##             main    #2884      +/-   ##
==========================================
- Coverage   86.61%   86.60%   -0.01%     
==========================================
  Files         217      217              
  Lines       15514    15514              
==========================================
- Hits        13437    13436       -1     
- Misses       2077     2078       +1     

see 1 file with indirect coverage changes

@NachoSoto NachoSoto changed the title xrOS: fixed SubscriptionStoreView for visionOS beta 2 xrOS: fixed SubscriptionStoreView for visionOS beta 2 Jul 26, 2023
@NachoSoto

Copy link
Copy Markdown
Contributor

Thanks for doing this!

#if os(xrOS)
@available(iOS 17.0, macOS 14.0, tvOS 17.0, watchOS 10.0, *)
extension SubscriptionStoreView where Content == DefaultSubscriptionStoreMarketingContent {
extension SubscriptionStoreView where Content == AutomaticSubscriptionStoreMarketingContent {

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.

This is now in sync with the iOS version below, so I'm going to remove the #if.

@NachoSoto NachoSoto 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.

SDK does build. I'll fix test compilation separately.

@NachoSoto NachoSoto merged commit 31a44f8 into main Jul 26, 2023
@NachoSoto NachoSoto deleted the fix-SubscriptionStoreView-visionOS-beta-2 branch July 26, 2023 07:07
NachoSoto added a commit that referenced this pull request Jul 26, 2023
**This is an automatic release.**

_This release is compatible with Xcode 15 beta 5 and visionOS beta 2_

### Bugfixes
* `xrOS`: fixed `SubscriptionStoreView` for visionOS beta 2 (#2884) via
Josh Holtz (@joshdholtz)
### Performance Improvements
* `Perf`: update `CustomerInfo` cache before anything else (#2865) via
NachoSoto (@NachoSoto)
### Other Changes
* `SimpleApp`: added support for localization (#2880) via NachoSoto
(@NachoSoto)
* `TestStoreProduct`: made available on release builds (#2861) via
NachoSoto (@NachoSoto)
* `Tests`: increased default logger capacity (#2870) via NachoSoto
(@NachoSoto)
* `CustomEntitlementComputation`: removed `invalidateCustomerInfoCache`
(#2866) via NachoSoto (@NachoSoto)
* `SimpleApp`: updates for TestFlight compatibility (#2862) via
NachoSoto (@NachoSoto)
* `BasePurchasesTests`: consolidate to only initialize one `DeviceCache`
(#2863) via NachoSoto (@NachoSoto)
* `Codable`: debug log entire JSON when decoding fails (#2864) via
NachoSoto (@NachoSoto)
* `IntegrationTests`: replaced `Purchases.shared` with a `throw`ing
property (#2867) via NachoSoto (@NachoSoto)
* `NetworkError`: 2 new tests to ensure underlying error is included in
description (#2843) via NachoSoto (@NachoSoto)
* Add SPM `Package.resolved` for Xcode Cloud (#2844) via NachoSoto
(@NachoSoto)
* `CustomEntitlementComputation`: added integration test for
cancellations (#2849) via NachoSoto (@NachoSoto)
* `CustomEntitlementComputation`: removed
`syncPurchases`/`restorePurchases` (#2854) via NachoSoto (@NachoSoto)

---------

Co-authored-by: NachoSoto <ignaciosoto90@gmail.com>
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.

2 participants