Skip to content

Commit 321e643

Browse files
committed
support cocoapods package manager
1 parent 736fc38 commit 321e643

File tree

5 files changed

+16
-3
lines changed

5 files changed

+16
-3
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ Currently, it supports the following package managers.
1010
* [NPM](https://www.npmjs.com/) (Node.js)
1111
* [PIP](https://pip.pypa.io/) (Python)
1212
* [Pub](https://pub.dev/) (Dart with flutter)
13+
* [Cocoapods](https://cocoapods.org/) (Swift/Obj-C)
1314

1415

1516
## User Guide

ReleaseNote.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
# ReleaseNote
22

3+
### V3.0.5 (2021.03.19)
4+
- Support the cocoapods package manager.
5+
36
### V3.0.4 (2021.03.13)
47
- Modify to include binaries that analyze license text.
58

docs/user-guide.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,13 @@ $ flutter pub global activate flutter_oss_licenses
9696
$ flutter pub global run flutter_oss_licenses:generate.dart
9797
```
9898

99+
100+
### Cocoapods (required)
101+
1. Install the pod package through Podfile.
102+
```
103+
$ pod install
104+
```
105+
99106
<br>
100107

101108
## 2. How to install
@@ -124,7 +131,7 @@ $ fosslight_dependency
124131
```
125132
| Options | Description | Value |
126133
| --------- | ------------- | ------- |
127-
| -m | (optional) <br> package manager for your project | npm, maven, gradle, pip, pub |
134+
| -m | (optional) <br> package manager for your project | npm, maven, gradle, pip, pub, cocoapods |
128135
| -p | (optional) <br> input directory | (path) |
129136
| -o | (optional) <br> output file directory | (path) |
130137
| -a | (pypi only required) <br> virtual environment activate command | conda example: 'conda activate (venv name)' |
@@ -145,11 +152,13 @@ FOSSLight dependency creates the result file that has xlsx extension (Microsoft
145152

146153
It prints the OSS information based on manifest file(package.json, pom.xml) of dependencies (including transitive dependenices).
147154
For a unique OSS name, OSS name is printed such as (package_manager):(oss name) or (group id):(artifact id).
155+
(The oss name of cocoapods is printed just oss name of pod spec information. Because cocoapods doesn't manage the source code of packages itself.)
148156

149157
| Package manager | OSS Name | Download Location | Homepage |
150158
| --------------- | ------------------ | ----------------- | -------- |
151159
| Npm | npm:(oss name) | Priority1. repository in package.json <br> Priority2. www.npmjs.com/package/(oss_name) | www.npmjs.com/package/(oss_name) |
152160
| Pip | pypi:(oss name) | https://pypi.org/project/(oss_name)/(version) | homepage in (pip show) information |
153161
| Maven (Gradle) | (group_id):(artifact_id) | https://mvnrepository.com/artifact/(group_id)/(artifact_id)/(version) | https://mvnrepository.com/artifact/(group_id)/(artifact_id) |
154162
| Pub | pub:(oss name) | https://pub.dev/packages/(oss_name)/versions/(version) | homepage in (pub information) |
163+
| Cocoapods | oss name | source in (pod spec information) | homepage in (pod spec information) |
155164

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
if __name__ == "__main__":
1414
setup(
1515
name = 'fosslight_dependency',
16-
version = '3.0.4',
16+
version = '3.0.5',
1717
packages = find_packages(),
1818
description = 'FOSSLight Dependency',
1919
long_description = 'It is a script file to scan dependencies through package manager file and generate a result report.',

unified_script/dependency_unified.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
import pkg_resources
2222
import yaml
2323

24-
VERSION = "3.0.4"
24+
VERSION = "3.0.5"
2525

2626
# Check the manifest file
2727
manifest_array = [["pip", "requirements.txt"], ["npm", "package.json"], ["maven", "pom.xml"],

0 commit comments

Comments
 (0)