Comments (6)
Apologies, yeah this is all good!
from licenseplist.
Agreed with the off by default and maybe --add-version-numbers
as the flag
If it's a commit hash (which my regex doesn't detect) it should probably show the first 7 characters (as per normal standards)
With regards to GitHub, we could add more purpose to the rename functionality, or simply add a colon to what they already have making it:
github:
- account/library:
- version: 1.0.0
- account/otherlib
from licenseplist.
@mono0926
So had a quick look at CocoaPods (I don't work much with Carthage) and its clear the they don't store the version in the acknowledgements.plist file that you currently read from.
With that in mind there would have to be an extra step which parses either the Podfile.lock or Pods/Manifest.lock creating a dictionary for name to version (I've created a regex which can do this: -(.*)\(([0-9.]*)\)
, it creates two groups the first being the name and the second being the version).
With that dictionary at hand it would be quite easy then iterate through the licenses that you have, check if that license name is within the dictionary and then bind the version number
from licenseplist.
Thanks, Carthage and CocoaPods both would be okay and thanks for the regex.
For github
config, I haven't made up my mind.
This is not valid YAML(You can confirm it at Online YAML Parser).
github:
- account/library
version: 1.0.1
This is the example of valid format.
github:
- owner: account
repo: library
version: 1.0.1
- account/library # also support current format
Or you can specify the version by using the rename
config.
So, github
version specification may not be needed to support.
rename:
library: library (1.0.1)
- If specified by commit hash on Podfile or Cartfile, how to treat it?
- I think
version numbers
should be off by default, so what is the flag name to turn of the feature?---version-number
?
from licenseplist.
I implemented( https://github.com/mono0926/LicensePlist/releases/tag/1.3.0 ).
For github
YAML, I adopted this format:
I considered your proposal, but I adopted above format because its list/dictionary structure is more natural I think.
from licenseplist.
May I close the issue?
from licenseplist.
Related Issues (20)
- Support `--version` option
- Command PhaseScriptExecution failed with a nonzero exit code
- Unable to read licenses in SPM HOT 1
- Wrong Package names with Package.resolved JSON version 2 HOT 8
- Binary downloaded from Github release assets not up to date HOT 1
- Title is in lowercase HOT 1
- Is it possible to declare the parameters inside license_plist.yml HOT 2
- [Homebrew] Cannot build on Big Sur HOT 1
- library that added with spm is not appeared in license HOT 1
- Could not find License for immobiliare/RealHTTP HOT 2
- Disable some features with flags
- Swift package plugin doesn't work on Intel Macs HOT 1
- No binary for release 3.24.7 HOT 2
- `LicensePlist (3.24.8)`, which does not support `iOS` HOT 2
- Carthage & SPM Lockfiles not found with Tuist HOT 3
- Add a linting functionality HOT 6
- AcknowledgementsCommand doesn't copy into Settings.bundle
- Please add support for `mise`
- Privacy manifest required by Apple HOT 1
- Not able to generate License under Settings bundle in iOS while using Cocoapods and SPM HOT 1
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 licenseplist.