Build fixes.
This commit is contained in:
2
External/Pearl
vendored
2
External/Pearl
vendored
Submodule External/Pearl updated: c4620deda2...16ec9a246b
@@ -124,7 +124,7 @@ PearlAssociatedObjectProperty( NSMutableArray*, ProductObservers, productObserve
|
||||
- (void)paymentQueue:(SKPaymentQueue *)queue updatedTransactions:(NSArray *)transactions {
|
||||
|
||||
for (SKPaymentTransaction *transaction in transactions) {
|
||||
dbg( @"transaction updated: %@ -> %d", transaction.payment.productIdentifier, transaction.transactionState );
|
||||
dbg( @"transaction updated: %@ -> %d", transaction.payment.productIdentifier, (int)(transaction.transactionState) );
|
||||
switch (transaction.transactionState) {
|
||||
case SKPaymentTransactionStatePurchased: {
|
||||
inf( @"purchased: %@", transaction.payment.productIdentifier );
|
||||
|
@@ -40,7 +40,8 @@
|
||||
|
||||
[super viewWillAppear:animated];
|
||||
|
||||
PearlAddNotificationObserver( MPSignedOutNotification, nil, [NSOperationQueue mainQueue], ^(NSNotification *note) {
|
||||
PearlAddNotificationObserver( MPSignedOutNotification, nil, [NSOperationQueue mainQueue],
|
||||
^(MPAnswersViewController *self, NSNotification *note) {
|
||||
if (![note.userInfo[@"animated"] boolValue])
|
||||
[UIView setAnimationsEnabled:NO];
|
||||
[[MPOverlaySegue dismissViewController:self] perform];
|
||||
|
@@ -45,13 +45,12 @@
|
||||
|
||||
[super viewDidAppear:animated];
|
||||
|
||||
Weakify( self );
|
||||
PearlAddNotificationObserver( MPSignedInNotification, nil, [NSOperationQueue mainQueue], ^(NSNotification *note) {
|
||||
Strongify( self );
|
||||
PearlAddNotificationObserver( MPSignedInNotification, nil, [NSOperationQueue mainQueue],
|
||||
^(MPCombinedViewController *self, NSNotification *note) {
|
||||
[self setMode:MPCombinedModePasswordSelection];
|
||||
} );
|
||||
PearlAddNotificationObserver( MPSignedOutNotification, nil, [NSOperationQueue mainQueue], ^(NSNotification *note) {
|
||||
Strongify( self );
|
||||
PearlAddNotificationObserver( MPSignedOutNotification, nil, [NSOperationQueue mainQueue],
|
||||
^(MPCombinedViewController *self, NSNotification *note) {
|
||||
[self setMode:MPCombinedModeUserSelection animated:[note.userInfo[@"animated"] boolValue]];
|
||||
} );
|
||||
}
|
||||
|
Reference in New Issue
Block a user