Skip to content

Commit

Permalink
Upgrade to facebook sdk 3.17.1
Browse files Browse the repository at this point in the history
  • Loading branch information
avianey committed Aug 10, 2014
1 parent 907b7e3 commit 84c95a7
Show file tree
Hide file tree
Showing 37 changed files with 941 additions and 431 deletions.
2 changes: 1 addition & 1 deletion facebook/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,5 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.facebook.android">
<application/>
<uses-sdk android:minSdkVersion="8" />
<uses-sdk android:minSdkVersion="9" />
</manifest>
2 changes: 1 addition & 1 deletion facebook/project.properties
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@

android.library=true
# Project target.
target=android-8
target=android-9
14 changes: 6 additions & 8 deletions facebook/src/main/java/com/facebook/AccessToken.java
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,7 @@
import java.io.InvalidObjectException;
import java.io.ObjectInputStream;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.Date;
import java.util.List;
import java.util.*;

/**
* This class represents an access token returned by the Facebook Login service, along with associated
Expand Down Expand Up @@ -240,9 +236,11 @@ static AccessToken createFromWebBundle(List<String> requestedPermissions, Bundle
static AccessToken createFromRefresh(AccessToken current, Bundle bundle) {
// Only tokens obtained via SSO support refresh. Token refresh returns the expiration date in
// seconds from the epoch rather than seconds from now.
assert (current.source == AccessTokenSource.FACEBOOK_APPLICATION_WEB ||
current.source == AccessTokenSource.FACEBOOK_APPLICATION_NATIVE ||
current.source == AccessTokenSource.FACEBOOK_APPLICATION_SERVICE);
if (current.source != AccessTokenSource.FACEBOOK_APPLICATION_WEB &&
current.source != AccessTokenSource.FACEBOOK_APPLICATION_NATIVE &&
current.source != AccessTokenSource.FACEBOOK_APPLICATION_SERVICE) {
throw new FacebookException("Invalid token source: " + current.source);
}

Date expires = getBundleLongAsDate(bundle, EXPIRES_IN_KEY, new Date(0));
String token = bundle.getString(ACCESS_TOKEN_KEY);
Expand Down
7 changes: 6 additions & 1 deletion facebook/src/main/java/com/facebook/AppEventsConstants.java
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,12 @@ public class AppEventsConstants {
/** Log this event when an app is being activated. */
public static final String EVENT_NAME_ACTIVATED_APP = "fb_mobile_activate_app";

public static final String EVENT_NAME_DEACTIVATED_APP = "fb_mobile_deactivate_app";

public static final String EVENT_NAME_SESSION_INTERRUPTIONS = "fb_mobile_app_interruptions";

public static final String EVENT_NAME_TIME_BETWEEN_SESSIONS = "fb_mobile_time_between_sessions";

/** Log this event when a user has completed registration with the app. */
public static final String EVENT_NAME_COMPLETED_REGISTRATION = "fb_mobile_complete_registration";

Expand Down Expand Up @@ -164,5 +170,4 @@ public class AppEventsConstants {

/** No-valued parameter value to be used with parameter keys that need a Yes/No value */
public static final String EVENT_PARAM_VALUE_NO = "0";

}
Loading

0 comments on commit 84c95a7

Please sign in to comment.