Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,29 @@
# FinBox Lending iOS SDK

## 0.3.1

Remove static library linking

## 0.3.0

Bump Version

## 0.2.9

Bump Version

## 0.2.8

Bump Version

## 0.2.7

Expose Version

## 0.2.6

Add ABCL Callback

## 0.2.5

Add Source in Sessions API
Expand Down
7 changes: 5 additions & 2 deletions FinBoxLending.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Pod::Spec.new do |spec|
#

spec.name = "FinBoxLending"
spec.version = "0.2.5"
spec.version = "0.3.1"
spec.summary = "FinBoxLending IOS SDK to enable Lending journey for IOS devices"

# This description is used to generate tags and improve search results.
Expand Down Expand Up @@ -53,7 +53,10 @@ FinBox Lending allows users to submit their bank account statements, kyc details
# profile URL.
#

spec.author = { "Srikar Reddy" => "srikar@finbox.in" }
spec.author = {
"Srikar Reddy" => "srikar@finbox.in",
"Ashutosh Jena" => "ashutosh.jena@finbox.in"
}
# Or just: spec.author = "Srikar Reddy"
# spec.authors = { "Srikar Reddy" => "gsrikar2010@gmail.com" }
# spec.social_media_url = "https://twitter.com/Srikar Reddy"
Expand Down
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@
<key>FinBoxLending.xcscheme_^#shared#^_</key>
<dict>
<key>orderHint</key>
<integer>0</integer>
<integer>1</integer>
</dict>
<key>SampleApp.xcscheme_^#shared#^_</key>
<dict>
<key>orderHint</key>
<integer>1</integer>
<integer>0</integer>
</dict>
</dict>
</dict>
Expand Down
1 change: 1 addition & 0 deletions FinBoxLending/constants/Constants.swift
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ let FINBOX_LENDING_UTM_PARTNER_MEDIUM = "finbox_lending_utm_medium"
// FinBox Lending Callback Statuses
let FINBOX_LENDING_PERSONAL_INFO_SUBMITTED = "PERSONAL_INFO_SUBMITTED"
let FINBOX_LENDING_EXIT = "EXIT"
let FINBOX_ABCL_OFFER_SELECTED = "offer_selected_abcl"
let FINBOX_LENDING_APPLICATION_COMPLETED = "APPLICATION_COMPLETED"
let FINBOX_LENDING_PAYMENT_SUCCESSFULL = "PAYMENT_SUCCESSFULL"
let FINBOX_LENDING_WAIT = "WAIT"
Expand Down
17 changes: 16 additions & 1 deletion FinBoxLending/network/APIService.swift
Original file line number Diff line number Diff line change
Expand Up @@ -134,12 +134,27 @@ struct APIService {
return nil
}

// Determine the version
// let sdkVersion: String = {
// let bundle = Bundle(for: FinBoxLending.self)
// if let version = bundle.object(forInfoDictionaryKey: "CFBundleShortVersionString") as? String {
// return version
// } else {
// return "0.3.0"
// }
// }()

let sdkVersion = "0.3.0"

// 2. Now use it to create your string
let sdkType = "hybrid:ios:\(sdkVersion)"

// TODO: Read sdk version number from pod file
// Create a session object
return SessionRequest(customerID: customerID, withdrawAmount: userPref.creditLineAmount,
redirectURL: nil, transactionID: userPref.creditLineTransactionID, source: "ios",
hideClose: false, hidefaq: true, hideback: false, hideNav: true,
hidePoweredBy: userPref.hidePoweredBy, sdkType: "hybrid:ios:0.0.2",
hidePoweredBy: userPref.hidePoweredBy, sdkType: sdkType,
location: nil,
campaignParams: CampaignParams(utmTerm: userPref.utmTerm,
utmSource: userPref.utmSource,
Expand Down
5 changes: 5 additions & 0 deletions FinBoxLending/web/FinBoxWebViewHandler.swift
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,11 @@ class FinBoxWebViewHandler: NSObject, WKScriptMessageHandler, UIImagePickerContr
debugPrint("User Exit")
finBoxJourneyResult.code = "MW500"
finBoxJourneyResult.message = "User Exit"

case FINBOX_ABCL_OFFER_SELECTED:
debugPrint("ABCL Offer Selected")
finBoxJourneyResult.code = "MW600"
finBoxJourneyResult.message = "ABCL Offer Selected"

case FINBOX_LENDING_APPLICATION_COMPLETED:
debugPrint("Lending Result Success")
Expand Down