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

Add Tink dependency to CashSecuritySdk #3

Closed
wants to merge 6 commits into from
Closed

Conversation

skorulis-ap
Copy link

This adds Tink as a dependency under CashSecuritySdk for later use.

Due to an outstanding issue with Tink not building on Apple silicon it takes the scripts from cash-ios with slight adaptations to hack around the issue. The Readme has been updated to include the additional steps that would be required to integrate the library when building on M1 macs.

There are 2 separate integration methods that need to be accounted for. Only the first has been addressed in this PR.

Development (:path =>)

The Example project integrates CashSecuritySdk as a local dependency which does not copy the Scripts folder into the Pods directory. This requires referencing the scripts via relative paths which is quite fragile. If the structure of the path was changed it will likely stop working.

Standard (:git => )

This is the normal method of integrating a pod which downloads the required files into Pods/CashSecuritySdk. In this case the Scripts folder exists in a consistent location. Because the podspec is not a the root of the repository it becomes difficult (perhaps impossible) to reference from a standalone project which is complicating testing out this form of integration.

SPM

Until Tink 1.7.0 is released it is not possible to reference it from an SPM package. This prevents CashSecuritySdk from providing a Package.swift file as a separate method of integration.

CashAU (ios)

CashAU is using SPM for package management, the code structure remains the same as cash-ios which uses cocoapods and POCs have been done to convert to using pods with minimal code changes but the capacity has not been maintained.

Base automatically changed from chotchkies/PRODSQUAD-170__basic_cocoapods_shell to main September 23, 2022 16:57
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