gravatar-android
gravatar-android copied to clipboard
For Maven/Gradle support
Hi!
Nice job! Nice lib!
Please, may you release it on Maven Central? Any doubts, feel free to ask me how to do. You can inspect my repositories if you wish.
Thank you!
@fernandodev any news about this topic?
@TroniPM no news about it. :disappointed: I'm using a small code snippet to get arround it (avoid import/compile another project into my own)
Try it if it's better for you:
MD5 Helper
import org.apache.commons.codec.binary.Hex;
import org.apache.commons.codec.digest.DigestUtils;
import java.security.MessageDigest;
/**
* Created by fernandomartinez on 6/19/15.
*/
public class MD5 {
public static String md5(String string) {
return new String(Hex.encodeHex(DigestUtils.md5(string)));
}
}
Gravatar Helper
public class Gravatar {
public static String gravatarUrl(String email) {
return "http://www.gravatar.com/avatar/" + MD5.md5(email);
}
}
To use DigestUtils.md5
you need to add compile 'commons-codec:commons-codec:1.4'
as project dependency
@fernandodev great trick. :+1:
Thanks @fernandodev