Skip to content

Conversation

ValentinaIancu-Gini
Copy link
Contributor

This pull request is removing the external dependency TrustKit and introducing Gini internal code for Pinning management.

Copy link

sonarqubecloud bot commented Apr 8, 2025

* - Parameter customApiDomain: A custom api domain string.
* - Parameter alternativeTokenSource: A protocol for using custom api access token
* - Parameter pinningConfig: the configuration for certificate pinning. Format ["PinnedDomains" : ["PublicKeyHashes"]]
* - Parameter logLevel: The log level. `LogLevel.none` by default.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
* - Parameter logLevel: The log level. `LogLevel.none` by default.
* - Parameter logLevel: The desired log level. Defaults to `LogLevel.none`.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I will modify this in 3 other places since I copy pasted from anpother place :D

Copy link
Collaborator

@zladzeyka zladzeyka left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ValentinaIancu-Gini Amazing job!
I have only a couple of comment suggestions.

* Creates a Gini Bank API Library to be used with a transparent proxy and a custom api access token source and certificate pinning configuration.
*
* - Parameter customApiDomain: A custom api domain string.
* - Parameter alternativeTokenSource: A protocol for using custom api access token
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
* - Parameter alternativeTokenSource: A protocol for using custom api access token
* - Parameter alternativeTokenSource: A protocol-conforming instance used to provide a custom API access token.

*
* - Parameter customApiDomain: A custom api domain string.
* - Parameter alternativeTokenSource: A protocol for using custom api access token
* - Parameter pinningConfig: the configuration for certificate pinning. Format ["PinnedDomains" : ["PublicKeyHashes"]]
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
* - Parameter pinningConfig: the configuration for certificate pinning. Format ["PinnedDomains" : ["PublicKeyHashes"]]
* - Parameter pinningConfig: A dictionary specifying the certificate pinning configuration in the format `["PinnedDomains": ["PublicKeyHashes"]]`.

}

/**
* Creates a Gini Bank API Library to be used with a transparent proxy and a custom api access token source and certificate pinning configuration.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
* Creates a Gini Bank API Library to be used with a transparent proxy and a custom api access token source and certificate pinning configuration.
* Initializes a Gini Bank API Library instance configured with a transparent proxy and a custom api access token source and certificate pinning.

}

/**
Initializes a new instance.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[Suggestion]: I think it makes sense to add Initializes a new instance of ObjectName

- parameter trackingDelegate: A delegate object to receive user events.
- parameter networkingService: A delegate object which implement protocol for the document processing events.
- parameter configurationService: A delegate object which implement protocol for the customer configuration.
- Parameter importedDocuments: There should be either images or one PDF, and they should be validated before calling this method.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[Suggestion]: I think we can remove Parameter from each lines, you already doing it below, in Bank SDK

768100372996959800C52F87 /* CustomDigitalInvoiceOnboardingBottomNavigationBarAdapter.swift in Sources */,
28A570102D4276EB00A97EBC /* TransactionDetailsViewController.swift in Sources */,
28DAF4B62CD293B80035A1FF /* GiniBankSDKExampleUITests.swift in Sources */,
28DAF4BC2CD293C80035A1FF /* GiniReturnAssistantScreenUITests.swift in Sources */,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[Clarification]: Did we loose this file, I can't find it in + only in removed

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No, we did not lose them. I don't know what was happening, but Recovered References was generated automatically, and I removed it in this pr. The files are still in the project.

…-from-the-codebase

# Conflicts:
#	BankAPILibrary/GiniBankAPILibraryPinning/Package-release.swift
#	BankAPILibrary/GiniBankAPILibraryPinning/Package.swift
#	BankAPILibrary/GiniBankAPILibraryPinning/README.md
#	BankSDK/GiniBankSDKExample/Tests/IntegrationTests/BankAPILibrary/BankAPILibraryIntegrationTests.swift
#	BankSDK/GiniBankSDKPinning/Package-release.swift
#	BankSDK/GiniBankSDKPinning/Package.swift
#	BankSDK/GiniBankSDKPinning/README.md
#	BankSDK/GiniBankSDKPinningExample/GiniBankSDKExampleBank/PaymentViewController.swift
#	BankSDK/GiniBankSDKPinningExample/GiniBankSDKPinningExample.xcodeproj/project.pbxproj
#	BankSDK/GiniBankSDKPinningExample/Tests/BankAPILibraryPinning/GiniBankAPILibraryPinningIntegrationTests.swift
#	BankSDK/GiniBankSDKPinningExample/Tests/BankAPILibraryPinning/GiniBankAPILibraryPinningIntegrationWrongCertificatesTests.swift
#	CaptureSDK/GiniCaptureSDKPinning/Package-release.swift
#	CaptureSDK/GiniCaptureSDKPinning/Package.swift
#	CaptureSDK/GiniCaptureSDKPinning/README.md
#	RELEASE-ORDER.md
…-from-the-codebase

