-
Notifications
You must be signed in to change notification settings - Fork 6
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
chore: Add Klarna Dependency to Package.swift #1053
base: master
Are you sure you want to change the base?
Conversation
@@ -6,42 +6,44 @@ let package = Package( | |||
name: "PrimerSDK", | |||
defaultLocalization: "en", | |||
platforms: [ | |||
.iOS("13.1") | |||
.iOS("13.1"), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
⚠️ Collection literals should not have trailing commas. (trailing_comma
)
], | ||
products: [ | ||
.library( | ||
name: "PrimerSDK", | ||
targets: ["PrimerSDK"] | ||
) | ||
), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
⚠️ Collection literals should not have trailing commas. (trailing_comma
)
], | ||
dependencies: [ | ||
.package(url: "https://github.com/primer-io/primer-sdk-3ds-ios", from: "2.4.1") | ||
.package(url: "https://github.com/primer-io/primer-sdk-3ds-ios", from: "2.4.1"), | ||
.package(url: "https://github.com/primer-io/primer-klarna-sdk-ios", from: "1.1.2"), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
⚠️ Collection literals should not have trailing commas. (trailing_comma
)
], | ||
targets: [ | ||
.target( | ||
name: "PrimerSDK", | ||
dependencies: [ | ||
.product(name: "Primer3DS", package: "primer-sdk-3ds-ios") | ||
.product(name: "Primer3DS", package: "primer-sdk-3ds-ios"), | ||
.product(name: "PrimerKlarnaSDK", package: "primer-klarna-sdk-ios"), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
⚠️ Collection literals should not have trailing commas. (trailing_comma
)
], | ||
path: "Sources/PrimerSDK", | ||
resources: [ | ||
.process("Resources"), | ||
.copy("Classes/Third Party/PromiseKit/LICENSE") | ||
.copy("Classes/Third Party/PromiseKit/LICENSE"), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
⚠️ Collection literals should not have trailing commas. (trailing_comma
)
] | ||
), | ||
.testTarget( | ||
name: "Tests", | ||
dependencies: [ | ||
.product(name: "Primer3DS", package: "primer-sdk-3ds-ios"), | ||
.byName(name: "PrimerSDK") | ||
.byName(name: "PrimerSDK"), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
⚠️ Collection literals should not have trailing commas. (trailing_comma
)
], | ||
path: "Tests/", | ||
sources: [ | ||
"3DS/", | ||
"Utilities/", | ||
"Primer/" | ||
"Primer/", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
⚠️ Collection literals should not have trailing commas. (trailing_comma
)
] | ||
) | ||
), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
⚠️ Collection literals should not have trailing commas. (trailing_comma
)
Generated by 🚫 Danger Swift against 417a312 |
Description
DO NOT MERGE - PR for visibility
We need to add the Klarna dependency as a merchant requires for iminent go-live. Currently SPM optional dependencies are incompatible with the runtime checks we perform to determine inclusion.
The need to do this is temporary, please see this ticket: ACC-4586 for a path to overcoming this need.
I expect to implement the fixes in the coming weeks.