Is anybody using Airbnb's Lottie-ios dependency inside your swift student challenge project?
If yes can u please discuss about how did u approach using it ?
Actually I wanted to use it so I downloaded the official repo maintained by Airbnb from GitHub but the package had too large size so I deleted many part's leaving just src files and some other files as it is and even modified it's package.swift file and finally deleted the .git folder which had been taking way too much space. And now I have been using it as local dependency which I can include it in my .zip submission ( as that's the rule I guess to include the packages our project depends on in our .zip submission file ).
So far there have been no problems, I wanna know am I doing anything wrong here? Can someone advise me ?
I can’t comment about specific third-party libraries, so let me answer with some general guidance:
- As mentioned in the fine print, your playground is expected to work without a network connection.
- One consequence of that is that, if you rely on a third-party library, you have to vendor [1] that library, that is, copy the code into your own sourcebase.
- Whenever you use a third-party library, you have to make sure that your use is compatible with its licence.
- Finally, on a mechanical front, rather than delete the
.gitdirectory my advice is that you usegit exportto export a specific tag or version branch, and then try to avoid modifying the library code [2]. That’ll make it easier for Future You™ to understand how your playground is set up (-:
Share and Enjoy
—
Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"
[1] The origina of this term are interesting, and if you search the ’net for “what is vendoring a library” you’ll find a bunch of backstory.
[2] Making mechanical changes, like deleting assets you don’t need or test code, is fine, but it’s good to automate those.