Skip to content

Commit

Permalink
Macos 支付页面不在查询 Apple Products, Makefile Mac 编译增加签名命令
Browse files Browse the repository at this point in the history
  • Loading branch information
mylxsw committed Sep 4, 2023
1 parent 39e8b6d commit db6df3d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ build-android:

build-macos:
flutter build macos --no-tree-shake-icons --release
codesign -f -s "Developer ID Application: YIYAO GUAN (N95437SZ2A)" build/macos/Build/Products/Release/AIdea.app
productbuild --component AIdea.app /Applications --sign "Developer ID Installer: YIYAO GUAN (N95437SZ2A)" --product AIdea.app/Contents/Info.plist AIdea.pkg
open build/macos/Build/Products/Release/

build-web:
Expand Down
2 changes: 1 addition & 1 deletion lib/bloc/payment_bloc.dart
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ part 'payment_state.dart';
class PaymentBloc extends Bloc<PaymentEvent, PaymentState> {
PaymentBloc() : super(PaymentInitial()) {
on<PaymentLoadAppleProducts>((event, emit) async {
if (PlatformTool.isIOS() || PlatformTool.isMacOS()) {
if (PlatformTool.isIOS()) {
final products = await APIServer().applePayProducts();
if (products.consume.isEmpty) {
emit(PaymentAppleProductsLoaded(
Expand Down

0 comments on commit db6df3d

Please sign in to comment.