Permalink
Browse files

added facebook SDK

  • Loading branch information...
frogermcs committed Oct 30, 2014
1 parent a016ac4 commit fc5fd52ce0ad58211de9aaf7906b6c99f37faa66
Showing with 36,160 additions and 1 deletion.
  1. +9 −0 libs/facebook/.classpath
  2. +33 −0 libs/facebook/.project
  3. +22 −0 libs/facebook/AndroidManifest.xml
  4. +127 −0 libs/facebook/build.gradle
  5. +83 −0 libs/facebook/build.xml
  6. +15 −0 libs/facebook/libs/BUCK
  7. BIN libs/facebook/libs/bolts-android-1.1.2.jar
  8. +15 −0 libs/facebook/project.properties
  9. BIN libs/facebook/res/drawable-hdpi/com_facebook_button_blue_focused.9.png
  10. BIN libs/facebook/res/drawable-hdpi/com_facebook_button_blue_normal.9.png
  11. BIN libs/facebook/res/drawable-hdpi/com_facebook_button_blue_pressed.9.png
  12. BIN libs/facebook/res/drawable-hdpi/com_facebook_button_grey_focused.9.png
  13. BIN libs/facebook/res/drawable-hdpi/com_facebook_button_grey_normal.9.png
  14. BIN libs/facebook/res/drawable-hdpi/com_facebook_button_grey_pressed.9.png
  15. BIN libs/facebook/res/drawable-hdpi/com_facebook_button_like_background.png
  16. BIN libs/facebook/res/drawable-hdpi/com_facebook_button_like_background_selected.png
  17. BIN libs/facebook/res/drawable-hdpi/com_facebook_button_like_icon.png
  18. BIN libs/facebook/res/drawable-hdpi/com_facebook_button_like_icon_selected.png
  19. BIN libs/facebook/res/drawable-hdpi/com_facebook_button_like_pressed.png
  20. BIN libs/facebook/res/drawable-hdpi/com_facebook_close.png
  21. BIN libs/facebook/res/drawable-hdpi/com_facebook_inverse_icon.png
  22. BIN libs/facebook/res/drawable-hdpi/com_facebook_logo.png
  23. BIN libs/facebook/res/drawable-hdpi/com_facebook_picker_magnifier.png
  24. BIN libs/facebook/res/drawable-hdpi/com_facebook_tooltip_black_background.9.png
  25. BIN libs/facebook/res/drawable-hdpi/com_facebook_tooltip_black_bottomnub.png
  26. BIN libs/facebook/res/drawable-hdpi/com_facebook_tooltip_black_topnub.png
  27. BIN libs/facebook/res/drawable-hdpi/com_facebook_tooltip_black_xout.png
  28. BIN libs/facebook/res/drawable-hdpi/com_facebook_tooltip_blue_background.9.png
  29. BIN libs/facebook/res/drawable-hdpi/com_facebook_tooltip_blue_bottomnub.png
  30. BIN libs/facebook/res/drawable-hdpi/com_facebook_tooltip_blue_topnub.png
  31. BIN libs/facebook/res/drawable-hdpi/com_facebook_tooltip_blue_xout.png
  32. BIN libs/facebook/res/drawable-ldpi/com_facebook_close.png
  33. BIN libs/facebook/res/drawable-mdpi/com_facebook_button_blue_focused.9.png
  34. BIN libs/facebook/res/drawable-mdpi/com_facebook_button_blue_normal.9.png
  35. BIN libs/facebook/res/drawable-mdpi/com_facebook_button_blue_pressed.9.png
  36. BIN libs/facebook/res/drawable-mdpi/com_facebook_inverse_icon.png
  37. BIN libs/facebook/res/drawable-mdpi/com_facebook_picker_magnifier.png
  38. BIN libs/facebook/res/drawable-mdpi/com_facebook_tooltip_black_background.9.png
  39. BIN libs/facebook/res/drawable-mdpi/com_facebook_tooltip_black_bottomnub.png
  40. BIN libs/facebook/res/drawable-mdpi/com_facebook_tooltip_black_topnub.png
  41. BIN libs/facebook/res/drawable-mdpi/com_facebook_tooltip_black_xout.png
  42. BIN libs/facebook/res/drawable-mdpi/com_facebook_tooltip_blue_background.9.png
  43. BIN libs/facebook/res/drawable-mdpi/com_facebook_tooltip_blue_bottomnub.png
  44. BIN libs/facebook/res/drawable-mdpi/com_facebook_tooltip_blue_topnub.png
  45. BIN libs/facebook/res/drawable-mdpi/com_facebook_tooltip_blue_xout.png
  46. BIN libs/facebook/res/drawable-xhdpi/com_facebook_button_blue_focused.9.png
  47. BIN libs/facebook/res/drawable-xhdpi/com_facebook_button_blue_normal.9.png
  48. BIN libs/facebook/res/drawable-xhdpi/com_facebook_button_blue_pressed.9.png
  49. BIN libs/facebook/res/drawable-xhdpi/com_facebook_button_grey_focused.9.png
  50. BIN libs/facebook/res/drawable-xhdpi/com_facebook_button_grey_normal.9.png
  51. BIN libs/facebook/res/drawable-xhdpi/com_facebook_button_grey_pressed.9.png
  52. BIN libs/facebook/res/drawable-xhdpi/com_facebook_button_like_background.png
  53. BIN libs/facebook/res/drawable-xhdpi/com_facebook_button_like_background_selected.png
  54. BIN libs/facebook/res/drawable-xhdpi/com_facebook_button_like_icon.png
  55. BIN libs/facebook/res/drawable-xhdpi/com_facebook_button_like_icon_selected.png
  56. BIN libs/facebook/res/drawable-xhdpi/com_facebook_button_like_pressed.png
  57. BIN libs/facebook/res/drawable-xhdpi/com_facebook_close.png
  58. BIN libs/facebook/res/drawable-xhdpi/com_facebook_inverse_icon.png
  59. BIN libs/facebook/res/drawable-xhdpi/com_facebook_logo.png
  60. BIN libs/facebook/res/drawable-xhdpi/com_facebook_picker_magnifier.png
  61. BIN libs/facebook/res/drawable-xhdpi/com_facebook_tooltip_black_background.9.png
  62. BIN libs/facebook/res/drawable-xhdpi/com_facebook_tooltip_black_bottomnub.png
  63. BIN libs/facebook/res/drawable-xhdpi/com_facebook_tooltip_black_topnub.png
  64. BIN libs/facebook/res/drawable-xhdpi/com_facebook_tooltip_black_xout.png
  65. BIN libs/facebook/res/drawable-xhdpi/com_facebook_tooltip_blue_background.9.png
  66. BIN libs/facebook/res/drawable-xhdpi/com_facebook_tooltip_blue_bottomnub.png
  67. BIN libs/facebook/res/drawable-xhdpi/com_facebook_tooltip_blue_topnub.png
  68. BIN libs/facebook/res/drawable-xhdpi/com_facebook_tooltip_blue_xout.png
  69. BIN libs/facebook/res/drawable-xxhdpi/com_facebook_button_like_background.png
  70. BIN libs/facebook/res/drawable-xxhdpi/com_facebook_button_like_background_selected.png
  71. BIN libs/facebook/res/drawable-xxhdpi/com_facebook_button_like_icon.png
  72. BIN libs/facebook/res/drawable-xxhdpi/com_facebook_button_like_icon_selected.png
  73. BIN libs/facebook/res/drawable-xxhdpi/com_facebook_button_like_pressed.png
  74. +24 −0 libs/facebook/res/drawable/com_facebook_button_blue.xml
  75. BIN libs/facebook/res/drawable/com_facebook_button_blue_focused.9.png
  76. BIN libs/facebook/res/drawable/com_facebook_button_blue_normal.9.png
  77. BIN libs/facebook/res/drawable/com_facebook_button_blue_pressed.9.png
  78. +20 −0 libs/facebook/res/drawable/com_facebook_button_check.xml
  79. BIN libs/facebook/res/drawable/com_facebook_button_check_off.png
  80. BIN libs/facebook/res/drawable/com_facebook_button_check_on.png
  81. BIN libs/facebook/res/drawable/com_facebook_button_grey_focused.9.png
  82. BIN libs/facebook/res/drawable/com_facebook_button_grey_normal.9.png
  83. BIN libs/facebook/res/drawable/com_facebook_button_grey_pressed.9.png
  84. +25 −0 libs/facebook/res/drawable/com_facebook_button_like.xml
  85. BIN libs/facebook/res/drawable/com_facebook_button_like_background.png
  86. BIN libs/facebook/res/drawable/com_facebook_button_like_background_selected.png
  87. BIN libs/facebook/res/drawable/com_facebook_button_like_icon.png
  88. BIN libs/facebook/res/drawable/com_facebook_button_like_icon_selected.png
  89. BIN libs/facebook/res/drawable/com_facebook_button_like_pressed.png
  90. +26 −0 libs/facebook/res/drawable/com_facebook_button_like_selected.xml
  91. BIN libs/facebook/res/drawable/com_facebook_close.png
  92. BIN libs/facebook/res/drawable/com_facebook_inverse_icon.png
  93. BIN libs/facebook/res/drawable/com_facebook_list_divider.9.png
  94. BIN libs/facebook/res/drawable/com_facebook_list_section_header_background.9.png
  95. +23 −0 libs/facebook/res/drawable/com_facebook_loginbutton_silver.xml
  96. BIN libs/facebook/res/drawable/com_facebook_logo.png
  97. +26 −0 libs/facebook/res/drawable/com_facebook_picker_item_background.xml
  98. BIN libs/facebook/res/drawable/com_facebook_picker_list_focused.9.png
  99. BIN libs/facebook/res/drawable/com_facebook_picker_list_longpressed.9.png
  100. BIN libs/facebook/res/drawable/com_facebook_picker_list_pressed.9.png
  101. +27 −0 libs/facebook/res/drawable/com_facebook_picker_list_selector.xml
  102. +20 −0 libs/facebook/res/drawable/com_facebook_picker_list_selector_background_transition.xml
  103. BIN libs/facebook/res/drawable/com_facebook_picker_list_selector_disabled.9.png
  104. +22 −0 libs/facebook/res/drawable/com_facebook_picker_top_button.xml
  105. BIN libs/facebook/res/drawable/com_facebook_place_default_icon.png
  106. BIN libs/facebook/res/drawable/com_facebook_profile_default_icon.png
  107. BIN libs/facebook/res/drawable/com_facebook_profile_picture_blank_portrait.png
  108. BIN libs/facebook/res/drawable/com_facebook_profile_picture_blank_square.png
  109. +22 −0 libs/facebook/res/drawable/com_facebook_top_background.xml
  110. +27 −0 libs/facebook/res/drawable/com_facebook_top_button.xml
  111. +23 −0 libs/facebook/res/drawable/com_facebook_usersettingsfragment_background_gradient.xml
  112. +44 −0 libs/facebook/res/layout/com_facebook_friendpickerfragment.xml
  113. +15 −0 libs/facebook/res/layout/com_facebook_login_activity_layout.xml
  114. +32 −0 libs/facebook/res/layout/com_facebook_picker_activity_circle_row.xml
  115. +25 −0 libs/facebook/res/layout/com_facebook_picker_checkbox.xml
  116. +24 −0 libs/facebook/res/layout/com_facebook_picker_image.xml
  117. +48 −0 libs/facebook/res/layout/com_facebook_picker_list_row.xml
  118. +34 −0 libs/facebook/res/layout/com_facebook_picker_list_section_header.xml
  119. +29 −0 libs/facebook/res/layout/com_facebook_picker_search_box.xml
  120. +63 −0 libs/facebook/res/layout/com_facebook_picker_title_bar.xml
  121. +25 −0 libs/facebook/res/layout/com_facebook_picker_title_bar_stub.xml
  122. +47 −0 libs/facebook/res/layout/com_facebook_placepickerfragment.xml
  123. +90 −0 libs/facebook/res/layout/com_facebook_placepickerfragment_list_row.xml
  124. +31 −0 libs/facebook/res/layout/com_facebook_search_bar_layout.xml
  125. +54 −0 libs/facebook/res/layout/com_facebook_tooltip_bubble.xml
  126. +59 −0 libs/facebook/res/layout/com_facebook_usersettingsfragment.xml
  127. +44 −0 libs/facebook/res/values-es/strings.xml
  128. +4 −0 libs/facebook/res/values-hdpi/dimens.xml
  129. +44 −0 libs/facebook/res/values-he/strings.xml
  130. +44 −0 libs/facebook/res/values-iw/strings.xml
  131. +4 −0 libs/facebook/res/values-ldpi/dimens.xml
  132. +4 −0 libs/facebook/res/values-mdpi/dimens.xml
  133. +4 −0 libs/facebook/res/values-xhdpi/dimens.xml
  134. +74 −0 libs/facebook/res/values/attrs.xml
  135. +6 −0 libs/facebook/res/values/colors.xml
  136. +4 −0 libs/facebook/res/values/drawables.xml
  137. +47 −0 libs/facebook/res/values/strings.xml
  138. +92 −0 libs/facebook/res/values/styles.xml
  139. +426 −0 libs/facebook/src/com/facebook/AccessToken.java
  140. +67 −0 libs/facebook/src/com/facebook/AccessTokenSource.java
  141. +177 −0 libs/facebook/src/com/facebook/AppEventsConstants.java
  142. +1,582 −0 libs/facebook/src/com/facebook/AppEventsLogger.java
  143. +410 −0 libs/facebook/src/com/facebook/AppLinkData.java
  144. +1,078 −0 libs/facebook/src/com/facebook/AuthorizationClient.java
  145. +63 −0 libs/facebook/src/com/facebook/BoltsMeasurementEventListener.java
  146. +238 −0 libs/facebook/src/com/facebook/FacebookAppLinkResolver.java
  147. +65 −0 libs/facebook/src/com/facebook/FacebookAuthorizationException.java
  148. +41 −0 libs/facebook/src/com/facebook/FacebookBroadcastReceiver.java
  149. +53 −0 libs/facebook/src/com/facebook/FacebookDialogException.java
  150. +63 −0 libs/facebook/src/com/facebook/FacebookException.java
  151. +63 −0 libs/facebook/src/com/facebook/FacebookGraphObjectException.java
  152. +59 −0 libs/facebook/src/com/facebook/FacebookOperationCanceledException.java
  153. +503 −0 libs/facebook/src/com/facebook/FacebookRequestError.java
  154. +21 −0 libs/facebook/src/com/facebook/FacebookSdkVersion.java
  155. +63 −0 libs/facebook/src/com/facebook/FacebookServiceException.java
  156. +301 −0 libs/facebook/src/com/facebook/FacebookTimeSpentData.java
  157. +36 −0 libs/facebook/src/com/facebook/GetTokenClient.java
  158. +37 −0 libs/facebook/src/com/facebook/HttpMethod.java
  159. +94 −0 libs/facebook/src/com/facebook/InsightsLogger.java
  160. +31 −0 libs/facebook/src/com/facebook/LegacyHelper.java
  161. +53 −0 libs/facebook/src/com/facebook/LoggingBehavior.java
  162. +146 −0 libs/facebook/src/com/facebook/LoginActivity.java
  163. +228 −0 libs/facebook/src/com/facebook/NativeAppCallAttachmentStore.java
  164. +140 −0 libs/facebook/src/com/facebook/NativeAppCallContentProvider.java
  165. +39 −0 libs/facebook/src/com/facebook/NonCachingTokenCachingStrategy.java
  166. +74 −0 libs/facebook/src/com/facebook/ProgressNoopOutputStream.java
  167. +121 −0 libs/facebook/src/com/facebook/ProgressOutputStream.java
  168. +2,456 −0 libs/facebook/src/com/facebook/Request.java
  169. +189 −0 libs/facebook/src/com/facebook/RequestAsyncTask.java
  170. +243 −0 libs/facebook/src/com/facebook/RequestBatch.java
  171. +21 −0 libs/facebook/src/com/facebook/RequestOutputStream.java
  172. +78 −0 libs/facebook/src/com/facebook/RequestProgress.java
  173. +480 −0 libs/facebook/src/com/facebook/Response.java
  174. +2,314 −0 libs/facebook/src/com/facebook/Session.java
  175. +57 −0 libs/facebook/src/com/facebook/SessionDefaultAudience.java
  176. +59 −0 libs/facebook/src/com/facebook/SessionLoginBehavior.java
  177. +117 −0 libs/facebook/src/com/facebook/SessionState.java
  178. +662 −0 libs/facebook/src/com/facebook/Settings.java
  179. +403 −0 libs/facebook/src/com/facebook/SharedPreferencesTokenCachingStrategy.java
  180. +493 −0 libs/facebook/src/com/facebook/TestSession.java
  181. +409 −0 libs/facebook/src/com/facebook/TokenCachingStrategy.java
  182. +347 −0 libs/facebook/src/com/facebook/UiLifecycleHelper.java
  183. +341 −0 libs/facebook/src/com/facebook/android/AsyncFacebookRunner.java
  184. +64 −0 libs/facebook/src/com/facebook/android/DialogError.java
  185. +1,339 −0 libs/facebook/src/com/facebook/android/Facebook.java
  186. +64 −0 libs/facebook/src/com/facebook/android/FacebookError.java
  187. +85 −0 libs/facebook/src/com/facebook/android/FbDialog.java
  188. +314 −0 libs/facebook/src/com/facebook/android/Util.java
  189. +58 −0 libs/facebook/src/com/facebook/internal/AnalyticsEvents.java
  190. +152 −0 libs/facebook/src/com/facebook/internal/AttributionIdentifiers.java
  191. +199 −0 libs/facebook/src/com/facebook/internal/BundleJSONConverter.java
  192. +57 −0 libs/facebook/src/com/facebook/internal/CacheableRequestBatch.java
  193. +174 −0 libs/facebook/src/com/facebook/internal/FacebookWebFallbackDialog.java
  194. +648 −0 libs/facebook/src/com/facebook/internal/FileLruCache.java
  195. +361 −0 libs/facebook/src/com/facebook/internal/ImageDownloader.java
  196. +144 −0 libs/facebook/src/com/facebook/internal/ImageRequest.java
  197. +50 −0 libs/facebook/src/com/facebook/internal/ImageResponse.java
  198. +122 −0 libs/facebook/src/com/facebook/internal/ImageResponseCache.java
  199. +1,404 −0 libs/facebook/src/com/facebook/internal/LikeActionController.java
  200. +223 −0 libs/facebook/src/com/facebook/internal/LikeBoxCountView.java
  201. +87 −0 libs/facebook/src/com/facebook/internal/LikeButton.java
  202. +48 −0 libs/facebook/src/com/facebook/internal/LikeStatusClient.java
  203. +144 −0 libs/facebook/src/com/facebook/internal/Logger.java
  204. +697 −0 libs/facebook/src/com/facebook/internal/NativeProtocol.java
  205. +85 −0 libs/facebook/src/com/facebook/internal/PendingCallStore.java
  206. +151 −0 libs/facebook/src/com/facebook/internal/PlatformServiceClient.java
  207. +138 −0 libs/facebook/src/com/facebook/internal/ServerProtocol.java
  208. +27 −0 libs/facebook/src/com/facebook/internal/SessionAuthorizationType.java
  209. +239 −0 libs/facebook/src/com/facebook/internal/SessionTracker.java
  210. +108 −0 libs/facebook/src/com/facebook/internal/UrlRedirectCache.java
  211. +917 −0 libs/facebook/src/com/facebook/internal/Utility.java
  212. +85 −0 libs/facebook/src/com/facebook/internal/Validate.java
  213. +221 −0 libs/facebook/src/com/facebook/internal/WorkQueue.java
  214. +6 −0 libs/facebook/src/com/facebook/internal/package-info.java
  215. +38 −0 libs/facebook/src/com/facebook/model/CreateGraphObject.java
  216. +130 −0 libs/facebook/src/com/facebook/model/GraphLocation.java
  217. +32 −0 libs/facebook/src/com/facebook/model/GraphMultiResult.java
  218. +839 −0 libs/facebook/src/com/facebook/model/GraphObject.java
  219. +47 −0 libs/facebook/src/com/facebook/model/GraphObjectList.java
  220. +69 −0 libs/facebook/src/com/facebook/model/GraphPlace.java
  221. +125 −0 libs/facebook/src/com/facebook/model/GraphUser.java
  222. +122 −0 libs/facebook/src/com/facebook/model/JsonUtil.java
  223. +306 −0 libs/facebook/src/com/facebook/model/OpenGraphAction.java
  224. +318 −0 libs/facebook/src/com/facebook/model/OpenGraphObject.java
  225. +34 −0 libs/facebook/src/com/facebook/model/PropertyName.java
  226. +1,857 −0 libs/facebook/src/com/facebook/widget/FacebookDialog.java
  227. +297 −0 libs/facebook/src/com/facebook/widget/FacebookFragment.java
  228. +368 −0 libs/facebook/src/com/facebook/widget/FriendPickerFragment.java
  229. +831 −0 libs/facebook/src/com/facebook/widget/GraphObjectAdapter.java
  230. +55 −0 libs/facebook/src/com/facebook/widget/GraphObjectCursor.java
  231. +230 −0 libs/facebook/src/com/facebook/widget/GraphObjectPagingLoader.java
  232. +693 −0 libs/facebook/src/com/facebook/widget/LikeView.java
  233. +901 −0 libs/facebook/src/com/facebook/widget/LoginButton.java
  234. +1,085 −0 libs/facebook/src/com/facebook/widget/PickerFragment.java
  235. +528 −0 libs/facebook/src/com/facebook/widget/PlacePickerFragment.java
  236. +538 −0 libs/facebook/src/com/facebook/widget/ProfilePictureView.java
  237. +162 −0 libs/facebook/src/com/facebook/widget/SimpleGraphObjectCursor.java
  238. +235 −0 libs/facebook/src/com/facebook/widget/ToolTipPopup.java
  239. +452 −0 libs/facebook/src/com/facebook/widget/UserSettingsFragment.java
  240. +933 −0 libs/facebook/src/com/facebook/widget/WebDialog.java
  241. +3 −1 settings.gradle
@@ -0,0 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="src" path="src"/>
<classpathentry kind="src" path="gen"/>
<classpathentry kind="con" path="com.android.ide.eclipse.adt.ANDROID_FRAMEWORK"/>
<classpathentry exported="true" kind="con" path="com.android.ide.eclipse.adt.LIBRARIES"/>
<classpathentry exported="true" kind="con" path="com.android.ide.eclipse.adt.DEPENDENCIES"/>
<classpathentry kind="output" path="bin/classes"/>
</classpath>
@@ -0,0 +1,33 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>FacebookSDK</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>com.android.ide.eclipse.adt.ResourceManagerBuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>com.android.ide.eclipse.adt.PreCompilerBuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.jdt.core.javabuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>com.android.ide.eclipse.adt.ApkBuilder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>com.android.ide.eclipse.adt.AndroidNature</nature>
<nature>org.eclipse.jdt.core.javanature</nature>
</natures>
</projectDescription>
@@ -0,0 +1,22 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
* Copyright 2010-present 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.
-->
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.facebook.android">
<application/>
<uses-sdk android:minSdkVersion="9" />
</manifest>
@@ -0,0 +1,127 @@
apply plugin: 'android-library'
project.group = 'com.facebook.android'
dependencies {
compile 'com.android.support:support-v4:21.0.+'
compile 'com.parse.bolts:bolts-android:1.1.2'
}
android {
compileSdkVersion Integer.parseInt(project.ANDROID_BUILD_SDK_VERSION)
buildToolsVersion project.ANDROID_BUILD_TOOLS_VERSION
defaultConfig {
minSdkVersion Integer.parseInt(project.ANDROID_BUILD_MIN_SDK_VERSION)
targetSdkVersion Integer.parseInt(project.ANDROID_BUILD_TARGET_SDK_VERSION)
}
lintOptions {
abortOnError false
}
sourceSets {
main {
manifest.srcFile 'AndroidManifest.xml'
java.srcDirs = ['src']
res.srcDirs = ['res']
}
}
}
apply plugin: 'maven'
apply plugin: 'signing'
def isSnapshot = version.endsWith('-SNAPSHOT')
def ossrhUsername = hasProperty('NEXUS_USERNAME') ? NEXUS_USERNAME : ""
def ossrhPassword = hasProperty('NEXUS_PASSWORD') ? NEXUS_PASSWORD : ""
task setVersion {
// The version will be derived from source
project.version = null
def sdkVersionFile = file('src/com/facebook/FacebookSdkVersion.java')
sdkVersionFile.eachLine{
def matcher = (it =~ /(?:.*BUILD = \")(.*)(?:\".*)/)
if (matcher.matches()) {
project.version = matcher[0][1]
return
}
}
if (project.version.is('unspecified')) {
throw new GradleScriptException('Version could not be found.', null)
}
}
uploadArchives {
repositories.mavenDeployer {
beforeDeployment { MavenDeployment deployment -> signing.signPom(deployment) }
repository(url: "https://oss.sonatype.org/service/local/staging/deploy/maven2/") {
authentication(userName: ossrhUsername, password: ossrhPassword)
}
snapshotRepository(url: "https://oss.sonatype.org/content/repositories/snapshots/") {
authentication(userName: ossrhUsername, password: ossrhPassword)
}
pom.project {
name 'Facebook-Android-SDK'
artifactId = 'facebook-android-sdk'
packaging 'aar'
description 'Facebook Android SDK'
url 'https://github.com/facebook/facebook-android-sdk'
scm {
connection 'scm:git@github.com:facebook/facebook-android-sdk.git'
developerConnection 'scm:git@github.com:facebook/facebook-android-sdk.git'
url 'https://github.com/facebook/facebook-android-sdk'
}
licenses {
license {
name 'The Apache Software License, Version 2.0'
url 'https://github.com/facebook/facebook-android-sdk/blob/master/LICENSE.txt'
distribution 'repo'
}
}
developers {
developer {
id 'facebook'
name 'Facebook'
}
}
}
}
}
uploadArchives.dependsOn(setVersion)
signing {
required { !isSnapshot && gradle.taskGraph.hasTask("uploadArchives") }
sign configurations.archives
}
task androidJavadocs(type: Javadoc) {
source = android.sourceSets.main.java.srcDirs
classpath += project.files(android.getBootClasspath().join(File.pathSeparator))
}
task androidJavadocsJar(type: Jar, dependsOn: androidJavadocs) {
classifier = 'javadoc'
from androidJavadocs.destinationDir
}
task androidSourcesJar(type: Jar) {
classifier = 'sources'
from android.sourceSets.main.java.sourceFiles
}
artifacts {
archives androidSourcesJar
archives androidJavadocsJar
}
afterEvaluate {
androidJavadocs.classpath += project.android.libraryVariants.toList().first().javaCompile.classpath
}
@@ -0,0 +1,83 @@
<?xml version="1.0" encoding="UTF-8"?>
<project name="facebook" default="help">
<!-- The local.properties file is created and updated by the 'android' tool.
It contains the path to the SDK. It should *NOT* be checked into
Version Control Systems. -->
<property file="local.properties" />
<!-- The ant.properties file can be created by you. It is only edited by the
'android' tool to add properties to it.
This is the place to change some Ant specific build properties.
Here are some properties you may want to change/update:
source.dir
The name of the source directory. Default is 'src'.
out.dir
The name of the output directory. Default is 'bin'.
For other overridable properties, look at the beginning of the rules
files in the SDK, at tools/ant/build.xml
Properties related to the SDK location or the project target should
be updated using the 'android' tool with the 'update' action.
This file is an integral part of the build system for your
application and should be checked into Version Control Systems.
-->
<property file="ant.properties" />
<!-- The project.properties file is created and updated by the 'android'
tool, as well as ADT.
This contains project specific properties such as project target, and library
dependencies. Lower level build properties are stored in ant.properties
(or in .classpath for Eclipse projects).
This file is an integral part of the build system for your
application and should be checked into Version Control Systems. -->
<loadproperties srcFile="project.properties" />
<!-- quick check on sdk.dir -->
<fail
message="sdk.dir is missing. Make sure to generate local.properties using 'android update project' or to inject it through an env var"
unless="sdk.dir"
/>
<!--
Import per project custom build rules if present at the root of the project.
This is the place to put custom intermediary targets such as:
-pre-build
-pre-compile
-post-compile (This is typically used for code obfuscation.
Compiled code location: ${out.classes.absolute.dir}
If this is not done in place, override ${out.dex.input.absolute.dir})
-post-package
-post-build
-pre-clean
-->
<import file="custom_rules.xml" optional="true" />
<!-- Import the actual build file.
To customize existing targets, there are two options:
- Customize only one target:
- copy/paste the target into this file, *before* the
<import> task.
- customize it to your needs.
- Customize the whole content of build.xml
- copy/paste the content of the rules files (minus the top node)
into this file, replacing the <import> task.
- customize to your needs.
***********************
****** IMPORTANT ******
***********************
In all cases you must update the value of version-tag below to read 'custom' instead of an integer,
in order to avoid having your file be overridden by tools such as "android update project"
-->
<!-- version-tag: 1 -->
<import file="${sdk.dir}/tools/ant/build.xml" />
</project>
@@ -0,0 +1,15 @@
prebuilt_jar(
name = 'android-support-v4',
binary_jar = 'android-support-v4.jar',
visibility = [
'PUBLIC',
],
)
prebuilt_jar(
name = 'bolts',
binary_jar = 'bolts.jar',
visibility = [
'PUBLIC',
],
)
Binary file not shown.
@@ -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
android.library=true
# Project target.
target=android-9
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Diff not rendered.
Diff not rendered.
@@ -0,0 +1,24 @@
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item
android:drawable="@drawable/com_facebook_button_blue_pressed"
android:state_focused="true"
android:state_pressed="true"
/>
<item
android:drawable="@drawable/com_facebook_button_blue_pressed"
android:state_focused="false"
android:state_pressed="true"
/>
<item
android:drawable="@drawable/com_facebook_button_blue_focused"
android:state_focused="true"
/>
<item
android:drawable="@drawable/com_facebook_button_blue_normal"
android:state_focused="false"
android:state_pressed="false"
/>
</selector>
@@ -0,0 +1,20 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright 2010-present 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.
-->
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:state_checked="true" android:drawable="@drawable/com_facebook_button_check_on" />
<item android:drawable="@drawable/com_facebook_button_check_off" />
</selector>
Diff not rendered.
Diff not rendered.
@@ -0,0 +1,25 @@
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item
android:drawable="@drawable/com_facebook_button_like_pressed"
android:state_focused="true"
android:state_pressed="true"
/>
<item
android:drawable="@drawable/com_facebook_button_like_pressed"
android:state_focused="false"
android:state_pressed="true"
/>
<item
android:drawable="@drawable/com_facebook_button_like_background"
android:state_focused="true"
android:state_pressed="false"
/>
<item
android:drawable="@drawable/com_facebook_button_like_background"
android:state_focused="false"
android:state_pressed="false"
/>
</selector>
Oops, something went wrong.

0 comments on commit fc5fd52

Please sign in to comment.