diff --git a/README.md b/README.md
index ec9da14..df0caac 100644
--- a/README.md
+++ b/README.md
@@ -1,6 +1,9 @@
android-simple-facebook
=======================
+#### Currently this lib was tested and works with graph api `v2.3` and below. In the future, I will make the needed changes to support latest changes on FB side. Currently, I don't have much time to maintain. PRs are welcomed.
+
+
Simple Facebook SDK for Android which wraps original [**Facebook SDK**](https://github.com/facebook/facebook-android-sdk).
This is a library project which makes the life much easier by coding less code for being able to login, publish feeds and open graph stories, invite friends and more.
diff --git a/build.gradle b/build.gradle
index 3d2f40d..53c1df0 100644
--- a/build.gradle
+++ b/build.gradle
@@ -5,7 +5,7 @@ buildscript {
jcenter()
}
dependencies {
- classpath 'com.android.tools.build:gradle:2.0.0'
+ classpath 'com.android.tools.build:gradle:2.3.1'
}
}
@@ -13,4 +13,5 @@ allprojects {
repositories {
jcenter()
}
+ tasks.withType(Javadoc).all { enabled = false }
}
diff --git a/gradle/wrapper/gradle-wrapper.properties b/gradle/wrapper/gradle-wrapper.properties
index 57c58f4..775f10d 100644
--- a/gradle/wrapper/gradle-wrapper.properties
+++ b/gradle/wrapper/gradle-wrapper.properties
@@ -1,7 +1,6 @@
-#Wed Apr 10 15:27:10 PDT 2013
+#Sat Apr 22 01:25:33 EDT 2017
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
-distributionUrl=https://services.gradle.org/distributions/gradle-2.10-all.zip
-
+distributionUrl=https\://services.gradle.org/distributions/gradle-3.3-all.zip
diff --git a/sample/build.gradle b/sample/build.gradle
index c8ae73d..f4f87f4 100644
--- a/sample/build.gradle
+++ b/sample/build.gradle
@@ -1,13 +1,13 @@
apply plugin: 'com.android.application'
android {
- compileSdkVersion 23
- buildToolsVersion "23.0.2"
+ compileSdkVersion 25
+ buildToolsVersion "25.0.2"
defaultConfig {
applicationId "com.sromku.simple.fb.example"
minSdkVersion 15
- targetSdkVersion 23
+ targetSdkVersion 25
versionCode 1
versionName "1.0"
}
@@ -30,6 +30,6 @@ allprojects {
dependencies {
compile project(':simple-fb')
// compile project(':facebook')
- // compile 'com.sromku:simple-fb:4.2.+'
- // compile 'com.facebook.android:facebook-android-sdk:4.11.+'
+ // compile 'com.sromku:simple-fb:4.0.+'
+ // compile 'com.facebook.android:facebook-android-sdk:4.6.+'
}
diff --git a/simple-fb/build.gradle b/simple-fb/build.gradle
index 55ab242..be328f1 100644
--- a/simple-fb/build.gradle
+++ b/simple-fb/build.gradle
@@ -1,12 +1,12 @@
apply plugin: 'com.android.library'
android {
- compileSdkVersion 23
- buildToolsVersion "23.0.2"
+ compileSdkVersion 25
+ buildToolsVersion "25.0.2"
defaultConfig {
minSdkVersion 15
- targetSdkVersion 23
+ targetSdkVersion 25
versionName project.VERSION_NAME
versionCode Integer.parseInt(project.VERSION_CODE)
consumerProguardFiles 'consumer-proguard-rules.pro', 'gson.pro', 'simple-fb.pro'
@@ -33,7 +33,7 @@ ext {
siteUrl = 'https://github.com/sromku/android-simple-facebook'
gitUrl = 'https://github.com/sromku/android-simple-facebook.git'
- libraryVersion = '4.2.0'
+ libraryVersion = '4.2.1'
developerId = 'sromku'
developerName = 'Roman Kushnarenko'
@@ -52,9 +52,9 @@ buildscript {
jcenter()
}
dependencies {
- classpath 'com.android.tools.build:gradle:2.0.0'
- classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.6'
- classpath 'com.github.dcendents:android-maven-gradle-plugin:1.3'
+ classpath 'com.android.tools.build:gradle:2.3.1'
+ classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.7'
+ classpath 'com.github.dcendents:android-maven-gradle-plugin:1.4'
}
}
@@ -65,8 +65,7 @@ allprojects {
}
dependencies {
- compile 'com.facebook.android:facebook-android-sdk:4.11.+'
- // compile project(':facebook')
- compile 'com.google.code.gson:gson:2.2.+'
+ compile 'com.facebook.android:facebook-android-sdk:4.22.0'
+ compile 'com.google.code.gson:gson:2.7'
}
diff --git a/simple-fb/src/main/java/com/sromku/simple/fb/SimpleFacebookConfiguration.java b/simple-fb/src/main/java/com/sromku/simple/fb/SimpleFacebookConfiguration.java
index 602c2f6..ece9b98 100644
--- a/simple-fb/src/main/java/com/sromku/simple/fb/SimpleFacebookConfiguration.java
+++ b/simple-fb/src/main/java/com/sromku/simple/fb/SimpleFacebookConfiguration.java
@@ -163,7 +163,7 @@ public static class Builder {
private boolean mAllAtOnce = false;
private boolean mUseAppsecretProof = false;
private String mAppSecret = null;
- private String mGraphVersion = ServerProtocol.getAPIVersion();
+ private String mGraphVersion = ServerProtocol.getDefaultAPIVersion();
public Builder() {
}
diff --git a/simple-fb/src/main/java/com/sromku/simple/fb/entities/Education.java b/simple-fb/src/main/java/com/sromku/simple/fb/entities/Education.java
index 1b9a416..8f76c8f 100644
--- a/simple-fb/src/main/java/com/sromku/simple/fb/entities/Education.java
+++ b/simple-fb/src/main/java/com/sromku/simple/fb/entities/Education.java
@@ -37,7 +37,7 @@ public class Education {
private String mType;
public String getSchool() {
- return mSchool.getName();
+ return mSchool == null ? null : mSchool.getName();
}
public String getDegree() {
@@ -45,7 +45,7 @@ public String getDegree() {
}
public String getYear() {
- return mYear.getName();
+ return mYear == null ? null : mYear.getName();
}
public List getConcentrations() {