Xendit iOS SDK
Xendit iOS SDK is compatible with CocoaPods and Swift Package Manager, and provides target for consumption: Xendit
.
Ownership
Team: Credit Cards Team
Slack Channel: #p-cards-product
Slack Mentions: @troops-cards
Usage
Install Xendit iOS SDK with CocoaPods
Add this to your Podfile.
pod 'Xendit', '~> 3.7.0'
Install Xendit iOS SDK with SPM
-
Select your project in the Project Navigator on the right. Select the project in the Project section and click the Package Dependencies tab at the top.
-
Click the + button at the bottom of the table to add Xendit iOS SDK using the Swift Package Manager.
-
Enter the package URL in the search field in the top right, that simply means the GitHub URL.
-
Choose Dependency Rule as
Up to Next Major Version
from3.7.0
.
Running Tests
Running Tests from Xcode
Open Xendit.xcworkspace
To run unit tests: choose Xendit
scheme and press cmd+u
(or "Run Product" -> "Test")
To run UI tests: choose XenditExample
scheme and press cmd+u
Run the app
Running App with Xcode
- Open xcode, click on the
Open a project or file
- Browse to the repository folder, and open
Xendit.xcworkspace
- Click the project scheme button (its beside stop button)
- A dropdown list will appear, click
Edit scheme...
- On the
Run
section, at theInfo
tab, click theExecutable
dropdown
- Select
XenditExample.app
andClose
the window
- Click the
Run
button
- Wait for the app build and the simulator will showed up