Karhoo iOS UI SDK
The UI SDK extends on our Network SDK with ready to use screens and views for your end users to book rides with Karhoo in your application.
For more general information about the SDKs, chechout the karhoo developer portal
Installation
CocoaPods
You can use CocoaPods to install KarhooUISDK
by adding it to your Podfile
:
use_frameworks!
pod 'KarhooSDK', '1.7.1'
pod 'KarhooUISDK', :git => '[email protected]:karhoo/karhoo-ios-ui-sdk.git', :tag => '1.10.1'
Depending on payment provider you want to use in your integration add:
pod 'KarhooUISDK/Adyen', :git => '[email protected]:karhoo/karhoo-ios-ui-sdk.git', :tag => '1.10.1'
or
pod 'KarhooUISDK/Braintree', :git => '[email protected]:karhoo/karhoo-ios-ui-sdk.git', :tag => '1.10.1'
then import KarhooUISDK
wherever you want to access Karhoo services
import KarhooUISDK
Swift Package Manager
KarhooUISDK is released as a SPM beginning from version 1.8.0
Use URL for repository: https://github.com/karhoo/karhoo-ios-ui-sdk
and you will find 3 available packages:
KarhooUISDK
: only core package,
KarhooUISDKAdyen
: core + Adyen payment provider
KarhooUISDKBraintree
: core + Braintree Payment Provider
then import KarhooUISDK
wherever you want to access Karhoo services
Contribution Guide
Install Cocoapods
brew install cocoapods
Run
pod install
Open KarhooUISDK.xcworkspace
Running Tests
There is an Xcode scheme for unit tests. Unit tests test the functionality of individual classes using mocked dependencies.
Client example
There is an example project inside the Client directory of this repository. This is meant to be a fast way to test SDK changes and development steps. You will need to add access Keys to the client module as these are ignored due to this being an open source repository.
struct Keys {
static let identifier = ""
...
}
Issues
Looking to contribute?
🐛 Bugs
Please file an issue for bugs, missing documentation, or unexpected behavior.
💡 Feature Requests
Please file an issue to suggest new features. Vote on feature requests by adding
a
❓ Questions
For questions related to using the library, please re-visit a documentation first. If there are no answer, please create an issue with a label help needed
.