Awesome
What's AcknowledgementsPlist
AcknowledgementsPlist
that combines licenses of Carthage
, CocoaPods
, and Manual Plist
into Bundle
and Plist
.
I implement it so that it will be completed locally!
Requirements
- Xcode 10.2+
- Swift 5+
How to install
CocoaPods
pod 'AcknowledgementsPlist'
Executable binary from releases
Please use executable binary freely in each project!
How to use AcknowledgementsPlist
See Sample, for more details.
It is recommended to make it like make-acknowledgements-plist.sh.
I think that you can execute it after Pods
or Carthage
is updated.
Usage
acknowledgementsplist [PROJECT_ROOT_PATH] [OUTPUT_PATH] [OPTIONS]
e.g. acknowledgementsplist . ./Sample-Acknowledgements.plist --manual-plist-path ./ManualAcknowledgements.plist
[PROJECT_ROOT_PATH]
- Required🔥
- Please specify the project root path as seen from the directory to be executed!
[OUTPUT_PATH]
- Required🔥
- Please specify the file name of
./~/foo.plist
and the bundle file name of./~/bar.bundle
that starting from project root!
[OPTIONS]
--pods-path
- You can specify a
Pods
file path. The default is to search automatically.
--carthage-checkouts-path
- You can specify a
Checkouts
file path. The default is to search automatically.
--manual-plist-path
- You can add and include licenses manually to plist.
- The configuration of plist.↓
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>PreferenceSpecifiers</key>
<array>
<dict>
<key>FooterText</key>
<string>Legal Text</string>
<key>Title</key>
<string>Library Name</string>
</dict>
<dict>
<key>FooterText</key>
<string>Legal Text</string>
<key>Title</key>
<string>Library Name</string>
</dict>
</array>
</dict>
</plist>
--exclude-word
- Exclude URLs that contain the specified word.
- e.g.
--exclude-word "NSObject-Rx RxOptional"
Make Plist
-
Check if
Pods
and bCarthage/Checkouts
exist.
IfCarthage/Checkouts
does not exist, execute the command ofcarthage checkout
. -
Determine the location of the
AcknowledgementsPlist
and the output location ofPlist
.
e.g.acknowledgementsplist . ./Sample/Resources/Sample-Acknowledgements.plist
Make Bundle
-
Please do
1.
of Make Plist. -
Make bundle and change
Root.plist
to the following configuration.
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>PreferenceSpecifiers</key>
<array>
<dict>
<key>Type</key>
<string>PSChildPaneSpecifier</string>
<key>Title</key>
<string>Licenses</string>
<key>File</key>
<string>AcknowledgementLinks</string>
</dict>
</array>
<key>StringsTable</key>
<string>Root</string>
</dict>
</plist>
- Determine the location of the
AcknowledgementsPlist
and the output location ofBundle
.
e.g.acknowledgementsplist . ./Sample/Resources/Settings.bundle
LICENSE
Under the MIT license. See LICENSE file for details.