Giter VIP home page Giter VIP logo

Comments (10)

richardtop avatar richardtop commented on July 29, 2024 1

Yeah, clear, then this is definitely not for my use-case. Thanks a lot of clarifying, and for this great project!

from acknowlist.

vtourraine avatar vtourraine commented on July 29, 2024

Hello Richard, and thanks for reaching out.

That’s an intriguing idea. Could you give us a bit more context to understand what you’re trying to do?

“Generating the list” is arguably already done by CocoaPods and SPM. AcknowList simply adds its own model to load and merge the 2, but the list manipulation is really minimal. So I’m not sure what logic you’d like to extract. Of course, any library could be split into smaller components, but we want to keep things easy-to-understand and easy-to-use too.

from acknowlist.

richardtop avatar richardtop commented on July 29, 2024

What we'd like to do is to get a txt file with the concatenated list of a few specific dependencies used in the target.
For example, I'm installing the following dependencies:
https://github.com/richardtop/CalendarKit
https://github.com/realm/realm-swift

So it should take these two files:
https://github.com/richardtop/CalendarKit/blob/master/LICENSE.md
https://github.com/realm/realm-swift/blob/master/LICENSE

And concatenate them as a part of the build script and then output a single txt file containing all of the content of the selected resources.

from acknowlist.

vtourraine avatar vtourraine commented on July 29, 2024

OK but if it’s just to concatenate 2 text files, I’m not sure why you need AcknowList. You can just use a custom build script in Xcode. (Apologies if I’m misunderstanding your reply.)

from acknowlist.

richardtop avatar richardtop commented on July 29, 2024

Just curious if this package can automatically go thru every dependency and extract the License.MD or similar files and do the concatenation... Or is it simply not built for this specific purpose?

from acknowlist.

vtourraine avatar vtourraine commented on July 29, 2024

When you say “go thru every dependency”, are you talking about Swift Packages (SPM) or CocoaPods ?

from acknowlist.

richardtop avatar richardtop commented on July 29, 2024

SPM in my case.

from acknowlist.

vtourraine avatar vtourraine commented on July 29, 2024

OK, so the thing is that SPM doesn’t track licences. You could use the GitHub API to automate fetching the licences based on the package repo URLs (https://docs.github.com/en/rest/licenses/licenses#get-the-license-for-a-repository). But unless you have lots of dependencies, you’d probably be better getting them manually.

Feel free to fork AcknowList and take the parts that could help you, but it seems to me like it’s not quite the right tool for this job.

from acknowlist.

richardtop avatar richardtop commented on July 29, 2024

Clear, so another problem is that I'm not using GitHub... To me it seems now that the AcknowList is a completely different project, orthogonal to what I'm trying to achieve... ?

from acknowlist.

vtourraine avatar vtourraine commented on July 29, 2024

If the packages are not on GitHub, you’ll need another way to find the licenses.

AcknowList’s goal is to display the list of dependencies within an app. With CocoaPods, you always get the licenses. With SPM, you need extra work, otherwise it just opens the repo URL.

from acknowlist.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.