- Clone git repo:
git clone https://github.com/PayU-EMEA/PayU-iOS-Swift.git
- Navigate to cloned Folder:
cd PayU-iOS-Swift
- Open:
PayU-iOS-Swift/Example/Example.xcodeproj
- Update:
Example/Core/Models/Constants.swift
- Once you run the app, add your POS details:
Settings -> Environment -> Create -> (Enter POS details) -> Save
Create branch for feature, bugfix, etc. from main
branch:
- for ex.:
feature/92-add-new-payment-method-support
- for ex.:
bugfix/114-the-placeholder-for-card-cvv-is-incorrect
Make changes:
- Make changes in
Sources
folder for package - Update
Example
app (optional) - Run
Example
app (optional) - Push changes to your branch
Update tests:
- Update tests in
Tests
folder - Run tests in
Tests
folder - Push changes to your branch
Update documentation:
- Write Symbol Documentation in Your Source Files (changes) according to docc
- Update stucture in
{Package}/Documentation/Documentation
(optional) - Update stucture in
{Package}/Documentation/GettingStartedWith{Package}ExampleOf...
(optional) - Update stucture in
PUSDK/Documentation/Documentation
(optional) - Update stucture in
PUSDK/Documentation/Articles/GettingStartedWith{Package}
(optional) - Update stucture in
PUSDK/Documentation/Articles/GettingStartedWith{Package}ExampleOf...
(optional) - Push changes to your branch
Note: Ensure documentation is correct:
XCode > Product > Build Documentation
Ensure all tests passed:
- Open
Terminal
app - Navigate to Project Root Folder, for ex:
cd /Path/To/Project/Root/Folder/
- Run
make generate_mocks
command inTerminal
- Run
make xcodebuild_test
command inTerminal
- Update
README.md
in the project root folder - Update
Changelog.md
in the project root folder
Generate documentation:
- Open
Terminal
app - Navigate to Project Root Folder, for ex:
cd /Path/To/Project/Root/Folder/
- Run
make generate_documentation
command. - Ensure
docs
folder appears in the project root folder - Push changes to your branch
- Make pull request into
main
branch from your branch - Merge your branch into
main
branch - Push
tag
with new version tomain
branch