Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
56 commits
Select commit Hold shift + click to select a range
3f22950
init
LouiseHsu May 13, 2024
b3ae498
Merge remote-tracking branch 'upstream/main'
LouiseHsu May 15, 2024
750d5d6
wip
LouiseHsu May 29, 2024
60a1cfe
tests are passing
LouiseHsu Jun 4, 2024
07d1fa9
NOW tests are passing
LouiseHsu Jun 4, 2024
e055868
PaymentQueue tests
LouiseHsu Jun 4, 2024
27bc9dc
remove some incidental files
LouiseHsu Jun 4, 2024
86fe875
remove files 2
LouiseHsu Jun 4, 2024
f0440fa
.
LouiseHsu Jun 4, 2024
77821d0
.
LouiseHsu Jun 4, 2024
c4ba598
.
LouiseHsu Jun 4, 2024
4337a30
.
LouiseHsu Jun 5, 2024
3331f6b
Merge branch 'main' into remove-ocmock
LouiseHsu Jun 5, 2024
710f892
remove testing files
LouiseHsu Jun 5, 2024
dd54781
Merge branch 'remove-ocmock' of github.com:LouiseHsu/packages into re…
LouiseHsu Jun 5, 2024
a6f5c6b
formatting
LouiseHsu Jun 5, 2024
e8425f3
missing import for mac
LouiseHsu Jun 5, 2024
135e328
warnings
LouiseHsu Jun 5, 2024
3d43bb0
macos warnings
LouiseHsu Jun 5, 2024
eb6d45e
.
LouiseHsu Jun 5, 2024
04c733f
.
LouiseHsu Jun 5, 2024
0cb8821
remove ocmock from pods
LouiseHsu Jun 5, 2024
801d47f
clean up
LouiseHsu Jun 6, 2024
1fcbabd
.
LouiseHsu Jun 6, 2024
6911fc8
fix wonky symlinking in test files
LouiseHsu Jun 6, 2024
dc0a6d8
.
LouiseHsu Jun 6, 2024
714b3a1
license block 🤡
LouiseHsu Jun 6, 2024
4cd2042
Merge branch 'main' into remove-ocmock
LouiseHsu Jun 6, 2024
0044139
split up protocols, moved test implementations out of actual implemen…
LouiseHsu Jun 7, 2024
98e8058
Merge branch 'remove-ocmock' of github.com:LouiseHsu/packages into re…
LouiseHsu Jun 7, 2024
3bac1cb
adding missing stubs to methods
LouiseHsu Jun 7, 2024
1e02304
comments
LouiseHsu Jun 7, 2024
db34eb5
more comments
LouiseHsu Jun 7, 2024
f1f66e6
pr comments
LouiseHsu Jun 10, 2024
53a552e
properties, attributes
LouiseHsu Jun 10, 2024
3b19418
pr comments, renaming, format
LouiseHsu Jun 10, 2024
320d2d4
bunch of renaming, pr comments
LouiseHsu Jun 12, 2024
35202db
add comments, moved properties into class extensions
LouiseHsu Jun 13, 2024
074c303
more comments
LouiseHsu Jun 13, 2024
6eaed90
license, more comments
LouiseHsu Jun 13, 2024
147133c
boop pr comments
LouiseHsu Jun 14, 2024
0c06698
boop
LouiseHsu Jun 14, 2024
09719c9
renaming
LouiseHsu Jun 14, 2024
49d06b4
.
LouiseHsu Jun 17, 2024
f55e7a4
failing mac test
LouiseHsu Jun 17, 2024
2ae019f
so much renaming
LouiseHsu Jun 17, 2024
15b0b04
stubs and ///
LouiseHsu Jun 17, 2024
7a0cab6
properties
LouiseHsu Jun 17, 2024
cf656ec
format
LouiseHsu Jun 18, 2024
3e95cdc
format
LouiseHsu Jun 18, 2024
7a54cf9
.
LouiseHsu Jun 21, 2024
dc5499e
oopsies mac version
LouiseHsu Jun 21, 2024
ebd6bf1
remove extra symlnked files
LouiseHsu Jun 21, 2024
bb41e93
.
LouiseHsu Jun 21, 2024
d3f2479
.
LouiseHsu Jun 21, 2024
aed5b28
.
LouiseHsu Jun 21, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
format
  • Loading branch information
