Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Docs] Add Cardinal SDK Code Snippet for Top-level build.gradle File #198

Merged

Conversation

sshropshire
Copy link
Collaborator

Summary of changes

  • MXO uses Cardinal, and Cardinal SDK requires additional configuration in build.gradle
  • We need to update our dev docs to include Cardinal artifactory repository for merchant onboarding for the PayPalNativePayments module

Checklist

- [ ] Added a changelog entry

Authors

List GitHub usernames for everyone who contributed to this pull request.

@sshropshire sshropshire requested a review from a team as a code owner October 12, 2023 18:39
@@ -21,14 +21,30 @@ The order created on your server will be used to authorize or capture funds. For

### 1. Add the PayPal Native Payments module to your app

In your `build.gradle` file, add the following dependency:
In your app's `build.gradle` file, add the following dependency:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think with newer gradle versions / new project setups it's recommended that this goes in settings.gradle. Not sure if we want to differ from existing docs here but could update all our docs around Cardinal inclusion to be more modern (ref: https://saucelabs.com/resources/blog/how-to-prefer-settings-gradle-repositories-over-build-gradle). Either way is fine by me

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should go for the newer way eventually. I've always been hesitant to update build.gradle files but it's something we should definitely address to make sure we're aligned with Android best practices.

@sshropshire sshropshire merged commit 00809be into main Oct 12, 2023
6 checks passed
@sshropshire sshropshire deleted the update_mxo_docs_to_include_cardinal_sdk_code_snippet branch October 12, 2023 18:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants