Skip to content
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

Gini bank sdk xc frameworks bash script #761

Open
wants to merge 13 commits into
base: main
Choose a base branch
from

Conversation

ValentinaIancu-Gini
Copy link
Contributor

This pr dosen't take into consideration Pinning SDKs with the TrustKit framework.

Copy link

sonarqubecloud bot commented Jan 9, 2025

Quality Gate Failed Quality Gate failed

Failed conditions
9.6% Duplication on New Code (required ≤ 3%)

See analysis details on SonarQube Cloud

@ValentinaIancu-Gini
Copy link
Contributor Author

@zladzeyka, the duplication of code that Sonarcloud is complaining about is the color files from both Capture and Bank SDK. I will ignore this since there is nothing that I can do right now.

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.

Thank you @ValentinaIancu-Gini
Left a couple of clarifying questions only.

Copy link
Collaborator

Choose a reason for hiding this comment

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

[Clarification]: Could you please investigate if we need to commit this .resolved file?


2. In terminal open the newly generated project `open .build/swift-create-xcframework/GiniBankSDK.xcodeproj`
## Using XCFrameworks in a tetsing project
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
## Using XCFrameworks in a tetsing project
## Using XCFrameworks in a testing project

],
targets: [
// Targets are the basic building blocks of a package. A target can define a module or a test suite.
// Targets can depend on other targets in this package, and on products in packages this package depends on.

.target(
name: "GiniBankSDK",
dependencies: ["GiniCaptureSDK"]),
dependencies: ["GiniCaptureSDK", "GiniBankAPILibrary"]),
Copy link
Collaborator

Choose a reason for hiding this comment

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

[Clarification]: Are you sure that we need to include the dependency GiniBankAPILibrary here?

@@ -17,14 +17,15 @@ let package = Package(
// Dependencies declare other packages that this package depends on.
// .package(url: /* package url */, from: "1.0.0"),
.package(name: "GiniCaptureSDK", url: "https://github.com/gini/capture-sdk-ios.git", .exact("3.11.0")),
.package(name: "GiniBankAPILibrary", url: "https://github.com/gini/bank-api-library-ios.git", .exact("3.4.0"))
Copy link
Collaborator

Choose a reason for hiding this comment

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

[Clarification]@ValentinaIancu-Gini this file is used in SPM only and not for XCFrameworks, are you sure that we need GiniBankAPILibrary here?

@@ -17,15 +17,17 @@ let package = Package(
// Dependencies declare other packages that this package depends on.
// .package(url: /* package url */, from: "1.0.0"),
.package(name: "GiniCaptureSDKPinning", url: "https://github.com/gini/capture-sdk-pinning-ios.git", .exact("3.11.0")),
.package(name: "GiniBankAPILibraryPinning", url: "https://github.com/gini/bank-api-library-pinning-ios.git", .exact("3.4.0")),
Copy link
Collaborator

Choose a reason for hiding this comment

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

[Clarification]: This file will be used for SPM only, shall we keep those changes?

@@ -11,21 +12,29 @@ let package = Package(
// Products define the executables and libraries a package produces, and make them visible to other packages.
.library(
name: "GiniBankSDKPinning",
type: ProcessInfo.processInfo.environment["GINI_FORCE_DYNAMIC_LIBRARY"] == "1" ? .dynamic : nil,
Copy link
Collaborator

Choose a reason for hiding this comment

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

[Clarification]: what do we achive with this flag " GINI_FORCE_DYNAMIC_LIBRARY"?

@zladzeyka zladzeyka self-requested a review March 5, 2025 15:45
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.

3 participants