Comments (10)
Yeah, clear, then this is definitely not for my use-case. Thanks a lot of clarifying, and for this great project!
from acknowlist.
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.
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.
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.
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.
When you say “go thru every dependency”, are you talking about Swift Packages (SPM) or CocoaPods ?
from acknowlist.
SPM in my case.
from acknowlist.
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.
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.
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)
- How to include licenses of Swift packages HOT 9
- AcknowList 2.1.1 not working in a pure SPM project HOT 3
- Dependency licenses are not displaying HOT 1
- Exclude a pod HOT 2
- Not able to see License Page in Swift 5 HOT 3
- Change Navigation Title in SwiftUI HOT 2
- Question: Does the library supports Settings bundle based display for licenses/acknowledgements for used libraries ? HOT 7
- Problem with transparent list and rows HOT 3
- Licencia free
- Unable to make it work with SwiftUI on macOS HOT 4
- Cocoapods version & readme not up to date HOT 4
- [Feature]: Add Privacy Manifest HOT 2
- defaultPackages not returning the list HOT 1
- Return the library details in csv HOT 1
- Change VC title "Acknowledgements" HOT 1
- Plist via SPM HOT 1
- SwiftUI Views not included in latest Release HOT 1
- SwiftPM usage has docc included in build files HOT 1
- 'NSInternalInconsistencyException' on iOS 15.2 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from acknowlist.