Skip to content

SPM: added APPLICATION_EXTENSION_API_ONLY flag to RevenueCat and ReceiptParser#2217

Merged
NachoSoto merged 4 commits into
mainfrom
receipt-parser-no-app-extension
Jan 17, 2023
Merged

SPM: added APPLICATION_EXTENSION_API_ONLY flag to RevenueCat and ReceiptParser#2217
NachoSoto merged 4 commits into
mainfrom
receipt-parser-no-app-extension

Conversation

@NachoSoto

@NachoSoto NachoSoto commented Jan 16, 2023

Copy link
Copy Markdown
Contributor

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
Copy Markdown
Contributor Author

Modified this to set it to RevenueCat too.

Comment thread Package.swift Outdated
@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