pikaju / flutter-braintree

Flutter plugin that wraps the native Braintree SDKs. Enables payments with credit cards, PayPal, Google Pay and more.
https://pub.dev/packages/flutter_braintree
MIT License
64 stars 116 forks source link

Fixed issue with ApplePay pod install #79

Closed JideGuru closed 2 years ago

JideGuru commented 2 years ago

Braintree ApplePay was changed from Braintree/Apple-Pay to Braintree/ApplePay which was causing an error when you try to build for iOS

[!] CocoaPods could not find compatible versions for pod "Braintree/Apple-Pay":
  In Podfile:
    flutter_braintree (from `.symlinks/plugins/flutter_braintree/ios`) was resolved to 1.0.0, which depends on
      Braintree/Apple-Pay (~> 5.0.0)

None of your spec sources contain a spec satisfying the dependency: Braintree/Apple-Pay (~> 5.0.0).

You have either:
 * mistyped the name or version.
 * not added the source repo that hosts the Podspec to your Podfile.

This PR fixes that

pikaju commented 2 years ago

Thank you!

andesappal commented 2 years ago

Worked like a charm, thanks @JideGuru and @pikaju. However, there's a new issue in the block, BTAppSwitch, which probably will demand a new PR soon. Stay tuned... Thanks again.

andesappal commented 2 years ago

Spoiler https://github.com/braintree/braintree_ios/blob/master/V5_MIGRATION.md#app-context-switching

andesappal commented 2 years ago

image

andesappal commented 2 years ago

Latest issue after making the switch image Festus and I will work on this tomorrow. Thanks.