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

Integrating WalletKit into the iOS Project #352

Open
domagoj-grizelj opened this issue Sep 2, 2021 · 1 comment
Open

Integrating WalletKit into the iOS Project #352

domagoj-grizelj opened this issue Sep 2, 2021 · 1 comment

Comments

@domagoj-grizelj
Copy link

domagoj-grizelj commented Sep 2, 2021

I'm looking for a proper way to integrate WalletKit into an iOS project without using Swift Package Manager.

Our project and CI pipeline revolve around using Cocoapods for managing dependencies.
One of the issues when trying to use cocoapods is that WalletKit SDK contains lots of files with duplicate names that are located in different folders. Since cocoapods flatten the entire folder hierarchy into a single folder this immediately causes issues in our project.

Our idea was to create Xcode Framework project that would be a wrapper around the WalletKit, and then generate .framework that would get uploaded into a new repo and would be configured to be used by cocoapods. The issue is that .framework can't include Swift Package Dependencies in the generated .framework due to this limitation:
https://stackoverflow.com/questions/65220359/add-package-dependency-for-a-binary-target-with-swift-package-manager

Are there any proper instructions to add WalletKitSwift and WalletKitCore into a project without reliance on any dependency manager?

@EBGToo
Copy link
Contributor

EBGToo commented Sep 8, 2021

In a Java environment, the CMakeLists.txt file is used to compile all the required C code. Can you not create libWalletKit using CMake and then include the Swift code in a way consistent with your development environment?

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

No branches or pull requests

2 participants