Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Document how to use "aar" artifacts with version catalogs #639

Open
6 tasks done
nikclayton opened this issue Mar 20, 2024 · 1 comment
Open
6 tasks done

Document how to use "aar" artifacts with version catalogs #639

nikclayton opened this issue Mar 20, 2024 · 1 comment

Comments

@nikclayton
Copy link

About this issue

The documentation doesn't cover how to use the libraries with Gradle version catalogs. Ordinarily this would be straightforward, but it's made more complicated because Gradle version catalogs don't support the "aar" artifact type.

So if you have something like this in libs.versions.toml:

[versions]
# ...
material-iconics = "5.4.0"
material-typeface-outlined = "4.0.0.1-kotlin"
# ...

[libraries]
# ...
material-iconics = { module = "com.mikepenz:iconics-core", version.ref="material-iconics" }
material-typeface-outlined = { module = "com.mikepenz:google-material-typeface-outlined", version.ref = "material-typeface-outlined" }
# ...

You must add { artifact { type = "aar" } } after the relevant implementation, like this:

    implementation(libs.material.iconics)
    implementation(libs.material.typeface.outlined) { artifact { type = "aar" } }

Hope that's helpful.

Checklist

@mikepenz
Copy link
Owner

Thank you for bringing this up.

I believe strictly speaking it is better if we look into removing the dependency of the font to the typeface-api module from the pom so the @aar won't be required.

It's been a while since I last updated this project, as it is no longer as relevant in a world of compose and proper VectorDrawable support :D

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants