From cd4d90715c0a5cb5ba15f95d4e51a56a20f4c8bb Mon Sep 17 00:00:00 2001 From: Sam Bosley Date: Mon, 25 Feb 2013 11:59:40 -0800 Subject: [PATCH] Started integrating Facebook SDK 3.0 --- .../com/facebook/android/AuthListener.java | 17 - .../com/facebook/android/LoginButton.java | 89 - .../astrid/actfm/ActFmLoginActivity.java | 224 +- facebook/CONTRIBUTING.mdown | 15 + facebook/LICENSE.txt | 201 ++ facebook/NOTICE.txt | 61 + facebook/README.md | 24 - facebook/README.mdown | 32 + facebook/examples/Hackbook/default.properties | 14 - .../Hackbook/res/drawable/login_button.xml | 5 - .../Hackbook/res/drawable/logout_button.xml | 5 - .../Hackbook/res/layout/connection_item.xml | 11 - .../Hackbook/res/layout/fields_item.xml | 14 - .../Hackbook/res/layout/friends_list.xml | 11 - .../Hackbook/res/layout/main_list_item.xml | 9 - .../Hackbook/res/layout/permission_item.xml | 8 - .../Hackbook/res/layout/places_list.xml | 11 - .../examples/Hackbook/res/layout/splash.xml | 5 - .../examples/Hackbook/res/values/colors.xml | 10 - .../facebook/android/BaseDialogListener.java | 25 - facebook/examples/simple/AndroidManifest.xml | 20 - facebook/examples/simple/default.properties | 14 - .../examples/simple/res/drawable/login.png | Bin 1980 -> 0 bytes .../simple/res/drawable/login_button.xml | 5 - .../simple/res/drawable/login_down.png | Bin 1832 -> 0 bytes .../examples/simple/res/drawable/logout.png | Bin 1661 -> 0 bytes .../simple/res/drawable/logout_button.xml | 5 - .../simple/res/drawable/logout_down.png | Bin 1551 -> 0 bytes facebook/examples/simple/res/layout/main.xml | 65 - .../examples/simple/res/values/colors.xml | 5 - .../examples/simple/res/values/strings.xml | 10 - .../facebook/android/BaseDialogListener.java | 23 - .../facebook/android/BaseRequestListener.java | 40 - .../src/com/facebook/android/Example.java | 281 --- .../src/com/facebook/android/LoginButton.java | 139 -- .../com/facebook/android/SessionEvents.java | 146 -- .../com/facebook/android/SessionStore.java | 53 - facebook/examples/stream/AndroidManifest.xml | 19 - facebook/examples/stream/assets/like_icon.png | Bin 1127 -> 0 bytes facebook/examples/stream/assets/login.css | 14 - facebook/examples/stream/assets/login.html | 13 - .../examples/stream/assets/login_button.png | Bin 2102 -> 0 bytes facebook/examples/stream/assets/stream.css | 118 -- facebook/examples/stream/assets/stream.js | 88 - .../stream/res/drawable-mdpi/icon.png | Bin 2574 -> 0 bytes .../examples/stream/res/values/strings.xml | 4 - .../stream/src/com/facebook/stream/App.java | 70 - .../facebook/stream/AsyncRequestListener.java | 67 - .../src/com/facebook/stream/Dispatcher.java | 192 -- .../src/com/facebook/stream/FileIO.java | 76 - .../src/com/facebook/stream/Handler.java | 70 - .../src/com/facebook/stream/LoginHandler.java | 126 -- .../com/facebook/stream/LogoutHandler.java | 78 - .../src/com/facebook/stream/Session.java | 174 -- .../com/facebook/stream/StreamHandler.java | 118 -- .../com/facebook/stream/StreamJsHandler.java | 205 -- .../com/facebook/stream/StreamRenderer.java | 538 ----- facebook/facebook/.project | 2 +- facebook/facebook/AndroidManifest.xml | 1 + facebook/facebook/TestApp/AndroidManifest.xml | 15 + facebook/facebook/TestApp/SdkTestApp.eml | 5 + facebook/facebook/TestApp/ant.properties | 17 + facebook/facebook/TestApp/build.xml | 83 + .../facebook/TestApp/proguard-project.txt | 20 + facebook/facebook/TestApp/project.properties | 15 + .../res/drawable-hdpi/ic_launcher.png} | Bin .../res/drawable-ldpi/ic_launcher.png} | Bin .../res/drawable-mdpi/ic_launcher.png} | Bin facebook/facebook/TestApp/res/layout/main.xml | 29 + .../facebook/TestApp/res/values/strings.xml | 20 + .../src/com/facebook/sdk/StatusActivity.java | 31 + facebook/facebook/android-sdk.eml | 5 + facebook/facebook/ant.properties | 2 + facebook/facebook/build.xml | 32 +- facebook/facebook/default.properties | 12 - facebook/facebook/libs | 1 + facebook/facebook/proguard.cfg | 40 - facebook/facebook/project.properties | 6 +- .../com_facebook_button_grey_focused.9.png | Bin 0 -> 624 bytes .../com_facebook_button_grey_normal.9.png | Bin 0 -> 520 bytes .../com_facebook_button_grey_pressed.9.png | Bin 0 -> 385 bytes .../{close.png => com_facebook_close.png} | Bin 4781 -> 5250 bytes ...acebook_icon.png => com_facebook_icon.png} | Bin .../com_facebook_loginbutton_blue_focused.png | Bin 0 -> 1586 bytes .../com_facebook_loginbutton_blue_normal.png | Bin 0 -> 1799 bytes .../com_facebook_loginbutton_blue_pressed.png | Bin 0 -> 1586 bytes .../res/drawable-hdpi/com_facebook_logo.png | Bin 0 -> 10084 bytes .../{close.png => com_facebook_close.png} | Bin ...acebook_icon.png => com_facebook_icon.png} | Bin .../com_facebook_button_grey_focused.9.png | Bin 0 -> 841 bytes .../com_facebook_button_grey_normal.9.png | Bin 0 -> 714 bytes .../com_facebook_button_grey_pressed.9.png | Bin 0 -> 495 bytes .../{close.png => com_facebook_close.png} | Bin .../com_facebook_loginbutton_blue_focused.png | Bin 0 -> 1715 bytes .../com_facebook_loginbutton_blue_normal.png | Bin 0 -> 1951 bytes .../com_facebook_loginbutton_blue_pressed.png | Bin 0 -> 1715 bytes .../res/drawable-xhdpi/com_facebook_logo.png | Bin 0 -> 12909 bytes .../drawable/com_facebook_button_check.xml | 20 + .../com_facebook_button_check_off.png | Bin 0 -> 549 bytes .../drawable/com_facebook_button_check_on.png | Bin 0 -> 733 bytes .../com_facebook_button_grey_focused.9.png | Bin 0 -> 462 bytes .../com_facebook_button_grey_normal.9.png | Bin 0 -> 381 bytes .../com_facebook_button_grey_pressed.9.png | Bin 0 -> 303 bytes .../{close.png => com_facebook_close.png} | Bin 4349 -> 4401 bytes ...acebook_icon.png => com_facebook_icon.png} | Bin .../drawable/com_facebook_list_divider.9.png | Bin 0 -> 76 bytes ...ebook_list_section_header_background.9.png | Bin 0 -> 153 bytes .../com_facebook_loginbutton_blue.xml | 23 + .../com_facebook_loginbutton_blue_focused.png | Bin 0 -> 1621 bytes .../com_facebook_loginbutton_blue_normal.png | Bin 0 -> 1801 bytes .../com_facebook_loginbutton_blue_pressed.png | Bin 0 -> 1621 bytes .../com_facebook_loginbutton_silver.xml | 23 + .../res/drawable/com_facebook_logo.png | Bin 0 -> 6416 bytes .../com_facebook_picker_item_background.xml | 26 + .../com_facebook_picker_list_focused.9.png | Bin 0 -> 158 bytes ...com_facebook_picker_list_longpressed.9.png | Bin 0 -> 151 bytes .../com_facebook_picker_list_pressed.9.png | Bin 0 -> 158 bytes .../com_facebook_picker_list_selector.xml | 27 + ...er_list_selector_background_transition.xml | 20 + ...cebook_picker_list_selector_disabled.9.png | Bin 0 -> 171 bytes .../com_facebook_picker_top_button.xml | 22 + .../com_facebook_place_default_icon.png | Bin 0 -> 813 bytes .../com_facebook_profile_default_icon.png | Bin 0 -> 358 bytes ...acebook_profile_picture_blank_portrait.png | Bin 0 -> 3945 bytes ..._facebook_profile_picture_blank_square.png | Bin 0 -> 3784 bytes .../drawable/com_facebook_top_background.xml | 22 + .../res/drawable/com_facebook_top_button.xml | 27 + ...ersettingsfragment_background_gradient.xml | 23 + .../com_facebook_friendpickerfragment.xml | 44 + .../com_facebook_login_activity_layout.xml | 15 + ...om_facebook_picker_activity_circle_row.xml | 32 + .../layout/com_facebook_picker_checkbox.xml | 25 + .../res/layout/com_facebook_picker_image.xml | 24 + .../layout/com_facebook_picker_list_row.xml | 48 + ...om_facebook_picker_list_section_header.xml | 34 + .../layout/com_facebook_picker_search_box.xml | 21 + .../layout/com_facebook_picker_title_bar.xml | 63 + .../com_facebook_picker_title_bar_stub.xml | 25 + .../com_facebook_placepickerfragment.xml | 53 + ..._facebook_placepickerfragment_list_row.xml | 70 + .../com_facebook_usersettingsfragment.xml | 59 + facebook/facebook/res/values-es/strings.xml | 44 + facebook/facebook/res/values-he/strings.xml | 44 + facebook/facebook/res/values-iw/strings.xml | 44 + facebook/facebook/res/values/attrs.xml | 52 + facebook/facebook/res/values/strings.xml | 44 + facebook/facebook/res/values/styles.xml | 59 + .../src/com/facebook/AccessToken.java | 359 ++++ .../src/com/facebook/AccessTokenSource.java | 63 + .../src/com/facebook/AuthorizationClient.java | 806 +++++++ .../FacebookAuthorizationException.java | 65 + .../com/facebook/FacebookDialogException.java | 53 + .../src/com/facebook/FacebookException.java | 63 + .../FacebookGraphObjectException.java | 63 + .../FacebookOperationCanceledException.java | 59 + .../com/facebook/FacebookRequestError.java | 451 ++++ .../src/com/facebook/FacebookSdkVersion.java | 22 + .../facebook/FacebookServiceException.java | 63 + .../src/com/facebook/GetTokenClient.java | 128 ++ .../facebook/src/com/facebook/HttpMethod.java | 37 + .../src/com/facebook/LegacyHelper.java | 31 + .../src/com/facebook/LoggingBehavior.java | 41 + .../src/com/facebook/LoginActivity.java | 142 ++ .../src/com/facebook/NativeProtocol.java | 254 +++ .../NonCachingTokenCachingStrategy.java | 39 + .../facebook/src/com/facebook/Request.java | 1823 ++++++++++++++++ .../src/com/facebook/RequestAsyncTask.java | 189 ++ .../src/com/facebook/RequestBatch.java | 227 ++ .../facebook/src/com/facebook/Response.java | 461 ++++ .../facebook/src/com/facebook/Session.java | 1887 +++++++++++++++++ .../com/facebook/SessionDefaultAudience.java | 55 + .../com/facebook/SessionLoginBehavior.java | 59 + .../src/com/facebook/SessionState.java | 117 + .../facebook/src/com/facebook/Settings.java | 306 +++ ...SharedPreferencesTokenCachingStrategy.java | 403 ++++ .../src/com/facebook/TestSession.java | 516 +++++ .../com/facebook/TokenCachingStrategy.java | 378 ++++ .../src/com/facebook/UiLifecycleHelper.java | 167 ++ .../facebook/android/AsyncFacebookRunner.java | 61 +- .../src/com/facebook/android/DialogError.java | 23 +- .../src/com/facebook/android/Facebook.java | 1187 +++++++---- .../com/facebook/android/FacebookError.java | 22 +- .../src/com/facebook/android/FbDialog.java | 215 +- .../src/com/facebook/android/Util.java | 113 +- .../internal/CacheableRequestBatch.java | 57 + .../com/facebook/internal/FileLruCache.java | 606 ++++++ .../src/com/facebook/internal/Logger.java | 138 ++ .../com/facebook/internal/ServerProtocol.java | 48 + .../internal/SessionAuthorizationType.java | 27 + .../com/facebook/internal/SessionTracker.java | 239 +++ .../src/com/facebook/internal/Utility.java | 290 +++ .../src/com/facebook/internal/Validate.java | 73 + .../com/facebook/internal/package-info.java | 6 + .../src/com/facebook/model/GraphLocation.java | 130 ++ .../com/facebook/model/GraphMultiResult.java | 32 + .../src/com/facebook/model/GraphObject.java | 745 +++++++ .../com/facebook/model/GraphObjectList.java | 47 + .../src/com/facebook/model/GraphPlace.java | 69 + .../src/com/facebook/model/GraphUser.java | 124 ++ .../src/com/facebook/model/JsonUtil.java | 122 ++ .../com/facebook/model/OpenGraphAction.java | 213 ++ .../src/com/facebook/model/PropertyName.java | 34 + .../com/facebook/widget/FacebookFragment.java | 297 +++ .../facebook/widget/FriendPickerFragment.java | 257 +++ .../facebook/widget/GraphObjectAdapter.java | 799 +++++++ .../facebook/widget/GraphObjectCursor.java | 55 + .../widget/GraphObjectPagingLoader.java | 226 ++ .../com/facebook/widget/ImageDownloader.java | 343 +++ .../src/com/facebook/widget/ImageRequest.java | 145 ++ .../com/facebook/widget/ImageResponse.java | 50 + .../facebook/widget/ImageResponseCache.java | 113 + .../src/com/facebook/widget/LoginButton.java | 673 ++++++ .../com/facebook/widget/PickerFragment.java | 1040 +++++++++ .../facebook/widget/PlacePickerFragment.java | 530 +++++ .../facebook/widget/ProfilePictureView.java | 520 +++++ .../widget/SimpleGraphObjectCursor.java | 162 ++ .../com/facebook/widget/UrlRedirectCache.java | 101 + .../facebook/widget/UserSettingsFragment.java | 394 ++++ .../src/com/facebook/widget/WebDialog.java | 733 +++++++ .../src/com/facebook/widget/WorkQueue.java | 221 ++ facebook/facebook/tests/.classpath | 8 + facebook/facebook/tests/.project | 33 + facebook/facebook/tests/AndroidManifest.xml | 31 + facebook/facebook/tests/SdkTests.eml | 6 + facebook/facebook/tests/ant.properties | 20 + facebook/facebook/tests/assets/DarkScreen.mov | Bin 0 -> 1932 bytes facebook/facebook/tests/build.xml | 101 + facebook/facebook/tests/proguard-project.txt | 20 + facebook/facebook/tests/project.properties | 16 + .../layout/friend_picker_test_layout_1.xml | 32 + .../res/layout/place_picker_test_layout_1.xml | 34 + .../facebook/tests/res/values/strings.xml | 20 + .../src/com/facebook/AccessTokenTests.java | 279 +++ .../src/com/facebook/AsyncRequestTests.java | 312 +++ .../facebook/AuthorizationClientTests.java | 684 ++++++ .../src/com/facebook/BatchRequestTests.java | 537 +++++ .../facebook/FacebookActivityTestCase.java | 680 ++++++ .../com/facebook/FacebookActivityTests.java | 75 + .../facebook/FacebookRequestErrorTests.java | 321 +++ .../src/com/facebook/FacebookTestCase.java | 31 + .../src/com/facebook/GraphRequestTests.java | 90 + .../tests/src/com/facebook/RequestTests.java | 684 ++++++ .../tests/src/com/facebook/SessionTests.java | 818 +++++++ .../src/com/facebook/SessionTestsBase.java | 316 +++ .../tests/src/com/facebook/SettingsTests.java | 74 + .../SharedPreferencesTokenCacheTests.java | 349 +++ .../tests/src/com/facebook/TestBlocker.java | 115 + .../src/com/facebook/TestSessionTests.java | 151 ++ .../tests/src/com/facebook/TestUtils.java | 95 + .../facebook/internal/FileLruCacheTests.java | 359 ++++ .../internal/SessionTrackerTests.java | 183 ++ .../com/facebook/internal/ValidateTests.java | 105 + .../model/GraphObjectFactoryTests.java | 1145 ++++++++++ .../src/com/facebook/model/JsonUtilTests.java | 103 + .../com/facebook/widget/FragmentTestCase.java | 98 + .../widget/FriendPickerFragmentTests.java | 175 ++ .../widget/GraphObjectPagingLoaderTests.java | 162 ++ .../widget/ImageResponseCacheTests.java | 108 + .../com/facebook/widget/LoginButtonTest.java | 313 +++ .../widget/PlacePickerFragmentTests.java | 279 +++ .../widget/UserSettingsFragmentTests.java | 65 + .../com/facebook/widget/WorkQueueTests.java | 345 +++ facebook/libs/android-support-v4.jar | Bin 0 -> 349252 bytes facebook/samples/BooleanOGSample/.classpath | 8 + facebook/samples/BooleanOGSample/.project | 33 + .../BooleanOGSample/AndroidManifest.xml | 21 + .../samples/BooleanOGSample/ant.properties | 18 + facebook/samples/BooleanOGSample/build.xml | 92 + .../BooleanOGSample/proguard-project.txt | 20 + .../BooleanOGSample/project.properties | 15 + .../res/drawable-hdpi/icon.png | Bin 0 -> 8111 bytes .../res/drawable-mdpi/icon.png | Bin 0 -> 4822 bytes .../res/drawable-xhdpi/icon.png | Bin 0 -> 12272 bytes .../res/drawable/false_content.png | Bin 0 -> 3380 bytes .../BooleanOGSample/res/drawable/icon.png | Bin 0 -> 4822 bytes .../res/drawable/true_content.png | Bin 0 -> 2806 bytes .../res/layout/content_group.xml | 35 + .../res/layout/friend_activity_row.xml | 38 + .../res/layout/friends_group.xml | 61 + .../res/layout/logic_group.xml | 85 + .../BooleanOGSample/res/layout/main.xml | 63 + .../res/layout/settings_group.xml | 27 + .../BooleanOGSample/res/values/strings.xml | 48 + .../samples/booleanog/LogicActivity.java | 824 +++++++ .../samples/FriendPickerSample/.classpath | 8 + facebook/samples/FriendPickerSample/.project | 33 + .../FriendPickerSample/AndroidManifest.xml | 30 + .../samples/FriendPickerSample/ant.properties | 18 + facebook/samples/FriendPickerSample/build.xml | 92 + .../FriendPickerSample/proguard-project.txt | 20 + .../FriendPickerSample/project.properties | 15 + .../res/drawable-hdpi/icon.png | Bin 0 -> 8006 bytes .../res/drawable-mdpi/icon.png | Bin 0 -> 4790 bytes .../res/drawable-xhdpi/icon.png | Bin 0 -> 11940 bytes .../FriendPickerSample/res/drawable/icon.png | Bin 0 -> 4790 bytes .../FriendPickerSample/res/layout/main.xml | 37 + .../res/layout/pick_friends_activity.xml | 29 + .../FriendPickerSample/res/values/strings.xml | 23 + .../friendpicker/FriendPickerApplication.java | 36 + .../FriendPickerSampleActivity.java | 106 + .../friendpicker/PickFriendsActivity.java | 104 + facebook/samples/GraphApiSample/.classpath | 8 + facebook/samples/GraphApiSample/.project | 33 + .../GraphApiSample/AndroidManifest.xml | 28 + .../samples/GraphApiSample/ant.properties | 18 + facebook/samples/GraphApiSample/build.xml | 92 + .../GraphApiSample/proguard-project.txt | 20 + .../samples/GraphApiSample/project.properties | 15 + .../GraphApiSample/res/drawable-hdpi/icon.png | Bin 0 -> 8269 bytes .../GraphApiSample/res/drawable-mdpi/icon.png | Bin 0 -> 4957 bytes .../res/drawable-xhdpi/icon.png | Bin 0 -> 12468 bytes .../GraphApiSample/res/drawable/icon.png | Bin 0 -> 4957 bytes .../GraphApiSample/res/layout/main.xml | 44 + .../GraphApiSample/res/values/strings.xml | 28 + .../graphapi/GraphApiSampleActivity.java | 144 ++ facebook/samples/Hackbook/.classpath | 8 + facebook/samples/Hackbook/.project | 33 + .../Hackbook/AndroidManifest.xml | 6 +- facebook/samples/Hackbook/Hackbook.eml | 5 + .../{examples => samples}/Hackbook/README.md | 0 facebook/samples/Hackbook/build.xml | 83 + .../Hackbook}/default.properties | 8 +- .../samples/Hackbook/proguard-project.txt | 20 + facebook/samples/Hackbook/project.properties | 17 + .../Hackbook/res/drawable-hdpi/splash.png | Bin .../Hackbook/res/drawable/icon.png | Bin .../Hackbook/res/drawable/icon_hack.png | Bin .../Hackbook/res/drawable/login.png | Bin .../Hackbook/res/drawable/login_button.xml | 21 + .../Hackbook/res/drawable/login_down.png | Bin .../Hackbook/res/drawable/logout.png | Bin .../Hackbook/res/drawable/logout_button.xml | 21 + .../Hackbook/res/drawable/logout_down.png | Bin .../Hackbook/res/drawable/me.png | Bin .../Hackbook/res/drawable/splash.png | Bin .../Hackbook/res/drawable/x.png | Bin .../Hackbook/res/layout-land}/main.xml | 16 + .../samples/Hackbook/res/layout-port/main.xml | 59 + .../Hackbook/res/layout/connection_item.xml | 28 + .../res/layout/fields_connections_list.xml | 16 + .../Hackbook/res/layout/fields_item.xml | 31 + .../Hackbook/res/layout/fql_query.xml | 17 + .../Hackbook/res/layout/friend_item.xml | 17 + .../Hackbook/res/layout/friends_list.xml | 27 + .../Hackbook/res/layout/graph_explorer.xml | 16 + .../Hackbook/res/layout/main_list_item.xml | 26 + .../Hackbook/res/layout/permission_item.xml | 25 + .../Hackbook/res/layout/permissions_list.xml | 16 + .../Hackbook/res/layout/place_item.xml | 17 + .../Hackbook/res/layout/places_list.xml | 27 + .../samples/Hackbook/res/layout/splash.xml | 22 + .../Hackbook/res/layout/token_refresh.xml | 16 + .../res/layout/update_post_response.xml | 16 + .../res/layout/upload_photo_response.xml | 16 + .../samples/Hackbook/res/values/colors.xml | 26 + .../Hackbook/res/values/strings.xml | 18 +- .../facebook/android/BaseDialogListener.java | 41 + .../facebook/android/BaseRequestListener.java | 24 +- .../src/com/facebook/android/FQLQuery.java | 24 +- .../android/FieldsConnectionsDialog.java | 44 +- .../android/FriendsGetProfilePics.java | 22 +- .../src/com/facebook/android/FriendsList.java | 32 +- .../com/facebook/android/GraphExplorer.java | 38 +- .../src/com/facebook/android/Hackbook.java | 27 +- .../facebook/android/IntentUriHandler.java | 16 + .../src/com/facebook/android/LoginButton.java | 6 +- .../facebook/android/PermissionsDialog.java | 31 +- .../src/com/facebook/android/Places.java | 31 +- .../com/facebook/android/SessionEvents.java | 2 +- .../com/facebook/android/SessionStore.java | 14 +- .../com/facebook/android/SplashActivity.java | 22 +- .../facebook/android/TokenRefreshDialog.java | 23 +- .../android/UpdateStatusResultDialog.java | 22 +- .../android/UploadPhotoResultDialog.java | 22 +- .../src/com/facebook/android/Utility.java | 39 +- .../samples/HelloFacebookSample/.classpath | 8 + facebook/samples/HelloFacebookSample/.project | 33 + .../HelloFacebookSample/AndroidManifest.xml | 26 + .../HelloFacebookSample/ant.properties | 18 + .../samples/HelloFacebookSample/build.xml | 92 + .../HelloFacebookSample/proguard-project.txt | 20 + .../HelloFacebookSample/project.properties | 15 + .../res/drawable-hdpi/icon.png | Bin 0 -> 7805 bytes .../res/drawable-mdpi/icon.png | Bin 0 -> 4661 bytes .../res/drawable-xhdpi/icon.png | Bin 0 -> 11811 bytes .../HelloFacebookSample/res/drawable/icon.png | Bin 0 -> 4661 bytes .../HelloFacebookSample/res/layout/main.xml | 91 + .../res/values/strings.xml | 34 + .../HelloFacebookSampleActivity.java | 437 ++++ facebook/samples/PlacePickerSample/.classpath | 8 + facebook/samples/PlacePickerSample/.project | 33 + .../PlacePickerSample/AndroidManifest.xml | 31 + .../samples/PlacePickerSample/ant.properties | 18 + facebook/samples/PlacePickerSample/build.xml | 92 + .../PlacePickerSample/proguard-project.txt | 20 + .../PlacePickerSample/project.properties | 15 + .../res/drawable-hdpi/icon.png | Bin 0 -> 8343 bytes .../res/drawable-mdpi/icon.png | Bin 0 -> 4932 bytes .../res/drawable-xhdpi/icon.png | Bin 0 -> 12510 bytes .../PlacePickerSample/res/drawable/icon.png | Bin 0 -> 4932 bytes .../PlacePickerSample/res/layout/main.xml | 56 + .../res/layout/pick_place_activity.xml | 34 + .../PlacePickerSample/res/values/strings.xml | 24 + .../placepicker/PickPlaceActivity.java | 110 + .../placepicker/PlacePickerApplication.java | 35 + .../PlacePickerSampleActivity.java | 213 ++ .../samples/ProfilePictureSample/.classpath | 8 + .../samples/ProfilePictureSample/.project | 33 + .../ProfilePictureSample/AndroidManifest.xml | 21 + .../ProfilePictureSample/ant.properties | 18 + .../samples/ProfilePictureSample/build.xml | 92 + .../ProfilePictureSample/proguard-project.txt | 20 + .../ProfilePictureSample/project.properties | 15 + .../res/drawable-hdpi/icon.png | Bin 0 -> 7962 bytes .../res/drawable-mdpi/icon.png | Bin 0 -> 4714 bytes .../res/drawable-xhdpi/icon.png | Bin 0 -> 11992 bytes .../res/drawable/icon.png | Bin 0 -> 4714 bytes .../activity_profile_picture_sample.xml | 23 + .../fragment_profile_picture_sample.xml | 152 ++ .../res/values/strings.xml | 36 + .../ProfilePictureSampleActivity.java | 28 + .../ProfilePictureSampleFragment.java | 314 +++ facebook/samples/Scrumptious/.classpath | 8 + facebook/samples/Scrumptious/.project | 33 + .../samples/Scrumptious/AndroidManifest.xml | 29 + facebook/samples/Scrumptious/ant.properties | 18 + facebook/samples/Scrumptious/build.xml | 92 + .../samples/Scrumptious/proguard-project.txt | 20 + .../samples/Scrumptious/project.properties | 15 + .../Scrumptious/res/drawable-hdpi/icon.png | Bin 0 -> 8590 bytes .../Scrumptious/res/drawable-mdpi/icon.png | Bin 0 -> 5046 bytes .../Scrumptious/res/drawable-xhdpi/icon.png | Bin 0 -> 12898 bytes .../res/drawable/action_eating.png | Bin 0 -> 2763 bytes .../res/drawable/action_location.png | Bin 0 -> 3144 bytes .../res/drawable/action_people.png | Bin 0 -> 2592 bytes .../res/drawable/button_border.xml | 24 + .../Scrumptious/res/drawable/facebook.png | Bin 0 -> 3156 bytes .../samples/Scrumptious/res/drawable/icon.png | Bin 0 -> 5046 bytes .../Scrumptious/res/layout/listitem.xml | 50 + .../samples/Scrumptious/res/layout/main.xml | 37 + .../Scrumptious/res/layout/pickers.xml | 28 + .../Scrumptious/res/layout/selection.xml | 71 + .../samples/Scrumptious/res/layout/splash.xml | 76 + .../Scrumptious/res/values/strings.xml | 72 + .../facebook/scrumptious/BaseListElement.java | 170 ++ .../facebook/scrumptious/FullListView.java | 62 + .../facebook/scrumptious/MainActivity.java | 172 ++ .../facebook/scrumptious/PickerActivity.java | 233 ++ .../scrumptious/ScrumptiousApplication.java | 48 + .../scrumptious/SelectionFragment.java | 721 +++++++ .../facebook/scrumptious/SplashFragment.java | 31 + .../samples/SessionLoginSample/.classpath | 8 + facebook/samples/SessionLoginSample/.project | 33 + .../SessionLoginSample/AndroidManifest.xml | 36 + .../samples/SessionLoginSample/ant.properties | 18 + facebook/samples/SessionLoginSample/build.xml | 92 + .../SessionLoginSample/proguard-project.txt | 20 + .../SessionLoginSample/project.properties | 15 + .../res/drawable-hdpi/icon.png | Bin 0 -> 8061 bytes .../res/drawable-mdpi/icon.png | Bin 0 -> 4792 bytes .../res/drawable-xhdpi/icon.png | Bin 0 -> 12212 bytes .../SessionLoginSample/res/drawable/icon.png | Bin 0 -> 4792 bytes .../res/layout/activity.xml | 38 + .../res/layout/custom_fragment_activity.xml | 28 + .../res/layout/fragment.xml | 38 + .../res/layout/login_fragment_activity.xml | 12 + .../SessionLoginSample/res/layout/main.xml | 41 + .../SessionLoginSample/res/values/strings.xml | 30 + .../LoginUsingActivityActivity.java | 128 ++ .../LoginUsingCustomFragmentActivity.java | 28 + .../LoginUsingLoginFragmentActivity.java | 52 + .../sessionlogin/SessionLoginFragment.java | 131 ++ .../SessionLoginSampleActivity.java | 72 + facebook/samples/SwitchUserSample/.classpath | 8 + facebook/samples/SwitchUserSample/.project | 33 + .../SwitchUserSample/AndroidManifest.xml | 23 + .../samples/SwitchUserSample/ant.properties | 18 + facebook/samples/SwitchUserSample/build.xml | 92 + .../SwitchUserSample/proguard-project.txt | 20 + .../SwitchUserSample/project.properties | 15 + .../res/drawable-hdpi/icon.png | Bin 0 -> 8091 bytes .../res/drawable-mdpi/icon.png | Bin 0 -> 4908 bytes .../res/drawable-xhdpi/icon.png | Bin 0 -> 12216 bytes .../SwitchUserSample/res/drawable/icon.png | Bin 0 -> 4908 bytes .../res/layout/fragment_profile.xml | 39 + .../res/layout/list_item_user.xml | 53 + .../SwitchUserSample/res/layout/main.xml | 22 + .../res/menu/context_settings.xml | 22 + .../res/menu/options_profile.xml | 23 + .../SwitchUserSample/res/values/strings.xml | 26 + .../samples/switchuser/MainActivity.java | 251 +++ .../samples/switchuser/ProfileFragment.java | 103 + .../samples/switchuser/SettingsFragment.java | 283 +++ .../com/facebook/samples/switchuser/Slot.java | 91 + facebook/scripts/build_and_test.sh | 51 + facebook/scripts/configure_unit_tests.sh | 50 + facebook/tests/default.properties | 12 - facebook/tests/res/layout/main.xml | 16 + facebook/tests/res/values/colors.xml | 18 +- facebook/tests/res/values/strings.xml | 16 + .../src/com/facebook/android/tests/Tests.java | 16 + 501 files changed, 40778 insertions(+), 4014 deletions(-) delete mode 100644 astrid/common-src/com/facebook/android/AuthListener.java delete mode 100644 astrid/common-src/com/facebook/android/LoginButton.java create mode 100644 facebook/CONTRIBUTING.mdown create mode 100644 facebook/LICENSE.txt create mode 100644 facebook/NOTICE.txt delete mode 100644 facebook/README.md create mode 100644 facebook/README.mdown delete mode 100644 facebook/examples/Hackbook/default.properties delete mode 100644 facebook/examples/Hackbook/res/drawable/login_button.xml delete mode 100644 facebook/examples/Hackbook/res/drawable/logout_button.xml delete mode 100644 facebook/examples/Hackbook/res/layout/connection_item.xml delete mode 100644 facebook/examples/Hackbook/res/layout/fields_item.xml delete mode 100644 facebook/examples/Hackbook/res/layout/friends_list.xml delete mode 100644 facebook/examples/Hackbook/res/layout/main_list_item.xml delete mode 100644 facebook/examples/Hackbook/res/layout/permission_item.xml delete mode 100644 facebook/examples/Hackbook/res/layout/places_list.xml delete mode 100644 facebook/examples/Hackbook/res/layout/splash.xml delete mode 100644 facebook/examples/Hackbook/res/values/colors.xml delete mode 100644 facebook/examples/Hackbook/src/com/facebook/android/BaseDialogListener.java delete mode 100644 facebook/examples/simple/AndroidManifest.xml delete mode 100644 facebook/examples/simple/default.properties delete mode 100644 facebook/examples/simple/res/drawable/login.png delete mode 100644 facebook/examples/simple/res/drawable/login_button.xml delete mode 100644 facebook/examples/simple/res/drawable/login_down.png delete mode 100644 facebook/examples/simple/res/drawable/logout.png delete mode 100644 facebook/examples/simple/res/drawable/logout_button.xml delete mode 100644 facebook/examples/simple/res/drawable/logout_down.png delete mode 100644 facebook/examples/simple/res/layout/main.xml delete mode 100644 facebook/examples/simple/res/values/colors.xml delete mode 100644 facebook/examples/simple/res/values/strings.xml delete mode 100644 facebook/examples/simple/src/com/facebook/android/BaseDialogListener.java delete mode 100644 facebook/examples/simple/src/com/facebook/android/BaseRequestListener.java delete mode 100644 facebook/examples/simple/src/com/facebook/android/Example.java delete mode 100644 facebook/examples/simple/src/com/facebook/android/LoginButton.java delete mode 100644 facebook/examples/simple/src/com/facebook/android/SessionEvents.java delete mode 100644 facebook/examples/simple/src/com/facebook/android/SessionStore.java delete mode 100644 facebook/examples/stream/AndroidManifest.xml delete mode 100644 facebook/examples/stream/assets/like_icon.png delete mode 100644 facebook/examples/stream/assets/login.css delete mode 100644 facebook/examples/stream/assets/login.html delete mode 100644 facebook/examples/stream/assets/login_button.png delete mode 100644 facebook/examples/stream/assets/stream.css delete mode 100644 facebook/examples/stream/assets/stream.js delete mode 100644 facebook/examples/stream/res/drawable-mdpi/icon.png delete mode 100644 facebook/examples/stream/res/values/strings.xml delete mode 100644 facebook/examples/stream/src/com/facebook/stream/App.java delete mode 100644 facebook/examples/stream/src/com/facebook/stream/AsyncRequestListener.java delete mode 100644 facebook/examples/stream/src/com/facebook/stream/Dispatcher.java delete mode 100644 facebook/examples/stream/src/com/facebook/stream/FileIO.java delete mode 100644 facebook/examples/stream/src/com/facebook/stream/Handler.java delete mode 100644 facebook/examples/stream/src/com/facebook/stream/LoginHandler.java delete mode 100644 facebook/examples/stream/src/com/facebook/stream/LogoutHandler.java delete mode 100644 facebook/examples/stream/src/com/facebook/stream/Session.java delete mode 100644 facebook/examples/stream/src/com/facebook/stream/StreamHandler.java delete mode 100644 facebook/examples/stream/src/com/facebook/stream/StreamJsHandler.java delete mode 100644 facebook/examples/stream/src/com/facebook/stream/StreamRenderer.java create mode 100644 facebook/facebook/TestApp/AndroidManifest.xml create mode 100644 facebook/facebook/TestApp/SdkTestApp.eml create mode 100644 facebook/facebook/TestApp/ant.properties create mode 100644 facebook/facebook/TestApp/build.xml create mode 100644 facebook/facebook/TestApp/proguard-project.txt create mode 100644 facebook/facebook/TestApp/project.properties rename facebook/{examples/stream/res/drawable-hdpi/icon.png => facebook/TestApp/res/drawable-hdpi/ic_launcher.png} (100%) rename facebook/{examples/stream/res/drawable-ldpi/icon.png => facebook/TestApp/res/drawable-ldpi/ic_launcher.png} (100%) rename facebook/{examples/simple/res/drawable/icon.png => facebook/TestApp/res/drawable-mdpi/ic_launcher.png} (100%) create mode 100644 facebook/facebook/TestApp/res/layout/main.xml create mode 100644 facebook/facebook/TestApp/res/values/strings.xml create mode 100644 facebook/facebook/TestApp/src/com/facebook/sdk/StatusActivity.java create mode 100644 facebook/facebook/android-sdk.eml create mode 100644 facebook/facebook/ant.properties delete mode 100644 facebook/facebook/default.properties create mode 120000 facebook/facebook/libs delete mode 100644 facebook/facebook/proguard.cfg create mode 100644 facebook/facebook/res/drawable-hdpi/com_facebook_button_grey_focused.9.png create mode 100644 facebook/facebook/res/drawable-hdpi/com_facebook_button_grey_normal.9.png create mode 100644 facebook/facebook/res/drawable-hdpi/com_facebook_button_grey_pressed.9.png rename facebook/facebook/res/drawable-hdpi/{close.png => com_facebook_close.png} (51%) rename facebook/facebook/res/drawable-hdpi/{facebook_icon.png => com_facebook_icon.png} (100%) create mode 100644 facebook/facebook/res/drawable-hdpi/com_facebook_loginbutton_blue_focused.png create mode 100644 facebook/facebook/res/drawable-hdpi/com_facebook_loginbutton_blue_normal.png create mode 100644 facebook/facebook/res/drawable-hdpi/com_facebook_loginbutton_blue_pressed.png create mode 100644 facebook/facebook/res/drawable-hdpi/com_facebook_logo.png rename facebook/facebook/res/drawable-ldpi/{close.png => com_facebook_close.png} (100%) rename facebook/facebook/res/drawable-ldpi/{facebook_icon.png => com_facebook_icon.png} (100%) create mode 100644 facebook/facebook/res/drawable-xhdpi/com_facebook_button_grey_focused.9.png create mode 100644 facebook/facebook/res/drawable-xhdpi/com_facebook_button_grey_normal.9.png create mode 100644 facebook/facebook/res/drawable-xhdpi/com_facebook_button_grey_pressed.9.png rename facebook/facebook/res/drawable-xhdpi/{close.png => com_facebook_close.png} (100%) mode change 100644 => 100755 create mode 100644 facebook/facebook/res/drawable-xhdpi/com_facebook_loginbutton_blue_focused.png create mode 100644 facebook/facebook/res/drawable-xhdpi/com_facebook_loginbutton_blue_normal.png create mode 100644 facebook/facebook/res/drawable-xhdpi/com_facebook_loginbutton_blue_pressed.png create mode 100644 facebook/facebook/res/drawable-xhdpi/com_facebook_logo.png create mode 100644 facebook/facebook/res/drawable/com_facebook_button_check.xml create mode 100644 facebook/facebook/res/drawable/com_facebook_button_check_off.png create mode 100644 facebook/facebook/res/drawable/com_facebook_button_check_on.png create mode 100644 facebook/facebook/res/drawable/com_facebook_button_grey_focused.9.png create mode 100644 facebook/facebook/res/drawable/com_facebook_button_grey_normal.9.png create mode 100644 facebook/facebook/res/drawable/com_facebook_button_grey_pressed.9.png rename facebook/facebook/res/drawable/{close.png => com_facebook_close.png} (60%) mode change 100644 => 100755 rename facebook/facebook/res/drawable/{facebook_icon.png => com_facebook_icon.png} (100%) create mode 100644 facebook/facebook/res/drawable/com_facebook_list_divider.9.png create mode 100644 facebook/facebook/res/drawable/com_facebook_list_section_header_background.9.png create mode 100644 facebook/facebook/res/drawable/com_facebook_loginbutton_blue.xml create mode 100644 facebook/facebook/res/drawable/com_facebook_loginbutton_blue_focused.png create mode 100644 facebook/facebook/res/drawable/com_facebook_loginbutton_blue_normal.png create mode 100644 facebook/facebook/res/drawable/com_facebook_loginbutton_blue_pressed.png create mode 100644 facebook/facebook/res/drawable/com_facebook_loginbutton_silver.xml create mode 100644 facebook/facebook/res/drawable/com_facebook_logo.png create mode 100644 facebook/facebook/res/drawable/com_facebook_picker_item_background.xml create mode 100644 facebook/facebook/res/drawable/com_facebook_picker_list_focused.9.png create mode 100644 facebook/facebook/res/drawable/com_facebook_picker_list_longpressed.9.png create mode 100644 facebook/facebook/res/drawable/com_facebook_picker_list_pressed.9.png create mode 100644 facebook/facebook/res/drawable/com_facebook_picker_list_selector.xml create mode 100644 facebook/facebook/res/drawable/com_facebook_picker_list_selector_background_transition.xml create mode 100644 facebook/facebook/res/drawable/com_facebook_picker_list_selector_disabled.9.png create mode 100644 facebook/facebook/res/drawable/com_facebook_picker_top_button.xml create mode 100644 facebook/facebook/res/drawable/com_facebook_place_default_icon.png create mode 100644 facebook/facebook/res/drawable/com_facebook_profile_default_icon.png create mode 100644 facebook/facebook/res/drawable/com_facebook_profile_picture_blank_portrait.png create mode 100644 facebook/facebook/res/drawable/com_facebook_profile_picture_blank_square.png create mode 100644 facebook/facebook/res/drawable/com_facebook_top_background.xml create mode 100644 facebook/facebook/res/drawable/com_facebook_top_button.xml create mode 100644 facebook/facebook/res/drawable/com_facebook_usersettingsfragment_background_gradient.xml create mode 100644 facebook/facebook/res/layout/com_facebook_friendpickerfragment.xml create mode 100644 facebook/facebook/res/layout/com_facebook_login_activity_layout.xml create mode 100644 facebook/facebook/res/layout/com_facebook_picker_activity_circle_row.xml create mode 100644 facebook/facebook/res/layout/com_facebook_picker_checkbox.xml create mode 100644 facebook/facebook/res/layout/com_facebook_picker_image.xml create mode 100644 facebook/facebook/res/layout/com_facebook_picker_list_row.xml create mode 100644 facebook/facebook/res/layout/com_facebook_picker_list_section_header.xml create mode 100644 facebook/facebook/res/layout/com_facebook_picker_search_box.xml create mode 100644 facebook/facebook/res/layout/com_facebook_picker_title_bar.xml create mode 100644 facebook/facebook/res/layout/com_facebook_picker_title_bar_stub.xml create mode 100644 facebook/facebook/res/layout/com_facebook_placepickerfragment.xml create mode 100644 facebook/facebook/res/layout/com_facebook_placepickerfragment_list_row.xml create mode 100644 facebook/facebook/res/layout/com_facebook_usersettingsfragment.xml create mode 100644 facebook/facebook/res/values-es/strings.xml create mode 100644 facebook/facebook/res/values-he/strings.xml create mode 100644 facebook/facebook/res/values-iw/strings.xml create mode 100644 facebook/facebook/res/values/attrs.xml create mode 100644 facebook/facebook/res/values/strings.xml create mode 100644 facebook/facebook/res/values/styles.xml create mode 100644 facebook/facebook/src/com/facebook/AccessToken.java create mode 100644 facebook/facebook/src/com/facebook/AccessTokenSource.java create mode 100644 facebook/facebook/src/com/facebook/AuthorizationClient.java create mode 100644 facebook/facebook/src/com/facebook/FacebookAuthorizationException.java create mode 100644 facebook/facebook/src/com/facebook/FacebookDialogException.java create mode 100644 facebook/facebook/src/com/facebook/FacebookException.java create mode 100644 facebook/facebook/src/com/facebook/FacebookGraphObjectException.java create mode 100644 facebook/facebook/src/com/facebook/FacebookOperationCanceledException.java create mode 100644 facebook/facebook/src/com/facebook/FacebookRequestError.java create mode 100644 facebook/facebook/src/com/facebook/FacebookSdkVersion.java create mode 100644 facebook/facebook/src/com/facebook/FacebookServiceException.java create mode 100644 facebook/facebook/src/com/facebook/GetTokenClient.java create mode 100644 facebook/facebook/src/com/facebook/HttpMethod.java create mode 100644 facebook/facebook/src/com/facebook/LegacyHelper.java create mode 100644 facebook/facebook/src/com/facebook/LoggingBehavior.java create mode 100644 facebook/facebook/src/com/facebook/LoginActivity.java create mode 100644 facebook/facebook/src/com/facebook/NativeProtocol.java create mode 100644 facebook/facebook/src/com/facebook/NonCachingTokenCachingStrategy.java create mode 100644 facebook/facebook/src/com/facebook/Request.java create mode 100644 facebook/facebook/src/com/facebook/RequestAsyncTask.java create mode 100644 facebook/facebook/src/com/facebook/RequestBatch.java create mode 100644 facebook/facebook/src/com/facebook/Response.java create mode 100644 facebook/facebook/src/com/facebook/Session.java create mode 100644 facebook/facebook/src/com/facebook/SessionDefaultAudience.java create mode 100644 facebook/facebook/src/com/facebook/SessionLoginBehavior.java create mode 100644 facebook/facebook/src/com/facebook/SessionState.java create mode 100644 facebook/facebook/src/com/facebook/Settings.java create mode 100644 facebook/facebook/src/com/facebook/SharedPreferencesTokenCachingStrategy.java create mode 100644 facebook/facebook/src/com/facebook/TestSession.java create mode 100644 facebook/facebook/src/com/facebook/TokenCachingStrategy.java create mode 100644 facebook/facebook/src/com/facebook/UiLifecycleHelper.java create mode 100644 facebook/facebook/src/com/facebook/internal/CacheableRequestBatch.java create mode 100644 facebook/facebook/src/com/facebook/internal/FileLruCache.java create mode 100644 facebook/facebook/src/com/facebook/internal/Logger.java create mode 100644 facebook/facebook/src/com/facebook/internal/ServerProtocol.java create mode 100644 facebook/facebook/src/com/facebook/internal/SessionAuthorizationType.java create mode 100644 facebook/facebook/src/com/facebook/internal/SessionTracker.java create mode 100644 facebook/facebook/src/com/facebook/internal/Utility.java create mode 100644 facebook/facebook/src/com/facebook/internal/Validate.java create mode 100644 facebook/facebook/src/com/facebook/internal/package-info.java create mode 100644 facebook/facebook/src/com/facebook/model/GraphLocation.java create mode 100644 facebook/facebook/src/com/facebook/model/GraphMultiResult.java create mode 100644 facebook/facebook/src/com/facebook/model/GraphObject.java create mode 100644 facebook/facebook/src/com/facebook/model/GraphObjectList.java create mode 100644 facebook/facebook/src/com/facebook/model/GraphPlace.java create mode 100644 facebook/facebook/src/com/facebook/model/GraphUser.java create mode 100644 facebook/facebook/src/com/facebook/model/JsonUtil.java create mode 100644 facebook/facebook/src/com/facebook/model/OpenGraphAction.java create mode 100644 facebook/facebook/src/com/facebook/model/PropertyName.java create mode 100644 facebook/facebook/src/com/facebook/widget/FacebookFragment.java create mode 100644 facebook/facebook/src/com/facebook/widget/FriendPickerFragment.java create mode 100644 facebook/facebook/src/com/facebook/widget/GraphObjectAdapter.java create mode 100644 facebook/facebook/src/com/facebook/widget/GraphObjectCursor.java create mode 100644 facebook/facebook/src/com/facebook/widget/GraphObjectPagingLoader.java create mode 100644 facebook/facebook/src/com/facebook/widget/ImageDownloader.java create mode 100644 facebook/facebook/src/com/facebook/widget/ImageRequest.java create mode 100644 facebook/facebook/src/com/facebook/widget/ImageResponse.java create mode 100644 facebook/facebook/src/com/facebook/widget/ImageResponseCache.java create mode 100644 facebook/facebook/src/com/facebook/widget/LoginButton.java create mode 100644 facebook/facebook/src/com/facebook/widget/PickerFragment.java create mode 100644 facebook/facebook/src/com/facebook/widget/PlacePickerFragment.java create mode 100644 facebook/facebook/src/com/facebook/widget/ProfilePictureView.java create mode 100644 facebook/facebook/src/com/facebook/widget/SimpleGraphObjectCursor.java create mode 100644 facebook/facebook/src/com/facebook/widget/UrlRedirectCache.java create mode 100644 facebook/facebook/src/com/facebook/widget/UserSettingsFragment.java create mode 100644 facebook/facebook/src/com/facebook/widget/WebDialog.java create mode 100644 facebook/facebook/src/com/facebook/widget/WorkQueue.java create mode 100644 facebook/facebook/tests/.classpath create mode 100644 facebook/facebook/tests/.project create mode 100644 facebook/facebook/tests/AndroidManifest.xml create mode 100644 facebook/facebook/tests/SdkTests.eml create mode 100644 facebook/facebook/tests/ant.properties create mode 100644 facebook/facebook/tests/assets/DarkScreen.mov create mode 100644 facebook/facebook/tests/build.xml create mode 100644 facebook/facebook/tests/proguard-project.txt create mode 100644 facebook/facebook/tests/project.properties create mode 100644 facebook/facebook/tests/res/layout/friend_picker_test_layout_1.xml create mode 100644 facebook/facebook/tests/res/layout/place_picker_test_layout_1.xml create mode 100644 facebook/facebook/tests/res/values/strings.xml create mode 100644 facebook/facebook/tests/src/com/facebook/AccessTokenTests.java create mode 100644 facebook/facebook/tests/src/com/facebook/AsyncRequestTests.java create mode 100644 facebook/facebook/tests/src/com/facebook/AuthorizationClientTests.java create mode 100644 facebook/facebook/tests/src/com/facebook/BatchRequestTests.java create mode 100644 facebook/facebook/tests/src/com/facebook/FacebookActivityTestCase.java create mode 100644 facebook/facebook/tests/src/com/facebook/FacebookActivityTests.java create mode 100644 facebook/facebook/tests/src/com/facebook/FacebookRequestErrorTests.java create mode 100644 facebook/facebook/tests/src/com/facebook/FacebookTestCase.java create mode 100644 facebook/facebook/tests/src/com/facebook/GraphRequestTests.java create mode 100644 facebook/facebook/tests/src/com/facebook/RequestTests.java create mode 100644 facebook/facebook/tests/src/com/facebook/SessionTests.java create mode 100644 facebook/facebook/tests/src/com/facebook/SessionTestsBase.java create mode 100644 facebook/facebook/tests/src/com/facebook/SettingsTests.java create mode 100644 facebook/facebook/tests/src/com/facebook/SharedPreferencesTokenCacheTests.java create mode 100644 facebook/facebook/tests/src/com/facebook/TestBlocker.java create mode 100644 facebook/facebook/tests/src/com/facebook/TestSessionTests.java create mode 100644 facebook/facebook/tests/src/com/facebook/TestUtils.java create mode 100644 facebook/facebook/tests/src/com/facebook/internal/FileLruCacheTests.java create mode 100644 facebook/facebook/tests/src/com/facebook/internal/SessionTrackerTests.java create mode 100644 facebook/facebook/tests/src/com/facebook/internal/ValidateTests.java create mode 100644 facebook/facebook/tests/src/com/facebook/model/GraphObjectFactoryTests.java create mode 100644 facebook/facebook/tests/src/com/facebook/model/JsonUtilTests.java create mode 100644 facebook/facebook/tests/src/com/facebook/widget/FragmentTestCase.java create mode 100644 facebook/facebook/tests/src/com/facebook/widget/FriendPickerFragmentTests.java create mode 100644 facebook/facebook/tests/src/com/facebook/widget/GraphObjectPagingLoaderTests.java create mode 100644 facebook/facebook/tests/src/com/facebook/widget/ImageResponseCacheTests.java create mode 100644 facebook/facebook/tests/src/com/facebook/widget/LoginButtonTest.java create mode 100644 facebook/facebook/tests/src/com/facebook/widget/PlacePickerFragmentTests.java create mode 100644 facebook/facebook/tests/src/com/facebook/widget/UserSettingsFragmentTests.java create mode 100644 facebook/facebook/tests/src/com/facebook/widget/WorkQueueTests.java create mode 100644 facebook/libs/android-support-v4.jar create mode 100644 facebook/samples/BooleanOGSample/.classpath create mode 100644 facebook/samples/BooleanOGSample/.project create mode 100644 facebook/samples/BooleanOGSample/AndroidManifest.xml create mode 100644 facebook/samples/BooleanOGSample/ant.properties create mode 100644 facebook/samples/BooleanOGSample/build.xml create mode 100644 facebook/samples/BooleanOGSample/proguard-project.txt create mode 100644 facebook/samples/BooleanOGSample/project.properties create mode 100644 facebook/samples/BooleanOGSample/res/drawable-hdpi/icon.png create mode 100644 facebook/samples/BooleanOGSample/res/drawable-mdpi/icon.png create mode 100644 facebook/samples/BooleanOGSample/res/drawable-xhdpi/icon.png create mode 100644 facebook/samples/BooleanOGSample/res/drawable/false_content.png create mode 100644 facebook/samples/BooleanOGSample/res/drawable/icon.png create mode 100644 facebook/samples/BooleanOGSample/res/drawable/true_content.png create mode 100644 facebook/samples/BooleanOGSample/res/layout/content_group.xml create mode 100644 facebook/samples/BooleanOGSample/res/layout/friend_activity_row.xml create mode 100644 facebook/samples/BooleanOGSample/res/layout/friends_group.xml create mode 100644 facebook/samples/BooleanOGSample/res/layout/logic_group.xml create mode 100644 facebook/samples/BooleanOGSample/res/layout/main.xml create mode 100644 facebook/samples/BooleanOGSample/res/layout/settings_group.xml create mode 100644 facebook/samples/BooleanOGSample/res/values/strings.xml create mode 100644 facebook/samples/BooleanOGSample/src/com/facebook/samples/booleanog/LogicActivity.java create mode 100644 facebook/samples/FriendPickerSample/.classpath create mode 100644 facebook/samples/FriendPickerSample/.project create mode 100644 facebook/samples/FriendPickerSample/AndroidManifest.xml create mode 100644 facebook/samples/FriendPickerSample/ant.properties create mode 100644 facebook/samples/FriendPickerSample/build.xml create mode 100644 facebook/samples/FriendPickerSample/proguard-project.txt create mode 100644 facebook/samples/FriendPickerSample/project.properties create mode 100644 facebook/samples/FriendPickerSample/res/drawable-hdpi/icon.png create mode 100644 facebook/samples/FriendPickerSample/res/drawable-mdpi/icon.png create mode 100644 facebook/samples/FriendPickerSample/res/drawable-xhdpi/icon.png create mode 100644 facebook/samples/FriendPickerSample/res/drawable/icon.png create mode 100644 facebook/samples/FriendPickerSample/res/layout/main.xml create mode 100644 facebook/samples/FriendPickerSample/res/layout/pick_friends_activity.xml create mode 100644 facebook/samples/FriendPickerSample/res/values/strings.xml create mode 100644 facebook/samples/FriendPickerSample/src/com/facebook/samples/friendpicker/FriendPickerApplication.java create mode 100644 facebook/samples/FriendPickerSample/src/com/facebook/samples/friendpicker/FriendPickerSampleActivity.java create mode 100644 facebook/samples/FriendPickerSample/src/com/facebook/samples/friendpicker/PickFriendsActivity.java create mode 100644 facebook/samples/GraphApiSample/.classpath create mode 100644 facebook/samples/GraphApiSample/.project create mode 100644 facebook/samples/GraphApiSample/AndroidManifest.xml create mode 100644 facebook/samples/GraphApiSample/ant.properties create mode 100644 facebook/samples/GraphApiSample/build.xml create mode 100644 facebook/samples/GraphApiSample/proguard-project.txt create mode 100644 facebook/samples/GraphApiSample/project.properties create mode 100644 facebook/samples/GraphApiSample/res/drawable-hdpi/icon.png create mode 100644 facebook/samples/GraphApiSample/res/drawable-mdpi/icon.png create mode 100644 facebook/samples/GraphApiSample/res/drawable-xhdpi/icon.png create mode 100644 facebook/samples/GraphApiSample/res/drawable/icon.png create mode 100644 facebook/samples/GraphApiSample/res/layout/main.xml create mode 100644 facebook/samples/GraphApiSample/res/values/strings.xml create mode 100644 facebook/samples/GraphApiSample/src/com/facebook/samples/graphapi/GraphApiSampleActivity.java create mode 100644 facebook/samples/Hackbook/.classpath create mode 100644 facebook/samples/Hackbook/.project rename facebook/{examples => samples}/Hackbook/AndroidManifest.xml (92%) create mode 100644 facebook/samples/Hackbook/Hackbook.eml rename facebook/{examples => samples}/Hackbook/README.md (100%) create mode 100644 facebook/samples/Hackbook/build.xml rename facebook/{examples/stream => samples/Hackbook}/default.properties (86%) create mode 100644 facebook/samples/Hackbook/proguard-project.txt create mode 100644 facebook/samples/Hackbook/project.properties rename facebook/{examples => samples}/Hackbook/res/drawable-hdpi/splash.png (100%) rename facebook/{examples => samples}/Hackbook/res/drawable/icon.png (100%) rename facebook/{examples => samples}/Hackbook/res/drawable/icon_hack.png (100%) rename facebook/{examples => samples}/Hackbook/res/drawable/login.png (100%) create mode 100644 facebook/samples/Hackbook/res/drawable/login_button.xml rename facebook/{examples => samples}/Hackbook/res/drawable/login_down.png (100%) rename facebook/{examples => samples}/Hackbook/res/drawable/logout.png (100%) create mode 100644 facebook/samples/Hackbook/res/drawable/logout_button.xml rename facebook/{examples => samples}/Hackbook/res/drawable/logout_down.png (100%) rename facebook/{examples => samples}/Hackbook/res/drawable/me.png (100%) rename facebook/{examples => samples}/Hackbook/res/drawable/splash.png (100%) rename facebook/{examples => samples}/Hackbook/res/drawable/x.png (100%) rename facebook/{examples/Hackbook/res/layout => samples/Hackbook/res/layout-land}/main.xml (74%) create mode 100644 facebook/samples/Hackbook/res/layout-port/main.xml create mode 100644 facebook/samples/Hackbook/res/layout/connection_item.xml rename facebook/{examples => samples}/Hackbook/res/layout/fields_connections_list.xml (76%) create mode 100644 facebook/samples/Hackbook/res/layout/fields_item.xml rename facebook/{examples => samples}/Hackbook/res/layout/fql_query.xml (70%) rename facebook/{examples => samples}/Hackbook/res/layout/friend_item.xml (68%) create mode 100644 facebook/samples/Hackbook/res/layout/friends_list.xml rename facebook/{examples => samples}/Hackbook/res/layout/graph_explorer.xml (87%) create mode 100644 facebook/samples/Hackbook/res/layout/main_list_item.xml create mode 100644 facebook/samples/Hackbook/res/layout/permission_item.xml rename facebook/{examples => samples}/Hackbook/res/layout/permissions_list.xml (80%) rename facebook/{examples => samples}/Hackbook/res/layout/place_item.xml (61%) create mode 100644 facebook/samples/Hackbook/res/layout/places_list.xml create mode 100644 facebook/samples/Hackbook/res/layout/splash.xml rename facebook/{examples => samples}/Hackbook/res/layout/token_refresh.xml (80%) rename facebook/{examples => samples}/Hackbook/res/layout/update_post_response.xml (80%) rename facebook/{examples => samples}/Hackbook/res/layout/upload_photo_response.xml (81%) create mode 100644 facebook/samples/Hackbook/res/values/colors.xml rename facebook/{examples => samples}/Hackbook/res/values/strings.xml (89%) create mode 100644 facebook/samples/Hackbook/src/com/facebook/android/BaseDialogListener.java rename facebook/{examples => samples}/Hackbook/src/com/facebook/android/BaseRequestListener.java (64%) rename facebook/{examples => samples}/Hackbook/src/com/facebook/android/FQLQuery.java (86%) rename facebook/{examples => samples}/Hackbook/src/com/facebook/android/FieldsConnectionsDialog.java (94%) rename facebook/{examples => samples}/Hackbook/src/com/facebook/android/FriendsGetProfilePics.java (83%) rename facebook/{examples => samples}/Hackbook/src/com/facebook/android/FriendsList.java (92%) rename facebook/{examples => samples}/Hackbook/src/com/facebook/android/GraphExplorer.java (95%) rename facebook/{examples => samples}/Hackbook/src/com/facebook/android/Hackbook.java (98%) rename facebook/{examples => samples}/Hackbook/src/com/facebook/android/IntentUriHandler.java (62%) rename facebook/{examples => samples}/Hackbook/src/com/facebook/android/LoginButton.java (98%) rename facebook/{examples => samples}/Hackbook/src/com/facebook/android/PermissionsDialog.java (93%) rename facebook/{examples => samples}/Hackbook/src/com/facebook/android/Places.java (95%) rename facebook/{examples => samples}/Hackbook/src/com/facebook/android/SessionEvents.java (99%) rename facebook/{examples => samples}/Hackbook/src/com/facebook/android/SessionStore.java (82%) rename facebook/{examples => samples}/Hackbook/src/com/facebook/android/SplashActivity.java (57%) rename facebook/{examples => samples}/Hackbook/src/com/facebook/android/TokenRefreshDialog.java (84%) rename facebook/{examples => samples}/Hackbook/src/com/facebook/android/UpdateStatusResultDialog.java (86%) rename facebook/{examples => samples}/Hackbook/src/com/facebook/android/UploadPhotoResultDialog.java (91%) rename facebook/{examples => samples}/Hackbook/src/com/facebook/android/Utility.java (87%) create mode 100644 facebook/samples/HelloFacebookSample/.classpath create mode 100644 facebook/samples/HelloFacebookSample/.project create mode 100644 facebook/samples/HelloFacebookSample/AndroidManifest.xml create mode 100644 facebook/samples/HelloFacebookSample/ant.properties create mode 100644 facebook/samples/HelloFacebookSample/build.xml create mode 100644 facebook/samples/HelloFacebookSample/proguard-project.txt create mode 100644 facebook/samples/HelloFacebookSample/project.properties create mode 100644 facebook/samples/HelloFacebookSample/res/drawable-hdpi/icon.png create mode 100644 facebook/samples/HelloFacebookSample/res/drawable-mdpi/icon.png create mode 100644 facebook/samples/HelloFacebookSample/res/drawable-xhdpi/icon.png create mode 100644 facebook/samples/HelloFacebookSample/res/drawable/icon.png create mode 100644 facebook/samples/HelloFacebookSample/res/layout/main.xml create mode 100644 facebook/samples/HelloFacebookSample/res/values/strings.xml create mode 100644 facebook/samples/HelloFacebookSample/src/com/facebook/samples/hellofacebook/HelloFacebookSampleActivity.java create mode 100644 facebook/samples/PlacePickerSample/.classpath create mode 100644 facebook/samples/PlacePickerSample/.project create mode 100644 facebook/samples/PlacePickerSample/AndroidManifest.xml create mode 100644 facebook/samples/PlacePickerSample/ant.properties create mode 100644 facebook/samples/PlacePickerSample/build.xml create mode 100644 facebook/samples/PlacePickerSample/proguard-project.txt create mode 100644 facebook/samples/PlacePickerSample/project.properties create mode 100644 facebook/samples/PlacePickerSample/res/drawable-hdpi/icon.png create mode 100644 facebook/samples/PlacePickerSample/res/drawable-mdpi/icon.png create mode 100644 facebook/samples/PlacePickerSample/res/drawable-xhdpi/icon.png create mode 100644 facebook/samples/PlacePickerSample/res/drawable/icon.png create mode 100644 facebook/samples/PlacePickerSample/res/layout/main.xml create mode 100644 facebook/samples/PlacePickerSample/res/layout/pick_place_activity.xml create mode 100644 facebook/samples/PlacePickerSample/res/values/strings.xml create mode 100644 facebook/samples/PlacePickerSample/src/com/facebook/samples/placepicker/PickPlaceActivity.java create mode 100644 facebook/samples/PlacePickerSample/src/com/facebook/samples/placepicker/PlacePickerApplication.java create mode 100644 facebook/samples/PlacePickerSample/src/com/facebook/samples/placepicker/PlacePickerSampleActivity.java create mode 100644 facebook/samples/ProfilePictureSample/.classpath create mode 100644 facebook/samples/ProfilePictureSample/.project create mode 100644 facebook/samples/ProfilePictureSample/AndroidManifest.xml create mode 100644 facebook/samples/ProfilePictureSample/ant.properties create mode 100644 facebook/samples/ProfilePictureSample/build.xml create mode 100644 facebook/samples/ProfilePictureSample/proguard-project.txt create mode 100644 facebook/samples/ProfilePictureSample/project.properties create mode 100644 facebook/samples/ProfilePictureSample/res/drawable-hdpi/icon.png create mode 100644 facebook/samples/ProfilePictureSample/res/drawable-mdpi/icon.png create mode 100644 facebook/samples/ProfilePictureSample/res/drawable-xhdpi/icon.png create mode 100644 facebook/samples/ProfilePictureSample/res/drawable/icon.png create mode 100644 facebook/samples/ProfilePictureSample/res/layout/activity_profile_picture_sample.xml create mode 100644 facebook/samples/ProfilePictureSample/res/layout/fragment_profile_picture_sample.xml create mode 100644 facebook/samples/ProfilePictureSample/res/values/strings.xml create mode 100644 facebook/samples/ProfilePictureSample/src/com/facebook/samples/profilepicture/ProfilePictureSampleActivity.java create mode 100644 facebook/samples/ProfilePictureSample/src/com/facebook/samples/profilepicture/ProfilePictureSampleFragment.java create mode 100644 facebook/samples/Scrumptious/.classpath create mode 100644 facebook/samples/Scrumptious/.project create mode 100644 facebook/samples/Scrumptious/AndroidManifest.xml create mode 100644 facebook/samples/Scrumptious/ant.properties create mode 100644 facebook/samples/Scrumptious/build.xml create mode 100644 facebook/samples/Scrumptious/proguard-project.txt create mode 100644 facebook/samples/Scrumptious/project.properties create mode 100644 facebook/samples/Scrumptious/res/drawable-hdpi/icon.png create mode 100644 facebook/samples/Scrumptious/res/drawable-mdpi/icon.png create mode 100644 facebook/samples/Scrumptious/res/drawable-xhdpi/icon.png create mode 100644 facebook/samples/Scrumptious/res/drawable/action_eating.png create mode 100644 facebook/samples/Scrumptious/res/drawable/action_location.png create mode 100644 facebook/samples/Scrumptious/res/drawable/action_people.png create mode 100644 facebook/samples/Scrumptious/res/drawable/button_border.xml create mode 100755 facebook/samples/Scrumptious/res/drawable/facebook.png create mode 100644 facebook/samples/Scrumptious/res/drawable/icon.png create mode 100644 facebook/samples/Scrumptious/res/layout/listitem.xml create mode 100644 facebook/samples/Scrumptious/res/layout/main.xml create mode 100644 facebook/samples/Scrumptious/res/layout/pickers.xml create mode 100644 facebook/samples/Scrumptious/res/layout/selection.xml create mode 100644 facebook/samples/Scrumptious/res/layout/splash.xml create mode 100644 facebook/samples/Scrumptious/res/values/strings.xml create mode 100644 facebook/samples/Scrumptious/src/com/facebook/scrumptious/BaseListElement.java create mode 100644 facebook/samples/Scrumptious/src/com/facebook/scrumptious/FullListView.java create mode 100644 facebook/samples/Scrumptious/src/com/facebook/scrumptious/MainActivity.java create mode 100644 facebook/samples/Scrumptious/src/com/facebook/scrumptious/PickerActivity.java create mode 100644 facebook/samples/Scrumptious/src/com/facebook/scrumptious/ScrumptiousApplication.java create mode 100644 facebook/samples/Scrumptious/src/com/facebook/scrumptious/SelectionFragment.java create mode 100644 facebook/samples/Scrumptious/src/com/facebook/scrumptious/SplashFragment.java create mode 100644 facebook/samples/SessionLoginSample/.classpath create mode 100644 facebook/samples/SessionLoginSample/.project create mode 100644 facebook/samples/SessionLoginSample/AndroidManifest.xml create mode 100644 facebook/samples/SessionLoginSample/ant.properties create mode 100644 facebook/samples/SessionLoginSample/build.xml create mode 100644 facebook/samples/SessionLoginSample/proguard-project.txt create mode 100644 facebook/samples/SessionLoginSample/project.properties create mode 100644 facebook/samples/SessionLoginSample/res/drawable-hdpi/icon.png create mode 100644 facebook/samples/SessionLoginSample/res/drawable-mdpi/icon.png create mode 100644 facebook/samples/SessionLoginSample/res/drawable-xhdpi/icon.png create mode 100644 facebook/samples/SessionLoginSample/res/drawable/icon.png create mode 100644 facebook/samples/SessionLoginSample/res/layout/activity.xml create mode 100644 facebook/samples/SessionLoginSample/res/layout/custom_fragment_activity.xml create mode 100644 facebook/samples/SessionLoginSample/res/layout/fragment.xml create mode 100644 facebook/samples/SessionLoginSample/res/layout/login_fragment_activity.xml create mode 100644 facebook/samples/SessionLoginSample/res/layout/main.xml create mode 100644 facebook/samples/SessionLoginSample/res/values/strings.xml create mode 100644 facebook/samples/SessionLoginSample/src/com/facebook/samples/sessionlogin/LoginUsingActivityActivity.java create mode 100644 facebook/samples/SessionLoginSample/src/com/facebook/samples/sessionlogin/LoginUsingCustomFragmentActivity.java create mode 100644 facebook/samples/SessionLoginSample/src/com/facebook/samples/sessionlogin/LoginUsingLoginFragmentActivity.java create mode 100644 facebook/samples/SessionLoginSample/src/com/facebook/samples/sessionlogin/SessionLoginFragment.java create mode 100644 facebook/samples/SessionLoginSample/src/com/facebook/samples/sessionlogin/SessionLoginSampleActivity.java create mode 100644 facebook/samples/SwitchUserSample/.classpath create mode 100644 facebook/samples/SwitchUserSample/.project create mode 100644 facebook/samples/SwitchUserSample/AndroidManifest.xml create mode 100644 facebook/samples/SwitchUserSample/ant.properties create mode 100644 facebook/samples/SwitchUserSample/build.xml create mode 100644 facebook/samples/SwitchUserSample/proguard-project.txt create mode 100644 facebook/samples/SwitchUserSample/project.properties create mode 100644 facebook/samples/SwitchUserSample/res/drawable-hdpi/icon.png create mode 100644 facebook/samples/SwitchUserSample/res/drawable-mdpi/icon.png create mode 100644 facebook/samples/SwitchUserSample/res/drawable-xhdpi/icon.png create mode 100644 facebook/samples/SwitchUserSample/res/drawable/icon.png create mode 100644 facebook/samples/SwitchUserSample/res/layout/fragment_profile.xml create mode 100644 facebook/samples/SwitchUserSample/res/layout/list_item_user.xml create mode 100644 facebook/samples/SwitchUserSample/res/layout/main.xml create mode 100644 facebook/samples/SwitchUserSample/res/menu/context_settings.xml create mode 100644 facebook/samples/SwitchUserSample/res/menu/options_profile.xml create mode 100644 facebook/samples/SwitchUserSample/res/values/strings.xml create mode 100644 facebook/samples/SwitchUserSample/src/com/facebook/samples/switchuser/MainActivity.java create mode 100644 facebook/samples/SwitchUserSample/src/com/facebook/samples/switchuser/ProfileFragment.java create mode 100644 facebook/samples/SwitchUserSample/src/com/facebook/samples/switchuser/SettingsFragment.java create mode 100644 facebook/samples/SwitchUserSample/src/com/facebook/samples/switchuser/Slot.java create mode 100755 facebook/scripts/build_and_test.sh create mode 100755 facebook/scripts/configure_unit_tests.sh delete mode 100644 facebook/tests/default.properties diff --git a/astrid/common-src/com/facebook/android/AuthListener.java b/astrid/common-src/com/facebook/android/AuthListener.java deleted file mode 100644 index c61589eca..000000000 --- a/astrid/common-src/com/facebook/android/AuthListener.java +++ /dev/null @@ -1,17 +0,0 @@ -/** - * Copyright (c) 2012 Todoroo Inc - * - * See the file "LICENSE" for the full license governing this code. - */ -package com.facebook.android; - - -public interface AuthListener { - - public void onFBAuthSucceed(); - - public void onFBAuthFail(String error); - - public void onFBAuthCancel(); - -} diff --git a/astrid/common-src/com/facebook/android/LoginButton.java b/astrid/common-src/com/facebook/android/LoginButton.java deleted file mode 100644 index 41ec94e91..000000000 --- a/astrid/common-src/com/facebook/android/LoginButton.java +++ /dev/null @@ -1,89 +0,0 @@ -/* - * Copyright 2010 Facebook, Inc. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.facebook.android; - -import android.app.Activity; -import android.content.Context; -import android.os.Bundle; -import android.util.AttributeSet; -import android.view.View; -import android.widget.Button; - -import com.facebook.android.Facebook.DialogListener; - -public class LoginButton extends Button { - - public static final int REQUEST_CODE_FACEBOOK = 21421; - - private Facebook mFb; - private AuthListener mListener; - private String[] mPermissions; - private Activity mActivity; - - public LoginButton(Context context) { - super(context); - } - - public LoginButton(Context context, AttributeSet attrs) { - super(context, attrs); - } - - public LoginButton(Context context, AttributeSet attrs, int defStyle) { - super(context, attrs, defStyle); - } - - public void init(final Activity activity, final Facebook fb, AuthListener listener) { - init(activity, fb, listener, new String[] {}); - } - - public void init(final Activity activity, final Facebook fb, AuthListener listener, - final String[] permissions) { - mActivity = activity; - mFb = fb; - mPermissions = permissions; - mListener = listener; - - setOnClickListener(new ButtonOnClickListener()); - } - - private final class ButtonOnClickListener implements OnClickListener { - - public void onClick(View arg0) { - mFb.authorize(mActivity, mPermissions, REQUEST_CODE_FACEBOOK, - new LoginDialogListener()); - } - } - - private final class LoginDialogListener implements DialogListener { - public void onComplete(Bundle values) { - mListener.onFBAuthSucceed(); - } - - public void onFacebookError(FacebookError error) { - mListener.onFBAuthFail(error.getMessage()); - } - - public void onError(DialogError error) { - mListener.onFBAuthFail(error.getMessage()); - } - - public void onCancel() { - mListener.onFBAuthCancel(); - } - } - -} diff --git a/astrid/plugin-src/com/todoroo/astrid/actfm/ActFmLoginActivity.java b/astrid/plugin-src/com/todoroo/astrid/actfm/ActFmLoginActivity.java index 9ea89d31e..0efa6913c 100644 --- a/astrid/plugin-src/com/todoroo/astrid/actfm/ActFmLoginActivity.java +++ b/astrid/plugin-src/com/todoroo/astrid/actfm/ActFmLoginActivity.java @@ -5,12 +5,10 @@ */ package com.todoroo.astrid.actfm; -import java.io.FileNotFoundException; import java.io.IOException; -import java.net.MalformedURLException; +import java.util.Arrays; import java.util.Random; -import org.json.JSONException; import org.json.JSONObject; import android.app.AlertDialog; @@ -31,6 +29,7 @@ import android.text.method.PasswordTransformationMethod; import android.text.style.ClickableSpan; import android.text.style.UnderlineSpan; import android.util.DisplayMetrics; +import android.util.Log; import android.view.View; import android.view.View.OnClickListener; import android.view.ViewGroup.LayoutParams; @@ -41,13 +40,10 @@ import android.widget.ScrollView; import android.widget.TextView; import com.actionbarsherlock.app.SherlockFragmentActivity; -import com.facebook.android.AsyncFacebookRunner; -import com.facebook.android.AsyncFacebookRunner.RequestListener; -import com.facebook.android.AuthListener; -import com.facebook.android.Facebook; -import com.facebook.android.FacebookError; -import com.facebook.android.LoginButton; -import com.facebook.android.Util; +import com.facebook.Session; +import com.facebook.SessionState; +import com.facebook.UiLifecycleHelper; +import com.facebook.widget.LoginButton; import com.google.android.googlelogin.GoogleLoginServiceConstants; import com.google.android.googlelogin.GoogleLoginServiceHelper; import com.timsu.astrid.GCMIntentService; @@ -97,7 +93,7 @@ import com.todoroo.astrid.service.TaskService; * @author Tim Su * */ -public class ActFmLoginActivity extends SherlockFragmentActivity implements AuthListener { +public class ActFmLoginActivity extends SherlockFragmentActivity { public static final String APP_ID = "183862944961271"; //$NON-NLS-1$ @@ -131,8 +127,8 @@ public class ActFmLoginActivity extends SherlockFragmentActivity implements Auth private final ActFmInvoker actFmInvoker = new ActFmInvoker(); private Random rand; - private Facebook facebook; - private AsyncFacebookRunner facebookRunner; +// private Facebook facebook; +// private AsyncFacebookRunner facebookRunner; protected TextView errors; public static final String SHOW_TOAST = "show_toast"; //$NON-NLS-1$ @@ -173,6 +169,8 @@ public class ActFmLoginActivity extends SherlockFragmentActivity implements Auth rand = new Random(DateUtilities.now()); + uiHelper = new UiLifecycleHelper(this, callback); + uiHelper.onCreate(savedInstanceState); initializeUI(); getWindow().setFormat(PixelFormat.RGBA_8888); @@ -196,15 +194,23 @@ public class ActFmLoginActivity extends SherlockFragmentActivity implements Auth @Override protected void onResume() { super.onResume(); + uiHelper.onResume(); StatisticsService.sessionStart(this); } @Override protected void onPause() { super.onPause(); + uiHelper.onPause(); StatisticsService.sessionPause(); } + @Override + protected void onDestroy() { + super.onDestroy(); + uiHelper.onDestroy(); + } + @Override protected void onStop() { StatisticsService.sessionStop(this); @@ -254,16 +260,15 @@ public class ActFmLoginActivity extends SherlockFragmentActivity implements Auth @SuppressWarnings("nls") protected void initializeUI() { - facebook = new Facebook(APP_ID); - facebookRunner = new AsyncFacebookRunner(facebook); +// facebook = new Facebook(APP_ID); +// facebookRunner = new AsyncFacebookRunner(facebook); errors = (TextView) findViewById(R.id.error); LoginButton loginButton = (LoginButton) findViewById(R.id.fb_login); if(loginButton == null) return; - loginButton.init(this, facebook, this, new String[] { "email", - "offline_access", "publish_stream" }); + loginButton.setReadPermissions(Arrays.asList("email", "offline_access", "publish_stream")); View googleLogin = findViewById(R.id.gg_login); if(AmazonMarketStrategy.isKindleFire()) @@ -474,75 +479,92 @@ public class ActFmLoginActivity extends SherlockFragmentActivity implements Auth // --- facebook handler - public void onFBAuthSucceed() { - createUserAccountFB(); - } - - public void onFBAuthFail(String error) { - DialogUtilities.okDialog(this, getString(R.string.actfm_ALA_title), - android.R.drawable.ic_dialog_alert, error, null); - } - - @Override - public void onFBAuthCancel() { - // do nothing - } - - private ProgressDialog progressDialog; - - /** - * Create user account via FB - */ - public void createUserAccountFB() { - progressDialog = DialogUtilities.progressDialog(this, - getString(R.string.DLG_please_wait)); - facebookRunner.request("me", new SLARequestListener()); //$NON-NLS-1$ - } - - private class SLARequestListener implements RequestListener { - - @Override - public void onComplete(String response, Object state) { - JSONObject json; - try { - json = Util.parseJson(response); - String firstName = json.getString("first_name"); //$NON-NLS-1$ - String lastName = json.getString("last_name"); //$NON-NLS-1$ - String email = json.getString("email"); //$NON-NLS-1$ - - authenticate(email, firstName, lastName, ActFmInvoker.PROVIDER_FACEBOOK, - facebook.getAccessToken()); - StatisticsService.reportEvent(StatisticsConstants.ACTFM_LOGIN_FB); - } catch (FacebookError e) { - handleError(e); - } catch (JSONException e) { - handleError(e); - } - } - - @Override - public void onFacebookError(FacebookError e, Object state) { - handleError(e); - } - - @Override - public void onFileNotFoundException(FileNotFoundException e, - Object state) { - handleError(e); + private void onSessionStateChange(Session session, SessionState state, Exception exception) { + if (state.isOpened()) { + Log.e("fb-login", "State opened"); + } else if (state.isClosed()) { + Log.e("fb-login", "State closed"); } + } - @Override - public void onIOException(IOException e, Object state) { - handleError(e); - } + private UiLifecycleHelper uiHelper; + private final Session.StatusCallback callback = new Session.StatusCallback() { @Override - public void onMalformedURLException(MalformedURLException e, - Object state) { - handleError(e); + public void call(Session session, SessionState state, Exception exception) { + onSessionStateChange(session, state, exception); } + }; - } +// public void onFBAuthSucceed() { +// createUserAccountFB(); +// } +// +// public void onFBAuthFail(String error) { +// DialogUtilities.okDialog(this, getString(R.string.actfm_ALA_title), +// android.R.drawable.ic_dialog_alert, error, null); +// } +// +// @Override +// public void onFBAuthCancel() { +// // do nothing +// } +// + private ProgressDialog progressDialog; +// +// /** +// * Create user account via FB +// */ +// public void createUserAccountFB() { +// progressDialog = DialogUtilities.progressDialog(this, +// getString(R.string.DLG_please_wait)); +// facebookRunner.request("me", new SLARequestListener()); //$NON-NLS-1$ +// } +// +// private class SLARequestListener implements RequestListener { +// +// @Override +// public void onComplete(String response, Object state) { +// JSONObject json; +// try { +// json = Util.parseJson(response); +// String firstName = json.getString("first_name"); //$NON-NLS-1$ +// String lastName = json.getString("last_name"); //$NON-NLS-1$ +// String email = json.getString("email"); //$NON-NLS-1$ +// +// authenticate(email, firstName, lastName, ActFmInvoker.PROVIDER_FACEBOOK, +// facebook.getAccessToken()); +// StatisticsService.reportEvent(StatisticsConstants.ACTFM_LOGIN_FB); +// } catch (FacebookError e) { +// handleError(e); +// } catch (JSONException e) { +// handleError(e); +// } +// } +// +// @Override +// public void onFacebookError(FacebookError e, Object state) { +// handleError(e); +// } +// +// @Override +// public void onFileNotFoundException(FileNotFoundException e, +// Object state) { +// handleError(e); +// } +// +// @Override +// public void onIOException(IOException e, Object state) { +// handleError(e); +// } +// +// @Override +// public void onMalformedURLException(MalformedURLException e, +// Object state) { +// handleError(e); +// } +// +// } // --- utilities @@ -658,6 +680,8 @@ public class ActFmLoginActivity extends SherlockFragmentActivity implements Auth @SuppressWarnings("nls") @Override protected void onActivityResult(int requestCode, int resultCode, Intent data) { + super.onActivityResult(requestCode, resultCode, data); + uiHelper.onActivityResult(requestCode, resultCode, data); if (resultCode == RESULT_CANCELED) return; @@ -666,25 +690,27 @@ public class ActFmLoginActivity extends SherlockFragmentActivity implements Auth String accounts[] = data.getStringArrayExtra( GoogleLoginServiceConstants.ACCOUNTS_KEY); credentialsListener.getCredentials(accounts); - } else if (requestCode == LoginButton.REQUEST_CODE_FACEBOOK) { - if (data == null) - return; - - String error = data.getStringExtra("error"); - if (error == null) { - error = data.getStringExtra("error_type"); - } - String token = data.getStringExtra("access_token"); - if (error != null) { - onFBAuthFail(error); - } else if (token == null) { - onFBAuthFail("Something went wrong! Please try again."); - } else { - facebook.setAccessToken(token); - onFBAuthSucceed(); - } - errors.setVisibility(View.GONE); - } else if (requestCode == REQUEST_CODE_GOOGLE) { + } +// else if (requestCode == LoginButton.REQUEST_CODE_FACEBOOK) { +// if (data == null) +// return; +// +// String error = data.getStringExtra("error"); +// if (error == null) { +// error = data.getStringExtra("error_type"); +// } +// String token = data.getStringExtra("access_token"); +// if (error != null) { +// onFBAuthFail(error); +// } else if (token == null) { +// onFBAuthFail("Something went wrong! Please try again."); +// } else { +// facebook.setAccessToken(token); +// onFBAuthSucceed(); +// } +// errors.setVisibility(View.GONE); +// } + else if (requestCode == REQUEST_CODE_GOOGLE) { if (data == null) return; String email = data.getStringExtra(ActFmGoogleAuthActivity.RESULT_EMAIL); diff --git a/facebook/CONTRIBUTING.mdown b/facebook/CONTRIBUTING.mdown new file mode 100644 index 000000000..ec5ea367e --- /dev/null +++ b/facebook/CONTRIBUTING.mdown @@ -0,0 +1,15 @@ +Facebook welcomes contributions to our SDKs. + +All contributors must sign a CLA (contributor license agreement) here: + + https://developers.facebook.com/opensource/cla + +To contribute on behalf of your employer, sign the company CLA +To contribute on behalf of yourself, sign the individual CLA + +All contributions: + +1/ MUST be be licensed using the Apache License, Version 2.0 +2/ authors MAY retain copyright by adding their copyright notice to the appropriate flies + +More information on the Apache License can be found here: http://www.apache.org/foundation/license-faq.html diff --git a/facebook/LICENSE.txt b/facebook/LICENSE.txt new file mode 100644 index 000000000..261eeb9e9 --- /dev/null +++ b/facebook/LICENSE.txt @@ -0,0 +1,201 @@ + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright [yyyy] [name of copyright owner] + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. diff --git a/facebook/NOTICE.txt b/facebook/NOTICE.txt new file mode 100644 index 000000000..d9493d5bc --- /dev/null +++ b/facebook/NOTICE.txt @@ -0,0 +1,61 @@ +THE FOLLOWING SETS FORTH ATTRIBUTION NOTICES FOR THIRD PARTY SOFTWARE THAT MAY BE CONTAINED IN PORTIONS OF THE FACEBOOK PRODUCT. + +----- + +The following software may be included in this product: Android. This software contains the following license and notice below: + +Apache License +Version 2.0, January 2004 +http://www.apache.org/licenses/ + +TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + +1. Definitions. + +"License" shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this document. + +"Licensor" shall mean the copyright owner or entity authorized by the copyright owner that is granting the License. + +"Legal Entity" shall mean the union of the acting entity and all other entities that control, are controlled by, or are under common control with that entity. For the purposes of this definition, "control" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity. + +"You" (or "Your") shall mean an individual or Legal Entity exercising permissions granted by this License. + +"Source" form shall mean the preferred form for making modifications, including but not limited to software source code, documentation source, and configuration files. + +"Object" form shall mean any form resulting from mechanical transformation or translation of a Source form, including but not limited to compiled object code, generated documentation, and conversions to other media types. + +"Work" shall mean the work of authorship, whether in Source or Object form, made available under the License, as indicated by a copyright notice that is included in or attached to the work (an example is provided in the Appendix below). + +"Derivative Works" shall mean any work, whether in Source or Object form, that is based on (or derived from) the Work and for which the editorial revisions, annotations, elaborations, or other modifications represent, as a whole, an original work of authorship. For the purposes of this License, Derivative Works shall not include works that remain separable from, or merely link (or bind by name) to the interfaces of, the Work and Derivative Works thereof. + +"Contribution" shall mean any work of authorship, including the original version of the Work and any modifications or additions to that Work or Derivative Works thereof, that is intentionally submitted to Licensor for inclusion in the Work by the copyright owner or by an individual or Legal Entity authorized to submit on behalf of the copyright owner. For the purposes of this definition, "submitted" means any form of electronic, verbal, or written communication sent to the Licensor or its representatives, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, the Licensor for the purpose of discussing and improving the Work, but excluding communication that is conspicuously marked or otherwise designated in writing by the copyright owner as "Not a Contribution." + +"Contributor" shall mean Licensor and any individual or Legal Entity on behalf of whom a Contribution has been received by Licensor and subsequently incorporated within the Work. + +2. Grant of Copyright License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work and such Derivative Works in Source or Object form. + +3. Grant of Patent License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this section) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Work, where such license applies only to those patent claims licensable by such Contributor that are necessarily infringed by their Contribution(s) alone or by combination of their Contribution(s) with the Work to which such Contribution(s) was submitted. If You institute patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Work or a Contribution incorporated within the Work constitutes direct or contributory patent infringement, then any patent licenses granted to You under this License for that Work shall terminate as of the date such litigation is filed. + +4. Redistribution. You may reproduce and distribute copies of the Work or Derivative Works thereof in any medium, with or without modifications, and in Source or Object form, provided that You meet the following conditions: + +(a) You must give any other recipients of the Work or Derivative Works a copy of this License; and + +(b) You must cause any modified files to carry prominent notices stating that You changed the files; and + +(c) You must retain, in the Source form of any Derivative Works that You distribute, all copyright, patent, trademark, and attribution notices from the Source form of the Work, excluding those notices that do not pertain to any part of the Derivative Works; and + +(d) If the Work includes a "NOTICE" text file as part of its distribution, then any Derivative Works that You distribute must include a readable copy of the attribution notices contained within such NOTICE file, excluding those notices that do not pertain to any part of the Derivative Works, in at least one of the following places: within a NOTICE text file distributed as part of the Derivative Works; within the Source form or documentation, if provided along with the Derivative Works; or, within a display generated by the Derivative Works, if and wherever such third-party notices normally appear. The contents of the NOTICE file are for informational purposes only and do not modify the License. You may add Your own attribution notices within Derivative Works that You distribute, alongside or as an addendum to the NOTICE text from the Work, provided that such additional attribution notices cannot be construed as modifying the License. + +You may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions for use, reproduction, or distribution of Your modifications, or for any such Derivative Works as a whole, provided Your use, reproduction, and distribution of the Work otherwise complies with the conditions stated in this License. + +5. Submission of Contributions. Unless You explicitly state otherwise, any Contribution intentionally submitted for inclusion in the Work by You to the Licensor shall be under the terms and conditions of this License, without any additional terms or conditions. Notwithstanding the above, nothing herein shall supersede or modify the terms of any separate license agreement you may have executed with Licensor regarding such Contributions. + +6. Trademarks. This License does not grant permission to use the trade names, trademarks, service marks, or product names of the Licensor, except as required for reasonable and customary use in describing the origin of the Work and reproducing the content of the NOTICE file. + +7. Disclaimer of Warranty. Unless required by applicable law or agreed to in writing, Licensor provides the Work (and each Contributor provides its Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining the appropriateness of using or redistributing the Work and assume any risks associated with Your exercise of permissions under this License. + +8. Limitation of Liability. In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall any Contributor be liable to You for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this License or out of the use or inability to use the Work (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if such Contributor has been advised of the possibility of such damages. + +9. Accepting Warranty or Additional Liability. While redistributing the Work or Derivative Works thereof, You may choose to offer, and charge a fee for, acceptance of support, warranty, indemnity, or other liability obligations and/or rights consistent with this License. However, in accepting such obligations, You may act only on Your own behalf and on Your sole responsibility, not on behalf of any other Contributor, and only if You agree to indemnify, defend, and hold each Contributor harmless for any liability incurred by, or claims asserted against, such Contributor by reason of your accepting any such warranty or additional liability. + +END OF TERMS AND CONDITIONS diff --git a/facebook/README.md b/facebook/README.md deleted file mode 100644 index fcfc937a5..000000000 --- a/facebook/README.md +++ /dev/null @@ -1,24 +0,0 @@ -This open source Java library allows you to integrate Facebook into your Android application. Except as otherwise noted, the Facebook Android SDK is licensed under the Apache License, Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0.html) - -Getting Started -=============== - -See our [Android SDK Getting Started Guide](https://developers.facebook.com/docs/mobile/android/build/) - -Sample Applications -=============== - -This library includes three sample applications to guide you in development. - -* __simple__: A bare-bones app that demonstrates authorization, making API calls, and invoking a dialog. - -* __stream__: This slightly beefier application lets you view your news feed. - -* __Hackbook__: This includes Single Sign On implementation (SSO), sample API calls, and advanced features like Get new Permissions, Run sample FQL Query and Graph API Explorer. Check out [Hackbook for Android](https://developers.facebook.com/docs/mobile/android/hackbook/) - - -Report Issues/Bugs -=============== -[Bugs](https://developers.facebook.com/bugs) - -[Questions](http://facebook.stackoverflow.com/questions/tagged/android) diff --git a/facebook/README.mdown b/facebook/README.mdown new file mode 100644 index 000000000..7e4bb9b02 --- /dev/null +++ b/facebook/README.mdown @@ -0,0 +1,32 @@ +Facebook SDK for Android +======================== + +This open-source library allows you to integrate Facebook into your Android app. + +Learn more about about the provided samples, documentation, integrating the SDK into your app, accessing source code, and more at https://developers.facebook.com/android-beta + +TRY IT OUT + +1. Test your install; build and run the project at facebook-android-sdk-3.0.b/samples/HelloFacebookSample (To avoid test signing issues, run this on a device that does not have Facebook for Android installed, or debug the signed sample binaries provided in facebook-android-sdk-3.0.b/bin) + +2. Check-out the tutorials available online at https://developers.facebook.com/docs/getting-started/facebook-sdk-for-android/3.0/ + +3. Start coding! Visit https://developers.facebook.com/android-beta for tutorials and reference documentation. + +LICENSE + +Except as otherwise noted, the Facebook SDK for Android is licensed under the Apache License, Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0.html). + +Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. + +DEVELOPER TERMS + +- By enabling Facebook integrations, including through this SDK, you can share information with Facebook, including information about people’s use of your app. Facebook will use information received in accordance with our Data Use Policy (https://www.facebook.com/about/privacy/), including to provide you with insights about the effectiveness of your ads and the use of your app. These integrations also enable us and our partners to serve ads on and off Facebook. + +- You may limit your sharing of information with us by updating the Insights control in the developer tool (https://developers.facebook.com/apps//advanced). + +- If you use a Facebook integration, including to share information with us, you agree and confirm that you have provided appropriate and sufficiently prominent notice to and obtained the appropriate consent from your users regarding such collection, use, and disclosure (including, at a minimum, through your privacy policy). You further agree that you will not share information with us about children under the age of 13. + +- You agree to comply with all applicable laws and regulations and also agree to our Terms (https://www.facebook.com/policies/), including our Platform Policies (https://developers.facebook.com/policy/) and Advertising Guidelines, as applicable (https://www.facebook.com/ad_guidelines.php). + +By using the Facebook SDK for Android you agree to these terms. diff --git a/facebook/examples/Hackbook/default.properties b/facebook/examples/Hackbook/default.properties deleted file mode 100644 index 6805fb9fe..000000000 --- a/facebook/examples/Hackbook/default.properties +++ /dev/null @@ -1,14 +0,0 @@ -# This file is automatically generated by Android Tools. -# Do not modify this file -- YOUR CHANGES WILL BE ERASED! -# -# This file must be checked in Version Control Systems. -# -# To customize properties used by the Ant build system use, -# "build.properties", and override values to adapt the script to your -# project structure. - -# Indicates whether an apk should be generated for each density. -split.density=false -# Project target. -target=android-8 -android.library.reference.1=../../../newdialog/facebook-android-sdk/facebook diff --git a/facebook/examples/Hackbook/res/drawable/login_button.xml b/facebook/examples/Hackbook/res/drawable/login_button.xml deleted file mode 100644 index 73dc6c3ab..000000000 --- a/facebook/examples/Hackbook/res/drawable/login_button.xml +++ /dev/null @@ -1,5 +0,0 @@ - - - - - \ No newline at end of file diff --git a/facebook/examples/Hackbook/res/drawable/logout_button.xml b/facebook/examples/Hackbook/res/drawable/logout_button.xml deleted file mode 100644 index 58f57656b..000000000 --- a/facebook/examples/Hackbook/res/drawable/logout_button.xml +++ /dev/null @@ -1,5 +0,0 @@ - - - - - \ No newline at end of file diff --git a/facebook/examples/Hackbook/res/layout/connection_item.xml b/facebook/examples/Hackbook/res/layout/connection_item.xml deleted file mode 100644 index e556c0685..000000000 --- a/facebook/examples/Hackbook/res/layout/connection_item.xml +++ /dev/null @@ -1,11 +0,0 @@ - - - diff --git a/facebook/examples/Hackbook/res/layout/fields_item.xml b/facebook/examples/Hackbook/res/layout/fields_item.xml deleted file mode 100644 index c072d7bd2..000000000 --- a/facebook/examples/Hackbook/res/layout/fields_item.xml +++ /dev/null @@ -1,14 +0,0 @@ - - - - diff --git a/facebook/examples/Hackbook/res/layout/friends_list.xml b/facebook/examples/Hackbook/res/layout/friends_list.xml deleted file mode 100644 index 82e565181..000000000 --- a/facebook/examples/Hackbook/res/layout/friends_list.xml +++ /dev/null @@ -1,11 +0,0 @@ - - - - diff --git a/facebook/examples/Hackbook/res/layout/main_list_item.xml b/facebook/examples/Hackbook/res/layout/main_list_item.xml deleted file mode 100644 index 2ac0fac97..000000000 --- a/facebook/examples/Hackbook/res/layout/main_list_item.xml +++ /dev/null @@ -1,9 +0,0 @@ - diff --git a/facebook/examples/Hackbook/res/layout/permission_item.xml b/facebook/examples/Hackbook/res/layout/permission_item.xml deleted file mode 100644 index 57eb43a8b..000000000 --- a/facebook/examples/Hackbook/res/layout/permission_item.xml +++ /dev/null @@ -1,8 +0,0 @@ - - - diff --git a/facebook/examples/Hackbook/res/layout/places_list.xml b/facebook/examples/Hackbook/res/layout/places_list.xml deleted file mode 100644 index f63bb2884..000000000 --- a/facebook/examples/Hackbook/res/layout/places_list.xml +++ /dev/null @@ -1,11 +0,0 @@ - - - - diff --git a/facebook/examples/Hackbook/res/layout/splash.xml b/facebook/examples/Hackbook/res/layout/splash.xml deleted file mode 100644 index 211860639..000000000 --- a/facebook/examples/Hackbook/res/layout/splash.xml +++ /dev/null @@ -1,5 +0,0 @@ - diff --git a/facebook/examples/Hackbook/res/values/colors.xml b/facebook/examples/Hackbook/res/values/colors.xml deleted file mode 100644 index cb999e5cc..000000000 --- a/facebook/examples/Hackbook/res/values/colors.xml +++ /dev/null @@ -1,10 +0,0 @@ - - - #ffffff - #000000 - #23cf34 - #E47833 - #4E78A0 - #0000FF - #FF909090 - \ No newline at end of file diff --git a/facebook/examples/Hackbook/src/com/facebook/android/BaseDialogListener.java b/facebook/examples/Hackbook/src/com/facebook/android/BaseDialogListener.java deleted file mode 100644 index dbd5b3360..000000000 --- a/facebook/examples/Hackbook/src/com/facebook/android/BaseDialogListener.java +++ /dev/null @@ -1,25 +0,0 @@ -package com.facebook.android; - -import com.facebook.android.Facebook.DialogListener; - -/** - * Skeleton base class for RequestListeners, providing default error handling. - * Applications should handle these error conditions. - */ -public abstract class BaseDialogListener implements DialogListener { - - @Override - public void onFacebookError(FacebookError e) { - e.printStackTrace(); - } - - @Override - public void onError(DialogError e) { - e.printStackTrace(); - } - - @Override - public void onCancel() { - } - -} \ No newline at end of file diff --git a/facebook/examples/simple/AndroidManifest.xml b/facebook/examples/simple/AndroidManifest.xml deleted file mode 100644 index f647de1aa..000000000 --- a/facebook/examples/simple/AndroidManifest.xml +++ /dev/null @@ -1,20 +0,0 @@ - - - - - - - - - - - - - \ No newline at end of file diff --git a/facebook/examples/simple/default.properties b/facebook/examples/simple/default.properties deleted file mode 100644 index 0f4dfe443..000000000 --- a/facebook/examples/simple/default.properties +++ /dev/null @@ -1,14 +0,0 @@ -# This file is automatically generated by Android Tools. -# Do not modify this file -- YOUR CHANGES WILL BE ERASED! -# -# This file must be checked in Version Control Systems. -# -# To customize properties used by the Ant build system use, -# "build.properties", and override values to adapt the script to your -# project structure. - -# Indicates whether an apk should be generated for each density. -split.density=false -android.library.reference.1=../../facebook/ -# Project target. -target=android-3 diff --git a/facebook/examples/simple/res/drawable/login.png b/facebook/examples/simple/res/drawable/login.png deleted file mode 100644 index 95c8dc156297db66f72da87587c31a1cfd352178..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1980 zcmV;t2SfOYP)tAEs>Bqo~NCf?kecptRGP-@W&oIX%-(XF4r4xz?4ep0i(To&D{#*IIi|2`0(S zSYa$NCR6ygPIL-ujN^<0FahA<;H+J{wy~g~;4w*(>R8!|MMjj;Ax+bM@caG$+`D)0 zK^-hV2g$_&+O%m?TS-~XGfOM$okdHl?L?BvVgpHy1`~m?f!J{W;n2w7$rn31I@&o< zGPju4*49R+)A>@(b$6FI3rnpOgiy+nU0h6Li)3>xv3QnL+D6YFuB)i1IMCbMJHUMq zb-UePi*O=$R?l4LKeurpj% zL62tKbUYLaNyHZpB#G)4N_36<43zwRI5f4M=4vDv`c5lABa*445IvyL z6i84Pc$>*=^3;S&@~N4?;SZ|gmyE=0B~2Kb%c)9z^2P!r0ZLX;6E;*Yn-|4|ye>nN zGGbr?DT@`Uu?XU7RB%3|SZsnVRy)+3Y07Ns^DSqSm!YqwprLv^!IR%*kO53U|AP{Z(c<&{}Sl6-!r%wCO+1EQwKlkZ0 z5fjdxNQC7s?36@_;h;6`f{8emT;`k$Hpg&V8EXe zvs}q)OOL9v07>*tWV0lidqt*Nkg>Ylk}@1{2(jtH<&3(6V}p=YKUS1`aBeh=3lSL( z&r&E>DNEidd<8Zi_z~(B#mq#QV|9KpJ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MeSQ5q zZEbDe@^d&Lq>q@qI0vdgcjOkGWt}Dbw*R|?`+~U6F`XwkK)msP0t^85p9cWK_wQx^ O0000 - - - - \ No newline at end of file diff --git a/facebook/examples/simple/res/drawable/login_down.png b/facebook/examples/simple/res/drawable/login_down.png deleted file mode 100644 index 10d216b3f380c1959ffe38a63b1594867ca6e693..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1832 zcmV+@2iN$CP)v%ta!RU&7(=`zBa14pK7* zC=dvo>+KtSwWX_1YHsz5U?^=ikkp)_r4vy#_8_F(4^4j;3(J&7zg4q82D5D=Yg@e!y1c^{nH!L%=v3A_OK5(Ft|cG^L*QM(efo*^H%h6_C^#AhB%W_MN#$vY>%L zA5-w3=DH$CwWFF~keSQfkai`L*3Y%mt!C5AI#oT}aJoF}wxXPpVg^AW2m%~V_qu^( zOq$jJsSdvKcgcA3m0gfMF1`No_$3s;7b?fQL=6M|tw^MD2ri`Hkk-B+EvvxW>cEyx z8Nu0y$k6q%;37yhU1If%l>$^|F?^ynge13mFg)}G!qEhRk;TgEbE4N&op5>3A&lFK zoXZHD@guhwVkCh^{wp}q+uebofp$dW1apxD8>3kQCi{qDHU6mzQXTHLxhOga?FK`lf3EOB(3c9V=_ObOgdS^lC-LQ@nojV-SYK<-c*8FQYCX|6>8obwc^_S0k8gh z{pJGeOW?Pugbq@FZyP3WMX|*zGZ%_85Tp9I>AOqVJ>-YN^w6B)Mrt};(04l&)%ApC zsSc8pWwy1}YXzrhNss7KpMP=FDu& zk&Wi_R1}rn6erTjhn(HvarYF~KufHjm|3-^<%~Xa9$JIz73(4AwQ!OifowQQgJGS` zO%e|7>SmM9>QfLzH}1^EF|rfbIq1WU=^ze`Y}d!m++Wt``S(l|L#*$O7lsi_q%j!q z*$@M<&;+fhHw+S8TX3s+uHET^8Qo;rg?%FfWqnuAPvXktES??Niqj{L>TMyG_e}g1 z){ieu%p$|AsmCWH%M5VpRv0_C`^+_vil}n1k#$bh!~f*eJm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NCnVFe%S;ry8|40YAA`8q#tTxl}uCF#--o!GU4Tq=ZcC7 zc1BxU8xvx+T9vdCbs!l|K|RK+uCC^ONIwBYw@gI=klxeN!{w(>pK>|S=kUdw647&W zbABU^$okH@rIpP?(jm_!FlleS^aVUD0C_+kslSkj^z?KtKYH|t=Q%JiKt)AGl$@N* zQh>fgLql8!^78T&$w)~_VF!(jjBwra=g+CMw3MTCV`GD_K{{|xdH&|j8)aT_;Oy*d zK+h1+Vt88EZgnb=?0p`L)Y$EIMWYP{gYuAw#?8%5#R)jdMGg|Nu&}_93O$B&NZpr` zAs1A+D9XhR&h@_M(fObrW6ArT3DKbjUi+(8uPTHft(usapljEzQDI>rN3P9gQ*;{9 z2168YZEaCZObjnzSUhDL$c))+=C>gyCx=OY{rWZE3xNKE#N6E6L;D5*vV(R@OG~_% ze)L4k=mJraNQs7q2D*R$KI?Q>SC>NIlP6EO+}_^KbxBD{EE6D6qQAeNiE3YP|jq`GfkXBvKyz&6_u|)cS1Y1Yw>m;8f6P=u-wbMq+4E_9QCa z3(w#fS`aBxs|~Rch%%c^DlH*|-M)de)h>!gM6~hJrAy88b2F~JVB|r?Tk8`z6`Q5s z5zHE)8TgQ3s;{sAb$Mm2=zP?9t;u8zdT;;95-hgyjx7hRuC2PGtxGe*N$+VoAnfZ5ZZS6fMhzQz$G+rws$i^R~ z20Hkw6ra<=JSm`#)Sn)Grf$Mq9^3Vp1KSQ^^B@_G{uN*V%EX(FG09w#00000NkvXX Hu0mjfJI@|W diff --git a/facebook/examples/simple/res/drawable/logout_button.xml b/facebook/examples/simple/res/drawable/logout_button.xml deleted file mode 100644 index 58f57656b..000000000 --- a/facebook/examples/simple/res/drawable/logout_button.xml +++ /dev/null @@ -1,5 +0,0 @@ - - - - - \ No newline at end of file diff --git a/facebook/examples/simple/res/drawable/logout_down.png b/facebook/examples/simple/res/drawable/logout_down.png deleted file mode 100644 index 1ab14b9dc931eeb1b624cca1bbf422a2445f1754..0000000000000000000000000000000000000000 GI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IOt+boSP4HlMrQ?w^K-hkwSo+SJt4ypjXSV7ugFI{c0V z!7h_iKqS%{@M%&vD240^*>TW - - - - - - - ", - "
", - "" - }; - append(chunks); - } - - /** - * Renders a single post - * - * @param post - * @throws JSONException - */ - private void renderPost(JSONObject post) throws JSONException { - append("
"); - renderFrom(post); - renderTo(post); - renderMessage(post); - renderAttachment(post); - renderActionLinks(post); - renderLikes(post); - renderComments(post); - renderCommentBox(post); - append("
"); - } - - - /** - * Renders the author's name - * - * @param post - * @throws JSONException - */ - private void renderFrom(JSONObject post) throws JSONException { - JSONObject from = post.getJSONObject("from"); - String fromName = from.getString("name"); - String fromId = from.getString("id"); - renderAuthor(fromId, fromName); - } - - /** - * If it's a wall post on a friend's fall, renders - * the recipient's name preceded by a '>'. - * - * @param post - * @throws JSONException - */ - private void renderTo(JSONObject post) throws JSONException { - JSONObject to = post.optJSONObject("to"); - if (to != null) { - JSONObject toData = to.getJSONArray("data").getJSONObject(0); - String toName = toData.getString("name"); - String toId = toData.getString("id"); - append(" > "); - renderProfileLink(toId, toName); - } - } - - /** - * Renders a link to a user. - * - * @param id - * @param name - */ - private void renderProfileLink(String id, String name) { - renderLink(getProfileUrl(id), name); - } - - private String getProfileUrl(String id) { - return "http://touch.facebook.com/#/profile.php?id=" + id; - } - - /** - * Renders the author pic and name. - * - * @param id - * @param name - */ - private void renderAuthor(String id, String name) { - String[] chunks = { - "
", - "", - "
" - }; - append(chunks); - renderProfileLink(id, name); - } - - /** - * Renders the post message. - * - * @param post - */ - private void renderMessage(JSONObject post) { - String message = post.optString("message"); - String[] chunks = { - " ", message, "", - "
" - }; - append(chunks); - } - - /** - * Renders the attachment. - * - * @param post - */ - private void renderAttachment(JSONObject post) { - String name = post.optString("name"); - String link = post.optString("link"); - String picture = post.optString("picture"); - String source = post.optString("source"); // for videos - String caption = post.optString("caption"); - String description = post.optString("description"); - - String[] fields = new String[] { - name, link, picture, source, caption, description - }; - boolean hasAttachment = false; - for (String field : fields) { - if (field.length() != 0) { - hasAttachment = true; - break; - } - } - - if (!hasAttachment) { - return; - } - - append("
"); - if (name != "") { - append("
"); - if (link != null) { - renderLink(link, name); - } else { - append(name); - } - append("
"); - } - if (caption != "") { - append("
" + caption + "
"); - } - - if (picture != "") { - append("
"); - String img = ""; - if (link != "") { - renderLink(link, img); - } else { - append(img); - } - append("
"); - } - - if (description != "") { - append("
" + description + "
"); - } - append("
"); - } - - /** - * Renders an anchor tag - * - * @param href - * @param text - */ - private void renderLink(String href, String text) { - append(new String[] { - "", - text, - "" - }); - } - - /** - * Renders the posts' action links. - * - * @param post - */ - private void renderActionLinks(JSONObject post) { - HashSet actions = getActions(post); - append("
"); - append("
"); - renderTimeStamp(post); - append("
"); - String post_id = post.optString("id"); - if (actions.contains("Comment")) { - renderActionLink(post_id, "Comment", "comment"); - } - boolean canLike = actions.contains("Like"); - renderActionLink(post_id, "Like", "like", canLike); - renderActionLink(post_id, "Unlike", "unlike", !canLike); - - append("
"); - } - - /** - * Renders a single visible action link. - * - * @param post_id - * @param title - * @param func - */ - private void renderActionLink(String post_id, String title, String func) { - renderActionLink(post_id, title, func, true); - } - - /** - * Renders an action link with optional visibility. - * - * @param post_id - * @param title - * @param func - * @param visible - */ - private void renderActionLink(String post_id, String title, String func, - boolean visible) { - String extraClass = visible ? "" : "hidden"; - String[] chunks = new String[] { - "" - }; - append(chunks); - } - - /** - * Renders the post's timestamp. - * - * @param post - */ - private void renderTimeStamp(JSONObject post) { - String dateStr = post.optString("created_time"); - SimpleDateFormat formatter = getDateFormat(); - ParsePosition pos = new ParsePosition(0); - long then = formatter.parse(dateStr, pos).getTime(); - long now = new Date().getTime(); - - long seconds = (now - then)/1000; - long minutes = seconds/60; - long hours = minutes/60; - long days = hours/24; - - String friendly = null; - long num = 0; - if (days > 0) { - num = days; - friendly = days + " day"; - } else if (hours > 0) { - num = hours; - friendly = hours + " hour"; - } else if (minutes > 0) { - num = minutes; - friendly = minutes + " minute"; - } else { - num = seconds; - friendly = seconds + " second"; - } - if (num > 1) { - friendly += "s"; - } - String[] chunks = new String[] { - "
", - friendly, - " ago", - "
" - }; - append(chunks); - } - - /** - * Returns the available actions for the post. - * - * @param post - * @return - */ - private HashSet getActions(JSONObject post) { - HashSet actionsSet = new HashSet(); - JSONArray actions = post.optJSONArray("actions"); - if (actions != null) { - for (int j = 0; j < actions.length(); j++) { - JSONObject action = actions.optJSONObject(j); - String actionName = action.optString("name"); - actionsSet.add(actionName); - } - } - return actionsSet; - } - - /** - * Renders the 'x people like this' text, - * - * @param post - */ - private void renderLikes(JSONObject post) { - int numLikes = post.optInt("likes", 0); - if (numLikes > 0) { - String desc = numLikes == 1 ? - "person likes this" : - "people like this"; - String[] chunks = new String[] { - "
", - "", - "
", - "
", - new Integer(numLikes).toString(), - " ", - desc, - "
" - }; - append(chunks); - } - } - - /** - * Renders the post's comments. - * - * @param post - * @throws JSONException - */ - private void renderComments(JSONObject post) throws JSONException { - append("
"); - JSONObject comments = post.optJSONObject("comments"); - if (comments != null) { - JSONArray data = comments.optJSONArray("data"); - if (data != null) { - for (int j = 0; j < data.length(); j++) { - JSONObject comment = data.getJSONObject(j); - renderComment(comment); - } - } - } - append("
"); - } - - /** - * Renders an individual comment. - * - * @param comment - */ - private void renderComment(JSONObject comment) { - JSONObject from = comment.optJSONObject("from"); - if (from == null) { - Log.w("StreamRenderer", - "Comment missing from field: " + comment.toString()); - } else { - String authorId = from.optString("id"); - String authorName = from.optString("name"); - renderAuthor(authorId, authorName); - } - String message = comment.optString("message"); - append("
"); - String[] chunks = { - " ", - message, - "
" - }; - append(chunks); - } - - - /** - * Renders the new comment input box. - * - * @param post - */ - private void renderCommentBox(JSONObject post) { - String id = post.optString("id"); - String[] chunks = new String[] { - "
", - "", - "", - "
", - "
" - }; - append(chunks); - } - - - private void append(String str) { - sb.append(str); - } - - private void append(String[] chunks) { - for (String chunk : chunks) { - sb.append(chunk); - } - } -} \ No newline at end of file diff --git a/facebook/facebook/.project b/facebook/facebook/.project index fd0de1b6e..d0551a112 100644 --- a/facebook/facebook/.project +++ b/facebook/facebook/.project @@ -1,6 +1,6 @@ - facebook + FacebookSDK diff --git a/facebook/facebook/AndroidManifest.xml b/facebook/facebook/AndroidManifest.xml index e6940f838..daf6c8b4a 100644 --- a/facebook/facebook/AndroidManifest.xml +++ b/facebook/facebook/AndroidManifest.xml @@ -18,4 +18,5 @@ + diff --git a/facebook/facebook/TestApp/AndroidManifest.xml b/facebook/facebook/TestApp/AndroidManifest.xml new file mode 100644 index 000000000..cccc2923d --- /dev/null +++ b/facebook/facebook/TestApp/AndroidManifest.xml @@ -0,0 +1,15 @@ + + + + + + + + + + + diff --git a/facebook/facebook/TestApp/SdkTestApp.eml b/facebook/facebook/TestApp/SdkTestApp.eml new file mode 100644 index 000000000..4104d1ffc --- /dev/null +++ b/facebook/facebook/TestApp/SdkTestApp.eml @@ -0,0 +1,5 @@ + + + + + diff --git a/facebook/facebook/TestApp/ant.properties b/facebook/facebook/TestApp/ant.properties new file mode 100644 index 000000000..b0971e891 --- /dev/null +++ b/facebook/facebook/TestApp/ant.properties @@ -0,0 +1,17 @@ +# This file is used to override default values used by the Ant build system. +# +# This file must be checked into Version Control Systems, as it is +# integral to the build system of your project. + +# This file is only used by the Ant script. + +# You can use this to override default values such as +# 'source.dir' for the location of your java source folder and +# 'out.dir' for the location of your output folder. + +# You can also use it define how the release builds are signed by declaring +# the following properties: +# 'key.store' for the location of your keystore and +# 'key.alias' for the name of the key to use. +# The password will be asked during the build when you use the 'release' target. + diff --git a/facebook/facebook/TestApp/build.xml b/facebook/facebook/TestApp/build.xml new file mode 100644 index 000000000..ea49a3fca --- /dev/null +++ b/facebook/facebook/TestApp/build.xml @@ -0,0 +1,83 @@ + + + + + + + + + + + + + + + + + + + + + + + diff --git a/facebook/facebook/TestApp/proguard-project.txt b/facebook/facebook/TestApp/proguard-project.txt new file mode 100644 index 000000000..f2fe1559a --- /dev/null +++ b/facebook/facebook/TestApp/proguard-project.txt @@ -0,0 +1,20 @@ +# To enable ProGuard in your project, edit project.properties +# to define the proguard.config property as described in that file. +# +# Add project specific ProGuard rules here. +# By default, the flags in this file are appended to flags specified +# in ${sdk.dir}/tools/proguard/proguard-android.txt +# You can edit the include path and order by changing the ProGuard +# include property in project.properties. +# +# For more details, see +# http://developer.android.com/guide/developing/tools/proguard.html + +# Add any project specific keep options here: + +# If your project uses WebView with JS, uncomment the following +# and specify the fully qualified class name to the JavaScript interface +# class: +#-keepclassmembers class fqcn.of.javascript.interface.for.webview { +# public *; +#} diff --git a/facebook/facebook/TestApp/project.properties b/facebook/facebook/TestApp/project.properties new file mode 100644 index 000000000..b0620672e --- /dev/null +++ b/facebook/facebook/TestApp/project.properties @@ -0,0 +1,15 @@ +# This file is automatically generated by Android Tools. +# Do not modify this file -- YOUR CHANGES WILL BE ERASED! +# +# This file must be checked in Version Control Systems. +# +# To customize properties used by the Ant build system edit +# "ant.properties", and override values to adapt the script to your +# project structure. +# +# To enable ProGuard to shrink and obfuscate your code, uncomment this (available properties: sdk.dir, user.home): +#proguard.config=${sdk.dir}/tools/proguard/proguard-android.txt:proguard-project.txt + +# Project target. +target=android-8 + diff --git a/facebook/examples/stream/res/drawable-hdpi/icon.png b/facebook/facebook/TestApp/res/drawable-hdpi/ic_launcher.png similarity index 100% rename from facebook/examples/stream/res/drawable-hdpi/icon.png rename to facebook/facebook/TestApp/res/drawable-hdpi/ic_launcher.png diff --git a/facebook/examples/stream/res/drawable-ldpi/icon.png b/facebook/facebook/TestApp/res/drawable-ldpi/ic_launcher.png similarity index 100% rename from facebook/examples/stream/res/drawable-ldpi/icon.png rename to facebook/facebook/TestApp/res/drawable-ldpi/ic_launcher.png diff --git a/facebook/examples/simple/res/drawable/icon.png b/facebook/facebook/TestApp/res/drawable-mdpi/ic_launcher.png similarity index 100% rename from facebook/examples/simple/res/drawable/icon.png rename to facebook/facebook/TestApp/res/drawable-mdpi/ic_launcher.png diff --git a/facebook/facebook/TestApp/res/layout/main.xml b/facebook/facebook/TestApp/res/layout/main.xml new file mode 100644 index 000000000..da713e268 --- /dev/null +++ b/facebook/facebook/TestApp/res/layout/main.xml @@ -0,0 +1,29 @@ + + + + + + + diff --git a/facebook/facebook/TestApp/res/values/strings.xml b/facebook/facebook/TestApp/res/values/strings.xml new file mode 100644 index 000000000..b2e26a0c0 --- /dev/null +++ b/facebook/facebook/TestApp/res/values/strings.xml @@ -0,0 +1,20 @@ + + + + + StatusActivity + diff --git a/facebook/facebook/TestApp/src/com/facebook/sdk/StatusActivity.java b/facebook/facebook/TestApp/src/com/facebook/sdk/StatusActivity.java new file mode 100644 index 000000000..d0930d9ad --- /dev/null +++ b/facebook/facebook/TestApp/src/com/facebook/sdk/StatusActivity.java @@ -0,0 +1,31 @@ +/** + * Copyright 2012 Facebook + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.facebook.sdk; + +import android.app.Activity; +import android.os.Bundle; + +public class StatusActivity extends Activity +{ + /** Called when the activity is first created. */ + @Override + public void onCreate(Bundle savedInstanceState) + { + super.onCreate(savedInstanceState); + setContentView(R.layout.main); + } +} diff --git a/facebook/facebook/android-sdk.eml b/facebook/facebook/android-sdk.eml new file mode 100644 index 000000000..4104d1ffc --- /dev/null +++ b/facebook/facebook/android-sdk.eml @@ -0,0 +1,5 @@ + + + + + diff --git a/facebook/facebook/ant.properties b/facebook/facebook/ant.properties new file mode 100644 index 000000000..b206ddecc --- /dev/null +++ b/facebook/facebook/ant.properties @@ -0,0 +1,2 @@ +jar.libs.dir=../lib +java.compilerargs=-Xlint -Werror \ No newline at end of file diff --git a/facebook/facebook/build.xml b/facebook/facebook/build.xml index f5238e48f..d85ad3e64 100644 --- a/facebook/facebook/build.xml +++ b/facebook/facebook/build.xml @@ -4,7 +4,7 @@ - + - - - + + + + + + diff --git a/facebook/facebook/res/drawable/com_facebook_button_check_off.png b/facebook/facebook/res/drawable/com_facebook_button_check_off.png new file mode 100644 index 0000000000000000000000000000000000000000..e9737df5c5192c0a20050589f17a059f8593b61d GIT binary patch literal 549 zcmV+=0^0qFP)iEA6Y>ujx@pm>7NLR5APN;+yL6=w;8VB~T<8P1 zaVPj5b`G5A!kuxnNa2Iw-nrjBbAH#Et;J&TZ)`>mKQB-M-hnsbljDQy2#|o_3NYXpxbyjZ89{Ed*=}GmVlEQJRD=v1p+~PRX8`+!IMna=OS9SR zwNNN%=rNG5FCGqu599Ipx>l?0w_2^#ALOEVFc_S}^)`*4t}171h&^t%8`mG0$t6wG z)Jmn2prDwEc*kzHC+RS-WpY+7mlN~(yaGIRyWKRM0;VTM91ceuPYG9qpxy53^HYh+G@O%q!gI=$f)e$oaFvMp99#I|$1TN?X z6?%wIvHLBWOePs#Oq(Ytz@Vwz@AqGE0Y)MHIEFRVT0ecI0wW8;wR@kdH>ARI}MENRpIL6y*e=Y9ol%YDMr`7pK#yRjbtudIUM( n0dV4(qr3($Kn^_{`9OaGsxpa5Fv4QA00000NkvXXu0mjfDA?;R literal 0 HcmV?d00001 diff --git a/facebook/facebook/res/drawable/com_facebook_button_check_on.png b/facebook/facebook/res/drawable/com_facebook_button_check_on.png new file mode 100644 index 0000000000000000000000000000000000000000..d793151e64904508ae6a210a3a0d5f2eef6709ae GIT binary patch literal 733 zcmV<30wVp1P)QO2>wh@JdN>PQU=MuZ+4G$9Ip;hh0BhF&!INug>-J*u zCX~|W#BxGnMQrUTBP5j2uy7RI(j4!%_7KXZ302PtCud`;a)w|ZAY`?~`xV^YzwSrH z6NX>J)`>8o{IT3r7o< zSN4cdG)4$5c<}q`nAVWr8wI!Zi{q`X(rJQogyH!J><@d8(Mr&KQE*<7C&`XZaUs5+ z62JA81PO&hgy0|WoA+U4HyPl#L(zAh*DWU=_7jSS4X7PA!a2(Klj6C|H95a$Yhb$1BJ1 z;?X~g7$A1#4Y_oa+X5PFH{@{xuk>(Tp9XUa;m|#?xQrbY&*~&t8QF7=u<$OdL%cy3 z0x$LO*o+6JI)d#cn1jmqkx$m?AA3iPOZ`b_WFm_cFa(!ZsK6X?*y_HZf zD8H*XYJuB`<&`A`7SBvI21dkqHFi`yt(jmQkR9kDnCb~tS5g$*R&PXV10la(j8$Vt z#ZwyzdA*UcuM&3G5*qs=fAE=W8j{Zva<7Xq(PKx&_qqvMx4w)HLQ)l><90RN-7f4r zMab;bjZtDp#rHSFt%%*``1F}u2`T4g<~H3sB{5$(3hr#*Je9_frHhc|jXjG;E-oAe z@A6j`I@`BAOuZ1dV!B9(x%%}#txcO|g`?oy25uXtarS@6$|VU$!PlZ+01Q!RGVamd P00000NkvXXu0mjf&2(O+ literal 0 HcmV?d00001 diff --git a/facebook/facebook/res/drawable/com_facebook_button_grey_focused.9.png b/facebook/facebook/res/drawable/com_facebook_button_grey_focused.9.png new file mode 100644 index 0000000000000000000000000000000000000000..56f603571946b58e56d3e2feb77d7d02fe0c139d GIT binary patch literal 462 zcmV;<0WtoGP)jQXJd<8-95qt^pVSEF{f@cqU6Gf{=O*R2jd-CMLq|us;vuRS&5HzMWbm3#z-EVik znVn<^$sRz)9W=H_t&`c&c=P8emOLuniJC8Da8b-6D|EDA=Ylyby~M$Q>wj8!99 zgr&6q7#sUbHvW%1Gkh`_VB{H7YsGFJWDqh+1WFC?R}o3gIoKs=mi{2615!GsO>>?+ zk5NcjHCnWg%FsONM=4m(ll}&$B*0?z43OQRlItw~QM;}iWD#A*`AXjmmJn@Cdm<3P z5ZZ%Igkjvo(s>+c5cqnnHn;X{+l#_9scsn1ed*k`jt}>QFl^-P$Gt?hu6e`)Vm7+O zN4z6m5pRe-O*9yp#%gqsMy~q^4O8@`> literal 0 HcmV?d00001 diff --git a/facebook/facebook/res/drawable/com_facebook_button_grey_normal.9.png b/facebook/facebook/res/drawable/com_facebook_button_grey_normal.9.png new file mode 100644 index 0000000000000000000000000000000000000000..dff3b7d73e7abcb71eba8215d30ff4976d7485bc GIT binary patch literal 381 zcmV-@0fPRCP)jvcN+6`Sd>HfN;)}EEfFd7n$dt=fphz6EA^tk5XH4l#iG}5KJx0>Kcae5k&{W z7!#Dv+`*vVb8LGGoKNK?RRB6t8}KfZ#OP1}3RnObNfm&{XiCphCK&-jl%Dp%Ye#+L b{R%Ju`N@eIBQyty00000NkvXXu0mjf!T_X0 literal 0 HcmV?d00001 diff --git a/facebook/facebook/res/drawable/com_facebook_button_grey_pressed.9.png b/facebook/facebook/res/drawable/com_facebook_button_grey_pressed.9.png new file mode 100644 index 0000000000000000000000000000000000000000..46648efcdd24079bcd4a4b1c03cff3e9f3321c2e GIT binary patch literal 303 zcmV+~0nq-5P)RCwC#mB9+aFbsy1wCvFO23|es zGw4qG9J2Qk!6#9~N6?d3A7N}xTup}6i4_LJTLV97ldlQwp#cb+gT97-aXg)e?AEN5 zm9Q$-mX%G$qlxO#>FaWxNHk{Z0xBUPB002ovPDHLkV1lFH BeWw5b literal 0 HcmV?d00001 diff --git a/facebook/facebook/res/drawable/close.png b/facebook/facebook/res/drawable/com_facebook_close.png old mode 100644 new mode 100755 similarity index 60% rename from facebook/facebook/res/drawable/close.png rename to facebook/facebook/res/drawable/com_facebook_close.png index ed8b374b12f02aa19c7e4e28d4a700d60e412e7b..ad0147460f5805ec500a81bb42002e923e2cd5d5 GIT binary patch delta 1725 zcmV;u215D$A+aK`i3)#{Nkl%%tXbW~8f`tf6hAOC_cuOU7nF ze}V{tK#ho^KlL*(*w&y3i1P!6r@|lkBg%?Qvyy@=+HJO6&CkaCcINK$oO$2Z zG2Ogy=iGDdInQ%H&OPtgwAN~YX2(4H^a6gIcA|%kPJP~HTY!I*AQsv6>(?`iii$E^ zE?2VG>-CL|jg3xCP4%_4wFP$W+!=^sm=zagj|@rrZO053<1!ZHeEaro#n-Q2>!CNJ z|BF6^K4M7f&77wnVx7>5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(6-2*@#sg zlHqi0Y^)3aKnjT!di3a#!Mly!D7>=@kGU!>E!D_$8{Sj3v9aNM@ZiDUXU?2y1I8@y z{srD=jJbW@itU|(;gGv!9gZ(5D#`;`3C6WeO-(Hm6BFYA^Ku9ON0d{K`n03{i4!Ms zG4`MlS2hUy?Exl)SgtUjLQH>NUS1;VaT?;13_h))p`j4JnfYmHX*sA;2}mLr-d!Iq z{xXXHEUv{2lI9=i&X<*yE#Pj>qY5p8_n}D@K`&$-uQjplm`BYRcut-?nS`uN#_JGA z9*vcp?=N+DTwb&lwAG4=iglE~g=f#6(b*~*Uk`~hdW&{Br6jy#UTlBvn$F`8H#hEQ z?1v8@qVc{u7Z(=|UL};a05W-VWo2ap@m_=OIvSnvcSrt_(eI!=othdE&bcerOec=l ziGL(}R8*7=g*>#dun@%YvZ6^y85}Sb4q9e0RFcRng9R* literal 0 HcmV?d00001 diff --git a/facebook/facebook/res/drawable/com_facebook_list_section_header_background.9.png b/facebook/facebook/res/drawable/com_facebook_list_section_header_background.9.png new file mode 100644 index 0000000000000000000000000000000000000000..1763c4a64897be54becb59e46878a88fa8d704a3 GIT binary patch literal 153 zcmeAS@N?(olHy`uVBq!ia0vp^oIoti!3HGP^)GDzQVE_ejv*T7lM@fH{BN8g7}>z8 zQt|OrZVuN$hj@3|t1M;Qq#Im9{U?E(T9mKbLh*2~7a? CRyo=L literal 0 HcmV?d00001 diff --git a/facebook/facebook/res/drawable/com_facebook_loginbutton_blue.xml b/facebook/facebook/res/drawable/com_facebook_loginbutton_blue.xml new file mode 100644 index 000000000..8dba4d0ac --- /dev/null +++ b/facebook/facebook/res/drawable/com_facebook_loginbutton_blue.xml @@ -0,0 +1,23 @@ + + + + + + + diff --git a/facebook/facebook/res/drawable/com_facebook_loginbutton_blue_focused.png b/facebook/facebook/res/drawable/com_facebook_loginbutton_blue_focused.png new file mode 100644 index 0000000000000000000000000000000000000000..218b6e5d1503f5eda22689d0b674e99d1e8021bb GIT binary patch literal 1621 zcmeA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T>>y>{W}sUvDlJo9a;8{_N%H z{-sa`KfF+J zZ}Xm9?t_e{Zcd9mb39_j^1xG)1$SR`{BKNFnibj2K7TuR($gR1=^ + + + + + + diff --git a/facebook/facebook/res/drawable/com_facebook_logo.png b/facebook/facebook/res/drawable/com_facebook_logo.png new file mode 100644 index 0000000000000000000000000000000000000000..785acf9eac5717df73ae2f0868a68beaf46185f2 GIT binary patch literal 6416 zcmV+r8SmzaP)ei`Kr|K+?SVSod!?eB^L%Dwa zx?fmWSUmh00p!Q!l}e>dU0q#TbaZqc!>!m=x=K3>n4H_ZXmT6r+BOKH4Xt#%H)+ySz7b%RKB{``4Q7}#+h9v-nWnJiAJRQ4+?D_a{A6LT39@A#D( zr})B!3*HeC5d#zo#Q@Mv9K7~9a^%RgNs}hkbi@hD1R9kV6%|d1jEwvY-g~$LDlaeh zffxC&)sS(}7Zel>g;{GA%uxMDj2ID#lNFbzu(0q8c)14T_%-RJxVU&+aB%QqtJT^U z26Z@o%;iZ>PY-~XnvS$1p|uaAqmhd@({rLH54h#N)LhOO_Iyy(auJU zMWfMp{R(v?Z)j*34tjYEj5xyCh_O^wR;u_u?+iosh>wq-51vKU6(qPnyMZBl2{BkK z7HLO2?BCIl^?JRaUcggJJK6}%kX3^L++e%7G%Il$kkPZmgEf6D@VglLKZ(Zg8Wjf?DxfkZm@b zL?AFn?^}-aYh4fRD!;ta<{(@w7NZBYb{TP3`K5d0f2)$7o-XUxuV0u{D)ocG=%rcO)ap%fJrA$|zR?GIua zKxTc9;CQjdZG6oPO?NYHs&hEnWyyA_mP!tx?vU5!RF83)F#TepUDv7E_lHs=6c zhBi*t*Vk{WuC9I!3?&Nt0`={RkPqY?XfPNy0M0e&Gz*`c@Ocw_pWE2jc(|sfW;qy6 z0zNAbo}|3IJPBmk4e}LWRldiD?`}hWunl-0rQoOz9y~ag5h$RW{UG;o&`%Xbw{;-z zx1h`4!@!Zb(#4J)JCr(|?nS7R3Yg^-Js3d`*|oK`?}48CxvS?{vu4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&{`wILMkm5i(~d5U)c!B z-SI!po|8Cq=&<;R$jC@YD%7;x0c_q>Q&X)6Ty1G-X(1$IY2^7G-+X=eB6y@NAt51s zfI=V<4e*78Kn(?d@S3(gtJ76g78ey2U%h%IXVZp{zN@RNy$4_6;=c}LwcQ_tS_b6C zP@rJ@w$D=b?Amd4_MF#8kA5ui;iw)_J^cd$0`Sh8Q_|G{PNVE*PEPK}TQ{G)nR6qT zU{|)R$v%LMYvT7H!9E6*2TA%Pr~rVuL+3fPd53?T(-9&dH=wm>4W}c18m^>>x+YH(#e_PMkC;B_UzhSX{B- z+93W&5Qq}|*UeieCXIUxZ^zrkl$DGyAp8x40OyS$QOjMaypl3)HTR3i@DS`M%7F5jmB79Tx6)Ot~Qa;jh$0Ny}_7$ zd&l(g_wx4kfF5XGfCmFL7ZeoKgTv(F){{=FARf)1=+2+$!n1jOStRlRJ@|x&MLcj* zL#Nl7e$2gDjjJO>AJs%R_-X`Md5^>rT`NidpdRp+hA;k}b#%{OKEXl3o-o+VRaIIe z=%JCs!PR8rMo-$Z0X{>)R*+|C#l{2=?AbRUFwhhG6J`Sw_=pCAT|@dzM|5Iku>lWt zfGbWhMAyzmN0wwOp^k&o*X(5vyr|*9b3z24BOi4SUfL?A9HI0ijq(AYAsC=h3y%`S zWFV-BaVkak&pg|RXKfPQ|G`5g;d8!QhJ5wVhMCfahm)bm$zHse3^p5wtZdd#6zt%^ zlR6t7!IZF@5uA+=7Sl?0nara5KjtXq$Rig$c(9*+FXrgd?u3K7X#yGT?(D>X>}-2n zxn&%=?VRUl_0DU+0tQXfiJh-cow13GtUd5W0A@0<%-p)f$*4(PzH=5<5`&xYw{3pT zUr!fvh+W-aex`OLoVFYs<6}A?x5UZlm<~L{&w=T#&PAPs?~L6M9e3{OLySGT{+n1= e`A;bSC%^z`OU9qvXCnsy0000 + + + + + + + + + + + diff --git a/facebook/facebook/res/drawable/com_facebook_picker_list_focused.9.png b/facebook/facebook/res/drawable/com_facebook_picker_list_focused.9.png new file mode 100644 index 0000000000000000000000000000000000000000..7c0599e3a6fcce1d9b22e47bfdb63afb1d3d9c02 GIT binary patch literal 158 zcmeAS@N?(olHy`uVBq!ia0vp^93afW1|*O0@9PFqEX7WqAsj$Z!;#Vf4nJ zaCd?*qxs3xYk`6eo-U3d5>t~6?){p=$oZ!|i46oEul1LdSjZF4rt@IU_AhE`IYK8I wIB$ByaB<8!;4zVtCm{dd@wVRWcBu>u-xEd5&snyt0Gh?%>FVdQ&MBb@09FhvcK`qY literal 0 HcmV?d00001 diff --git a/facebook/facebook/res/drawable/com_facebook_picker_list_longpressed.9.png b/facebook/facebook/res/drawable/com_facebook_picker_list_longpressed.9.png new file mode 100644 index 0000000000000000000000000000000000000000..3bf8e03623c94b68d31963ffe7e59c72c3dcc059 GIT binary patch literal 151 zcmeAS@N?(olHy`uVBq!ia0vp^93afW1|*O0@9PFqEX7WqAsj$Z!;#Vf4nJ zaCd?*qxs3xYk`86o-U3d5>t~CW>mH@a{g&g;s7!l1y4Byva-KaJLVIiI)OpBYodjS ofJx&-C1HsL_x|*Yp0_#7zz}{&aC*>dO_0?Lp00i_>zopr00f~Zw*UYD literal 0 HcmV?d00001 diff --git a/facebook/facebook/res/drawable/com_facebook_picker_list_pressed.9.png b/facebook/facebook/res/drawable/com_facebook_picker_list_pressed.9.png new file mode 100644 index 0000000000000000000000000000000000000000..6e77525d2dbbc1673145d60d775602c85264330d GIT binary patch literal 158 zcmeAS@N?(olHy`uVBq!ia0vp^93afW1|*O0@9PFqEX7WqAsj$Z!;#Vf4nJ zaCd?*qxs3xYk`6eo-U3d5>t~6?){p=$oZ!|i46oEul1LdSlBa@C*nY4{!0_J9HA2p woHspUxHx7V@R-QS6OjM!cw6swyHo~-e~lvMp^1B@1I=RaboFyt=akR{0Ay(_r~m)} literal 0 HcmV?d00001 diff --git a/facebook/facebook/res/drawable/com_facebook_picker_list_selector.xml b/facebook/facebook/res/drawable/com_facebook_picker_list_selector.xml new file mode 100644 index 000000000..ce9ed5ba8 --- /dev/null +++ b/facebook/facebook/res/drawable/com_facebook_picker_list_selector.xml @@ -0,0 +1,27 @@ + + + + + + + + + + + + + diff --git a/facebook/facebook/res/drawable/com_facebook_picker_list_selector_background_transition.xml b/facebook/facebook/res/drawable/com_facebook_picker_list_selector_background_transition.xml new file mode 100644 index 000000000..0e4aa8eb8 --- /dev/null +++ b/facebook/facebook/res/drawable/com_facebook_picker_list_selector_background_transition.xml @@ -0,0 +1,20 @@ + + + + + + + diff --git a/facebook/facebook/res/drawable/com_facebook_picker_list_selector_disabled.9.png b/facebook/facebook/res/drawable/com_facebook_picker_list_selector_disabled.9.png new file mode 100644 index 0000000000000000000000000000000000000000..42cb6463e4c28c6aeffa315c4fc869867dbb6b7c GIT binary patch literal 171 zcmeAS@N?(olHy`uVBq!ia0vp^{6MVD!3HFkzrK_Oq*#ibJVQ8upoSx*1IXtr@Q5sC zVBqcqVMg@oJyIHz9Y|%SiynA|kd)58s-{92FmHki*;@KxND!%;H%=F4ZU(n;yg$GVRgBd(s L{an^LB{Ts54)-;@ literal 0 HcmV?d00001 diff --git a/facebook/facebook/res/drawable/com_facebook_picker_top_button.xml b/facebook/facebook/res/drawable/com_facebook_picker_top_button.xml new file mode 100644 index 000000000..4b7a7caa9 --- /dev/null +++ b/facebook/facebook/res/drawable/com_facebook_picker_top_button.xml @@ -0,0 +1,22 @@ + + + + + diff --git a/facebook/facebook/res/drawable/com_facebook_place_default_icon.png b/facebook/facebook/res/drawable/com_facebook_place_default_icon.png new file mode 100644 index 0000000000000000000000000000000000000000..97ec3e608cce7bd36d431e74c7359101518d9de1 GIT binary patch literal 813 zcmV+|1JeA7P)+Thjy*?c3q*)Y|Ir@%Pi(>dn;Vz{%j! z+3CQ^;oaiz)Y|FR-0S-L{r&#_>+bc)(B;R^i$*?(D%hKiB;O_A9_~q&InWQ+r0005JNklWE(h@!QC=kKjvC&0DX%a)Ez}Kq-g~I8~C>o_2tj=F4BKvk!S}DMtu6kf( z3XP!<_;F8#ILTmKCiLZDZ|7BnvvU%MWDMsps~GzUdE=z=nJ7$;D58_G&7K^|23uIE zz=ts^K4CaDz8#_To>a|s0I1b&sF=Gj>_*4V_`UQYcvMsC8r!IY$L1DQyCu^q^3u=o6}SNPgEv$Z-&q>|`VN$f_hGyof8NL`-)~1k=isgK z8P2}wD4%0Ad?ubH(^icBX9@Ac1h+I@%M3Qyw(Qa(MsOi&S#+%=WVJu+$fY^Ba7k(M zM`)#CMO(h4J22$e!N5^0L%Kf$ehVz$(JYOB%|F0Oi~F-pTe#0oZ4vNGc?_W8Xys%0 zJw%a2B?74E@jm#6A_;GIAp}$N^6x+7?FMp50}*b*@k+Z?mZ2k(=KQ`y&p-i^|0|p) rAeKxLMgs&1LCObmjR*Z=?jU%T@XNPhqE8%P4d zk+TngfIM0_v7auS8l!d_Wc)74N&pp=O5mE{C4ljyLC~*j6iePOM?7@ z8C+a;?|%30#mlL8fI^o%T^vIy;;vpjna5(t;d=30KxISv_y7O1#dK4fn4-PBPTiGX zxc$+zZNH~4xs#r(de4tDm0`hCZQI9zkt#7C1$8G{?^EM;`LI`N5~Idr;kLdSqXnz& zP8xjjysQ3Js_5jj8cx9%v%GK2xo@kqVU?WXFVdQ&MBb@0JP(< ARsaA1 literal 0 HcmV?d00001 diff --git a/facebook/facebook/res/drawable/com_facebook_profile_picture_blank_portrait.png b/facebook/facebook/res/drawable/com_facebook_profile_picture_blank_portrait.png new file mode 100644 index 0000000000000000000000000000000000000000..107d7f89e6ce1e5d2e462230b1b8577adf3da2d0 GIT binary patch literal 3945 zcmai1dpwix`yWzDJ~>W^X5=t4%z2S!8#$KI%%QXs7Teh7ToTFf5ji$0@rj(Gk#nS) z4ph=YIaNB~vz$JqbijA|R^Q(rzrNq+c|G_2+}HEI-q&^C*Y&#Z>q*_`?kKZKbrS#p zka60B#)|s8qGw)8T-5d`T-zw>RM;3i+mjK z-NI0mVCtS&CdD(>-HQ|(Lb4`&Mbkp*EJU;|_&YB`^u8uG0)xIo z*deyye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;9}K&4ye`jTgZI*`R5s%F)qQuYIOXkQ z@3(N~@N@H!SmWq(n55w`;~?oXR93c;ZAGAFqP1XylBe5cL+?Jt4}bF3r4__KULCj1 zufy>sHD8U0(YhDTcU9pC3th4ww}31Th=U*P){0;8@7aNTYmDgoau;(HoVuk+bJV`w zo29u;T{Vg00!S5HOjgeGO>y_Qm%C;0qQCv_bZ(r` a9zai + + + + diff --git a/facebook/facebook/res/drawable/com_facebook_top_button.xml b/facebook/facebook/res/drawable/com_facebook_top_button.xml new file mode 100644 index 000000000..479e8596d --- /dev/null +++ b/facebook/facebook/res/drawable/com_facebook_top_button.xml @@ -0,0 +1,27 @@ + + + + + + + + + diff --git a/facebook/facebook/res/drawable/com_facebook_usersettingsfragment_background_gradient.xml b/facebook/facebook/res/drawable/com_facebook_usersettingsfragment_background_gradient.xml new file mode 100644 index 000000000..44c1a3c9a --- /dev/null +++ b/facebook/facebook/res/drawable/com_facebook_usersettingsfragment_background_gradient.xml @@ -0,0 +1,23 @@ + + + + + diff --git a/facebook/facebook/res/layout/com_facebook_friendpickerfragment.xml b/facebook/facebook/res/layout/com_facebook_friendpickerfragment.xml new file mode 100644 index 000000000..76b50c1d5 --- /dev/null +++ b/facebook/facebook/res/layout/com_facebook_friendpickerfragment.xml @@ -0,0 +1,44 @@ + + + + + + + + + + + diff --git a/facebook/facebook/res/layout/com_facebook_login_activity_layout.xml b/facebook/facebook/res/layout/com_facebook_login_activity_layout.xml new file mode 100644 index 000000000..09b28999f --- /dev/null +++ b/facebook/facebook/res/layout/com_facebook_login_activity_layout.xml @@ -0,0 +1,15 @@ + + + + + + diff --git a/facebook/facebook/res/layout/com_facebook_picker_activity_circle_row.xml b/facebook/facebook/res/layout/com_facebook_picker_activity_circle_row.xml new file mode 100644 index 000000000..29e8bc81b --- /dev/null +++ b/facebook/facebook/res/layout/com_facebook_picker_activity_circle_row.xml @@ -0,0 +1,32 @@ + + + + + + diff --git a/facebook/facebook/res/layout/com_facebook_picker_checkbox.xml b/facebook/facebook/res/layout/com_facebook_picker_checkbox.xml new file mode 100644 index 000000000..8adf7b3d7 --- /dev/null +++ b/facebook/facebook/res/layout/com_facebook_picker_checkbox.xml @@ -0,0 +1,25 @@ + + + + diff --git a/facebook/facebook/res/layout/com_facebook_picker_image.xml b/facebook/facebook/res/layout/com_facebook_picker_image.xml new file mode 100644 index 000000000..7793e3b3e --- /dev/null +++ b/facebook/facebook/res/layout/com_facebook_picker_image.xml @@ -0,0 +1,24 @@ + + + + diff --git a/facebook/facebook/res/layout/com_facebook_picker_list_row.xml b/facebook/facebook/res/layout/com_facebook_picker_list_row.xml new file mode 100644 index 000000000..8f439bfe0 --- /dev/null +++ b/facebook/facebook/res/layout/com_facebook_picker_list_row.xml @@ -0,0 +1,48 @@ + + + + + + + + diff --git a/facebook/facebook/res/layout/com_facebook_picker_list_section_header.xml b/facebook/facebook/res/layout/com_facebook_picker_list_section_header.xml new file mode 100644 index 000000000..cfb18beb9 --- /dev/null +++ b/facebook/facebook/res/layout/com_facebook_picker_list_section_header.xml @@ -0,0 +1,34 @@ + + + + diff --git a/facebook/facebook/res/layout/com_facebook_picker_search_box.xml b/facebook/facebook/res/layout/com_facebook_picker_search_box.xml new file mode 100644 index 000000000..786668e78 --- /dev/null +++ b/facebook/facebook/res/layout/com_facebook_picker_search_box.xml @@ -0,0 +1,21 @@ + + + + + diff --git a/facebook/facebook/res/layout/com_facebook_picker_title_bar.xml b/facebook/facebook/res/layout/com_facebook_picker_title_bar.xml new file mode 100644 index 000000000..bcd3141f7 --- /dev/null +++ b/facebook/facebook/res/layout/com_facebook_picker_title_bar.xml @@ -0,0 +1,63 @@ + + + + +