[WIP] Separate ReceiptParser SPM Package#2096
Closed
NachoSoto wants to merge 1 commit into
Closed
Conversation
NachoSoto
commented
Nov 28, 2022
Contributor
Author
There was a problem hiding this comment.
Symlink hack FTW.
This was the only way to avoid swift build failing because there are overlapping sources.
Member
There was a problem hiding this comment.
Do docC docs continue to render well after this change? Asking because I ran into some issues with folder structure before and that's why I ended up having a Sources folder in the first place (although it also happened to be a good thing)
Contributor
Author
9 tasks
310f48b to
47e0ff0
Compare
Member
|
nice work on this! Perhaps for the sake of shipping and iterating, we could split this into one PR for a public API to get the parsed receipt + one for the SPM and target changes? |
Contributor
Author
Yeah that's my plan 👍🏻 |
8c2de33 to
262b137
Compare
262b137 to
b0fe832
Compare
Contributor
Author
NachoSoto
added a commit
that referenced
this pull request
Dec 22, 2022
Finishes [CSDK-17]. Follow up to #2153. Extracted from #2096. ### Changes: - Created target in `Package.swift`. It can be built separately: `swift build --target ReceiptParser`  - Created `ReceiptParser` target in project:  - Added `ReceiptParser` scheme to allow building the target from Xcode:  - Added CI `spm-receipt-parser` job - Added CI `installation-tests-receipt-parser` job - Added `ReceiptParserAPITester` to test API for `ReceiptParser`'s target - Compile `ReceiptParserAPITester` when running `RevenueCat` tests so these are validated as well. - [CSDK-17]: https://revenuecats.atlassian.net/browse/CSDK-17?atlOrigin=eyJpIjoiNWRkNTljNzYxNjVmNDY3MDlhMDU5Y2ZhYzA5YTRkZjUiLCJwIjoiZ2l0aHViLWNvbS1KU1cifQ
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Fixes CSDK-17.
This has some drawbacks and it's not as nice as having an isolated package, but it's A LOT simpler than the approach in #2062.
What's new:
swift build --target ReceiptParsertargetandschemeallows building directly from Xcode:TODO:
symlink)LoggerType: ExtractedLoggerType#2098publicReceiptParserPackage existsAPITesters- [ ] Expose to Obj-CmainCarthageintegration still worksrelease-checksall pass