qultist / owl

Owl πŸ¦‰ collects the licenses of the Swift packages you use

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Owl

Owl πŸ¦‰ is a command line tool that collects the licenses etc. of the Swift packages you use. It is intended to be called during the Xcode build process.

Installation

You can install owl either with Homebrew or from source.

Install with Homebrew

brew install qultist/formulae/owl

Install from source

rake install

Usage

Add the following Run Script Phase to your Xcode project. Make sure that the output directory exists!

if which owl >/dev/null; then
  owl -b "$BUILD_DIR" -o "$SOURCE_ROOT/AwesomeProject/Resources/Licenses"
else
  echo "warning: Owl is not installed, you can download it from https://github.com/qultist/owl"
fi

The BUILD_DIR and SOURCE_ROOT environment variables are provided by Xcode during build.

Owl will then create a packages.json file containing some information about the Swift packages and copy their license and notice files. Then it is up to you what you do with these files. πŸ˜‰ You can have a look at the example to see how I integrate Owl and use the files.

License

Owl is released under the MIT license. See LICENSE for details.

About

Owl πŸ¦‰ collects the licenses of the Swift packages you use

License:MIT License


Languages

Language:Swift 97.7%Language:Ruby 2.3%