Swiftpack.co - Package - chrisjrex/CenttripSDK


Carthage compatible CocoaPods compatible Swift Package Manager compatible

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.swift:

.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 PackageDescription:

// swift-tools-version:4.0
import PackageDescription

let package = Package(
name: "MyPackage",
products: [
name: "MyPackage",
targets: ["MyPackage"]),
dependencies: [
.package(url: "https://github.com/centtrip/centtripSDK.git", .upToNextMajor(from: "0.1.0"))
targets: [
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'

Then run pod install.

In any file you'd like to use CenttripSDK in, don't forget to import the framework with import CenttripSDK.


Carthage users can point to this repository and use the generated framework, CenttripSDK.

Make the following entry in your Cartfile:

github "Centtrip/CenttripSDK"

Then run carthage update.

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.


Stars: 0
Help us keep the lights on


Used By

Total: 0