k-tomoyasu/react-native-oss-license


license list generator for React Native App(iOS & Android)

License: MIT

Language: TypeScript

Keywords: cli, react-native, typescript


react-native-oss-license

react-native-oss-license is license list generator for React Native App(iOS & Android).
It generates license lists of npm libraries for iOS, Android.
This CLI tool allow you to easily generate content of oss-license.

Installation

npm i -g react-native-oss-license

Sample App

Usage

iOS

react-native-oss-license generate plist that you can locate to Settings.bundle.
Recommended to use with LicensePlist that scan cocoaopds, carthage.
You can merge output react-native-oss-license and LicensePlist.

Android

It is assumed to be used with other tools.

license-tools-plugin

license-tools-plugin is Gradle plugin to check library licenses and generate license pages.
It generate license list in YAML format.
react-native-oss-license generate same format content. You can merge results.

AboutLibraries

AboutLibraries provides fragment/activity that show license list.
react-native-oss-license generate string resource xml AboutLibraries use.
run react-native-oss-license --format about-libraries, output strings.xml that you can put into res/values/.
and output stdout withLibraries("package_name_A", "package_name_B" ...) that pass to method withLibraries.

CLI

> cd {project-root}
> react-native-oss-license --help
Usage: react-native-oss-license [options]

Options:
  -f, --format <format>       require output format. options:[settings-bundle,license-tools-plugin,about-libraries]
  --dev                       include devDependencies (default: false)
  --depth <depth>             dependencies depth (default: null)
  --output-path <outputPath>  specify path where output file (default: "default path")
  --json                      output json to stdout (default: false)
  --add-version-number        write library version number (default: false)
  --only-direct-dependency    output only dependencies you write packages.json. (default: false)
  --version                   show current version
  -h, --help                  output usage information

> react-native-oss-license --format settings-bundle
output settings-bundle format to 'ios/com.k-tomoyasu.react-native-oss-license.Output'

screen-shots

iOS

settings-bundle-list settings-bundle-detail

Android

license-tools-plugin

license-tools-plugin

AboutLibraries

about-libraries

Acknowledgment

This is based on dart-oss-licenses consepts.
And referred license-list.

Project Statistics

Sourcerank 2
Repository Size 1.09 MB
Stars 1
Forks 0
Watchers 1
Open issues 0
Dependencies 1,523
Contributors 1
Tags 7
Created
Last updated
Last pushed

Top Contributors See all

k-tomoyasu

Packages Referencing this Repo

react-native-oss-license
License list generator for react-native app
Latest release 0.1.0 - Updated - 1 stars

Recent Tags See all

v0.1.0 November 26, 2019
v0.0.6 November 17, 2019
v0.0.5 November 13, 2019
v0.0.4 November 13, 2019
v0.0.3 November 13, 2019
v0.0.2 November 10, 2019
v0.0.1 November 09, 2019

Something wrong with this page? Make a suggestion

Last synced: 2019-11-26 13:18:26 UTC

Login to resync this repository