Function: writeAboutLibrariesNPMOutput

writeAboutLibrariesNPMOutput(licenses, androidProjectPath, aboutLibrariesLikeOutput?): void

Generates AboutLibraries-compatible metadata for NPM dependencies

This will take scanned NPM licenses and produce following output inside android project's directory:

| - android | ---- app | ---- config <--- generated AboutLibraries config directory | ------- libraries <--- generated directory with JSON files list of NPM dependencies | ------- licenses <--- generated directory with JSON files list of used licenses | ---- build.gradle | ---- settings.gradle

Parameters

Name Type Description
licenses AggregatedLicensesObj Scanned NPM licenses
androidProjectPath string Path to the Android project directory
aboutLibrariesLikeOutput? AboutLibrariesLikePackageInfo[] Optional pre-generated output to use instead of generating it using generateAboutLibrariesNPMOutput

Returns

void

See

generateAboutLibrariesNPMOutput

ON THIS PAGE