-
Notifications
You must be signed in to change notification settings - Fork 5
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
Integrate the StoreKit2
purchase method
#10
Merged
Merged
Conversation
This file contains 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
- Create an `ISKProduct` interface that describes a common `StoreKit` object - Create `SK1StoreProduct` and `SK2StoreProduct` classes that describe products for StoreKit and StoreKit2, respectively
Generated by 🚫 Danger |
Currently, a `ProductProvider` provides the ability to fetch products via the new `StoreKit` API. If the current OS version is higher than iOS 15, tvOS 15, watchOS 8, macOS 12, the new API can be used when calling `fetch(_:) async throws -> [StoreProduct]`; otherwise, the old API will be called. Additionally, this commit includes: - Remove unnecessary access control modifiers - Write code comments and provide usage examples
- Write comments for the `IAPProvider` - Write comments for the `ReceiptRefreshProvider`
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## dev #10 +/- ##
===========================================
- Coverage 95.21% 61.49% -33.72%
===========================================
Files 15 28 +13
Lines 564 1018 +454
===========================================
+ Hits 537 626 +89
- Misses 27 392 +365
|
ns-vasilev
force-pushed
the
feature/purchase-store-kit-2
branch
from
December 18, 2023 18:55
0368805
to
f4cb208
Compare
- Update `Flare.xcscheme` - Update `test_thatIAPProviderFetchesSK2Products_whenProductsAreAvailable` test
ns-vasilev
force-pushed
the
feature/purchase-store-kit-2
branch
from
December 18, 2023 19:05
f4cb208
to
a8cfef0
Compare
The `StoreTransaction` model is a wrapper for both `SK1StoreTransaction` and `SK2StoreTransaction`
The `StoreTransaction` object serves as a wrapper for both `SKTransaction` and `StoreKit.Transaction`.
Replace purchasing a product by ID with passing a product object.
ns-vasilev
force-pushed
the
feature/purchase-store-kit-2
branch
from
December 27, 2023 14:54
3236909
to
40ce913
Compare
A host app provides a means to test in-app purchases using the StoreKit2 API.
- Write unit tests for the new methods - Improve the readability of the existing test cases
ns-vasilev
force-pushed
the
feature/purchase-store-kit-2
branch
8 times, most recently
from
December 29, 2023 12:41
834abf0
to
f3da71a
Compare
- Implement testing on different OS versions - Temporarily drop testing on watchOS
ns-vasilev
force-pushed
the
feature/purchase-store-kit-2
branch
from
December 29, 2023 13:03
f3da71a
to
bc561e4
Compare
- Update the GitHub Actions CI script to enable testing on various platforms
ns-vasilev
force-pushed
the
feature/purchase-store-kit-2
branch
from
December 31, 2023 15:19
c772e21
to
79ee91d
Compare
ns-vasilev
force-pushed
the
feature/purchase-store-kit-2
branch
19 times, most recently
from
January 2, 2024 11:16
006329b
to
4d1b405
Compare
ns-vasilev
force-pushed
the
feature/purchase-store-kit-2
branch
from
January 2, 2024 13:12
4d1b405
to
2f3d1bc
Compare
ns-vasilev
changed the title
[WIP] Integrate the
Integrate the Jan 5, 2024
StoreKit2
purchase methodStoreKit2
purchase method
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.
No description provided.