LouiseHsu committed Jun 18, 2024
commit cf656ec391cf9a30849a12b6226285e6b646012d
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ NS_ASSUME_NONNULL_BEGIN

// The default request handler that wraps FIAPRequestHandler
@interface DefaultRequestHandler : NSObject <FLTRequestHandlerProtocol>

// Initialize this wrapper with an instance of FIAPRequestHandler
- (instancetype)initWithRequestHandler:(FIAPRequestHandler *)handler;
@end
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
@interface FIAPaymentQueueHandler ()

/// The SKPaymentQueue instance connected to the App Store and responsible for processing
/// transactions.expand_more
/// transactions.
@property(nonatomic, strong) SKPaymentQueue *queue;

/// Callback method that is called each time the App Store indicates transactions are updated.
Expand All @@ -21,21 +21,21 @@ @interface FIAPaymentQueueHandler ()
/// Callback method that is called each time the App Store indicates transactions failed to restore.
@property(nonatomic, nullable, copy) RestoreTransactionFailed restoreTransactionFailed;

/// Callback method that is called each time the App Store indicates restoring of transactions hasexpand_more
/// Callback method that is called each time the App Store indicates restoring of transactions has
/// finished.
@property(nonatomic, nullable, copy) RestoreCompletedTransactionsFinished paymentQueueRestoreCompletedTransactionsFinished;

/// Callback method that is called each time an in-app purchase has been initiatedexpand_more from the App
/// Callback method that is called each time an in-app purchase has been initiated from the App
/// Store.
@property(nonatomic, nullable, copy) ShouldAddStorePayment shouldAddStorePayment;

/// Callback method that is called each time the App Store indicates downloads areexpand_more updated.
/// Callback method that is called each time the App Store indicates downloads are updated.
@property(nonatomic, nullable, copy) UpdatedDownloads updatedDownloads;

/// The transaction cache responsible for caching transactions.
///
/// Keeps track of transactions that arrive when the Flutter client is not
/// actively observing for transactions.expand_more
/// actively observing for transactions.
@property(nonatomic, strong, nonnull) FIATransactionCache *transactionCache;

/// Indicates if the Flutter client is observing transactions.
Expand All @@ -49,6 +49,7 @@ @interface FIAPaymentQueueHandler ()
@end

@implementation FIAPaymentQueueHandler

@synthesize delegate;

- (instancetype)initWithQueue:(nonnull id<FLTPaymentQueueProtocol>)queue
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ typedef void (^UpdatedDownloads)(NSArray<SKDownload *> *downloads);
/// Attempt to restore transactions. Require app store receipt url.
- (void)restoreTransactions:(nullable NSString *)applicationName;

///
/// Displays a sheet that enables users to redeem subscription offer codes.
- (void)presentCodeRedemptionSheet API_UNAVAILABLE(tvos, macos, watchos);

/// Return all transactions that are not marked as complete.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ @interface DefaultPaymentQueue ()
@end

@implementation DefaultPaymentQueue

@synthesize storefront;
@synthesize delegate;
@synthesize transactions;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ @interface DefaultRequestHandler ()
@end

@implementation DefaultRequestHandler

- (void)startProductRequestWithCompletionHandler:(nonnull ProductRequestCompletion)completion {
[self.handler startProductRequestWithCompletionHandler:completion];
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ NS_ASSUME_NONNULL_BEGIN

/// The default method channel that wraps FIATransactionCache
@interface DefaultTransactionCache : NSObject <FLTTransactionCacheProtocol>

/// Initialize this wrapper with an FIATransactionCache
- (instancetype)initWithCache:(FIATransactionCache *)cache;
@end
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,7 @@ - (nonnull instancetype)initWithQueue:(nonnull id<FLTPaymentQueueProtocol>)queue
@end

@implementation RequestHandlerStub

- (void)startProductRequestWithCompletionHandler:(nonnull ProductRequestCompletion)completion {
if (self.startProductRequestWithCompletionHandlerStub) {
self.startProductRequestWithCompletionHandlerStub(completion);
Expand Down