YesGraph SDK requires Android SDK 15 or later to compile and deployment.

Installing with Gradle

The YesGraph Android SDK is available on jCenter. In your build.gradle file, include the jCenter repository if it isn’t there already (newer versions of Android Studio include this by default):

repositories {
    jcenter()
  maven { url "https://maven.fabric.io/public" }

}

And then include the YesGraph SDK in your dependencies

dependencies {
    classpath "com.yesgraph.android:yesgraph:1.1.0"
  compile("com.twitter.sdk.android:twitter:1.10.0@aar") {
    transitive = true;
  }
}

Installing as a Static Library

Download the latest library release from GitHub.

  1. Compile and build the project
  2. Copy the ‘aar’ file from the [module_home_directory]/build/outputs/yesgraph-[debug/release].aar
  3. Put the ‘aar’ file into your ‘libs’ folder
  4. Add these lines to your build.gradle file:
repositories {
   flatDir {
       dirs "libs"
   }
}

dependencies {
   compile(name:"yesgraph-[debug|release]", ext:"aar")
}

You will also need to fill the manifest metadata for the Twitter and Facebook SDK.

<activity 
android:name="com.facebook.FacebookActivity"                     
android:configChanges="keyboard|keyboardHidden|screenLayout|screenSize|orientation"
android:theme="@android:style/Theme.Translucent.NoTitleBar"
android:label="@string/app_name" />

<meta-data android:name="com.facebook.sdk.ApplicationId" android:value="@string/facebook_app_id"/>

<meta-data android:name="io.fabric.ApiKey" android:value="<API_KEY_FOR_FABRIC>" />

Manual Installation

You can install YesGraph manually by copying all the classes and resources to your project as a separate module. Make sure that all the files and folders are added to your target.

If you have any problems, please contact us.