项目作者: bcylin

项目描述 :
A CocoaPods plugin that adds additional acknowledgements to the plist generated by cocoapods-acknowledgements.
高级语言: Ruby
项目地址: git://github.com/bcylin/cocoapods-acknowledgements-addons.git
创建时间: 2019-05-11T10:35:01Z
项目社区:https://github.com/bcylin/cocoapods-acknowledgements-addons

开源协议:MIT License

下载


CocoaPods Acknowledgements Add-ons

GitHub Actions
Gem Version

A CocoaPods plugin that adds additional acknowledgements to the plist generated by cocoapods-acknowledgements.

Installation

Install via gem install cocoapods-acknowledgements or add it to the Gemfile:

  1. gem "cocoapods-acknowledgements-addons"

Prerequisites

  1. CocoaPods and cocoapods-acknowledgements
  2. The installed libraries provide podspec

Use cases

With Carthage / git submodules

If you have some dependencies installed via CocoaPods and some installed using different ways, such as Carthage or git submodules, you can aggregate the acknowledgements in one place.

Use the plugin in the Podfile:

  1. target :App do
  2. pod "CPDAcknowledgements"
  3. end
  4. # Generates a plist of dependencies installed via CocoaPods
  5. plugin "cocoapods-acknowledgements"
  6. # Adds additional acknowledgements to the generated plist
  7. plugin "cocoapods-acknowledgements-addons", add: ["Carthage/Checkouts"]

With Swift Package Manager

To find the dependencies installed via Swift Package Manager in ~/Library/Developer/Xcode/DerivedData, specify with_spm: true when using the plugin:

  1. plugin "cocoapods-acknowledgements-addons", add: ["Carthage/Checkouts"], with_spm: true

What’s modified?

The plugin searches **/*.podspec located in the specified directories and adds the acknowledgements to the plist generated by cocoapods-acknowledgements, which can be found in the Pods directory:

  1. .
  2. ├── App.xcodeproj
  3. ├── App.xcworkspace
  4. ├── Podfile
  5. ├── Podfile.lock
  6. └── Pods
  7. └── Pods-{target_name}-metadata.plist

This plugin also updates the app’s Settings.bundle/Pods-{target_name}-settings-metadata.plist if it exists.

Check out the example app for the configuration to use with CPDAcknowledgements.

Pod Commands

Search: List all podspecs found in $PATHS

  1. pod acknowledgements search $PATHS

Usage:

  1. without options
  1. $ bundle exec pod acknowledgements search example
  2. ./Carthage/Checkouts/QuickTableViewController/QuickTableViewController.podspec
  3. ./Carthage/Checkouts/Alamofire/Alamofire.podspec
  4. ./Acknowledgements/Crypto/Crypto.podspec
  1. with --swift-packages
  1. $ bundle exec pod acknowledgements search --swift-packages example/App.xcodeproj
  2. ~/Library/Developer/Xcode/DerivedData/App-djdfchmfsxwuuqbfczwmhygyunnk/SourcePackages/checkouts/CwlCatchException/CwlCatchException.podspec
  3. ~/Library/Developer/Xcode/DerivedData/App-djdfchmfsxwuuqbfczwmhygyunnk/SourcePackages/checkouts/Quick/Quick.podspec
  4. ~/Library/Developer/Xcode/DerivedData/App-djdfchmfsxwuuqbfczwmhygyunnk/SourcePackages/checkouts/CwlPreconditionTesting/CwlPreconditionTesting.podspec
  5. ~/Library/Developer/Xcode/DerivedData/App-djdfchmfsxwuuqbfczwmhygyunnk/SourcePackages/checkouts/Nimble/Nimble.podspec

License

Released under the MIT License.