Skip to content

Commit 3815416

Browse files
authored
[in_app_purchase_storekit] Add support for macOS (#6517)
* Initial commit of adding MacOS support. Heavily inspired by flutter/plugins#5854 * Updated version and changelog. * Updated documentation. * Added missing license comments. * Fixed podspec lint issue. * Moved native tests to a shared location. * Decreased minimum macOS version from 10.15 to 10.11. This seems wrong to me, since StoreKit is only properly supported on MacOS 10.15+. However, now all existing tests should pass. * Added RunnerTests target to macos example. * Unified macOS capitalization. * Deleted generated macOS icon assets. * Removed empty function overrides. * Enabled tests for macOS. * Added OCMock to RunnerTests target. * Adapted tests for macOS. * Reverted relative path dependencies. * Updated to a proper version bump. * Make macOS no-op tests run only on iOS. * Replace directory symlinks with file symlinks. * Marked iOS-only API as iOS-only. Previously they were no-ops on macOS. * Re-worded doc-comment. * Formatted code.
1 parent 2be1da9 commit 3815416

File tree

96 files changed

+5152
-3553
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

96 files changed

+5152
-3553
lines changed

packages/in_app_purchase/in_app_purchase_storekit/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 0.3.4
2+
3+
* Adds macOS as a supported platform.
4+
15
## 0.3.3
26

37
* Supports adding discount information to AppStorePurchaseParam.

packages/in_app_purchase/in_app_purchase_storekit/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# in\_app\_purchase\_storekit
22

3-
The iOS implementation of [`in_app_purchase`][1].
3+
The iOS and macOS implementation of [`in_app_purchase`][1].
44

55
## Usage
66

packages/in_app_purchase/in_app_purchase_storekit/example/ios/RunnerTests/FIAPPaymentQueueDeleteTests.m

Lines changed: 0 additions & 120 deletions
This file was deleted.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../../shared/RunnerTests/FIAPPaymentQueueDeleteTests.m

packages/in_app_purchase/in_app_purchase_storekit/example/ios/RunnerTests/FIATransactionCacheTests.m

Lines changed: 0 additions & 63 deletions
This file was deleted.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../../shared/RunnerTests/FIATransactionCacheTests.m

0 commit comments

Comments
 (0)