Closed fuomag9 closed 2 years ago
@fuomag9
Disclaimer:
v10.x is still in very early stages, so the README has not yet been updated to reflect all changes. v10 is considered a major upgrade and not backwards compatible.
if you want to add additional custom libraries to be included when generating the data via the gradle plugin there is now a simplified approach.
Configure the config
path in the gradle plugin. E.g. in the sample app config
.
https://github.com/mikepenz/AboutLibraries/blob/feature/remote_licenses/app/build.gradle#L90-L91 (the folder is relative to the root of the project)
After that create a libraries
folder within, and there you just add .json
files containing libraries you want to add (1 file per library)
See demo libraries here: https://github.com/mikepenz/AboutLibraries/tree/feature/remote_licenses/config/libraries
A full library with all data would look like:
{
"uniqueId": "com.mikepenz:materialdrawer",
"developers": [
{
"organisationUrl": "https://mikepenz.dev",
"name": "Mike Penz"
}
],
"artifactVersion": "9.0.0-a02",
"description": "The flexible, easy to use, all in one drawer library for your Android project.",
"scm": {
"connection": "scm:git@github.com:mikepenz/MaterialDrawer.git",
"url": "https://github.com/mikepenz/MaterialDrawer",
"developerConnection": "scm:git@github.com:mikepenz/MaterialDrawer.git"
},
"name": "ABC MaterialDrawer Library",
"website": "https://github.com/mikepenz/MaterialDrawer",
"licenses": [
"133a737bef925d338a857868bf2a1db5"
]
}
@fuomag9
Disclaimer:
v10.x is still in very early stages, so the README has not yet been updated to reflect all changes. v10 is considered a major upgrade and not backwards compatible.
if you want to add additional custom libraries to be included when generating the data via the gradle plugin there is now a simplified approach.
Configure the
config
path in the gradle plugin. E.g. in the sample appconfig
.https://github.com/mikepenz/AboutLibraries/blob/feature/remote_licenses/app/build.gradle#L90-L91 (the folder is relative to the root of the project)
After that create a
libraries
folder within, and there you just add.json
files containing libraries you want to add (1 file per library)See demo libraries here: https://github.com/mikepenz/AboutLibraries/tree/feature/remote_licenses/config/libraries
A full library with all data would look like:
{ "uniqueId": "com.mikepenz:materialdrawer", "developers": [ { "organisationUrl": "https://mikepenz.dev", "name": "Mike Penz" } ], "artifactVersion": "9.0.0-a02", "description": "The flexible, easy to use, all in one drawer library for your Android project.", "scm": { "connection": "scm:git@github.com:mikepenz/MaterialDrawer.git", "url": "https://github.com/mikepenz/MaterialDrawer", "developerConnection": "scm:git@github.com:mikepenz/MaterialDrawer.git" }, "name": "ABC MaterialDrawer Library", "website": "https://github.com/mikepenz/MaterialDrawer", "licenses": [ "133a737bef925d338a857868bf2a1db5" ] }
Thank you, this worked!
Documentation and references in the repo will soon be updated when we reach beta stage of this new release.
Thank you for being an early tester, please report back in the v10 ticket with input to make v10 even better
About this issue
Can anybody guide me on how to add a custom entry in
aboutlibraries-compose
? The current examples are not very clear and they do not seem to workFor example, where would I need to put this?
Details
com.mikepenz:aboutlibraries-compose:10.0.0-a04
default version as per https://developer.android.com/studio/releases/build-tools
Android Studio Arctic Fox | 2020.3.1 Patch 3
Checklist