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

Swift Package resolve large repository #285

Closed
Ernest0-Production opened this issue Apr 12, 2024 · 5 comments
Closed

Swift Package resolve large repository #285

Ernest0-Production opened this issue Apr 12, 2024 · 5 comments

Comments

@Ernest0-Production
Copy link

When connecting the library via SPM, AppsFlyer takes a very long time to download.
This is because SPM uses not a shallow clone, but a full cloning of git history.
I don't know the peculiarities of your repository, but it weighs unreasonably much. In my case, it's ~700MB.

image

I'm not an expert in git, but perhaps its size can somehow be reduced, or a new git repository can be created.

Report

SDK Version

What did you do?

swift package resolve

What did you expect to happen?

Fast resolving

What happened instead?

Long-time resolving, large "./build/repositories/AppsFlyerFramework" folder

Please provide any other relevant information.

@iharkatkavets
Copy link

There are 2 new repositories appeared:

 # For statically linked library
 https://github.com/AppsFlyerSDK/AppsFlyerFramework-Static

 # For dynamically linked library
 https://github.com/AppsFlyerSDK/AppsFlyerFramework-Dynamic

I just checked that Dynamic lib eats at most 80KB of space!
image
image

Try it by yourself but keep in mind that static version has issue related with PrivacyManifest at the moment.

@iharkatkavets
Copy link

Forgot to check artifacts folder, it is of size 6.8Mb

image

@Ernest0-Production
Copy link
Author

Thanks for the quick decision! I'll check it out.

Although it seems to me that dividing repositories into static and dynamic was redundant 🤔
You could just create two products in Package.swift

@Ernest0-Production
Copy link
Author

UPD: AppsFlyerSDK/AppsFlyerFramework-Dynamic#1

It looks like there is a very critical problem in the dynamic library repository

@af-obodovskyi
Copy link
Contributor

@Ernest0-Production please, check with build v6.14.1, the issue is fixed

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

3 participants