Skip to content

Commit

Permalink
add Swift Package Manager support
Browse files Browse the repository at this point in the history
  • Loading branch information
xuzhe committed Sep 14, 2021
1 parent 4f3b8b4 commit 1f7ca60
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 2 deletions.
24 changes: 24 additions & 0 deletions Package.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
// swift-tools-version:5.3
import PackageDescription

let package = Package(
name: "ElepaySDK",
platforms: [
.iOS(.v11)
],
products: [
// Products define the executables and libraries a package produces, and make them visible to other packages.
.library(
name: "ElepaySDK",
targets: ["ElepaySDK"]),
],
dependencies: [
// No dependencies, but you may want to use Elepay_ChinesePayments_Plugin or Stripe, Braintree, etc. You should add them youself.
],
targets: [
.binaryTarget(
name: "ElepaySDK",
path: "ElepaySDK.xcframework"
)
]
)
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@ Objective-C のプロジェクトで elepay iOS SDK を利用する場合は[こ
* v1.7.1 からは「Build for Distribution」でコンパイルしますので、その後 Swift のバージョンを気にしなくてご利用できます。
* v2.0 から、XCFramework の導入に伴う、Framework と Module、Class 名が変更しました。
```ElePay.framework → ElepaySDK.xcframework, ElePay → ElepaySDK, ElePay → Elepay```
* v3.0.0 から、iOS 10 のサポートが終了しました。
* v3.0.0 から、iOS 10 のサポートが終了しました。
* v3.1.1 は SPM (Swift Package Manager) にサポートしました。ご注意:このバージョンは Cocoapods にリリースしていませんので、Cocoapods ご利用の場合は v3.1.0 を利用してください。

## English

Expand Down Expand Up @@ -60,4 +61,5 @@ If you are using **elepay iOS SDK** in Objective-C project, please check [here](
* From v2.0, the SDK is distributed in XCFramework format.
Also the Framework name, module name and class name has been changed.
```ElePay.framework → ElepaySDK.xcframework, ElePay → ElepaySDK, ElePay → Elepay```
* From v3.0.0, iOS 10 is no longer supported.
* From v3.0.0, iOS 10 is no longer supported.
* v3.1.1 add SPM (Swift Package Manager) support. NOTE: This version will not be released to Cocoapods, use v3.1.0 instead.
8 changes: 8 additions & 0 deletions release-note.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,14 @@
ElepaySDK use [semantic versioning](http://semver.org/).
Starting from v2.0.0, we start distributing ElepaySDK for iOS in XCFramework format.

## 3.1.1

> New Features
>
> 1. SPM (Swift Package Manager) supported.
> NOTE: This version will not be released to Cocoapods, use v3.1.0 instead.
>
## 3.1.0

> New Features
Expand Down

0 comments on commit 1f7ca60

Please sign in to comment.