Skip to content

Commit

Permalink
fix(GiniBankSDK): Fix lint warnings
Browse files Browse the repository at this point in the history
PIA-4460
  • Loading branch information
zladzeyka committed Sep 5, 2023
1 parent e40c5d0 commit a3febaa
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -289,14 +289,13 @@ public final class GiniBankConfiguration: NSObject {
Shows the return reasons dialog.
*/
public var enableReturnReasons: Bool = true

/**
Set the entry point used for launching the Gini Bank SDK.
Default value is `GiniEntryPoint.button`.
*/
public var entryPoint = GiniConfiguration.GiniEntryPoint.button


// MARK: - Error Logger
/**
Sets if the default error logging implementation is on.
Expand Down Expand Up @@ -384,13 +383,12 @@ public final class GiniBankConfiguration: NSObject {
configuration.updateFont(newFont, for: textStyle)
}
}

configuration.primaryButtonConfiguration = self.primaryButtonConfiguration
configuration.secondaryButtonConfiguration = self.secondaryButtonConfiguration
configuration.transparentButtonConfiguration = self.transparentButtonConfiguration
configuration.addPageButtonConfiguration = self.addPageButtonConfiguration
configuration.cameraControlButtonConfiguration = self.cameraControlButtonConfiguration

configuration.entryPoint = self.entryPoint

GiniCapture.setConfiguration(configuration)
Expand Down Expand Up @@ -448,10 +446,10 @@ public final class GiniBankConfiguration: NSObject {
giniBankConfiguration.onboardingMultiPageIllustrationAdapter = configuration.onboardingMultiPageIllustrationAdapter
giniBankConfiguration.onboardingNavigationBarBottomAdapter = configuration.onboardingNavigationBarBottomAdapter
giniBankConfiguration.onboardingAlignCornersIllustrationAdapter = configuration.onboardingAlignCornersIllustrationAdapter

giniBankConfiguration.entryPoint = configuration.entryPoint
giniBankConfiguration.customOnboardingPages = configuration.customOnboardingPages

giniBankConfiguration.debugModeOn = configuration.debugModeOn
giniBankConfiguration.giniErrorLoggerIsOn = configuration.giniErrorLoggerIsOn
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ final class DigitalInvoiceCoordinator: Coordinator {
// Remove ASAP
private var analysisDelegate: AnalysisDelegate


weak var delegate: DigitalInvoiceCoordinatorDelegate?
var rootViewController: UIViewController {
guard let digitalInvoiceViewController = digitalInvoiceViewController else {
Expand Down Expand Up @@ -60,7 +59,7 @@ final class DigitalInvoiceCoordinator: Coordinator {
let digitalInvoiceOnboardingViewController =
storyboard.instantiateViewController(withIdentifier: onboardingViewControllerName)
as! DigitalInvoiceOnboardingViewController

navigationController.present(digitalInvoiceOnboardingViewController, animated: true)
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,8 @@ final class QuantityView: UIView {
titleLabel.trailingAnchor.constraint(lessThanOrEqualTo: buttonContainerView.leadingAnchor,
constant: -Constants.padding),

quantityTextField.topAnchor.constraint(equalTo: titleLabel.bottomAnchor, constant: Constants.textFieldTopPadding),
quantityTextField.topAnchor.constraint(equalTo: titleLabel.bottomAnchor,
constant: Constants.textFieldTopPadding),
quantityTextField.leadingAnchor.constraint(equalTo: leadingAnchor, constant: Constants.padding),
quantityTextField.trailingAnchor.constraint(lessThanOrEqualTo: buttonContainerView.leadingAnchor,
constant: -Constants.padding),
Expand Down

0 comments on commit a3febaa

Please sign in to comment.