
Facilitates access to Gravatar resources, generating avatar image URLs and initials images in the absence of Gravatar registration, with optional integration of the Gravatar REST API.
This library for set up for Kotlin Multiplatform (KMP)
This is a Kotlin Multiplatform compatible library for accessing Gravatar resources.
Generating an avatar image URL does not require any additional, but if you need to use the Gravatar REST API you will need to make sure Ktor runs properly in your project.
Feel free to fork it and make improvements, I'll keep up as best I can.
...describe features...
Add the dependency to tyour library file:
[versions]
aughtone-gravatar = "${version}"
[libraries]
aughtone-gravatar = { module = "io.github.aughtone:gravatar", version.ref = "aughtone-gravatar" }Include the dependency in the module you want to use it with:
implementation(libs.aughtone.gravatar)Or if you are still old-school:
implementation("io.github.aughtone:gravatar:${version}")You can get a simple Gravatar url like this:
val avatarUrl: String = gravatarUrl(email = "johndoe@example.com", name = "John Doe")The name property will be used to generate an initials image if no Gravatar is found, so you get an output like the one with the initials, since that address is not registered with Gravatar:
Bugs can go into the issue tracker, but you are probably going to get faster support by creating a PR.
This library for set up for Kotlin Multiplatform (KMP)
This is a Kotlin Multiplatform compatible library for accessing Gravatar resources.
Generating an avatar image URL does not require any additional, but if you need to use the Gravatar REST API you will need to make sure Ktor runs properly in your project.
Feel free to fork it and make improvements, I'll keep up as best I can.
...describe features...
Add the dependency to tyour library file:
[versions]
aughtone-gravatar = "${version}"
[libraries]
aughtone-gravatar = { module = "io.github.aughtone:gravatar", version.ref = "aughtone-gravatar" }Include the dependency in the module you want to use it with:
implementation(libs.aughtone.gravatar)Or if you are still old-school:
implementation("io.github.aughtone:gravatar:${version}")You can get a simple Gravatar url like this:
val avatarUrl: String = gravatarUrl(email = "johndoe@example.com", name = "John Doe")The name property will be used to generate an initials image if no Gravatar is found, so you get an output like the one with the initials, since that address is not registered with Gravatar:
Bugs can go into the issue tracker, but you are probably going to get faster support by creating a PR.