No commit activity in last 3 years
No release in over 3 years
Filter out licenses with pattern from Pods-acknowledgements.plist
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.6
>= 0

Runtime

 Project Readme

Cocoapods::AckFilter

Cocoapods aggregates installed pod's license to Pods/Pods-acknowledgements.plist. But it also includes private pod's license. AckFilter filters out such license by arbitrary pattern and re-generate aggretated plist.

Installation

Add this line to your application's Gemfile:

gem 'cocoapods-ack_filter'

And then execute:

$ bundle

Or install it yourself as:

$ gem install cocoapods-ack_filter

Usage

pod ack-filter PATTERN [--input=FILENAME] [--output=FILENAME]
  • PATTERN is regexp pattern string
  • --input is input acknowledgements.plist filename
  • --output is output filename

Example

pod ack-filter MyCompany
# => Licenses which includes "MyCompany" are filtered out and output to "Acknowledgements.plist"
pod ack-filter MyCompany --output=Filtered.plist
# => Licenses which includes "MyCompany" are filtered out and output to "Filtered.plist"

Also, you can use ack_filter within Podfile.

post_install do
  Pod::Command::AckFilter.filter(pattern: /MyCompany/, output: 'Filtered.plist')
end

For complex condition, you can use block to define filter.

post_install do
  Pod::Command::AckFilter.filter(output: 'Filtered.plist') do |text|
    text =~ /MyCompany/ && text !~ /Foobar/
  end
end

Contributing

  1. Fork it ( https://github.com/[my-github-username]/cocoapods-ack_filter/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request