# Conflicts:
#	BankAPILibrary/GiniBankAPILibrary/Documentation/source/Installation.md
#	BankAPILibrary/GiniBankAPILibraryPinning/Package-release.swift
#	BankAPILibrary/GiniBankAPILibraryPinning/Sources/GiniBankAPILibraryPinning/GiniBankAPILibraryPinningVersion.swift
#	BankSDK/GiniBankSDKExample/GiniBankSDKExample.xcodeproj/project.pbxproj
#	BankSDK/GiniBankSDKPinning/Package-release.swift
#	BankSDK/GiniBankSDKPinning/Package.swift
#	BankSDK/GiniBankSDKPinning/Pod/GiniBankSDKPinning.podspec
#	BankSDK/GiniBankSDKPinning/Sources/GiniBankSDKPinning/GiniBankSDKPinningVersion.swift
#	BankSDK/GiniBankSDKPinningExample/Tests/BankAPILibraryPinning/GiniBankAPILibraryPinningIntegrationTests.swift
#	BankSDK/GiniBankSDKPinningExample/Tests/TransferSummaryIntegrationTest.swift
#	CaptureSDK/GiniCaptureSDKPinning/Package-release.swift
#	CaptureSDK/GiniCaptureSDKPinning/Package.swift
#	CaptureSDK/GiniCaptureSDKPinning/Sources/GiniCaptureSDKPinning/GiniCaptureSDKPinningVersion.swift
Copy link

Quality Gate Failed Quality Gate failed

Failed conditions
1 New Code Smells (required ≤ 0)

See analysis details on SonarQube Cloud

Catch issues before they fail your Quality Gate with our IDE extension SonarQube for IDE

@ValentinaIancu-Gini ValentinaIancu-Gini requested review from lestergini and qnaveed87 and removed request for mrkulik August 25, 2025 16:49
@ValentinaIancu-Gini ValentinaIancu-Gini marked this pull request as draft August 25, 2025 16:50
…-from-the-codebase

# Conflicts:
#	.github/workflows/bank-api-library.check.yml
#	.github/workflows/bank-api-library.release.yml
#	.github/workflows/bank-sdk.check.yml
#	.github/workflows/bank-sdk.release.yml
#	.github/workflows/capture-sdk.check.yml
#	.github/workflows/capture-sdk.release.yml
#	BankSDK/GiniBankSDKExample/GiniBankSDKExample.xcodeproj/project.pbxproj
#	BankSDK/GiniBankSDKPinning/Package-release.swift
#	BankSDK/GiniBankSDKPinning/Sources/GiniBankSDKPinning/GiniBankSDKPinningVersion.swift
#	CaptureSDK/GiniCaptureSDKPinning/.swiftpm/xcode/xcshareddata/xcschemes/GiniCaptureSDKPinning.xcscheme
#	CaptureSDK/GiniCaptureSDKPinning/Package-release.swift
#	CaptureSDK/GiniCaptureSDKPinning/Sources/GiniCaptureSDKPinning/GiniCaptureSDKPinningVersion.swift
#	GiniMobile.xcworkspace/xcshareddata/swiftpm/Package.resolved
Copy link

sonarqubecloud bot commented Oct 2, 2025

Quality Gate Failed Quality Gate failed

Failed conditions
1 Security Hotspot
1 New Code Smells (required ≤ 0)

See analysis details on SonarQube Cloud

Catch issues before they fail your Quality Gate with our IDE extension SonarQube for IDE

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants