Skip to content

Building42/AckAck

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AckAck

AckAck is a python script that automatically generates a plist based on the licenses in your Carthage or CocoaPods folder. When you use the plists in your app, the licenses will show up in the Settings app.

Settings example

Installation

Simply download the ackack.py script and store it in your project root or in a subfolder (e.g. Scripts).

$ wget https://raw.githubusercontent.com/Building42/AckAck/master/ackack.py
$ chmod +x ackack.py

Usage

  1. Make sure that you have a Settings.bundle in your project (otherwise create one with Xcode)
  2. Make sure that you ran Carthage or CocoaPods (you should have a Carthage/Checkouts or Pods folder)
  3. Run the script: ./ackack.py
  4. The script will automatically try to find the input and output folders
  5. After the script is done, you will have a Acknowledgements.plist and a plist for every license found
Settings.bundle
├── Root.plist
├── Acknowledgements.plist
├── Acknowledgements
│   ├── Charts.plist
│   ├── HTTPParserC.plist
│   ├── Telegraph.plist

Options

You can see the options and other help information by running ./ackack.py --help.

Integrate into your build

  1. Open your project in Xcode
  2. Click on your project and then Build Phases
  3. Click the + to add a New Run Script Phase
  4. Paste the following in the script field:
cd $SRCROOT
./ackack.py