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

Link v3: Re-add PayWithLinkViewController #4165

Draft
wants to merge 1 commit into
base: relink/vcs
Choose a base branch
from

Conversation

davidme-stripe
Copy link
Contributor

Summary

Re-add the Pay With Link View Controller.

Motivation

Link v3

Testing

Resurrected existing VC tests

Changelog

None

Copy link

emerge-tools bot commented Oct 19, 2024

1 build increased size, 5 builds decreased size

Name Version Download Change Install Change Approval
StripeSize
com.stripe.StripeSize
1.0 (1) 2.4 MB ⬇️ 2.7 kB (-0.11%) 7.8 MB ⬇️ 10.2 kB (-0.13%) N/A
StripeApplePaySize
com.stripe.StripeApplePaySize
1.0 (1) 435.4 kB ⬇️ 2.0 kB (-0.46%) 1.5 MB ⬇️ 8.5 kB (-0.56%) N/A
StripeFinancialConnectionsSize
com.stripe.StripeFinancialConnectionsSize
1.0 (1) 1.3 MB ⬇️ 4.4 kB (-0.34%) 4.3 MB ⬇️ 8.5 kB (-0.2%) N/A
StripePaymentsSize
com.stripe.StripePaymentsSize
1.0 (1) 1.1 MB ⬇️ 2.7 kB (-0.23%) 4.1 MB ⬇️ 8.9 kB (-0.22%) N/A
StripePaymentsUISize
com.stripe.StripePaymentsUISize
1.0 (1) 1.9 MB ⬇️ 617 B (-0.03%) 6.3 MB ⬇️ 10.6 kB (-0.17%) N/A
⚠️ StripePaymentSheetSize
com.stripe.StripePaymentSheetSize
1.0 (1) 3.6 MB ⬆️ 140.4 kB (4.09%) 10.6 MB ⬆️ 356.1 kB (3.47%) N/A

StripeSize 1.0 (1)
com.stripe.StripeSize

⚖️ Compare build
⏱️ Analyze build performance

Total install size change: ⬇️ 10.2 kB (-0.13%)
Total download size change: ⬇️ 2.7 kB (-0.11%)

Largest size changes

Item Install Size Change
Localizable.strings ⬇️ -4.1 kB
📝 StripePaymentsUI.CardBrandView.init(showCVC,centerHorizontally) ⬆️ 1.8 kB
🗑 StripePaymentsUI.CardBrandView.init(showCVC) ⬇️ -1.7 kB
🗑 StripeCore.Locale.toLanguageTag ⬇️ -1.4 kB
🗑 StripeUICore.AddressSpecProvider.AddressSpecProvider ⬇️ -896 B
View Treemap

Image of diff

StripeApplePaySize 1.0 (1)
com.stripe.StripeApplePaySize

⚖️ Compare build
⏱️ Analyze build performance

Total install size change: ⬇️ 8.5 kB (-0.56%)
Total download size change: ⬇️ 2.0 kB (-0.46%)

Largest size changes

Item Install Size Change
🗑 StripeCore.Locale.toLanguageTag ⬇️ -1.4 kB
StripeCore.ElementsSessionContext.value witness ⬇️ -604 B
🗑 StripeCore.ElementsSessionContext.IntentID ⬇️ -577 B
Other ⬇️ -5.9 kB
View Treemap

Image of diff

StripeFinancialConnectionsSize 1.0 (1)
com.stripe.StripeFinancialConnectionsSize

⚖️ Compare build
⏱️ Analyze build performance

Total install size change: ⬇️ 8.5 kB (-0.2%)
Total download size change: ⬇️ 4.4 kB (-0.34%)

Largest size changes

Item Install Size Change
🗑 StripeFinancialConnections.FinancialConnectionsAPIClient.linkAcco... ⬇️ -1.7 kB
🗑 StripeCore.Locale.toLanguageTag ⬇️ -1.4 kB
📝 StripeFinancialConnections.FinancialConnectionsAPIClient.linkAcco... ⬆️ 956 B
🗑 StripeUICore.AddressSpecProvider.AddressSpecProvider ⬇️ -896 B
🗑 StripeUICore.BSBNumberProvider.BSBNumberProvider ⬇️ -884 B
View Treemap

Image of diff

StripePaymentsSize 1.0 (1)
com.stripe.StripePaymentsSize

⚖️ Compare build
⏱️ Analyze build performance

Total install size change: ⬇️ 8.9 kB (-0.22%)
Total download size change: ⬇️ 2.7 kB (-0.23%)

Largest size changes

Item Install Size Change
🗑 StripeCore.Locale.toLanguageTag ⬇️ -1.4 kB
StripeCore.ElementsSessionContext.value witness ⬇️ -604 B
🗑 StripeCore.ElementsSessionContext.IntentID ⬇️ -577 B
Other ⬇️ -6.3 kB
View Treemap

Image of diff

StripePaymentsUISize 1.0 (1)
com.stripe.StripePaymentsUISize

⚖️ Compare build
⏱️ Analyze build performance

Total install size change: ⬇️ 10.6 kB (-0.17%)
Total download size change: ⬇️ 617 B (-0.03%)

Largest size changes

