feat: Include Payment Extension by Default#763
Conversation
PR SummaryMedium Risk Overview For SwiftPM, bumps tools to Updates Reviewed by Cursor Bugbot for commit 0a1106a. Bugbot is set up for automated code reviews on this repo. Configure here. |
📦 SDK Size Impact ReportMeasures how much the SDK adds to an app's size (with-SDK minus without-SDK).
➡️ SDK size impact change is minimal. Raw measurementsTarget branch (main): {"baseline_app_size_kb":84,"baseline_executable_size_bytes":75464,"with_sdk_app_size_kb":1880,"with_sdk_executable_size_bytes":76312,"sdk_impact_kb":1796,"sdk_executable_impact_bytes":848,"xcframework_size_kb":6568}This PR: {"baseline_app_size_kb":84,"baseline_executable_size_bytes":75464,"with_sdk_app_size_kb":1880,"with_sdk_executable_size_bytes":76312,"sdk_impact_kb":1796,"sdk_executable_impact_bytes":848,"xcframework_size_kb":6568} |
|
Updated the README.md with clear instructions. Also beginning work on an alternate Rokt iOS SDK+ so we can choose between this implementation and it. |
|
Closing as solved by #766 |

Background
What Has Changed
Swift Package Manager (Kits/rokt/rokt/Package.swift)
Declares a dependency on https://github.com/ROKT/rokt-payment-extension-ios.git (from 2.0.0).
mParticle-Rokt (unchanged product name) now links mParticle-Rokt-Swift plus a small mParticle-Rokt-PaymentLinkage target that depends on RoktPaymentExtension, so the extension is available by default without renaming or changing the primary product.
Adds mParticle-Rokt-No-Payments, a second library product that depends only on mParticle-Rokt-Swift (no RoktPaymentExtension / Stripe).
Raises swift-tools-version to 5.9 for alignment with the payment extension toolchain.
CocoaPods (mParticle-Rokt.podspec)
Introduces Core (sources, privacy bundle, mParticle-Apple-SDK, RoktContracts, Rokt-Widget).
Payments is the default_subspec: Core + RoktPaymentExtension ~> 2.0.
No-Payments: Core only (pod 'mParticle-Rokt/No-Payments').
Checklist
Reference Issue (For employees only. Ignore if you are an outside contributor)