This is a SDK to make using the CenttripAPI a piece of cake.
A gem by @sunshinejr used to shortcut some SPM actions - https://medium.com/@sunshinejr/testing-development-in-swift-package-manager-v4-cde34eab1c09
Swift Package Manager
To integrate using Apple's Swift package manager, add the following as a dependency to your
.package(url: "https://github.com/centtrip/centtripSDK.git", .upToNextMajor(from: "0.1.0"))
and then specify
"CenttripSDK" as a dependency of the Target in which you wish to use CenttripSDK.
Here's an example
// swift-tools-version:4.0 import PackageDescription let package = Package( name: "MyPackage", products: [ .library( name: "MyPackage", targets: ["MyPackage"]), ], dependencies: [ .package(url: "https://github.com/centtrip/centtripSDK.git", .upToNextMajor(from: "0.1.0")) ], targets: [ .target( name: "MyPackage", dependencies: ["CenttripSDK"]) ] )
Note that as of Moya 10, SPM only works with Swift 4 toolchain and greater.
For Moya, use the following entry in your Podfile:
pod 'CenttripSDK', '~> 0.1.0'
In any file you'd like to use CenttripSDK in, don't forget to
import the framework with
Carthage users can point to this repository and use the generated framework,
Make the following entry in your Cartfile:
If this is your first time using Carthage in the project, you'll need to go through some additional steps as explained over at Carthage.