Item Install Size Change
Localizable.strings ⬇️ -4.1 kB
📝 StripePaymentsUI.CardBrandView.init(showCVC,centerHorizontally) ⬆️ 1.8 kB
🗑 StripePaymentsUI.CardBrandView.init(showCVC) ⬇️ -1.7 kB
🗑 StripeCore.Locale.toLanguageTag ⬇️ -1.4 kB
🗑 StripeUICore.AddressSpecProvider.AddressSpecProvider ⬇️ -896 B
View Treemap

Image of diff

StripePaymentSheetSize 1.0 (1)
com.stripe.StripePaymentSheetSize

⚖️ Compare build
⏱️ Analyze build performance

Total install size change: ⬆️ 356.1 kB (3.47%)
Total download size change: ⬆️ 140.4 kB (4.09%)

Largest size changes

Item Install Size Change
🗑 StripePaymentSheet.EmbeddedFormViewController ⬇️ -23.1 kB
Code Signature ⬆️ 8.3 kB
🗑 StripePaymentSheet.CardSectionElement.init(collectName,defaultVal... ⬇️ -8.2 kB
📝 StripePaymentSheet.CardSectionElement.init(collectName,defaultVal... ⬆️ 8.0 kB
📝 StripePaymentSheet.EmbeddedPaymentMethodsView.init(initialSelecti... ⬆️ 7.6 kB
View Treemap

Image of diff


🛸 Powered by Emerge Tools

Comment trigger: Size diff threshold of 100.00kB exceeded

Copy link

github-actions bot commented Oct 19, 2024

🚨 New dead code detected in this PR:

LinkNoticeView.swift:56 warning: Initializer 'init(type:text:)' is unused
LinkPaymentMethodPicker.swift:34 warning: Parameter 'picker' is unused
LinkPaymentMethodPicker.swift:269 warning: Parameter 'animated' is unused
PayWithLinkViewController-BaseViewController.swift:93 warning: Parameter 'sender' is unused
PayWithLinkViewController-NewPaymentViewController.swift:294 warning: Parameter 'sender' is unused
PayWithLinkViewController-NewPaymentViewController.swift:320 warning: Function 'shouldOfferLinkSignup(_:)' is unused
PayWithLinkViewController-SignUpViewController.swift:217 warning: Parameter 'sender' is unused
PayWithLinkViewController-SignUpViewController.swift:245 warning: Parameter 'viewModel' is unused
PayWithLinkViewController-SignUpViewController.swift:307 warning: Parameter 'legalTermsView' is unused
PayWithLinkViewController-SignUpViewModel.swift:11 warning: Imported module 'StripeCore' is unused
PayWithLinkViewController-SignUpViewModel.swift:18 warning: Parameter 'viewModel' is unused
PayWithLinkViewController-SignUpViewModel.swift:136 warning: Property 'configuration' is assigned, but never used
PayWithLinkViewController-UpdatePaymentViewController.swift:26 warning: Property 'intent' is assigned, but never used
PayWithLinkViewController-WalletViewController.swift:259 warning: Parameter 'intent' is unused
PayWithLinkViewController-WalletViewController.swift:295 warning: Parameter 'sender' is unused
PayWithLinkViewController-WalletViewController.swift:401 warning: Parameter 'viewModel' is unused
PayWithLinkViewController-WalletViewController.swift:415 warning: Parameter 'picker' is unused
PayWithLinkViewController-WalletViewController.swift:537 warning: Parameter 'mandateView' is unused
PayWithLinkViewController-WalletViewModel.swift:14 warning: Parameter 'viewModel' is unused
PayWithLinkViewController.swift:13 warning: Imported module 'StripeUICore' is unused
PayWithLinkViewController.swift:280 warning: Parameter 'completion' is unused
LinkInstantDebitMandateView.swift:19 warning: Parameter 'mandateView' is unused
PayWithLinkController-New.swift:17 warning: Class 'PayWithNativeLinkController' is unused
PayWithLinkController-New.swift:72 warning: Extension 'PayWithNativeLinkController' is unused
PaymentSheet+PaymentMethodAvailability.swift:63 warning: Property 'supportedLinkPaymentMethods' is assigned, but never used
PaymentSheetConfiguration.swift:191 warning: Property 'linkPaymentMethodsOnly' is assigned, but never used

Please remove the dead code before merging.

If this is intentional, you can bypass this check by adding the label skip dead code check to this PR.

ℹ️ If this comment appears to be left in error, double check that the flagged code is actually used and/or make sure your branch is up-to-date with master.

Copy link

github-actions bot commented Oct 19, 2024

⚠️ Public API changes detected:

StripePaymentSheet

- public var paymentMethodLayout: StripePaymentSheet.PaymentSheet.PaymentMethodLayout
- }
- public enum PaymentMethodLayout {
- case horizontal
- case vertical
- case automatic
- public static func == (a: StripePaymentSheet.PaymentSheet.PaymentMethodLayout, b: StripePaymentSheet.PaymentSheet.PaymentMethodLayout) -> Swift.Bool
- public func hash(into hasher: inout Swift.Hasher)
- public var hashValue: Swift.Int {
- get
- }

If you are adding a new public API consider the following:

  • Do these APIs need to be public or can they be protected with @_spi(STP)?
  • If these APIs need to be public, assess whether they require an API review.

If you are modifying or removing a public API:

  • Does this require a breaking version change?
  • Do these changes require API review?

If you confirm these APIs need to be added/updated and have undergone necessary review, add the label modifies public API to this PR to acknowledge and bypass this check.

ℹ️ If this comment appears to be left in error, make sure your branch is up-to-date with master.

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.

1 participant