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

chore: Add Klarna Dependency to Package.swift #1053

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

NQuinn27
Copy link
Contributor

@NQuinn27 NQuinn27 commented Nov 28, 2024

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.

@NQuinn27 NQuinn27 requested a review from a team as a code owner November 28, 2024 11:03
@@ -6,42 +6,44 @@ let package = Package(
name: "PrimerSDK",
defaultLocalization: "en",
platforms: [
.iOS("13.1")
.iOS("13.1"),
Copy link
Contributor

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"]
)
),
Copy link
Contributor

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"),
Copy link
Contributor

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"),
Copy link
Contributor

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"),
Copy link
Contributor

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"),
Copy link
Contributor

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/",
Copy link
Contributor

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)

]
)
),
Copy link
Contributor

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)

Copy link
Contributor

Warnings
⚠️ This PR doesn't seem to contain any updated Unit Test 🤔. Please consider double checking it.🙏
⚠️ Please assign someone aside from CODEOWNERS (@checkout-pci-reviewers) to review this PR.

Generated by 🚫 Danger Swift against 417a312

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

1 participant