Custom Entitlement Computation: disabled unnecessary APIs#2442
Conversation
c96ddc6 to
da51d52
Compare
45895ca to
2ff5221
Compare
There was a problem hiding this comment.
We know this at compile time now.
71ad769 to
a4f87e7
Compare
63c9a6c to
9c406cd
Compare
a70e30d to
cca5cc3
Compare
0979a4d to
9c9b13d
Compare
There was a problem hiding this comment.
This can't happen anymore.
|
I want to make sure the new SPM installation test is still working with this (since the job only runs on release branches) |
aboedo
left a comment
There was a problem hiding this comment.
only thing is enabling getOfferings
There was a problem hiding this comment.
we can probably group this one and the one for (self as DeprecatedSearchAdsAttribution).postAppleSearchAddsAttributionCollectionIfNeeded() a few lines above into one, since this method is only called from there, right?
There was a problem hiding this comment.
This is also called from applicationWillResignActive.
There was a problem hiding this comment.
getOfferings didn't make the cut here but it should be enabled
9c9b13d to
74333a2
Compare
|
Updated to enable |
f6764ff to
c86c222
Compare
c86c222 to
c327bf3
Compare
tonidero
left a comment
There was a problem hiding this comment.
Should we have separate API tests for the new package? To make sure the APIs we are exposing there don't change. I guess that can be done in a different PR though.
| } | ||
| } | ||
|
|
||
| #endif |
There was a problem hiding this comment.
It reads a bit strange that this endif is not indented at the same level as the following line... NABD though.
There was a problem hiding this comment.
Yeah, the default indentation by Xcode is even worse, it always moves # lines to the very left.
I'm going to do that today in a separate PR, but that doesn't have to block the release. |
|
TODO: also hide purchase with promotional offer methods /cc @aboedo |
|
Hid the promotional offer purchase methods in #2448 |
…ge (#2448) ### Description This will remove the `promotionaOffer` purchase methods from the API in the custom entitlement computation package
…rInfoStream (#2446) fixes resubscribes to customerInfoStream in the CustomEntitlementsComputation sample app
aboedo
left a comment
There was a problem hiding this comment.
we should re-enable restore and sync purchases before shipping, but it can be a separate PR
| #if !ENABLE_CUSTOM_ENTITLEMENT_COMPUTATION | ||
| @available(iOS 13.0, macOS 10.15, tvOS 13.0, watchOS 6.2, *) |
|
Not I was gonna do it here haha, I forgot I had the auto merge. |
## Disabled API: - `getCustomerInfo` - `logIn` - `logOut` - `Purchases.attribution` - `syncPurchases` - `restorePurchases` - Trial eligibility - Promotional purchases - `async` counterparts --------- Co-authored-by: Toni Rico <antonio.rico.diez@revenuecat.com>
For some reason the existing command was failing, but CI was ignoring that failure. This moves the job to our `Fastfile`, and fixes compilation. That API was removed in #2442.
Disabled API:
getCustomerInfologInlogOutPurchases.attributionsyncPurchasesrestorePurchasesasynccounterparts