--------------------------------------------------------------------------------
/api_demos/src/main/res/values/config.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | 762806400417291
4 |
--------------------------------------------------------------------------------
/api_demos/src/main/res/values/dimens.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | 16dip
4 | 8dip
5 | 32dip
6 |
--------------------------------------------------------------------------------
/api_demos/src/main/res/values/strings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | ASN API Demos
5 |
6 |
7 |
--------------------------------------------------------------------------------
/api_demos/src/main/res/values/styles.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/build.gradle:
--------------------------------------------------------------------------------
1 | // Top-level build file where you can add configuration options common to all sub-projects/modules.
2 |
3 | buildscript {
4 | repositories {
5 | mavenCentral()
6 | }
7 |
8 | dependencies {
9 | classpath 'com.android.tools.build:gradle:0.12.+'
10 | }
11 | }
12 |
13 | allprojects {
14 | repositories {
15 | mavenCentral()
16 |
17 | maven {
18 | url "https://oss.sonatype.org/content/repositories/snapshots"
19 | }
20 | }
21 | }
22 |
--------------------------------------------------------------------------------
/gradle.properties:
--------------------------------------------------------------------------------
1 | # Project-wide Gradle settings.
2 |
3 | # IDE (e.g. Android Studio) users:
4 | # Settings specified in this file will override any Gradle settings
5 | # configured through the IDE.
6 |
7 | # For more details on how to configure your build environment visit
8 | # http://www.gradle.org/docs/current/userguide/build_environment.html
9 |
10 | # Specifies the JVM arguments used for the daemon process.
11 | # The setting is particularly useful for tweaking memory settings.
12 | # Default value: -Xmx10248m -XX:MaxPermSize=256m
13 | # org.gradle.jvmargs=-Xmx2048m -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8
14 |
15 | # When configured, Gradle will run in incubating parallel mode.
16 | # This option should only be used with decoupled projects. More details, visit
17 | # http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
18 | # org.gradle.parallel=true
--------------------------------------------------------------------------------
/gradle/wrapper/gradle-wrapper.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/antonkrasov/AndroidSocialNetworks/d729701bd00ce7a0f46115bb33df09d322d68e26/gradle/wrapper/gradle-wrapper.jar
--------------------------------------------------------------------------------
/gradle/wrapper/gradle-wrapper.properties:
--------------------------------------------------------------------------------
1 | #Wed Jun 25 11:11:34 EEST 2014
2 | distributionBase=GRADLE_USER_HOME
3 | distributionPath=wrapper/dists
4 | zipStoreBase=GRADLE_USER_HOME
5 | zipStorePath=wrapper/dists
6 | distributionUrl=http\://services.gradle.org/distributions/gradle-1.12-all.zip
7 |
--------------------------------------------------------------------------------
/gradlew.bat:
--------------------------------------------------------------------------------
1 | @if "%DEBUG%" == "" @echo off
2 | @rem ##########################################################################
3 | @rem
4 | @rem Gradle startup script for Windows
5 | @rem
6 | @rem ##########################################################################
7 |
8 | @rem Set local scope for the variables with windows NT shell
9 | if "%OS%"=="Windows_NT" setlocal
10 |
11 | @rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
12 | set DEFAULT_JVM_OPTS=
13 |
14 | set DIRNAME=%~dp0
15 | if "%DIRNAME%" == "" set DIRNAME=.
16 | set APP_BASE_NAME=%~n0
17 | set APP_HOME=%DIRNAME%
18 |
19 | @rem Find java.exe
20 | if defined JAVA_HOME goto findJavaFromJavaHome
21 |
22 | set JAVA_EXE=java.exe
23 | %JAVA_EXE% -version >NUL 2>&1
24 | if "%ERRORLEVEL%" == "0" goto init
25 |
26 | echo.
27 | echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
28 | echo.
29 | echo Please set the JAVA_HOME variable in your environment to match the
30 | echo location of your Java installation.
31 |
32 | goto fail
33 |
34 | :findJavaFromJavaHome
35 | set JAVA_HOME=%JAVA_HOME:"=%
36 | set JAVA_EXE=%JAVA_HOME%/bin/java.exe
37 |
38 | if exist "%JAVA_EXE%" goto init
39 |
40 | echo.
41 | echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
42 | echo.
43 | echo Please set the JAVA_HOME variable in your environment to match the
44 | echo location of your Java installation.
45 |
46 | goto fail
47 |
48 | :init
49 | @rem Get command-line arguments, handling Windowz variants
50 |
51 | if not "%OS%" == "Windows_NT" goto win9xME_args
52 | if "%@eval[2+2]" == "4" goto 4NT_args
53 |
54 | :win9xME_args
55 | @rem Slurp the command line arguments.
56 | set CMD_LINE_ARGS=
57 | set _SKIP=2
58 |
59 | :win9xME_args_slurp
60 | if "x%~1" == "x" goto execute
61 |
62 | set CMD_LINE_ARGS=%*
63 | goto execute
64 |
65 | :4NT_args
66 | @rem Get arguments from the 4NT Shell from JP Software
67 | set CMD_LINE_ARGS=%$
68 |
69 | :execute
70 | @rem Setup the command line
71 |
72 | set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
73 |
74 | @rem Execute Gradle
75 | "%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS%
76 |
77 | :end
78 | @rem End local scope for the variables with windows NT shell
79 | if "%ERRORLEVEL%"=="0" goto mainEnd
80 |
81 | :fail
82 | rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
83 | rem the _cmd.exe /c_ return code!
84 | if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1
85 | exit /b 1
86 |
87 | :mainEnd
88 | if "%OS%"=="Windows_NT" endlocal
89 |
90 | :omega
91 |
--------------------------------------------------------------------------------
/library/.gitignore:
--------------------------------------------------------------------------------
1 | /build
2 |
--------------------------------------------------------------------------------
/library/build.gradle:
--------------------------------------------------------------------------------
1 | apply plugin: 'android-library'
2 | apply plugin: 'maven'
3 | apply plugin: 'signing'
4 |
5 | version = "0.3.7"
6 | group = "com.github.androidsocialnetworks"
7 |
8 | android {
9 | packagingOptions {
10 | exclude 'jaxb.properties'
11 | }
12 |
13 | compileSdkVersion 19
14 | buildToolsVersion "19.1.0"
15 |
16 | defaultConfig {
17 | minSdkVersion 9
18 | targetSdkVersion 19
19 | versionCode 1
20 | versionName "1.0"
21 | }
22 |
23 | buildTypes {
24 | release {
25 | runProguard false
26 | proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
27 | }
28 | }
29 | }
30 |
31 | dependencies {
32 | compile 'com.android.support:support-v4:19.1.0@jar'
33 | compile 'org.twitter4j:twitter4j-core:4.0.1'
34 | compile 'com.google.android.gms:play-services:4.3.23@aar'
35 | compile 'com.github.androidsocialnetworks:facebook:3.14.2@aar'
36 | compile fileTree(dir: 'libs', include: ['*.jar'])
37 | }
38 |
39 | configurations {
40 | archives {
41 | extendsFrom configurations.default
42 | }
43 | }
44 |
45 | signing {
46 | required { has("release") && gradle.taskGraph.hasTask("uploadArchives") }
47 | sign configurations.archives
48 | }
49 |
50 | task sourcesJar(type: Jar) {
51 | classifier = 'sources'
52 | from android.sourceSets.main
53 | }
54 |
55 | task javadocJar(type: Jar) {
56 | classifier = 'javadoc'
57 | from 'build/docs/javadoc'
58 | }
59 |
60 | artifacts {
61 | archives sourcesJar
62 | archives javadocJar
63 | }
64 |
65 | uploadArchives {
66 | configuration = configurations.archives
67 | repositories.mavenDeployer {
68 | beforeDeployment { MavenDeployment deployment -> signing.signPom(deployment) }
69 |
70 | repository(url: sonatypeRepo) {
71 | authentication(userName: sonatypeUsername,
72 | password: sonatypePassword)
73 | }
74 |
75 | pom.project {
76 | name 'Android Social Networks Library'
77 | packaging 'aar'
78 | description 'Library for easy work with social networks on Android'
79 | url 'https://github.com/antonkrasov/AndroidSocialNetworks'
80 |
81 | scm {
82 | url 'scm:git@github.com:antonkrasov/AndroidSocialNetworks'
83 | connection 'scm:git@github.com:antonkrasov/AndroidSocialNetworks.git'
84 | developerConnection 'scm:git@github.com:antonkrasov/AndroidSocialNetworks.git'
85 | }
86 |
87 | licenses {
88 | license {
89 | name 'The MIT License (MIT)'
90 | url 'http://opensource.org/licenses/MIT'
91 | distribution 'repo'
92 | }
93 | }
94 |
95 | developers {
96 | developer {
97 | id 'anton.krasov'
98 | name 'Anton Krasov'
99 | email 'anton.krasov@gmail.com'
100 | }
101 | }
102 | }
103 | }
104 | }
--------------------------------------------------------------------------------
/library/libs/linkedin-j-android-1.0.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/antonkrasov/AndroidSocialNetworks/d729701bd00ce7a0f46115bb33df09d322d68e26/library/libs/linkedin-j-android-1.0.jar
--------------------------------------------------------------------------------
/library/libs/signpost-commonshttp4-1.2.1.1.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/antonkrasov/AndroidSocialNetworks/d729701bd00ce7a0f46115bb33df09d322d68e26/library/libs/signpost-commonshttp4-1.2.1.1.jar
--------------------------------------------------------------------------------
/library/libs/signpost-core-1.2.1.1.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/antonkrasov/AndroidSocialNetworks/d729701bd00ce7a0f46115bb33df09d322d68e26/library/libs/signpost-core-1.2.1.1.jar
--------------------------------------------------------------------------------
/library/proguard-rules.txt:
--------------------------------------------------------------------------------
1 | # Add project specific ProGuard rules here.
2 | # By default, the flags in this file are appended to flags specified
3 | # in /opt/android-sdk-macosx/tools/proguard/proguard-android.txt
4 | # You can edit the include path and order by changing the ProGuard
5 | # include property in project.properties.
6 | #
7 | # For more details, see
8 | # http://developer.android.com/guide/developing/tools/proguard.html
9 |
10 | # Add any project specific keep options here:
11 |
12 | # If your project uses WebView with JS, uncomment the following
13 | # and specify the fully qualified class name to the JavaScript interface
14 | # class:
15 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview {
16 | # public *;
17 | #}
18 |
19 | # http://stackoverflow.com/questions/14059888/android-proguard-keep-inner-class
20 | -keepattributes Exceptions, InnerClasses
21 | -keep class com.androidsocialnetworks.lib.** { *; }
22 |
23 | -dontwarn oauth.signpost.signature.**
24 | -dontwarn com.google.code.linkedinapi.**
--------------------------------------------------------------------------------
/library/src/main/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
14 |
15 |
19 |
20 |
21 |
22 |
23 |
--------------------------------------------------------------------------------
/library/src/main/java/com/androidsocialnetworks/lib/AccessToken.java:
--------------------------------------------------------------------------------
1 | package com.androidsocialnetworks.lib;
2 |
3 | public class AccessToken {
4 | public String token;
5 | public String secret;
6 |
7 | public AccessToken(String token, String secret) {
8 | this.token = token;
9 | this.secret = secret;
10 | }
11 | }
12 |
--------------------------------------------------------------------------------
/library/src/main/java/com/androidsocialnetworks/lib/Consts.java:
--------------------------------------------------------------------------------
1 | package com.androidsocialnetworks.lib;
2 |
3 | public class Consts {
4 |
5 | public static final String TAG = "AndroidSocialNetworks";
6 |
7 | }
8 |
--------------------------------------------------------------------------------
/library/src/main/java/com/androidsocialnetworks/lib/OAuthActivity.java:
--------------------------------------------------------------------------------
1 | package com.androidsocialnetworks.lib;
2 |
3 | import android.app.Activity;
4 | import android.content.Intent;
5 | import android.graphics.Bitmap;
6 | import android.net.Uri;
7 | import android.net.http.SslError;
8 | import android.os.Bundle;
9 | import android.text.TextUtils;
10 | import android.view.View;
11 | import android.webkit.SslErrorHandler;
12 | import android.webkit.WebView;
13 | import android.webkit.WebViewClient;
14 |
15 | public class OAuthActivity extends Activity {
16 |
17 | public static final String PARAM_URL_TO_LOAD = "OAuthActivity.PARAM_URL_TO_LOAD";
18 | public static final String PARAM_CALLBACK = "OAuthActivity.PARAM_CALLBACK";
19 |
20 | @Override
21 | protected void onCreate(Bundle savedInstanceState) {
22 | super.onCreate(savedInstanceState);
23 | setContentView(R.layout.asn_activity_oauth);
24 |
25 | final String paramUrlToLoad = getIntent().getStringExtra(PARAM_URL_TO_LOAD);
26 | final String paramCallback = getIntent().getStringExtra(PARAM_CALLBACK);
27 |
28 | if (TextUtils.isEmpty(paramUrlToLoad)) {
29 | throw new IllegalArgumentException("required PARAM_URL_TO_LOAD");
30 | }
31 |
32 | if (TextUtils.isEmpty(paramCallback)) {
33 | throw new IllegalArgumentException("required PARAM_CALLBACK");
34 | }
35 |
36 | WebView webView = (WebView) findViewById(R.id.web_view);
37 | final View progressContainer = findViewById(R.id.progress_container);
38 |
39 | webView.setWebViewClient(new WebViewClient() {
40 | @Override
41 | public void onPageStarted(WebView view, String url, Bitmap favicon) {
42 | super.onPageStarted(view, url, favicon);
43 |
44 | progressContainer.setVisibility(View.VISIBLE);
45 | }
46 |
47 | @Override
48 | public void onPageFinished(WebView view, String url) {
49 | super.onPageFinished(view, url);
50 |
51 | progressContainer.setVisibility(View.GONE);
52 | }
53 |
54 | @Override
55 | public boolean shouldOverrideUrlLoading(WebView view, String url) {
56 | if (url.contains(paramCallback)) {
57 | Intent intent = new Intent();
58 | intent.setData(Uri.parse(url));
59 | setResult(RESULT_OK, intent);
60 | finish();
61 | return true;
62 | }
63 |
64 | return super.shouldOverrideUrlLoading(view, url);
65 | }
66 |
67 | @Override
68 | public void onReceivedSslError(WebView view, SslErrorHandler handler, SslError error) {
69 | handler.proceed();
70 | }
71 |
72 | @Override
73 | public void onReceivedError(WebView view, int errorCode, String description, String failingUrl) {
74 | super.onReceivedError(view, errorCode, description, failingUrl);
75 |
76 | Intent intent = new Intent();
77 | intent.setAction(description);
78 | setResult(RESULT_CANCELED, intent);
79 | finish();
80 | }
81 | });
82 | webView.loadUrl(paramUrlToLoad);
83 | }
84 |
85 | }
86 |
--------------------------------------------------------------------------------
/library/src/main/java/com/androidsocialnetworks/lib/SocialNetworkAsyncTask.java:
--------------------------------------------------------------------------------
1 | package com.androidsocialnetworks.lib;
2 |
3 | import android.os.AsyncTask;
4 | import android.os.Bundle;
5 |
6 | public abstract class SocialNetworkAsyncTask extends AsyncTask {
7 |
8 | public static final String RESULT_ERROR = "SocialNetworkAsyncTask.RESULT_ERROR";
9 |
10 | @Override
11 | protected Bundle doInBackground(Bundle... params) {
12 | return null;
13 | }
14 | }
15 |
--------------------------------------------------------------------------------
/library/src/main/java/com/androidsocialnetworks/lib/SocialNetworkException.java:
--------------------------------------------------------------------------------
1 | package com.androidsocialnetworks.lib;
2 |
3 | public class SocialNetworkException extends RuntimeException {
4 | public SocialNetworkException(String detailMessage) {
5 | super(detailMessage);
6 | }
7 | }
--------------------------------------------------------------------------------
/library/src/main/java/com/androidsocialnetworks/lib/listener/OnCheckIsFriendCompleteListener.java:
--------------------------------------------------------------------------------
1 | package com.androidsocialnetworks.lib.listener;
2 |
3 | import com.androidsocialnetworks.lib.listener.base.SocialNetworkListener;
4 |
5 | public interface OnCheckIsFriendCompleteListener extends SocialNetworkListener {
6 | public void onCheckIsFriendComplete(int socialNetworkID, String userID, boolean isFriend);
7 | }
8 |
--------------------------------------------------------------------------------
/library/src/main/java/com/androidsocialnetworks/lib/listener/OnLoginCompleteListener.java:
--------------------------------------------------------------------------------
1 | package com.androidsocialnetworks.lib.listener;
2 |
3 | import com.androidsocialnetworks.lib.listener.base.SocialNetworkListener;
4 |
5 | public interface OnLoginCompleteListener extends SocialNetworkListener {
6 | public void onLoginSuccess(int socialNetworkID);
7 | }
8 |
--------------------------------------------------------------------------------
/library/src/main/java/com/androidsocialnetworks/lib/listener/OnPostingCompleteListener.java:
--------------------------------------------------------------------------------
1 | package com.androidsocialnetworks.lib.listener;
2 |
3 | import com.androidsocialnetworks.lib.listener.base.SocialNetworkListener;
4 |
5 | public interface OnPostingCompleteListener extends SocialNetworkListener {
6 | public void onPostSuccessfully(int socialNetworkID);
7 | }
8 |
--------------------------------------------------------------------------------
/library/src/main/java/com/androidsocialnetworks/lib/listener/OnRequestAddFriendCompleteListener.java:
--------------------------------------------------------------------------------
1 | package com.androidsocialnetworks.lib.listener;
2 |
3 | import com.androidsocialnetworks.lib.listener.base.SocialNetworkListener;
4 |
5 | public interface OnRequestAddFriendCompleteListener extends SocialNetworkListener {
6 | public void onRequestAddFriendComplete(int socialNetworkID, String userID);
7 | }
8 |
--------------------------------------------------------------------------------
/library/src/main/java/com/androidsocialnetworks/lib/listener/OnRequestRemoveFriendCompleteListener.java:
--------------------------------------------------------------------------------
1 | package com.androidsocialnetworks.lib.listener;
2 |
3 | import com.androidsocialnetworks.lib.listener.base.SocialNetworkListener;
4 |
5 | public interface OnRequestRemoveFriendCompleteListener extends SocialNetworkListener {
6 | public void onRequestRemoveFriendComplete(int socialNetworkID, String userID);
7 | }
8 |
--------------------------------------------------------------------------------
/library/src/main/java/com/androidsocialnetworks/lib/listener/OnRequestSocialPersonCompleteListener.java:
--------------------------------------------------------------------------------
1 | package com.androidsocialnetworks.lib.listener;
2 |
3 | import com.androidsocialnetworks.lib.SocialPerson;
4 | import com.androidsocialnetworks.lib.listener.base.SocialNetworkListener;
5 |
6 | public interface OnRequestSocialPersonCompleteListener extends SocialNetworkListener {
7 | public void onRequestSocialPersonSuccess(int socialNetworkID, SocialPerson socialPerson);
8 | }
9 |
--------------------------------------------------------------------------------
/library/src/main/java/com/androidsocialnetworks/lib/listener/base/SocialNetworkListener.java:
--------------------------------------------------------------------------------
1 | package com.androidsocialnetworks.lib.listener.base;
2 |
3 | public interface SocialNetworkListener {
4 | public void onError(int socialNetworkID, String requestID, String errorMessage, Object data);
5 | }
6 |
--------------------------------------------------------------------------------
/library/src/main/res/layout/asn_activity_oauth.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
10 |
11 |
16 |
17 |
24 |
25 |
28 |
29 |
30 |
31 |
--------------------------------------------------------------------------------
/library/src/main/res/values-v14/styles.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
--------------------------------------------------------------------------------
/library/src/main/res/values/styles.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
--------------------------------------------------------------------------------
/other/asn.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/antonkrasov/AndroidSocialNetworks/d729701bd00ce7a0f46115bb33df09d322d68e26/other/asn.png
--------------------------------------------------------------------------------
/other/asn.psd:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/antonkrasov/AndroidSocialNetworks/d729701bd00ce7a0f46115bb33df09d322d68e26/other/asn.psd
--------------------------------------------------------------------------------
/other/sn_icons/facebook.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/antonkrasov/AndroidSocialNetworks/d729701bd00ce7a0f46115bb33df09d322d68e26/other/sn_icons/facebook.png
--------------------------------------------------------------------------------
/other/sn_icons/google_plus.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/antonkrasov/AndroidSocialNetworks/d729701bd00ce7a0f46115bb33df09d322d68e26/other/sn_icons/google_plus.png
--------------------------------------------------------------------------------
/other/sn_icons/linkedin.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/antonkrasov/AndroidSocialNetworks/d729701bd00ce7a0f46115bb33df09d322d68e26/other/sn_icons/linkedin.png
--------------------------------------------------------------------------------
/other/sn_icons/twitter.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/antonkrasov/AndroidSocialNetworks/d729701bd00ce7a0f46115bb33df09d322d68e26/other/sn_icons/twitter.png
--------------------------------------------------------------------------------
/settings.gradle:
--------------------------------------------------------------------------------
1 | include ':third_party:facebook', ':api_demos', 'library'
2 |
--------------------------------------------------------------------------------
/third_party/facebook/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
2 |
17 |
18 |
21 |
22 |
23 |
24 |
25 |
--------------------------------------------------------------------------------
/third_party/facebook/build.gradle:
--------------------------------------------------------------------------------
1 | apply plugin: 'android-library'
2 | apply plugin: 'maven'
3 | apply plugin: 'signing'
4 |
5 | version = "3.14.2"
6 | group = "com.github.androidsocialnetworks"
7 |
8 | dependencies {
9 | compile 'com.android.support:support-v4:20.+'
10 | compile files('libs/bolts.jar')
11 | }
12 |
13 | android {
14 | compileSdkVersion 19
15 | buildToolsVersion "19.1.0"
16 |
17 | defaultConfig {
18 | minSdkVersion 9
19 | targetSdkVersion 19
20 | }
21 |
22 | sourceSets {
23 | main {
24 | manifest.srcFile 'AndroidManifest.xml'
25 | java.srcDirs = ['src']
26 | res.srcDirs = ['res']
27 | }
28 | }
29 | }
30 |
31 | configurations {
32 | archives {
33 | extendsFrom configurations.default
34 | }
35 | }
36 |
37 | signing {
38 | required { has("release") && gradle.taskGraph.hasTask("uploadArchives") }
39 | sign configurations.archives
40 | }
41 |
42 | uploadArchives {
43 | configuration = configurations.archives
44 | repositories.mavenDeployer {
45 | beforeDeployment { MavenDeployment deployment -> signing.signPom(deployment) }
46 |
47 | repository(url: sonatypeRepo) {
48 | authentication(userName: sonatypeUsername,
49 | password: sonatypePassword)
50 | }
51 |
52 | pom.project {
53 | name 'Android Social Networks - Facebook SDK'
54 | packaging 'aar'
55 | description 'Facebook SDK packaged as aar'
56 | url 'https://github.com/antonkrasov/AndroidSocialNetworks'
57 |
58 | scm {
59 | url 'scm:git@github.com:antonkrasov/AndroidSocialNetworks'
60 | connection 'scm:git@github.com:antonkrasov/AndroidSocialNetworks.git'
61 | developerConnection 'scm:git@github.com:antonkrasov/AndroidSocialNetworks.git'
62 | }
63 |
64 | licenses {
65 | license {
66 | name 'The MIT License (MIT)'
67 | url 'http://opensource.org/licenses/MIT'
68 | distribution 'repo'
69 | }
70 | }
71 |
72 | developers {
73 | developer {
74 | id 'anton.krasov'
75 | name 'Anton Krasov'
76 | email 'anton.krasov@gmail.com'
77 | }
78 | }
79 | }
80 | }
81 | }
--------------------------------------------------------------------------------
/third_party/facebook/libs/android-support-v4.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/antonkrasov/AndroidSocialNetworks/d729701bd00ce7a0f46115bb33df09d322d68e26/third_party/facebook/libs/android-support-v4.jar
--------------------------------------------------------------------------------
/third_party/facebook/libs/bolts.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/antonkrasov/AndroidSocialNetworks/d729701bd00ce7a0f46115bb33df09d322d68e26/third_party/facebook/libs/bolts.jar
--------------------------------------------------------------------------------
/third_party/facebook/project.properties:
--------------------------------------------------------------------------------
1 | # This file is automatically generated by Android Tools.
2 | # Do not modify this file -- YOUR CHANGES WILL BE ERASED!
3 | #
4 | # This file must be checked in Version Control Systems.
5 | #
6 | # To customize properties used by the Ant build system edit
7 | # "ant.properties", and override values to adapt the script to your
8 | # project structure.
9 | #
10 | # To enable ProGuard to shrink and obfuscate your code, uncomment this (available properties: sdk.dir, user.home):
11 | #proguard.config=${sdk.dir}/tools/proguard/proguard-android.txt:proguard-project.txt
12 |
13 | android.library=true
14 | # Project target.
15 | target=android-8
16 |
--------------------------------------------------------------------------------
/third_party/facebook/res/drawable-hdpi/com_facebook_button_blue_focused.9.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/antonkrasov/AndroidSocialNetworks/d729701bd00ce7a0f46115bb33df09d322d68e26/third_party/facebook/res/drawable-hdpi/com_facebook_button_blue_focused.9.png
--------------------------------------------------------------------------------
/third_party/facebook/res/drawable-hdpi/com_facebook_button_blue_normal.9.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/antonkrasov/AndroidSocialNetworks/d729701bd00ce7a0f46115bb33df09d322d68e26/third_party/facebook/res/drawable-hdpi/com_facebook_button_blue_normal.9.png
--------------------------------------------------------------------------------
/third_party/facebook/res/drawable-hdpi/com_facebook_button_blue_pressed.9.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/antonkrasov/AndroidSocialNetworks/d729701bd00ce7a0f46115bb33df09d322d68e26/third_party/facebook/res/drawable-hdpi/com_facebook_button_blue_pressed.9.png
--------------------------------------------------------------------------------
/third_party/facebook/res/drawable-hdpi/com_facebook_button_grey_focused.9.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/antonkrasov/AndroidSocialNetworks/d729701bd00ce7a0f46115bb33df09d322d68e26/third_party/facebook/res/drawable-hdpi/com_facebook_button_grey_focused.9.png
--------------------------------------------------------------------------------
/third_party/facebook/res/drawable-hdpi/com_facebook_button_grey_normal.9.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/antonkrasov/AndroidSocialNetworks/d729701bd00ce7a0f46115bb33df09d322d68e26/third_party/facebook/res/drawable-hdpi/com_facebook_button_grey_normal.9.png
--------------------------------------------------------------------------------
/third_party/facebook/res/drawable-hdpi/com_facebook_button_grey_pressed.9.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/antonkrasov/AndroidSocialNetworks/d729701bd00ce7a0f46115bb33df09d322d68e26/third_party/facebook/res/drawable-hdpi/com_facebook_button_grey_pressed.9.png
--------------------------------------------------------------------------------
/third_party/facebook/res/drawable-hdpi/com_facebook_close.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/antonkrasov/AndroidSocialNetworks/d729701bd00ce7a0f46115bb33df09d322d68e26/third_party/facebook/res/drawable-hdpi/com_facebook_close.png
--------------------------------------------------------------------------------
/third_party/facebook/res/drawable-hdpi/com_facebook_inverse_icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/antonkrasov/AndroidSocialNetworks/d729701bd00ce7a0f46115bb33df09d322d68e26/third_party/facebook/res/drawable-hdpi/com_facebook_inverse_icon.png
--------------------------------------------------------------------------------
/third_party/facebook/res/drawable-hdpi/com_facebook_logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/antonkrasov/AndroidSocialNetworks/d729701bd00ce7a0f46115bb33df09d322d68e26/third_party/facebook/res/drawable-hdpi/com_facebook_logo.png
--------------------------------------------------------------------------------
/third_party/facebook/res/drawable-hdpi/com_facebook_picker_magnifier.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/antonkrasov/AndroidSocialNetworks/d729701bd00ce7a0f46115bb33df09d322d68e26/third_party/facebook/res/drawable-hdpi/com_facebook_picker_magnifier.png
--------------------------------------------------------------------------------
/third_party/facebook/res/drawable-hdpi/com_facebook_tooltip_black_background.9.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/antonkrasov/AndroidSocialNetworks/d729701bd00ce7a0f46115bb33df09d322d68e26/third_party/facebook/res/drawable-hdpi/com_facebook_tooltip_black_background.9.png
--------------------------------------------------------------------------------
/third_party/facebook/res/drawable-hdpi/com_facebook_tooltip_black_bottomnub.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/antonkrasov/AndroidSocialNetworks/d729701bd00ce7a0f46115bb33df09d322d68e26/third_party/facebook/res/drawable-hdpi/com_facebook_tooltip_black_bottomnub.png
--------------------------------------------------------------------------------
/third_party/facebook/res/drawable-hdpi/com_facebook_tooltip_black_topnub.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/antonkrasov/AndroidSocialNetworks/d729701bd00ce7a0f46115bb33df09d322d68e26/third_party/facebook/res/drawable-hdpi/com_facebook_tooltip_black_topnub.png
--------------------------------------------------------------------------------
/third_party/facebook/res/drawable-hdpi/com_facebook_tooltip_black_xout.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/antonkrasov/AndroidSocialNetworks/d729701bd00ce7a0f46115bb33df09d322d68e26/third_party/facebook/res/drawable-hdpi/com_facebook_tooltip_black_xout.png
--------------------------------------------------------------------------------
/third_party/facebook/res/drawable-hdpi/com_facebook_tooltip_blue_background.9.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/antonkrasov/AndroidSocialNetworks/d729701bd00ce7a0f46115bb33df09d322d68e26/third_party/facebook/res/drawable-hdpi/com_facebook_tooltip_blue_background.9.png
--------------------------------------------------------------------------------
/third_party/facebook/res/drawable-hdpi/com_facebook_tooltip_blue_bottomnub.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/antonkrasov/AndroidSocialNetworks/d729701bd00ce7a0f46115bb33df09d322d68e26/third_party/facebook/res/drawable-hdpi/com_facebook_tooltip_blue_bottomnub.png
--------------------------------------------------------------------------------
/third_party/facebook/res/drawable-hdpi/com_facebook_tooltip_blue_topnub.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/antonkrasov/AndroidSocialNetworks/d729701bd00ce7a0f46115bb33df09d322d68e26/third_party/facebook/res/drawable-hdpi/com_facebook_tooltip_blue_topnub.png
--------------------------------------------------------------------------------
/third_party/facebook/res/drawable-hdpi/com_facebook_tooltip_blue_xout.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/antonkrasov/AndroidSocialNetworks/d729701bd00ce7a0f46115bb33df09d322d68e26/third_party/facebook/res/drawable-hdpi/com_facebook_tooltip_blue_xout.png
--------------------------------------------------------------------------------
/third_party/facebook/res/drawable-ldpi/com_facebook_close.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/antonkrasov/AndroidSocialNetworks/d729701bd00ce7a0f46115bb33df09d322d68e26/third_party/facebook/res/drawable-ldpi/com_facebook_close.png
--------------------------------------------------------------------------------
/third_party/facebook/res/drawable-mdpi/com_facebook_button_blue_focused.9.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/antonkrasov/AndroidSocialNetworks/d729701bd00ce7a0f46115bb33df09d322d68e26/third_party/facebook/res/drawable-mdpi/com_facebook_button_blue_focused.9.png
--------------------------------------------------------------------------------
/third_party/facebook/res/drawable-mdpi/com_facebook_button_blue_normal.9.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/antonkrasov/AndroidSocialNetworks/d729701bd00ce7a0f46115bb33df09d322d68e26/third_party/facebook/res/drawable-mdpi/com_facebook_button_blue_normal.9.png
--------------------------------------------------------------------------------
/third_party/facebook/res/drawable-mdpi/com_facebook_button_blue_pressed.9.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/antonkrasov/AndroidSocialNetworks/d729701bd00ce7a0f46115bb33df09d322d68e26/third_party/facebook/res/drawable-mdpi/com_facebook_button_blue_pressed.9.png
--------------------------------------------------------------------------------
/third_party/facebook/res/drawable-mdpi/com_facebook_inverse_icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/antonkrasov/AndroidSocialNetworks/d729701bd00ce7a0f46115bb33df09d322d68e26/third_party/facebook/res/drawable-mdpi/com_facebook_inverse_icon.png
--------------------------------------------------------------------------------
/third_party/facebook/res/drawable-mdpi/com_facebook_picker_magnifier.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/antonkrasov/AndroidSocialNetworks/d729701bd00ce7a0f46115bb33df09d322d68e26/third_party/facebook/res/drawable-mdpi/com_facebook_picker_magnifier.png
--------------------------------------------------------------------------------
/third_party/facebook/res/drawable-mdpi/com_facebook_tooltip_black_background.9.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/antonkrasov/AndroidSocialNetworks/d729701bd00ce7a0f46115bb33df09d322d68e26/third_party/facebook/res/drawable-mdpi/com_facebook_tooltip_black_background.9.png
--------------------------------------------------------------------------------
/third_party/facebook/res/drawable-mdpi/com_facebook_tooltip_black_bottomnub.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/antonkrasov/AndroidSocialNetworks/d729701bd00ce7a0f46115bb33df09d322d68e26/third_party/facebook/res/drawable-mdpi/com_facebook_tooltip_black_bottomnub.png
--------------------------------------------------------------------------------
/third_party/facebook/res/drawable-mdpi/com_facebook_tooltip_black_topnub.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/antonkrasov/AndroidSocialNetworks/d729701bd00ce7a0f46115bb33df09d322d68e26/third_party/facebook/res/drawable-mdpi/com_facebook_tooltip_black_topnub.png
--------------------------------------------------------------------------------
/third_party/facebook/res/drawable-mdpi/com_facebook_tooltip_black_xout.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/antonkrasov/AndroidSocialNetworks/d729701bd00ce7a0f46115bb33df09d322d68e26/third_party/facebook/res/drawable-mdpi/com_facebook_tooltip_black_xout.png
--------------------------------------------------------------------------------
/third_party/facebook/res/drawable-mdpi/com_facebook_tooltip_blue_background.9.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/antonkrasov/AndroidSocialNetworks/d729701bd00ce7a0f46115bb33df09d322d68e26/third_party/facebook/res/drawable-mdpi/com_facebook_tooltip_blue_background.9.png
--------------------------------------------------------------------------------
/third_party/facebook/res/drawable-mdpi/com_facebook_tooltip_blue_bottomnub.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/antonkrasov/AndroidSocialNetworks/d729701bd00ce7a0f46115bb33df09d322d68e26/third_party/facebook/res/drawable-mdpi/com_facebook_tooltip_blue_bottomnub.png
--------------------------------------------------------------------------------
/third_party/facebook/res/drawable-mdpi/com_facebook_tooltip_blue_topnub.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/antonkrasov/AndroidSocialNetworks/d729701bd00ce7a0f46115bb33df09d322d68e26/third_party/facebook/res/drawable-mdpi/com_facebook_tooltip_blue_topnub.png
--------------------------------------------------------------------------------
/third_party/facebook/res/drawable-mdpi/com_facebook_tooltip_blue_xout.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/antonkrasov/AndroidSocialNetworks/d729701bd00ce7a0f46115bb33df09d322d68e26/third_party/facebook/res/drawable-mdpi/com_facebook_tooltip_blue_xout.png
--------------------------------------------------------------------------------
/third_party/facebook/res/drawable-xhdpi/com_facebook_button_blue_focused.9.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/antonkrasov/AndroidSocialNetworks/d729701bd00ce7a0f46115bb33df09d322d68e26/third_party/facebook/res/drawable-xhdpi/com_facebook_button_blue_focused.9.png
--------------------------------------------------------------------------------
/third_party/facebook/res/drawable-xhdpi/com_facebook_button_blue_normal.9.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/antonkrasov/AndroidSocialNetworks/d729701bd00ce7a0f46115bb33df09d322d68e26/third_party/facebook/res/drawable-xhdpi/com_facebook_button_blue_normal.9.png
--------------------------------------------------------------------------------
/third_party/facebook/res/drawable-xhdpi/com_facebook_button_blue_pressed.9.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/antonkrasov/AndroidSocialNetworks/d729701bd00ce7a0f46115bb33df09d322d68e26/third_party/facebook/res/drawable-xhdpi/com_facebook_button_blue_pressed.9.png
--------------------------------------------------------------------------------
/third_party/facebook/res/drawable-xhdpi/com_facebook_button_grey_focused.9.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/antonkrasov/AndroidSocialNetworks/d729701bd00ce7a0f46115bb33df09d322d68e26/third_party/facebook/res/drawable-xhdpi/com_facebook_button_grey_focused.9.png
--------------------------------------------------------------------------------
/third_party/facebook/res/drawable-xhdpi/com_facebook_button_grey_normal.9.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/antonkrasov/AndroidSocialNetworks/d729701bd00ce7a0f46115bb33df09d322d68e26/third_party/facebook/res/drawable-xhdpi/com_facebook_button_grey_normal.9.png
--------------------------------------------------------------------------------
/third_party/facebook/res/drawable-xhdpi/com_facebook_button_grey_pressed.9.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/antonkrasov/AndroidSocialNetworks/d729701bd00ce7a0f46115bb33df09d322d68e26/third_party/facebook/res/drawable-xhdpi/com_facebook_button_grey_pressed.9.png
--------------------------------------------------------------------------------
/third_party/facebook/res/drawable-xhdpi/com_facebook_close.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/antonkrasov/AndroidSocialNetworks/d729701bd00ce7a0f46115bb33df09d322d68e26/third_party/facebook/res/drawable-xhdpi/com_facebook_close.png
--------------------------------------------------------------------------------
/third_party/facebook/res/drawable-xhdpi/com_facebook_inverse_icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/antonkrasov/AndroidSocialNetworks/d729701bd00ce7a0f46115bb33df09d322d68e26/third_party/facebook/res/drawable-xhdpi/com_facebook_inverse_icon.png
--------------------------------------------------------------------------------
/third_party/facebook/res/drawable-xhdpi/com_facebook_logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/antonkrasov/AndroidSocialNetworks/d729701bd00ce7a0f46115bb33df09d322d68e26/third_party/facebook/res/drawable-xhdpi/com_facebook_logo.png
--------------------------------------------------------------------------------
/third_party/facebook/res/drawable-xhdpi/com_facebook_picker_magnifier.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/antonkrasov/AndroidSocialNetworks/d729701bd00ce7a0f46115bb33df09d322d68e26/third_party/facebook/res/drawable-xhdpi/com_facebook_picker_magnifier.png
--------------------------------------------------------------------------------
/third_party/facebook/res/drawable-xhdpi/com_facebook_tooltip_black_background.9.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/antonkrasov/AndroidSocialNetworks/d729701bd00ce7a0f46115bb33df09d322d68e26/third_party/facebook/res/drawable-xhdpi/com_facebook_tooltip_black_background.9.png
--------------------------------------------------------------------------------
/third_party/facebook/res/drawable-xhdpi/com_facebook_tooltip_black_bottomnub.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/antonkrasov/AndroidSocialNetworks/d729701bd00ce7a0f46115bb33df09d322d68e26/third_party/facebook/res/drawable-xhdpi/com_facebook_tooltip_black_bottomnub.png
--------------------------------------------------------------------------------
/third_party/facebook/res/drawable-xhdpi/com_facebook_tooltip_black_topnub.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/antonkrasov/AndroidSocialNetworks/d729701bd00ce7a0f46115bb33df09d322d68e26/third_party/facebook/res/drawable-xhdpi/com_facebook_tooltip_black_topnub.png
--------------------------------------------------------------------------------
/third_party/facebook/res/drawable-xhdpi/com_facebook_tooltip_black_xout.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/antonkrasov/AndroidSocialNetworks/d729701bd00ce7a0f46115bb33df09d322d68e26/third_party/facebook/res/drawable-xhdpi/com_facebook_tooltip_black_xout.png
--------------------------------------------------------------------------------
/third_party/facebook/res/drawable-xhdpi/com_facebook_tooltip_blue_background.9.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/antonkrasov/AndroidSocialNetworks/d729701bd00ce7a0f46115bb33df09d322d68e26/third_party/facebook/res/drawable-xhdpi/com_facebook_tooltip_blue_background.9.png
--------------------------------------------------------------------------------
/third_party/facebook/res/drawable-xhdpi/com_facebook_tooltip_blue_bottomnub.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/antonkrasov/AndroidSocialNetworks/d729701bd00ce7a0f46115bb33df09d322d68e26/third_party/facebook/res/drawable-xhdpi/com_facebook_tooltip_blue_bottomnub.png
--------------------------------------------------------------------------------
/third_party/facebook/res/drawable-xhdpi/com_facebook_tooltip_blue_topnub.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/antonkrasov/AndroidSocialNetworks/d729701bd00ce7a0f46115bb33df09d322d68e26/third_party/facebook/res/drawable-xhdpi/com_facebook_tooltip_blue_topnub.png
--------------------------------------------------------------------------------
/third_party/facebook/res/drawable-xhdpi/com_facebook_tooltip_blue_xout.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/antonkrasov/AndroidSocialNetworks/d729701bd00ce7a0f46115bb33df09d322d68e26/third_party/facebook/res/drawable-xhdpi/com_facebook_tooltip_blue_xout.png
--------------------------------------------------------------------------------
/third_party/facebook/res/drawable/com_facebook_button_blue.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
9 |
14 |
18 |
23 |
24 |
25 |
--------------------------------------------------------------------------------
/third_party/facebook/res/drawable/com_facebook_button_blue_focused.9.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/antonkrasov/AndroidSocialNetworks/d729701bd00ce7a0f46115bb33df09d322d68e26/third_party/facebook/res/drawable/com_facebook_button_blue_focused.9.png
--------------------------------------------------------------------------------
/third_party/facebook/res/drawable/com_facebook_button_blue_normal.9.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/antonkrasov/AndroidSocialNetworks/d729701bd00ce7a0f46115bb33df09d322d68e26/third_party/facebook/res/drawable/com_facebook_button_blue_normal.9.png
--------------------------------------------------------------------------------
/third_party/facebook/res/drawable/com_facebook_button_blue_pressed.9.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/antonkrasov/AndroidSocialNetworks/d729701bd00ce7a0f46115bb33df09d322d68e26/third_party/facebook/res/drawable/com_facebook_button_blue_pressed.9.png
--------------------------------------------------------------------------------
/third_party/facebook/res/drawable/com_facebook_button_check.xml:
--------------------------------------------------------------------------------
1 |
2 |
17 |
18 |
19 |
20 |
21 |
--------------------------------------------------------------------------------
/third_party/facebook/res/drawable/com_facebook_button_check_off.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/antonkrasov/AndroidSocialNetworks/d729701bd00ce7a0f46115bb33df09d322d68e26/third_party/facebook/res/drawable/com_facebook_button_check_off.png
--------------------------------------------------------------------------------
/third_party/facebook/res/drawable/com_facebook_button_check_on.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/antonkrasov/AndroidSocialNetworks/d729701bd00ce7a0f46115bb33df09d322d68e26/third_party/facebook/res/drawable/com_facebook_button_check_on.png
--------------------------------------------------------------------------------
/third_party/facebook/res/drawable/com_facebook_button_grey_focused.9.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/antonkrasov/AndroidSocialNetworks/d729701bd00ce7a0f46115bb33df09d322d68e26/third_party/facebook/res/drawable/com_facebook_button_grey_focused.9.png
--------------------------------------------------------------------------------
/third_party/facebook/res/drawable/com_facebook_button_grey_normal.9.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/antonkrasov/AndroidSocialNetworks/d729701bd00ce7a0f46115bb33df09d322d68e26/third_party/facebook/res/drawable/com_facebook_button_grey_normal.9.png
--------------------------------------------------------------------------------
/third_party/facebook/res/drawable/com_facebook_button_grey_pressed.9.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/antonkrasov/AndroidSocialNetworks/d729701bd00ce7a0f46115bb33df09d322d68e26/third_party/facebook/res/drawable/com_facebook_button_grey_pressed.9.png
--------------------------------------------------------------------------------
/third_party/facebook/res/drawable/com_facebook_close.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/antonkrasov/AndroidSocialNetworks/d729701bd00ce7a0f46115bb33df09d322d68e26/third_party/facebook/res/drawable/com_facebook_close.png
--------------------------------------------------------------------------------
/third_party/facebook/res/drawable/com_facebook_inverse_icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/antonkrasov/AndroidSocialNetworks/d729701bd00ce7a0f46115bb33df09d322d68e26/third_party/facebook/res/drawable/com_facebook_inverse_icon.png
--------------------------------------------------------------------------------
/third_party/facebook/res/drawable/com_facebook_list_divider.9.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/antonkrasov/AndroidSocialNetworks/d729701bd00ce7a0f46115bb33df09d322d68e26/third_party/facebook/res/drawable/com_facebook_list_divider.9.png
--------------------------------------------------------------------------------
/third_party/facebook/res/drawable/com_facebook_list_section_header_background.9.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/antonkrasov/AndroidSocialNetworks/d729701bd00ce7a0f46115bb33df09d322d68e26/third_party/facebook/res/drawable/com_facebook_list_section_header_background.9.png
--------------------------------------------------------------------------------
/third_party/facebook/res/drawable/com_facebook_loginbutton_silver.xml:
--------------------------------------------------------------------------------
1 |
2 |
17 |
18 |
20 |
22 |
23 |
24 |
--------------------------------------------------------------------------------
/third_party/facebook/res/drawable/com_facebook_logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/antonkrasov/AndroidSocialNetworks/d729701bd00ce7a0f46115bb33df09d322d68e26/third_party/facebook/res/drawable/com_facebook_logo.png
--------------------------------------------------------------------------------
/third_party/facebook/res/drawable/com_facebook_picker_item_background.xml:
--------------------------------------------------------------------------------
1 |
2 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
--------------------------------------------------------------------------------
/third_party/facebook/res/drawable/com_facebook_picker_list_focused.9.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/antonkrasov/AndroidSocialNetworks/d729701bd00ce7a0f46115bb33df09d322d68e26/third_party/facebook/res/drawable/com_facebook_picker_list_focused.9.png
--------------------------------------------------------------------------------
/third_party/facebook/res/drawable/com_facebook_picker_list_longpressed.9.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/antonkrasov/AndroidSocialNetworks/d729701bd00ce7a0f46115bb33df09d322d68e26/third_party/facebook/res/drawable/com_facebook_picker_list_longpressed.9.png
--------------------------------------------------------------------------------
/third_party/facebook/res/drawable/com_facebook_picker_list_pressed.9.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/antonkrasov/AndroidSocialNetworks/d729701bd00ce7a0f46115bb33df09d322d68e26/third_party/facebook/res/drawable/com_facebook_picker_list_pressed.9.png
--------------------------------------------------------------------------------
/third_party/facebook/res/drawable/com_facebook_picker_list_selector.xml:
--------------------------------------------------------------------------------
1 |
2 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
--------------------------------------------------------------------------------
/third_party/facebook/res/drawable/com_facebook_picker_list_selector_background_transition.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
17 |
18 |
19 |
20 |
21 |
--------------------------------------------------------------------------------
/third_party/facebook/res/drawable/com_facebook_picker_list_selector_disabled.9.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/antonkrasov/AndroidSocialNetworks/d729701bd00ce7a0f46115bb33df09d322d68e26/third_party/facebook/res/drawable/com_facebook_picker_list_selector_disabled.9.png
--------------------------------------------------------------------------------
/third_party/facebook/res/drawable/com_facebook_picker_top_button.xml:
--------------------------------------------------------------------------------
1 |
2 |
17 |
18 |
22 |
23 |
--------------------------------------------------------------------------------
/third_party/facebook/res/drawable/com_facebook_place_default_icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/antonkrasov/AndroidSocialNetworks/d729701bd00ce7a0f46115bb33df09d322d68e26/third_party/facebook/res/drawable/com_facebook_place_default_icon.png
--------------------------------------------------------------------------------
/third_party/facebook/res/drawable/com_facebook_profile_default_icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/antonkrasov/AndroidSocialNetworks/d729701bd00ce7a0f46115bb33df09d322d68e26/third_party/facebook/res/drawable/com_facebook_profile_default_icon.png
--------------------------------------------------------------------------------
/third_party/facebook/res/drawable/com_facebook_profile_picture_blank_portrait.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/antonkrasov/AndroidSocialNetworks/d729701bd00ce7a0f46115bb33df09d322d68e26/third_party/facebook/res/drawable/com_facebook_profile_picture_blank_portrait.png
--------------------------------------------------------------------------------
/third_party/facebook/res/drawable/com_facebook_profile_picture_blank_square.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/antonkrasov/AndroidSocialNetworks/d729701bd00ce7a0f46115bb33df09d322d68e26/third_party/facebook/res/drawable/com_facebook_profile_picture_blank_square.png
--------------------------------------------------------------------------------
/third_party/facebook/res/drawable/com_facebook_top_background.xml:
--------------------------------------------------------------------------------
1 |
2 |
17 |
18 |
22 |
23 |
--------------------------------------------------------------------------------
/third_party/facebook/res/drawable/com_facebook_top_button.xml:
--------------------------------------------------------------------------------
1 |
2 |
17 |
18 |
19 |
21 |
23 |
25 |
27 |
28 |
--------------------------------------------------------------------------------
/third_party/facebook/res/drawable/com_facebook_usersettingsfragment_background_gradient.xml:
--------------------------------------------------------------------------------
1 |
2 |
17 |
18 |
23 |
24 |
--------------------------------------------------------------------------------
/third_party/facebook/res/layout/com_facebook_friendpickerfragment.xml:
--------------------------------------------------------------------------------
1 |
2 |
17 |
18 |
22 |
23 |
24 |
25 |
35 |
36 |
44 |
45 |
--------------------------------------------------------------------------------
/third_party/facebook/res/layout/com_facebook_login_activity_layout.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
6 |
7 |
15 |
16 |
--------------------------------------------------------------------------------
/third_party/facebook/res/layout/com_facebook_picker_activity_circle_row.xml:
--------------------------------------------------------------------------------
1 |
2 |
17 |
18 |
23 |
32 |
33 |
--------------------------------------------------------------------------------
/third_party/facebook/res/layout/com_facebook_picker_checkbox.xml:
--------------------------------------------------------------------------------
1 |
2 |
17 |
18 |
26 |
--------------------------------------------------------------------------------
/third_party/facebook/res/layout/com_facebook_picker_image.xml:
--------------------------------------------------------------------------------
1 |
2 |
17 |
18 |
25 |
--------------------------------------------------------------------------------
/third_party/facebook/res/layout/com_facebook_picker_list_row.xml:
--------------------------------------------------------------------------------
1 |
2 |
17 |
18 |
23 |
29 |
41 |
48 |
49 |
--------------------------------------------------------------------------------
/third_party/facebook/res/layout/com_facebook_picker_list_section_header.xml:
--------------------------------------------------------------------------------
1 |
2 |
17 |
18 |
35 |
--------------------------------------------------------------------------------
/third_party/facebook/res/layout/com_facebook_picker_search_box.xml:
--------------------------------------------------------------------------------
1 |
2 |
17 |
18 |
23 |
24 |
29 |
30 |
--------------------------------------------------------------------------------
/third_party/facebook/res/layout/com_facebook_picker_title_bar.xml:
--------------------------------------------------------------------------------
1 |
2 |
17 |
18 |
24 |
40 |
46 |
63 |
64 |
--------------------------------------------------------------------------------
/third_party/facebook/res/layout/com_facebook_picker_title_bar_stub.xml:
--------------------------------------------------------------------------------
1 |
2 |
17 |
18 |
19 |
24 |
25 |
26 |
--------------------------------------------------------------------------------
/third_party/facebook/res/layout/com_facebook_placepickerfragment.xml:
--------------------------------------------------------------------------------
1 |
2 |
17 |
18 |
24 |
25 |
26 |
27 |
38 |
39 |
47 |
48 |
--------------------------------------------------------------------------------
/third_party/facebook/res/layout/com_facebook_search_bar_layout.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
15 |
31 |
--------------------------------------------------------------------------------
/third_party/facebook/res/layout/com_facebook_tooltip_bubble.xml:
--------------------------------------------------------------------------------
1 |
2 |
8 |
9 |
16 |
17 |
26 |
27 |
37 |
38 |
39 |
48 |
49 |
59 |
60 |
--------------------------------------------------------------------------------
/third_party/facebook/res/layout/com_facebook_usersettingsfragment.xml:
--------------------------------------------------------------------------------
1 |
2 |
17 |
18 |
24 |
28 |
29 |
37 |
38 |
47 |
48 |
57 |
58 |
59 |
60 |
--------------------------------------------------------------------------------
/third_party/facebook/res/values-es/strings.xml:
--------------------------------------------------------------------------------
1 |
2 |
17 |
18 |
19 | Aceptar
20 | Cerrar sesión
21 | Iniciar sesión con Facebook
22 | Sesión iniciada como: %1$s
23 | Sesión iniciada con Facebook
24 | Cerrar sesión
25 | Cancelar
26 | Logo de Facebook
27 | Iniciar sesión…
28 | Sesión iniciada
29 | No has iniciado sesión
30 | %1$s • %2$,d estuvieron aquí
31 | %1$s
32 | es:%1$,d estuvieron aquí
33 | Aceptar
34 | Elige Amigos
35 | Cercano
36 | Cargando
37 | Error de AndroidManifest
38 | WebView inicio de sesión requiere permiso INTERNET
39 | Por favor, iniciar sesión a través https://www.facebook.com o https://m.facebook.com para volver a activar la aplicación para conectar con Facebook.
40 | La aplicación no se conecta con Facebook, inicie sesión y volver a conectar esta aplicación.
41 | Su contraseña de Facebook ha cambiado, por favor vuelva a conectar la aplicación con Facebook.
42 | Se produjo un error al conectar con Facebook, por favor vuelva a conectar la aplicación con Facebook.
43 | Una conexión de aplicación con Facebook falló debido a permisos insuficientes, por favor, conceda los permisos de aplicaciones para realizar la operación.
44 |
45 |
--------------------------------------------------------------------------------
/third_party/facebook/res/values-hdpi/dimens.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | 1px
4 |
--------------------------------------------------------------------------------
/third_party/facebook/res/values-he/strings.xml:
--------------------------------------------------------------------------------
1 |
2 |
17 |
18 |
19 | התנתק
20 | התחבר לפייסבוק
21 | מחובר בשם: %1$s
22 | מחובר באמצעות פייסבוק
23 | התנתק
24 | בטל
25 | פייסבוק לוגו
26 | התחבר…
27 | מחובר
28 | לא מחובר
29 | %1$s • %2$,d היו פה
30 | %1$s
31 | %1$,d היו פה
32 | בצע
33 | בחר חברים
34 | קרוב אליי
35 | ..מעלה
36 | AndroidManifest שגיאת
37 | ההתחברות לתצוגת אתר דורשת אישור אינטרנט
38 | .כדי לאפשר מחדש לאפליקציה להתחבר עם פייסבוק https://www.facebook.com או https://m.facebook.com אנא היכנס דרך
39 | .האפליקציה אינה מחוברת לפייסבוק, אנא היכנס וחבר מחדש את האפליקציה
40 | .הסיסמה שלך בפייסבוק השתנתה, אנא חבר מחדש את האפליקציה עם פייסבוק
41 | .ארעה שגיאה בעת החיבור עם פייסבוק, חבר בבקשה מחדש את האפליקציה עם פייסבוק
42 | .חיבור האפליקציה עם פייסבוק נכשל בשל הרשאות לא מספקות, אנא הענק הרשאות לאפליקציה בכדי שהפעולה תוכל להתבצע
43 | אישור
44 |
45 |
--------------------------------------------------------------------------------
/third_party/facebook/res/values-iw/strings.xml:
--------------------------------------------------------------------------------
1 |
2 |
17 |
18 |
19 | התנתק
20 | התחבר לפייסבוק
21 | מחובר בשם: %1$s
22 | מחובר באמצעות פייסבוק
23 | התנתק
24 | בטל
25 | פייסבוק לוגו
26 | התחבר…
27 | מחובר
28 | לא מחובר
29 | %1$s • %2$,d היו פה
30 | %1$s
31 | %1$,d היו פה
32 | בצע
33 | בחר חברים
34 | קרוב אליי
35 | ..מעלה
36 | AndroidManifest שגיאת
37 | ההתחברות לתצוגת אתר דורשת אישור אינטרנט
38 | .כדי לאפשר מחדש לאפליקציה להתחבר עם פייסבוק https://www.facebook.com או https://m.facebook.com אנא היכנס דרך
39 | .האפליקציה אינה מחוברת לפייסבוק, אנא היכנס וחבר מחדש את האפליקציה
40 | .הסיסמה שלך בפייסבוק השתנתה, אנא חבר מחדש את האפליקציה עם פייסבוק
41 | .ארעה שגיאה בעת החיבור עם פייסבוק, חבר בבקשה מחדש את האפליקציה עם פייסבוק
42 | .חיבור האפליקציה עם פייסבוק נכשל בשל הרשאות לא מספקות, אנא הענק הרשאות לאפליקציה בכדי שהפעולה תוכל להתבצע
43 | אישור
44 |
45 |
--------------------------------------------------------------------------------
/third_party/facebook/res/values-ldpi/dimens.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | 1px
4 |
--------------------------------------------------------------------------------
/third_party/facebook/res/values-mdpi/dimens.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | 1px
4 |
--------------------------------------------------------------------------------
/third_party/facebook/res/values-xhdpi/dimens.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | 2px
4 |
--------------------------------------------------------------------------------
/third_party/facebook/res/values/attrs.xml:
--------------------------------------------------------------------------------
1 |
2 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 |
48 |
49 |
50 |
51 |
52 |
53 |
--------------------------------------------------------------------------------
/third_party/facebook/res/values/colors.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | 64dp
4 | #f5f5f7
5 | #bcbdc2
6 |
--------------------------------------------------------------------------------
/third_party/facebook/res/values/drawables.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | #33464c59
4 |
--------------------------------------------------------------------------------
/third_party/facebook/res/values/strings.xml:
--------------------------------------------------------------------------------
1 |
2 |
17 |
18 |
19 | OK
20 | Log out
21 | Log in with Facebook
22 | Logged in as: %1$s
23 | Logged in using Facebook
24 | Log out
25 | Cancel
26 | Facebook Logo
27 | Log in…
28 | Logged in
29 | Not logged in
30 | %1$s • %2$,d were here
31 | %1$s
32 | %1$,d were here
33 | Done
34 | Choose Friends
35 | Nearby
36 | Loading...
37 | AndroidManifest Error
38 | WebView login requires INTERNET permission
39 | Your Facebook account is locked. Please log into www.facebook.com to continue.
40 | Please log into this app again to reconnect your Facebook account.
41 | Your Facebook password has changed. Please log into this app again to reconnect your Facebook account.
42 | Please log into this app again to reconnect your Facebook account.
43 | This app doesn’t have permission to do this. To change permissions, try logging into the app again.
44 | New! You\'re in control - choose what info you want to share with apps.
45 |
46 |
--------------------------------------------------------------------------------
/third_party/facebook/src/com/facebook/AccessTokenSource.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright 2010-present Facebook.
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | package com.facebook;
18 |
19 | /**
20 | * Indicates where a Facebook access token was obtained from.
21 | */
22 | public enum AccessTokenSource {
23 | /**
24 | * Indicates an access token has not been obtained, or is otherwise invalid.
25 | */
26 | NONE(false),
27 | /**
28 | * Indicates an access token was obtained by the user logging in through the
29 | * Facebook app for Android using the web login dialog.
30 | */
31 | FACEBOOK_APPLICATION_WEB(true),
32 | /**
33 | * Indicates an access token was obtained by the user logging in through the
34 | * Facebook app for Android using the native login dialog.
35 | */
36 | FACEBOOK_APPLICATION_NATIVE(true),
37 | /**
38 | * Indicates an access token was obtained by asking the Facebook app for the
39 | * current token based on permissions the user has already granted to the app.
40 | * No dialog was shown to the user in this case.
41 | */
42 | FACEBOOK_APPLICATION_SERVICE(true),
43 | /**
44 | * Indicates an access token was obtained by the user logging in through the
45 | * Web-based dialog.
46 | */
47 | WEB_VIEW(false),
48 | /**
49 | * Indicates an access token is for a test user rather than an actual
50 | * Facebook user.
51 | */
52 | TEST_USER(true),
53 | /**
54 | * Indicates an access token constructed with a Client Token.
55 | */
56 | CLIENT_TOKEN(true);
57 |
58 | private final boolean canExtendToken;
59 |
60 | AccessTokenSource(boolean canExtendToken) {
61 | this.canExtendToken = canExtendToken;
62 | }
63 |
64 | boolean canExtendToken() {
65 | return canExtendToken;
66 | }
67 | }
68 |
--------------------------------------------------------------------------------
/third_party/facebook/src/com/facebook/FacebookAuthorizationException.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright 2010-present Facebook.
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | package com.facebook;
18 |
19 | /**
20 | * An Exception indicating that a Session failed to open or obtain new permissions.
21 | */
22 | public class FacebookAuthorizationException extends FacebookException {
23 | static final long serialVersionUID = 1;
24 |
25 | /**
26 | * Constructs a FacebookAuthorizationException with no additional
27 | * information.
28 | */
29 | public FacebookAuthorizationException() {
30 | super();
31 | }
32 |
33 | /**
34 | * Constructs a FacebookAuthorizationException with a message.
35 | *
36 | * @param message
37 | * A String to be returned from getMessage.
38 | */
39 | public FacebookAuthorizationException(String message) {
40 | super(message);
41 | }
42 |
43 | /**
44 | * Constructs a FacebookAuthorizationException with a message and inner
45 | * error.
46 | *
47 | * @param message
48 | * A String to be returned from getMessage.
49 | * @param throwable
50 | * A Throwable to be returned from getCause.
51 | */
52 | public FacebookAuthorizationException(String message, Throwable throwable) {
53 | super(message, throwable);
54 | }
55 |
56 | /**
57 | * Constructs a FacebookAuthorizationException with an inner error.
58 | *
59 | * @param throwable
60 | * A Throwable to be returned from getCause.
61 | */
62 | public FacebookAuthorizationException(Throwable throwable) {
63 | super(throwable);
64 | }
65 | }
66 |
--------------------------------------------------------------------------------
/third_party/facebook/src/com/facebook/FacebookBroadcastReceiver.java:
--------------------------------------------------------------------------------
1 | package com.facebook;
2 |
3 | import android.content.BroadcastReceiver;
4 | import android.content.Context;
5 | import android.content.Intent;
6 | import android.os.Bundle;
7 | import android.util.Log;
8 | import com.facebook.internal.NativeProtocol;
9 |
10 | /**
11 | * This class implements a simple BroadcastReceiver designed to listen for broadcast notifications from the
12 | * Facebook app. At present, these notifications consistent of success/failure notifications for photo upload
13 | * operations that happen in the background.
14 | *
15 | * Applications may subclass this class and register it in their AndroidManifest.xml, listening on the
16 | * com.facebook.platform.AppCallResultBroadcast action.
17 | */
18 | public class FacebookBroadcastReceiver extends BroadcastReceiver {
19 |
20 | @Override
21 | public void onReceive(Context context, Intent intent) {
22 | String appCallId = intent.getStringExtra(NativeProtocol.EXTRA_PROTOCOL_CALL_ID);
23 | String action = intent.getStringExtra(NativeProtocol.EXTRA_PROTOCOL_ACTION);
24 | if (appCallId != null && action != null) {
25 | Bundle extras = intent.getExtras();
26 |
27 | if (NativeProtocol.isErrorResult(intent)) {
28 | onFailedAppCall(appCallId, action, extras);
29 | } else {
30 | onSuccessfulAppCall(appCallId, action, extras);
31 | }
32 | }
33 | }
34 |
35 | protected void onSuccessfulAppCall(String appCallId, String action, Bundle extras) {
36 | // Default does nothing.
37 | }
38 |
39 | protected void onFailedAppCall(String appCallId, String action, Bundle extras) {
40 | // Default does nothing.
41 | }
42 | }
43 |
--------------------------------------------------------------------------------
/third_party/facebook/src/com/facebook/FacebookDialogException.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright 2010-present Facebook.
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | package com.facebook;
18 |
19 | /**
20 | * Represents an error condition relating to displaying a Facebook Web dialog.
21 | */
22 | public class FacebookDialogException extends FacebookException {
23 | static final long serialVersionUID = 1;
24 | private int errorCode;
25 | private String failingUrl;
26 |
27 | /**
28 | * Constructs a new FacebookException.
29 | */
30 | public FacebookDialogException(String message, int errorCode, String failingUrl) {
31 | super(message);
32 | this.errorCode = errorCode;
33 | this.failingUrl = failingUrl;
34 | }
35 |
36 | /**
37 | * Gets the error code received by the WebView. See:
38 | * http://developer.android.com/reference/android/webkit/WebViewClient.html
39 | *
40 | * @return the error code
41 | */
42 | public int getErrorCode() {
43 | return errorCode;
44 | }
45 |
46 | /**
47 | * Gets the URL that the dialog was trying to load.
48 | * @return the URL
49 | */
50 | public String getFailingUrl() {
51 | return failingUrl;
52 | }
53 | }
54 |
--------------------------------------------------------------------------------
/third_party/facebook/src/com/facebook/FacebookException.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright 2010-present Facebook.
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | package com.facebook;
18 |
19 | /**
20 | * Represents an error condition specific to the Facebook SDK for Android.
21 | */
22 | public class FacebookException extends RuntimeException {
23 | static final long serialVersionUID = 1;
24 |
25 | /**
26 | * Constructs a new FacebookException.
27 | */
28 | public FacebookException() {
29 | super();
30 | }
31 |
32 | /**
33 | * Constructs a new FacebookException.
34 | *
35 | * @param message
36 | * the detail message of this exception
37 | */
38 | public FacebookException(String message) {
39 | super(message);
40 | }
41 |
42 | /**
43 | * Constructs a new FacebookException.
44 | *
45 | * @param message
46 | * the detail message of this exception
47 | * @param throwable
48 | * the cause of this exception
49 | */
50 | public FacebookException(String message, Throwable throwable) {
51 | super(message, throwable);
52 | }
53 |
54 | /**
55 | * Constructs a new FacebookException.
56 | *
57 | * @param throwable
58 | * the cause of this exception
59 | */
60 | public FacebookException(Throwable throwable) {
61 | super(throwable);
62 | }
63 | }
64 |
--------------------------------------------------------------------------------
/third_party/facebook/src/com/facebook/FacebookGraphObjectException.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright 2010-present Facebook.
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | package com.facebook;
18 |
19 | /**
20 | * Represents an error specific to the {@link com.facebook.model.GraphObject GraphObject} class.
21 | */
22 | public class FacebookGraphObjectException extends FacebookException {
23 | static final long serialVersionUID = 1;
24 |
25 | /**
26 | * Constructs a new FacebookGraphObjectException.
27 | */
28 | public FacebookGraphObjectException() {
29 | super();
30 | }
31 |
32 | /**
33 | * Constructs a new FacebookGraphObjectException.
34 | *
35 | * @param message
36 | * the detail message of this exception
37 | */
38 | public FacebookGraphObjectException(String message) {
39 | super(message);
40 | }
41 |
42 | /**
43 | * Constructs a new FacebookGraphObjectException.
44 | *
45 | * @param message
46 | * the detail message of this exception
47 | * @param throwable
48 | * the cause of this exception
49 | */
50 | public FacebookGraphObjectException(String message, Throwable throwable) {
51 | super(message, throwable);
52 | }
53 |
54 | /**
55 | * Constructs a new FacebookGraphObjectException.
56 | *
57 | * @param throwable
58 | * the cause of this exception
59 | */
60 | public FacebookGraphObjectException(Throwable throwable) {
61 | super(throwable);
62 | }
63 | }
64 |
--------------------------------------------------------------------------------
/third_party/facebook/src/com/facebook/FacebookOperationCanceledException.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright 2010-present Facebook.
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | package com.facebook;
18 |
19 | /**
20 | * An Exception indicating that an operation was canceled before it completed.
21 | */
22 | public class FacebookOperationCanceledException extends FacebookException {
23 | static final long serialVersionUID = 1;
24 |
25 | /**
26 | * Constructs a FacebookOperationCanceledException with no additional information.
27 | */
28 | public FacebookOperationCanceledException() {
29 | super();
30 | }
31 |
32 | /**
33 | * Constructs a FacebookOperationCanceledException with a message.
34 | *
35 | * @param message A String to be returned from getMessage.
36 | */
37 | public FacebookOperationCanceledException(String message) {
38 | super(message);
39 | }
40 |
41 | /**
42 | * Constructs a FacebookOperationCanceledException with a message and inner error.
43 | *
44 | * @param message A String to be returned from getMessage.
45 | * @param throwable A Throwable to be returned from getCause.
46 | */
47 | public FacebookOperationCanceledException(String message, Throwable throwable) {
48 | super(message, throwable);
49 | }
50 |
51 | /**
52 | * Constructs a FacebookOperationCanceledException with an inner error.
53 | *
54 | * @param throwable A Throwable to be returned from getCause.
55 | */
56 | public FacebookOperationCanceledException(Throwable throwable) {
57 | super(throwable);
58 | }
59 | }
60 |
--------------------------------------------------------------------------------
/third_party/facebook/src/com/facebook/FacebookSdkVersion.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright 2010-present Facebook.
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | package com.facebook;
18 |
19 | final class FacebookSdkVersion {
20 | public static final String BUILD = "3.14.1";
21 | }
22 |
--------------------------------------------------------------------------------
/third_party/facebook/src/com/facebook/FacebookServiceException.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright 2010-present Facebook.
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | package com.facebook;
18 |
19 | /**
20 | * Represents an error returned from the Facebook service in response to a request.
21 | */
22 | public class FacebookServiceException extends FacebookException {
23 |
24 | private final FacebookRequestError error;
25 |
26 | private static final long serialVersionUID = 1;
27 |
28 | /**
29 | * Constructs a new FacebookServiceException.
30 | *
31 | * @param error the error from the request
32 | */
33 | public FacebookServiceException(FacebookRequestError error, String errorMessage) {
34 | super(errorMessage);
35 | this.error = error;
36 | }
37 |
38 | /**
39 | * Returns an object that encapsulates complete information representing the error returned by Facebook.
40 | *
41 | * @return complete information representing the error.
42 | */
43 | public final FacebookRequestError getRequestError() {
44 | return error;
45 | }
46 |
47 | @Override
48 | public final String toString() {
49 | return new StringBuilder()
50 | .append("{FacebookServiceException: ")
51 | .append("httpResponseCode: ")
52 | .append(error.getRequestStatusCode())
53 | .append(", facebookErrorCode: ")
54 | .append(error.getErrorCode())
55 | .append(", facebookErrorType: ")
56 | .append(error.getErrorType())
57 | .append(", message: ")
58 | .append(error.getErrorMessage())
59 | .append("}")
60 | .toString();
61 | }
62 |
63 | }
64 |
--------------------------------------------------------------------------------
/third_party/facebook/src/com/facebook/GetTokenClient.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright 2010-present Facebook.
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | package com.facebook;
18 |
19 |
20 | import android.content.Context;
21 | import android.os.*;
22 | import com.facebook.internal.NativeProtocol;
23 | import com.facebook.internal.PlatformServiceClient;
24 |
25 | final class GetTokenClient extends PlatformServiceClient {
26 |
27 | GetTokenClient(Context context, String applicationId) {
28 | super(context, NativeProtocol.MESSAGE_GET_ACCESS_TOKEN_REQUEST, NativeProtocol.MESSAGE_GET_ACCESS_TOKEN_REPLY,
29 | NativeProtocol.PROTOCOL_VERSION_20121101, applicationId);
30 | }
31 |
32 | @Override
33 | protected void populateRequestBundle(Bundle data) {
34 | }
35 | }
36 |
37 |
--------------------------------------------------------------------------------
/third_party/facebook/src/com/facebook/HttpMethod.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright 2010-present Facebook.
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | package com.facebook;
18 |
19 | /**
20 | * Enumeration of HTTP methods supported by Request
21 | */
22 | public enum HttpMethod {
23 | /**
24 | * Use HTTP method "GET" for the request
25 | */
26 | GET,
27 |
28 | /**
29 | * Use HTTP method "POST" for the request
30 | */
31 | POST,
32 |
33 | /**
34 | * Use HTTP method "DELETE" for the request
35 | */
36 | DELETE,
37 | }
38 |
--------------------------------------------------------------------------------
/third_party/facebook/src/com/facebook/LegacyHelper.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright 2010-present Facebook.
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | package com.facebook;
18 |
19 | import android.os.Bundle;
20 |
21 | /**
22 | * LegacyHelper is solely for the use of other packages within the Facebook SDK for Android. Use of
23 | * any of the methods in this class is unsupported, and they may be modified or removed without warning at
24 | * any time.
25 | */
26 | public class LegacyHelper {
27 | @Deprecated
28 | public static void extendTokenCompleted(Session session, Bundle bundle) {
29 | session.extendTokenCompleted(bundle);
30 | }
31 | }
32 |
--------------------------------------------------------------------------------
/third_party/facebook/src/com/facebook/LoggingBehavior.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright 2010-present Facebook.
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | package com.facebook;
18 |
19 | /**
20 | * Specifies different categories of logging messages that can be generated.
21 | *
22 | * @see Settings#addLoggingBehavior(com.facebook.LoggingBehavior)
23 | */
24 | public enum LoggingBehavior {
25 | /**
26 | * Indicates that HTTP requests and a summary of responses should be logged.
27 | */
28 | REQUESTS,
29 | /**
30 | * Indicates that access tokens should be logged as part of the request logging; normally they are not.
31 | */
32 | INCLUDE_ACCESS_TOKENS,
33 | /**
34 | * Indicates that the entire raw HTTP response for each request should be logged.
35 | */
36 | INCLUDE_RAW_RESPONSES,
37 | /**
38 | * Indicates that cache operations should be logged.
39 | */
40 | CACHE,
41 | /**
42 | * Indicates the App Events-related operations should be logged.
43 | */
44 | APP_EVENTS,
45 | /**
46 | * Indicates that likely developer errors should be logged. (This is set by default in LoggingBehavior.)
47 | */
48 | DEVELOPER_ERRORS
49 | ;
50 |
51 | @Deprecated
52 | public static final LoggingBehavior INSIGHTS = APP_EVENTS;
53 | }
54 |
--------------------------------------------------------------------------------
/third_party/facebook/src/com/facebook/NonCachingTokenCachingStrategy.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright 2010-present Facebook.
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | package com.facebook;
18 |
19 | import android.os.Bundle;
20 |
21 | /**
22 | * Implements a trivial {@link TokenCachingStrategy} that does not actually cache any tokens.
23 | * It is intended for use when an access token may be used on a temporary basis but should not be
24 | * cached for future use (for instance, when handling a deep link).
25 | */
26 | public class NonCachingTokenCachingStrategy extends TokenCachingStrategy {
27 | @Override
28 | public Bundle load() {
29 | return null;
30 | }
31 |
32 | @Override
33 | public void save(Bundle bundle) {
34 | }
35 |
36 | @Override
37 | public void clear() {
38 | }
39 | }
40 |
--------------------------------------------------------------------------------
/third_party/facebook/src/com/facebook/ProgressNoopOutputStream.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright 2010-present Facebook.
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | package com.facebook;
18 |
19 | import android.os.Handler;
20 |
21 | import java.io.OutputStream;
22 | import java.util.HashMap;
23 | import java.util.Map;
24 |
25 | class ProgressNoopOutputStream extends OutputStream implements RequestOutputStream {
26 | private final Map progressMap = new HashMap();
27 | private final Handler callbackHandler;
28 |
29 | private Request currentRequest;
30 | private RequestProgress currentRequestProgress;
31 | private int batchMax;
32 |
33 | ProgressNoopOutputStream(Handler callbackHandler) {
34 | this.callbackHandler = callbackHandler;
35 | }
36 |
37 | public void setCurrentRequest(Request currentRequest) {
38 | this.currentRequest = currentRequest;
39 | this.currentRequestProgress = currentRequest != null? progressMap.get(currentRequest) : null;
40 | }
41 |
42 | int getMaxProgress() {
43 | return batchMax;
44 | }
45 |
46 | Map getProgressMap() {
47 | return progressMap;
48 | }
49 |
50 | void addProgress(long size) {
51 | if (currentRequestProgress == null) {
52 | currentRequestProgress = new RequestProgress(callbackHandler, currentRequest);
53 | progressMap.put(currentRequest, currentRequestProgress);
54 | }
55 |
56 | currentRequestProgress.addToMax(size);
57 | batchMax += size;
58 | }
59 |
60 | @Override
61 | public void write(byte[] buffer) {
62 | addProgress(buffer.length);
63 | }
64 |
65 | @Override
66 | public void write(byte[] buffer, int offset, int length) {
67 | addProgress(length);
68 | }
69 |
70 | @Override
71 | public void write(int oneByte) {
72 | addProgress(1);
73 | }
74 | }
75 |
--------------------------------------------------------------------------------
/third_party/facebook/src/com/facebook/RequestOutputStream.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright 2010-present Facebook.
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | package com.facebook;
18 |
19 | interface RequestOutputStream {
20 | void setCurrentRequest(Request r);
21 | }
22 |
--------------------------------------------------------------------------------
/third_party/facebook/src/com/facebook/RequestProgress.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright 2010-present Facebook.
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | package com.facebook;
18 |
19 | import android.os.Handler;
20 |
21 | class RequestProgress {
22 | private final Request request;
23 | private final Handler callbackHandler;
24 | private final long threshold;
25 |
26 | private long progress, lastReportedProgress, maxProgress;
27 |
28 | RequestProgress(Handler callbackHandler, Request request) {
29 | this.request = request;
30 | this.callbackHandler = callbackHandler;
31 |
32 | this.threshold = Settings.getOnProgressThreshold();
33 | }
34 |
35 | long getProgress() {
36 | return progress;
37 | }
38 |
39 | long getMaxProgress() {
40 | return maxProgress;
41 | }
42 |
43 | void addProgress(long size) {
44 | progress += size;
45 |
46 | if (progress >= lastReportedProgress + threshold || progress >= maxProgress) {
47 | reportProgress();
48 | }
49 | }
50 |
51 | void addToMax(long size) {
52 | maxProgress += size;
53 | }
54 |
55 | void reportProgress() {
56 | if (progress > lastReportedProgress) {
57 | Request.Callback callback = request.getCallback();
58 | if (maxProgress > 0 && callback instanceof Request.OnProgressCallback) {
59 | // Keep copies to avoid threading issues
60 | final long currentCopy = progress;
61 | final long maxProgressCopy = maxProgress;
62 | final Request.OnProgressCallback callbackCopy = (Request.OnProgressCallback) callback;
63 | if (callbackHandler == null) {
64 | callbackCopy.onProgress(currentCopy, maxProgressCopy);
65 | }
66 | else {
67 | callbackHandler.post(new Runnable() {
68 | @Override
69 | public void run() {
70 | callbackCopy.onProgress(currentCopy, maxProgressCopy);
71 | }
72 | });
73 | }
74 | lastReportedProgress = progress;
75 | }
76 | }
77 | }
78 | }
79 |
--------------------------------------------------------------------------------
/third_party/facebook/src/com/facebook/SessionDefaultAudience.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright 2010-present Facebook.
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | package com.facebook;
18 |
19 | import com.facebook.internal.NativeProtocol;
20 |
21 | /**
22 | * Certain operations such as publishing a status or publishing a photo require an audience. When the user
23 | * grants an application permission to perform a publish operation, a default audience is selected as the
24 | * publication ceiling for the application. This enumerated value allows the application to select which
25 | * audience to ask the user to grant publish permission for.
26 | */
27 | public enum SessionDefaultAudience {
28 | /**
29 | * Represents an invalid default audience value, can be used when only reading.
30 | */
31 | NONE(null),
32 |
33 | /**
34 | * Indicates only the user is able to see posts made by the application.
35 | */
36 | ONLY_ME(NativeProtocol.AUDIENCE_ME),
37 |
38 | /**
39 | * Indicates that the user's friends are able to see posts made by the application.
40 | */
41 | FRIENDS(NativeProtocol.AUDIENCE_FRIENDS),
42 |
43 | /**
44 | * Indicates that all Facebook users are able to see posts made by the application.
45 | */
46 | EVERYONE(NativeProtocol.AUDIENCE_EVERYONE);
47 |
48 | private final String nativeProtocolAudience;
49 |
50 | private SessionDefaultAudience(String protocol) {
51 | nativeProtocolAudience = protocol;
52 | }
53 |
54 | String getNativeProtocolAudience() {
55 | return nativeProtocolAudience;
56 | }
57 | }
58 |
--------------------------------------------------------------------------------
/third_party/facebook/src/com/facebook/SessionLoginBehavior.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright 2010-present Facebook.
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | package com.facebook;
18 |
19 | /**
20 | * Specifies the behaviors to try during
21 | * {@link Session#openForRead(com.facebook.Session.OpenRequest) openForRead},
22 | * {@link Session#openForPublish(com.facebook.Session.OpenRequest) openForPublish},
23 | * {@link Session#requestNewReadPermissions(com.facebook.Session.NewPermissionsRequest) requestNewReadPermissions}, or
24 | * {@link Session#requestNewPublishPermissions(com.facebook.Session.NewPermissionsRequest) requestNewPublishPermissions}.
25 | */
26 | public enum SessionLoginBehavior {
27 | /**
28 | * Specifies that Session should attempt Single Sign On (SSO), and if that
29 | * does not work fall back to dialog auth. This is the default behavior.
30 | */
31 | SSO_WITH_FALLBACK(true, true),
32 |
33 | /**
34 | * Specifies that Session should only attempt SSO. If SSO fails, then the
35 | * open or new permissions call fails.
36 | */
37 | SSO_ONLY(true, false),
38 |
39 | /**
40 | * Specifies that SSO should not be attempted, and to only use dialog auth.
41 | */
42 | SUPPRESS_SSO(false, true);
43 |
44 | private final boolean allowsKatanaAuth;
45 | private final boolean allowsWebViewAuth;
46 |
47 | private SessionLoginBehavior(boolean allowsKatanaAuth, boolean allowsWebViewAuth) {
48 | this.allowsKatanaAuth = allowsKatanaAuth;
49 | this.allowsWebViewAuth = allowsWebViewAuth;
50 | }
51 |
52 | boolean allowsKatanaAuth() {
53 | return allowsKatanaAuth;
54 | }
55 |
56 | boolean allowsWebViewAuth() {
57 | return allowsWebViewAuth;
58 | }
59 | }
60 |
--------------------------------------------------------------------------------
/third_party/facebook/src/com/facebook/android/DialogError.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright 2010-present Facebook
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | package com.facebook.android;
18 |
19 | /**
20 | * Encapsulation of Dialog Error.
21 | *
22 | * THIS CLASS SHOULD BE CONSIDERED DEPRECATED.
23 | *
24 | * All public members of this class are intentionally deprecated.
25 | * New code should instead use
26 | * {@link com.facebook.FacebookException}
27 | *
28 | * Adding @Deprecated to this class causes warnings in other deprecated classes
29 | * that reference this one. That is the only reason this entire class is not
30 | * deprecated.
31 | *
32 | * @devDocDeprecated
33 | */
34 | public class DialogError extends Throwable {
35 |
36 | private static final long serialVersionUID = 1L;
37 |
38 | /**
39 | * The ErrorCode received by the WebView: see
40 | * http://developer.android.com/reference/android/webkit/WebViewClient.html
41 | */
42 | private int mErrorCode;
43 |
44 | /** The URL that the dialog was trying to load */
45 | private String mFailingUrl;
46 |
47 | @Deprecated
48 | public DialogError(String message, int errorCode, String failingUrl) {
49 | super(message);
50 | mErrorCode = errorCode;
51 | mFailingUrl = failingUrl;
52 | }
53 |
54 | @Deprecated
55 | public int getErrorCode() {
56 | return mErrorCode;
57 | }
58 |
59 | @Deprecated
60 | public String getFailingUrl() {
61 | return mFailingUrl;
62 | }
63 |
64 | }
65 |
--------------------------------------------------------------------------------
/third_party/facebook/src/com/facebook/android/FacebookError.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright 2010-present Facebook
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | package com.facebook.android;
18 |
19 | /**
20 | * Encapsulation of a Facebook Error: a Facebook request that could not be
21 | * fulfilled.
22 | *
23 | * THIS CLASS SHOULD BE CONSIDERED DEPRECATED.
24 | *
25 | * All public members of this class are intentionally deprecated.
26 | * New code should instead use
27 | * {@link com.facebook.FacebookException}
28 | *
29 | * Adding @Deprecated to this class causes warnings in other deprecated classes
30 | * that reference this one. That is the only reason this entire class is not
31 | * deprecated.
32 | *
33 | * @devDocDeprecated
34 | */
35 | public class FacebookError extends RuntimeException {
36 |
37 | private static final long serialVersionUID = 1L;
38 |
39 | private int mErrorCode = 0;
40 | private String mErrorType;
41 |
42 | @Deprecated
43 | public FacebookError(String message) {
44 | super(message);
45 | }
46 |
47 | @Deprecated
48 | public FacebookError(String message, String type, int code) {
49 | super(message);
50 | mErrorType = type;
51 | mErrorCode = code;
52 | }
53 |
54 | @Deprecated
55 | public int getErrorCode() {
56 | return mErrorCode;
57 | }
58 |
59 | @Deprecated
60 | public String getErrorType() {
61 | return mErrorType;
62 | }
63 |
64 | }
65 |
--------------------------------------------------------------------------------
/third_party/facebook/src/com/facebook/android/FbDialog.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright 2010-present Facebook
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | package com.facebook.android;
18 |
19 | import android.content.Context;
20 | import android.os.Bundle;
21 | import com.facebook.*;
22 | import com.facebook.android.Facebook.DialogListener;
23 | import com.facebook.widget.WebDialog;
24 |
25 | /**
26 | * This class is deprecated. See {@link com.facebook.widget.WebDialog}.
27 | */
28 | @Deprecated
29 | public class FbDialog extends WebDialog {
30 | private DialogListener mListener;
31 |
32 | public FbDialog(Context context, String url, DialogListener listener) {
33 | this(context, url, listener, DEFAULT_THEME);
34 | }
35 |
36 | public FbDialog(Context context, String url, DialogListener listener, int theme) {
37 | super(context, url, theme);
38 | setDialogListener(listener);
39 | }
40 |
41 | public FbDialog(Context context, String action, Bundle parameters, DialogListener listener) {
42 | super(context, action, parameters, DEFAULT_THEME, null);
43 | setDialogListener(listener);
44 | }
45 |
46 | public FbDialog(Context context, String action, Bundle parameters, DialogListener listener,
47 | int theme) {
48 | super(context, action, parameters, theme, null);
49 | setDialogListener(listener);
50 | }
51 |
52 | private void setDialogListener(DialogListener listener) {
53 | this.mListener = listener;
54 | setOnCompleteListener(new OnCompleteListener() {
55 | @Override
56 | public void onComplete(Bundle values, FacebookException error) {
57 | callDialogListener(values, error);
58 | }
59 | });
60 | }
61 |
62 | private void callDialogListener(Bundle values, FacebookException error) {
63 | if (mListener == null) {
64 | return;
65 | }
66 |
67 | if (values != null) {
68 | mListener.onComplete(values);
69 | } else {
70 | if (error instanceof FacebookDialogException) {
71 | FacebookDialogException facebookDialogException = (FacebookDialogException) error;
72 | DialogError dialogError = new DialogError(facebookDialogException.getMessage(),
73 | facebookDialogException.getErrorCode(), facebookDialogException.getFailingUrl());
74 | mListener.onError(dialogError);
75 | } else if (error instanceof FacebookOperationCanceledException) {
76 | mListener.onCancel();
77 | } else {
78 | FacebookError facebookError = new FacebookError(error.getMessage());
79 | mListener.onFacebookError(facebookError);
80 | }
81 | }
82 | }
83 | }
84 |
--------------------------------------------------------------------------------
/third_party/facebook/src/com/facebook/internal/AnalyticsEvents.java:
--------------------------------------------------------------------------------
1 | package com.facebook.internal;
2 |
3 | /**
4 | * com.facebook.internal is solely for the use of other packages within the Facebook SDK for Android. Use of
5 | * any of the classes in this package is unsupported, and they may be modified or removed without warning at
6 | * any time.
7 | */
8 | public class AnalyticsEvents {
9 | public static final String EVENT_NATIVE_LOGIN_DIALOG_COMPLETE = "fb_dialogs_native_login_dialog_complete";
10 | public static final String EVENT_NATIVE_LOGIN_DIALOG_START = "fb_dialogs_native_login_dialog_start";
11 | public static final String EVENT_WEB_LOGIN_COMPLETE = "fb_dialogs_web_login_dialog_complete";
12 | public static final String EVENT_FRIEND_PICKER_USAGE = "fb_friend_picker_usage";
13 | public static final String EVENT_PLACE_PICKER_USAGE = "fb_place_picker_usage";
14 | public static final String EVENT_LOGIN_VIEW_USAGE = "fb_login_view_usage";
15 | public static final String EVENT_USER_SETTINGS_USAGE = "fb_user_settings_vc_usage";
16 | public static final String EVENT_NATIVE_DIALOG_START = "fb_native_dialog_start";
17 | public static final String EVENT_NATIVE_DIALOG_COMPLETE = "fb_native_dialog_complete";
18 |
19 | public static final String PARAMETER_WEB_LOGIN_E2E = "fb_web_login_e2e";
20 | public static final String PARAMETER_WEB_LOGIN_SWITCHBACK_TIME = "fb_web_login_switchback_time";
21 | public static final String PARAMETER_APP_ID = "app_id";
22 | public static final String PARAMETER_ACTION_ID = "action_id";
23 | public static final String PARAMETER_NATIVE_LOGIN_DIALOG_START_TIME = "fb_native_login_dialog_start_time";
24 | public static final String PARAMETER_NATIVE_LOGIN_DIALOG_COMPLETE_TIME =
25 | "fb_native_login_dialog_complete_time";
26 |
27 | public static final String PARAMETER_DIALOG_OUTCOME = "fb_dialog_outcome";
28 | public static final String PARAMETER_DIALOG_OUTCOME_VALUE_COMPLETED = "Completed";
29 | public static final String PARAMETER_DIALOG_OUTCOME_VALUE_UNKNOWN = "Unknown";
30 | public static final String PARAMETER_DIALOG_OUTCOME_VALUE_CANCELLED = "Cancelled";
31 | public static final String PARAMETER_DIALOG_OUTCOME_VALUE_FAILED = "Failed";
32 |
33 | public static final String EVENT_NATIVE_DIALOG_TYPE_SHARE = "fb_dialogs_present_share";
34 | public static final String EVENT_NATIVE_DIALOG_TYPE_MESSAGE = "fb_dialogs_present_message";
35 | public static final String EVENT_NATIVE_DIALOG_TYPE_OG_SHARE = "fb_dialogs_present_share_og";
36 | public static final String EVENT_NATIVE_DIALOG_TYPE_OG_MESSAGE = "fb_dialogs_present_message_og";
37 | public static final String EVENT_NATIVE_DIALOG_TYPE_PHOTO_SHARE = "fb_dialogs_present_share_photo";
38 | public static final String EVENT_NATIVE_DIALOG_TYPE_PHOTO_MESSAGE = "fb_dialogs_present_message_photo";
39 | }
40 |
--------------------------------------------------------------------------------
/third_party/facebook/src/com/facebook/internal/CacheableRequestBatch.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright 2010-present Facebook.
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | package com.facebook.internal;
18 |
19 | import com.facebook.Request;
20 | import com.facebook.RequestBatch;
21 |
22 | /**
23 | * com.facebook.internal is solely for the use of other packages within the Facebook SDK for Android. Use of
24 | * any of the classes in this package is unsupported, and they may be modified or removed without warning at
25 | * any time.
26 | */
27 | public class CacheableRequestBatch extends RequestBatch {
28 | private String cacheKey;
29 | private boolean forceRoundTrip;
30 |
31 | public CacheableRequestBatch() {
32 | }
33 |
34 | public CacheableRequestBatch(Request... requests) {
35 | super(requests);
36 | }
37 |
38 | public final String getCacheKeyOverride() {
39 | return cacheKey;
40 | }
41 |
42 | // If this is set, the provided string will override the default key (the URL) for single requests.
43 | // There is no default for multi-request batches, so no caching will be done unless the override is
44 | // specified.
45 | public final void setCacheKeyOverride(String cacheKey) {
46 | this.cacheKey = cacheKey;
47 | }
48 |
49 | public final boolean getForceRoundTrip() {
50 | return forceRoundTrip;
51 | }
52 |
53 | public final void setForceRoundTrip(boolean forceRoundTrip) {
54 | this.forceRoundTrip = forceRoundTrip;
55 | }
56 |
57 | }
58 |
--------------------------------------------------------------------------------
/third_party/facebook/src/com/facebook/internal/ImageResponse.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright 2010-present Facebook.
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | package com.facebook.internal;
18 |
19 | import android.graphics.Bitmap;
20 |
21 | public class ImageResponse {
22 |
23 | private ImageRequest request;
24 | private Exception error;
25 | private boolean isCachedRedirect;
26 | private Bitmap bitmap;
27 |
28 | ImageResponse(ImageRequest request, Exception error, boolean isCachedRedirect, Bitmap bitmap) {
29 | this.request = request;
30 | this.error = error;
31 | this.bitmap = bitmap;
32 | this.isCachedRedirect = isCachedRedirect;
33 | }
34 |
35 | public ImageRequest getRequest() {
36 | return request;
37 | }
38 |
39 | public Exception getError() {
40 | return error;
41 | }
42 |
43 | public Bitmap getBitmap() {
44 | return bitmap;
45 | }
46 |
47 | public boolean isCachedRedirect() {
48 | return isCachedRedirect;
49 | }
50 | }
51 |
--------------------------------------------------------------------------------
/third_party/facebook/src/com/facebook/internal/SessionAuthorizationType.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright 2010-present Facebook.
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | package com.facebook.internal;
18 |
19 | /**
20 | * com.facebook.internal is solely for the use of other packages within the Facebook SDK for Android. Use of
21 | * any of the classes in this package is unsupported, and they may be modified or removed without warning at
22 | * any time.
23 | */
24 | public enum SessionAuthorizationType {
25 | READ,
26 | PUBLISH
27 | }
28 |
--------------------------------------------------------------------------------
/third_party/facebook/src/com/facebook/internal/Validate.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright 2010-present Facebook.
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | package com.facebook.internal;
18 |
19 | import java.util.Collection;
20 |
21 | /**
22 | * com.facebook.internal is solely for the use of other packages within the Facebook SDK for Android. Use of
23 | * any of the classes in this package is unsupported, and they may be modified or removed without warning at
24 | * any time.
25 | */
26 | public final class Validate {
27 | public static void notNull(Object arg, String name) {
28 | if (arg == null) {
29 | throw new NullPointerException("Argument '" + name + "' cannot be null");
30 | }
31 | }
32 |
33 | public static void notEmpty(Collection container, String name) {
34 | if (container.isEmpty()) {
35 | throw new IllegalArgumentException("Container '" + name + "' cannot be empty");
36 | }
37 | }
38 |
39 | public static void containsNoNulls(Collection container, String name) {
40 | Validate.notNull(container, name);
41 | for (T item : container) {
42 | if (item == null) {
43 | throw new NullPointerException("Container '" + name + "' cannot contain null values");
44 | }
45 | }
46 | }
47 |
48 | public static void containsNoNullOrEmpty(Collection container, String name) {
49 | Validate.notNull(container, name);
50 | for (String item : container) {
51 | if (item == null) {
52 | throw new NullPointerException("Container '" + name + "' cannot contain null values");
53 | }
54 | if (item.length() == 0) {
55 | throw new IllegalArgumentException("Container '" + name + "' cannot contain empty values");
56 | }
57 | }
58 | }
59 |
60 | public static void notEmptyAndContainsNoNulls(Collection container, String name) {
61 | Validate.containsNoNulls(container, name);
62 | Validate.notEmpty(container, name);
63 | }
64 |
65 | public static void notNullOrEmpty(String arg, String name) {
66 | if (Utility.isNullOrEmpty(arg)) {
67 | throw new IllegalArgumentException("Argument '" + name + "' cannot be null or empty");
68 | }
69 | }
70 |
71 | public static void oneOf(Object arg, String name, Object... values) {
72 | for (Object value : values) {
73 | if (value != null) {
74 | if (value.equals(arg)) {
75 | return;
76 | }
77 | } else {
78 | if (arg == null) {
79 | return;
80 | }
81 | }
82 | }
83 | throw new IllegalArgumentException("Argument '" + name + "' was not one of the allowed values");
84 | }
85 | }
86 |
--------------------------------------------------------------------------------
/third_party/facebook/src/com/facebook/internal/package-info.java:
--------------------------------------------------------------------------------
1 | /**
2 | * com.facebook.internal is solely for the use of other packages within the Facebook SDK for Android. Use of
3 | * any of the classes in this package is unsupported, and they may be modified or removed without warning at
4 | * any time.
5 | */
6 | package com.facebook.internal;
7 |
--------------------------------------------------------------------------------
/third_party/facebook/src/com/facebook/model/CreateGraphObject.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright 2010-present Facebook.
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | package com.facebook.model;
18 |
19 | import java.lang.annotation.Retention;
20 | import java.lang.annotation.RetentionPolicy;
21 |
22 | /**
23 | * Use this annotation setters in an interface that derives from
24 | * GraphObject, if you wish to provide a setter that takes a primitive data type (e.g., String)
25 | * or a List of primitive data types, but actually populates its underlying property with a
26 | * new GraphObject with a property equal to the specified value (or a List of such GraphObjects).
27 | * This is useful for providing "helper" setters to avoid requiring callers to instantiate a GraphObject
28 | * just to set a single property on it (e.g., 'url' or 'id').
29 | *
30 | * The String value provided to this annotation should be the name of the property that will be
31 | * populated on the newly-created GraphObject using the value that was passed to the setter.
32 | *
33 | * This annotation has no effect if applied to a getter.
34 | */
35 | @Retention(RetentionPolicy.RUNTIME)
36 | public @interface CreateGraphObject {
37 | String value();
38 | }
39 |
--------------------------------------------------------------------------------
/third_party/facebook/src/com/facebook/model/GraphMultiResult.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright 2010-present Facebook.
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | package com.facebook.model;
18 |
19 | /**
20 | * Defines a GraphObject that represents the result of a query that returns multiple GraphObjects
21 | * nested under a "data" property.
22 | *
23 | * Note that this interface is intended to be used with GraphObject.Factory
24 | * and not implemented directly.
25 | */
26 | public interface GraphMultiResult extends GraphObject {
27 | /**
28 | * Provides access to the GraphObjects that make up the result set.
29 | * @return a list of GraphObjects
30 | */
31 | public GraphObjectList getData();
32 | }
33 |
--------------------------------------------------------------------------------
/third_party/facebook/src/com/facebook/model/GraphObjectList.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright 2010-present Facebook.
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | package com.facebook.model;
18 |
19 | import org.json.JSONArray;
20 |
21 | import java.util.List;
22 |
23 | /**
24 | * GraphObjectList is the primary representation of a collection of graph objects in the Facebook SDK for Android.
25 | * It is not implemented by any concrete classes, but rather by a proxy (see the {@link com.facebook.model.GraphObject.Factory Factory}
26 | * class). A GraphObjectList can actually contain elements of any type, not just graph objects, but its principal
27 | * use in the SDK is to contain types derived from GraphObject.
28 | *
29 | *
30 | * @param the type of elements in the list
31 | */
32 | public interface GraphObjectList extends List {
33 | // cast method is only supported if T extends GraphObject
34 | /**
35 | * If T is derived from GraphObject, returns a new GraphObjectList exposing the same underlying data as a new
36 | * GraphObject-derived type.
37 | * @param graphObjectClass the GraphObject-derived type to return a list of
38 | * @return a list representing the same underlying data, exposed as the new GraphObject-derived type
39 | * @throws com.facebook.FacebookGraphObjectException if T does not derive from GraphObject
40 | */
41 | public GraphObjectList castToListOf(Class graphObjectClass);
42 | /**
43 | * Gets the underlying JSONArray representation of the data.
44 | * @return the underlying JSONArray representation of the data
45 | */
46 | public JSONArray getInnerJSONArray();
47 | }
48 |
--------------------------------------------------------------------------------
/third_party/facebook/src/com/facebook/model/GraphPlace.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright 2010-present Facebook.
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | package com.facebook.model;
18 |
19 | /**
20 | * Provides a strongly-typed representation of a Place as defined by the Graph API.
21 | *
22 | * Note that this interface is intended to be used with GraphObject.Factory
23 | * and not implemented directly.
24 | */
25 | public interface GraphPlace extends GraphObject {
26 | /**
27 | * Returns the ID of the place.
28 | * @return the ID of the place
29 | */
30 | public String getId();
31 | /**
32 | * Sets the ID of the place.
33 | * @param id the ID of the place
34 | */
35 | public void setId(String id);
36 |
37 | /**
38 | * Returns the name of the place.
39 | * @return the name of the place
40 | */
41 | public String getName();
42 | /**
43 | * Sets the name of the place.
44 | * @param name the name of the place
45 | */
46 | public void setName(String name);
47 |
48 | /**
49 | * Returns the category of the place.
50 | * @return the category of the place
51 | */
52 | public String getCategory();
53 | /**
54 | * Sets the category of the place.
55 | * @param category the category of the place
56 | */
57 | public void setCategory(String category);
58 |
59 | /**
60 | * Returns the location of the place.
61 | * @return the location of the place
62 | */
63 | public GraphLocation getLocation();
64 | /**
65 | * Sets the location of the place.
66 | * @param location the location of the place
67 | */
68 | public void setLocation(GraphLocation location);
69 | }
70 |
--------------------------------------------------------------------------------
/third_party/facebook/src/com/facebook/model/PropertyName.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright 2010-present Facebook.
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | package com.facebook.model;
18 |
19 | import java.lang.annotation.Retention;
20 | import java.lang.annotation.RetentionPolicy;
21 |
22 | /**
23 | * Use this annotation on getters and setters in an interface that derives from
24 | * GraphObject, if you wish to override the default property name that is inferred
25 | * from the name of the method.
26 | *
27 | * If this annotation is specified on a method, it must contain a non-empty String
28 | * value that represents the name of the property that the method is a getter or setter
29 | * for.
30 | */
31 | @Retention(RetentionPolicy.RUNTIME)
32 | public @interface PropertyName {
33 | String value();
34 | }
35 |
--------------------------------------------------------------------------------
/third_party/facebook/src/com/facebook/widget/GraphObjectCursor.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright 2010-present Facebook.
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | package com.facebook.widget;
18 |
19 | import com.facebook.model.GraphObject;
20 |
21 | interface GraphObjectCursor {
22 | boolean isFromCache();
23 |
24 | boolean areMoreObjectsAvailable();
25 |
26 | int getCount();
27 |
28 | int getPosition();
29 |
30 | boolean move(int offset);
31 |
32 | boolean moveToPosition(int position);
33 |
34 | boolean moveToFirst();
35 |
36 | boolean moveToLast();
37 |
38 | boolean moveToNext();
39 |
40 | boolean moveToPrevious();
41 |
42 | boolean isFirst();
43 |
44 | boolean isLast();
45 |
46 | boolean isBeforeFirst();
47 |
48 | boolean isAfterLast();
49 |
50 | T getGraphObject();
51 |
52 | void close();
53 |
54 | boolean isClosed();
55 | }
56 |
--------------------------------------------------------------------------------