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

SPM: added APPLICATION_EXTENSION_API_ONLY flag to RevenueCat and ReceiptParser #2217

Merged
merged 4 commits into from
Jan 17, 2023

Conversation

NachoSoto
Copy link
Contributor

@NachoSoto NachoSoto commented Jan 16, 2023

This flag is already set in Xcode's target, so setting it here matches it when embedding the frameworks through SPM.

Screenshot 2023-01-16 at 10 09 30

This allows users to embed these package in non-app targets.
Unfortunately setting the flag directly is the only way to do this at the moment.

@NachoSoto NachoSoto requested a review from a team January 16, 2023 18:02
@NachoSoto NachoSoto marked this pull request as ready for review January 16, 2023 18:02
@NachoSoto NachoSoto changed the title ReceiptParser: added APPLICATION_EXTENSION_API_ONLY flag SPM: added APPLICATION_EXTENSION_API_ONLY flag to RevenueCat and ReceiptParser Jan 16, 2023
@NachoSoto
Copy link
Contributor Author

Modified this to set it to RevenueCat too.

@NachoSoto NachoSoto force-pushed the receipt-parser-no-app-extension branch from d44b846 to 176ae73 Compare January 17, 2023 21:17
This allows users to embed this package in non-app targets.
Unfortunately setting the flag directly is the only way to do this at the moment.
@NachoSoto NachoSoto force-pushed the receipt-parser-no-app-extension branch from 02e8ef3 to 5cbdcd5 Compare January 17, 2023 21:50
@NachoSoto NachoSoto enabled auto-merge (squash) January 17, 2023 22:05
@NachoSoto NachoSoto merged commit 02c2bce into main Jan 17, 2023
@NachoSoto NachoSoto deleted the receipt-parser-no-app-extension branch January 17, 2023 22:08
NachoSoto added a commit that referenced this pull request Jan 18, 2023
…eCat` and `ReceiptParser` (#2217)"

This reverts commit 02c2bce.

Unfortunately this breaks SPM integration under some conditions (see #2223):
> error: The package product 'RevenueCat' cannot be used as a dependency of this target because it uses unsafe build flags. (in target 'PurchaseTester' from project 'PurchaseTester')

I haven't been able to reproduce this locally, but better to remove this for now until `SPM` adds a way to set this flag without using unsafe flags.
NachoSoto pushed a commit that referenced this pull request Jan 18, 2023
**This is an automatic release.**

### Other Changes
* set flag to extract objc info for swift symbols (#2218) via Andy Boedo
(@aboedo)
* Produce a compilation error when using an old `Xcode` version (#2222)
via NachoSoto (@NachoSoto)
* `SPM`: added `APPLICATION_EXTENSION_API_ONLY` flag to `RevenueCat` and
`ReceiptParser` (#2217) via NachoSoto (@NachoSoto)
* `PurchaseTester`: added section to visualize `AppleReceipt` (#2211)
via NachoSoto (@NachoSoto)
NachoSoto added a commit that referenced this pull request Jan 18, 2023
…eCat` and `ReceiptParser` (#2217)"

This reverts commit 02c2bce.
NachoSoto added a commit that referenced this pull request Jan 18, 2023
…eCat` and `ReceiptParser` (#2217)" (#2225)

This reverts commit 02c2bce.

Unfortunately this breaks SPM integration under some conditions (see
#2223):
> error: The package product 'RevenueCat' cannot be used as a dependency
of this target because it uses unsafe build flags. (in target
'PurchaseTester' from project 'PurchaseTester')

I haven't been able to reproduce this locally, but better to remove this
for now until `SPM` adds a way to set this flag without using unsafe
flags.
NachoSoto pushed a commit that referenced this pull request Jan 19, 2023
**This is an automatic release.**

### Bugfixes
* `Purchases`: avoid potential crash when initializing in the background
(#2231) via NachoSoto (@NachoSoto)
### Other Changes
* `PurchaseTester`: ignore errors when restoring purchases (#2228) via
NachoSoto (@NachoSoto)
* `PurchaseTester`: fixed `isPurchasing` state when purchasing fails
(#2229) via NachoSoto (@NachoSoto)
* `PurchaseTester`: setting `changelog` when submitting to `TestFlight`
(#2232) via NachoSoto (@NachoSoto)
* Revert "`SPM`: added `APPLICATION_EXTENSION_API_ONLY` flag to
`RevenueCat` and `ReceiptParser` (#2217)" (#2225) via NachoSoto
(@NachoSoto)
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.

3 participants