-
Notifications
You must be signed in to change notification settings - Fork 3
Pp 1067 remove trust kit from the codebase #823
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: GiniBankSDK-release-4.0.0
Are you sure you want to change the base?
Pp 1067 remove trust kit from the codebase #823
Conversation
…lude pinning configuration PP-1067
… networking with Pinning certificates PP-1067
…itialise the SDK PP-1067
|
* - 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. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
* - Parameter logLevel: The log level. `LogLevel.none` by default. | |
* - Parameter logLevel: The desired log level. Defaults to `LogLevel.none`. |
There was a problem hiding this comment.
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
There was a problem hiding this 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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
* - 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"]] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
* - 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. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
* 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. |
There was a problem hiding this comment.
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. |
There was a problem hiding this comment.
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 */, |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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
|
…-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
|
This pull request is removing the external dependency TrustKit and introducing Gini internal code for Pinning management.