May 19, 2014

Facebook SDK available from Maven repository

I don't know why Facebook still not published theirs SDK to Maven Central.
Well, nobody forbids us to deploy it to Sonatype repository!

UPDATE (05-Nov-2014): Eventually, Facebook guys deployed theirs lib to Maven Central! Congratulations!


dependencies {
    compile 'com.facebook.android:facebook-android-sdk:3.20.0'
}

If you want to include Facebook SDK for Android easily, just add few lines to your build.gradle file:

repositories {
    maven {
        url 'https://oss.sonatype.org/content/groups/public'
    }
}

dependencies {
    compile 'com.shamanland:facebook-android-sdk:3.15.0-SNAPSHOT'
}

So, now you can add Facebook SDK to Android project as regular gradle-dependency.

You can find sources of this assembly here. I hope some day Facebook guys will upload it to Maven Central.

Check for updates and feel free to remind me if I miss new version of Facebook SDK for Android.

No comments:

Post a Comment