-
-
Notifications
You must be signed in to change notification settings - Fork 541
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Swift Package Manager Support (#2019)
* chore: added swift package manager support * chore: fixed issues with cocoapods * chore: updated stripe_ios changelog * chore: updated stripe_ios pubspec version
- Loading branch information
1 parent
b76793a
commit f1a8ad2
Showing
50 changed files
with
254 additions
and
57 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 15 additions & 0 deletions
15
example/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
{ | ||
Check warning on line 1 in example/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved GitHub Actions / Typo CIFilename: example/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved
|
||
"originHash" : "d75e1870e24786a8f3168abef93b2bf5b3c10211210817b12d64ec80e264c360", | ||
"pins" : [ | ||
{ | ||
"identity" : "stripe-ios-spm", | ||
"kind" : "remoteSourceControl", | ||
"location" : "https://github.com/stripe/stripe-ios-spm", | ||
"state" : { | ||
"revision" : "653fc8cfc40b33740401f9bd9faa8588f9a53e5f", | ||
"version" : "23.32.0" | ||
} | ||
} | ||
], | ||
"version" : 3 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 15 additions & 0 deletions
15
example/ios/Runner.xcworkspace/xcshareddata/swiftpm/Package.resolved
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
{ | ||
Check warning on line 1 in example/ios/Runner.xcworkspace/xcshareddata/swiftpm/Package.resolved GitHub Actions / Typo CIFilename: example/ios/Runner.xcworkspace/xcshareddata/swiftpm/Package.resolved
|
||
"originHash" : "d75e1870e24786a8f3168abef93b2bf5b3c10211210817b12d64ec80e264c360", | ||
"pins" : [ | ||
{ | ||
"identity" : "stripe-ios-spm", | ||
"kind" : "remoteSourceControl", | ||
"location" : "https://github.com/stripe/stripe-ios-spm", | ||
"state" : { | ||
"revision" : "653fc8cfc40b33740401f9bd9faa8588f9a53e5f", | ||
"version" : "23.32.0" | ||
} | ||
} | ||
], | ||
"version" : 3 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,4 +13,4 @@ SPEC CHECKSUMS: | |
|
||
PODFILE CHECKSUM: 353c8bcc5d5b0994e508d035b5431cfe18c1dea7 | ||
|
||
COCOAPODS: 1.12.1 | ||
COCOAPODS: 1.16.2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,13 @@ | ||
import Cocoa | ||
import FlutterMacOS | ||
|
||
@NSApplicationMain | ||
@main | ||
class AppDelegate: FlutterAppDelegate { | ||
override func applicationShouldTerminateAfterLastWindowClosed(_ sender: NSApplication) -> Bool { | ||
return true | ||
} | ||
|
||
override func applicationSupportsSecureRestorableState(_ app: NSApplication) -> Bool { | ||
return true | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,14 +14,24 @@ A new flutter plugin project. | |
s.license = { :file => '../LICENSE' } | ||
s.author = { 'Your Company' => '[email protected]' } | ||
s.source = { :path => '.' } | ||
s.source_files = 'Classes/**/*' | ||
s.dependency 'Flutter' | ||
s.dependency 'Stripe', stripe_version | ||
s.dependency 'StripePaymentSheet', stripe_version | ||
s.dependency 'StripePayments', stripe_version | ||
s.dependency 'StripePaymentsUI', stripe_version | ||
s.dependency 'StripeApplePay', stripe_version | ||
s.dependency 'StripeFinancialConnections', stripe_version | ||
|
||
s.subspec 'stripe_objc' do |ss| | ||
ss.source_files = 'stripe_ios/Sources/**/*.{m,h}' | ||
ss.public_header_files = 'stripe_ios/Sources/stripe_objc/include/**/*.h' | ||
end | ||
|
||
s.subspec 'stripe_ios' do |ss| | ||
ss.source_files = 'stripe_ios/Sources/**/*.{swift}' | ||
ss.dependency 'stripe_ios/stripe_objc' | ||
end | ||
|
||
s.platform = :ios, '13.0' | ||
|
||
# Flutter.framework does not contain a i386 slice. | ||
|
7 changes: 7 additions & 0 deletions
7
...ges/stripe_ios/ios/stripe_ios/.swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{ | ||
"pins" : [ | ||
{ | ||
"identity" : "stripe-ios-spm", | ||
"kind" : "remoteSourceControl", | ||
"location" : "https://github.com/stripe/stripe-ios-spm", | ||
"state" : { | ||
"revision" : "653fc8cfc40b33740401f9bd9faa8588f9a53e5f", | ||
"version" : "23.32.0" | ||
} | ||
} | ||
], | ||
"version" : 2 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
// swift-tools-version: 5.9 | ||
// The swift-tools-version declares the minimum version of Swift required to build this package. | ||
|
||
import PackageDescription | ||
|
||
let package = Package( | ||
name: "stripe_ios", | ||
platforms: [ | ||
.iOS("13.0") | ||
], | ||
products: [ | ||
.library(name: "stripe-ios", targets: ["stripe_ios"]) | ||
], | ||
dependencies: [ | ||
.package(url: "https://github.com/stripe/stripe-ios-spm", .upToNextMajor(from: "23.30.0")) | ||
], | ||
targets: [ | ||
.target( | ||
name: "stripe_ios", | ||
dependencies: [ | ||
.product(name: "Stripe", package: "stripe-ios-spm"), | ||
.product(name: "StripePayments", package: "stripe-ios-spm"), | ||
.product(name: "StripePaymentsUI", package: "stripe-ios-spm"), | ||
.product(name: "StripePaymentSheet", package: "stripe-ios-spm"), | ||
.product(name: "StripeApplePay", package: "stripe-ios-spm"), | ||
.product(name: "StripeFinancialConnections", package: "stripe-ios-spm"), | ||
"stripe_objc" | ||
], | ||
resources: [] | ||
), | ||
.target( | ||
name: "stripe_objc", | ||
dependencies: [], | ||
resources: [], | ||
cSettings: [ | ||
.headerSearchPath("include/stripe_objc") | ||
] | ||
) | ||
] | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,6 +5,7 @@ | |
// Created by Jaime Blasco on 7/3/21. | ||
// | ||
|
||
import Flutter | ||
import Foundation | ||
import UIKit | ||
import Stripe | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
Oops, something went wrong.