All Projects → mente → Facebook Api Android Aar

mente / Facebook Api Android Aar

Facebook Android SDK library built with gradle in aar format for usage with android gradle build system

Programming Languages

groovy
2714 projects

DEPRECATED

Facebook published own SDK to maven. Using it is encouraged.

facebook-api-android-aar

Facebook Android SDK library built with gradle in aar format for usage with android gradle build system. Versions included: 3.0.2, 3.5.0, 3.5.2, 3.6.0, 3.7.0, 3.8.0, 3.14.1, 3.15.0, 3.16, 3.17.1, 3.19.0, 3.19.1, 3.20

How to use

Before you can get aar you should checkout facebook-android-sdk submodule. Overall build process including build is straightforward:

  $ git submodule update --init
  ...
  $ ./gradlew build
  ...

When build is finished aar file will be located in build/libs.

WARNING for >3.14 sdk users

Starting from 3.14 version facebook depends on bolts framework. Android gradle plugin does not resolve aar dependencies implicitly. You'll have to make it explicitly:

compile ('com.facebook:facebook-android-sdk:[email protected]') {
    transitive = true
}

Maven artifact

For a lazy people (such as I) there's a maven repository with already built facebook artifact located at http://mente.github.io/facebook-api-android-aar . build.gradle example:

buildscript {
    repositories {
        mavenCentral()
    }

    dependencies {
        classpath 'com.android.tools.build:gradle:+'
    }
}

repositories {
    mavenCentral()
    mavenLocal()
    maven {
        url "http://mente.github.io/facebook-api-android-aar"
    }
}

apply plugin: 'android'
dependencies {
    compile ('com.facebook:facebook-android-sdk:[email protected]') {
        transitive = true
    }
    //your other dependencies
}

android {
  //android build setup
}
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].