Skip to content

Commit

Permalink
Remove PassKitUI/PKPaymentSetupController.h header check for PASSKIT_…
Browse files Browse the repository at this point in the history
…MODULARIZATION SPI declaration

https://bugs.webkit.org/show_bug.cgi?id=262860
rdar://116640545

Reviewed by Wenson Hsieh.

Following rdar://88985220, all PassKit .m files are now in PassKitUI and
PassKitMacHelper, which means that the header check is now unnecessary.
Lets follow the spirit of PASSKIT_MODULARIZATION and stop pulling in
PKPaymentSetupController.h from <PassKit/>.

* Source/WebCore/PAL/pal/spi/cocoa/PassKitSPI.h:

Canonical link: https://commits.webkit.org/269078@main
  • Loading branch information
aprotyas committed Oct 9, 2023
1 parent 747eb59 commit 6628357
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions Source/WebCore/PAL/pal/spi/cocoa/PassKitSPI.h
Original file line number Diff line number Diff line change
Expand Up @@ -145,11 +145,10 @@ WTF_EXTERN_C_END
#endif

#if HAVE(PASSKIT_MODULARIZATION)
// FIXME: remove this after <rdar://88985220>
#if __has_include(<PassKitUI/PKPaymentSetupController.h>)
#import <PassKitUI/PKPaymentSetupController.h>
#if PLATFORM(MAC)
#import <PassKitMacHelper/PKPaymentSetupController.h>
#else
#import <PassKit/PKPaymentSetupController.h>
#import <PassKitUI/PKPaymentSetupController.h>
#endif
#if PLATFORM(MAC)
#if HAVE(PASSKIT_MAC_HELPER_TEMP)
Expand Down

0 comments on commit 6628357

Please sign in to comment.