Giter Site home page Giter Site logo

ikesyo / licenseplist Goto Github PK

View Code? Open in Web Editor NEW

This project forked from mono0926/licenseplist

0.0 3.0 0.0 1.21 MB

iOS license plists generator. Carthage, CocoaPods and the libraries specified by YAML file are supported.

Home Page: https://mono0926.com

License: MIT License

Makefile 0.53% Swift 99.08% Shell 0.39%

licenseplist's Introduction

LicensePlist

platforms GitHub license Language: Swift Swift Package Manager compatible

LicensePlist generates iOS license plists for Settings.bundle. Carthage, CocoaPods and the libraries specified by YAML file(example: license_plist.yml) are supported.

App Setting Root License List License Detail

Installation

Download the executable binary from Releases

Download from Releases, then copy to /usr/local/bin/license-plist etc.

From Source

Clone the master branch of the repository, then run make install.

$ git clone https://github.com/mono0926/LicensePlist.git
$ make install

Or you can also install by one-liner.

curl -fsSL https://github.com/mono0926/LicensePlist/raw/master/install.sh | sh
  • Homebrew: Not supported yet.

Usage

  1. On the directory same as Cartfile or Pods, simply execute license-plist.
  2. com.mono0926.LicensePlist.Output directory will be generated.
  3. Move the files in the output directory into your app's Settings.bundle.
Settings.bundle
├── Root.plist
├── com.mono0926.LicensePlist
│   ├── APIKit.plist
│   ├── Alamofire.plist
│   └── EditDistance.plist
├── com.mono0926.LicensePlist.plist
├── en.lproj
│   └── Root.strings
└── ja.lproj
    └── Root.strings

Options

You can see options by license-plist --help.

--cartfile-path

  • Default: Cartfile

--pods-path

  • Default: Pods

--output-path

  • Default: com.mono0926.LicensePlist.Output
  • Recommended: --output-path YOUR_PRODUCT_DIR/Settings.bundle

--github-token

  • Default: None.
  • LicensePlist uses GitHub API, so sometimes API limit error occures, so by using github-token you can avoid it.
  • You can generate token here
    • repo scope is needed.

--config-path

  • Default: license_plist.yml
  • You can specify GitHub libraries(introduced by hand) and excluded libraries

--force

  • Default: false
  • LicensePlist saves latest libraries, so if there are no libraries change, iterrupt.
    • In this case, excecution time is less than 100ms for the most case, so you can run LicensePlist at Build - Pre-actions every time 🎉
  • You can run all the way anyway, by using --force flag.

--add-version-numbers

  • Default: false
  • When the library name is SomeLibrary, by adding --add-version-numbers flag, the name will be changed to SomeLibrary (X.Y.Z).
    • X.Y.Z is parsed from CocoaPods and Cartfile information, and GitHub libraries specified at Config YAML also support this flag.

Integrate into build

Add Run Script to Build - Pre-actions:

if [ $CONFIGURATION = "Debug" ]; then
cd $SRCROOT
/usr/local/bin/license-plist --output-path $PRODUCT_NAME/Settings.bundle
fi

Q&A

How to generate Xcode project?

Execute swift package generate-xcodeproj or make xcode.

licenseplist's People

Contributors

mono0926 avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.