Advertisement
Guest User

Untitled

a guest
Jan 24th, 2017
165
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.83 KB | None | 0 0
  1. take the referral code form
  2.  
  3. buildscript
  4. {
  5. repositories {
  6. mavenCentral()
  7. }
  8.  
  9. dependencies {
  10. classpath 'com.android.tools.build:gradle:2.1.3'
  11. classpath 'com.jakewharton.sdkmanager:gradle-plugin:0.9.+'
  12. }
  13. }
  14.  
  15. apply plugin: 'com.android.application'
  16.  
  17. android {
  18. compileSdkVersion 19
  19. buildToolsVersion "19.1.0"
  20.  
  21. defaultConfig {
  22. minSdkVersion 14
  23. targetSdkVersion 19
  24. versionCode 1
  25. versionName "1.0"
  26. }
  27.  
  28. packagingOptions {
  29. exclude 'META-INF/maven/commons-io/commons-io/pom.xml'
  30. exclude 'META-INF/maven/commons-io/commons-io/pom.properties'
  31. }
  32.  
  33. compileOptions {
  34. sourceCompatibility JavaVersion.VERSION_1_7
  35. targetCompatibility JavaVersion.VERSION_1_7
  36. }
  37.  
  38. packagingOptions {
  39. exclude 'META-INF/DEPENDENCIES.txt'
  40. exclude 'META-INF/LICENSE.txt'
  41. exclude 'META-INF/NOTICE.txt'
  42. exclude 'META-INF/NOTICE'
  43. exclude 'META-INF/LICENSE'
  44. exclude 'META-INF/DEPENDENCIES'
  45. exclude 'META-INF/notice.txt'
  46. exclude 'META-INF/license.txt'
  47. exclude 'META-INF/dependencies.txt'
  48. exclude 'META-INF/LGPL2.1'
  49. }
  50.  
  51.  
  52.  
  53. buildTypes {
  54. release {
  55. minifyEnabled false
  56. proguardFiles getDefaultProguardFile('proguard-android.txt'), ' proguard-rules.txt'
  57. }
  58. }
  59. }
  60.  
  61. dependencies {
  62. compile fileTree(dir: 'libs', include: ['*.jar'])
  63. compile project(':libraries:android-goodreads-api')
  64. compile 'com.squareup.picasso:picasso:2.+'
  65. compile 'com.squareup:otto:1.3.4'
  66. compile 'com.squareup.retrofit:retrofit:1.5.0'
  67. compile ('com.squareup.retrofit:converter-simplexml:1.5.0') {
  68. exclude module: 'stax'
  69. exclude module: 'stax-api'
  70. exclude module: 'xpp3'
  71. }
  72. compile 'org.json:json:20140107'
  73. compile 'org.apache.commons:commons-io:+'
  74. compile 'org.apache.commons:commons-lang3:+'
  75. compile 'com.google.guava:guava:16.+'
  76. compile 'com.google.code.gson:gson:+'
  77. compile 'oauth.signpost:signpost-core:+'
  78. compile 'oauth.signpost:signpost-commonshttp4:+'
  79. compile ('org.simpleframework:simple-xml:+') {
  80. exclude module: 'stax'
  81. exclude module: 'stax-api'
  82. exclude module: 'xpp3'
  83. }
  84. }
  85.  
  86. apply plugin: 'com.android.library'
  87.  
  88. android {
  89. compileSdkVersion 19
  90. buildToolsVersion '19.1.0'
  91.  
  92. defaultConfig {
  93. minSdkVersion 14
  94. targetSdkVersion 19
  95. versionCode 1
  96. versionName "1.0"
  97. }
  98.  
  99. compileOptions {
  100. sourceCompatibility JavaVersion.VERSION_1_7
  101. targetCompatibility JavaVersion.VERSION_1_7
  102. }
  103. buildTypes {
  104. release {
  105. minifyEnabled false
  106. proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
  107. }
  108. }
  109. }
  110.  
  111. dependencies {
  112. compile fileTree(include: ['*.jar'], dir: 'libs')
  113. compile 'com.squareup.picasso:picasso:2.+'
  114. compile 'com.squareup:otto:1.3.4'
  115. compile 'com.squareup.retrofit:retrofit:1.5.0'
  116. compile ('com.squareup.retrofit:converter-simplexml:1.5.0') {
  117. exclude module: 'stax'
  118. exclude module: 'stax-api'
  119. exclude module: 'xpp3'
  120. }
  121. compile 'org.json:json:20140107'
  122. compile 'org.apache.commons:commons-io:+'
  123. compile 'org.apache.commons:commons-lang3:+'
  124. compile 'com.google.guava:guava:16.+'
  125. compile 'com.google.code.gson:gson:+'
  126. compile 'oauth.signpost:signpost-core:+'
  127. compile 'oauth.signpost:signpost-commonshttp4:+'
  128. compile ('org.simpleframework:simple-xml:+') {
  129. exclude module: 'stax'
  130. exclude module: 'stax-api'
  131. exclude module: 'xpp3'
  132. }
  133. }
  134.  
  135. <string name="oauth_developer_key">your developer key</string>
  136. <string name="oauth_developer_secret">your developer secret</string>
  137. <string name="oauth_callback_url">com.goodreads://oauth_callback</string>
  138.  
  139. private static final String AUTHORIZATION_WEBSITE_URL = "http://www.goodreads.com/oauth/authorize?mobile=1";
  140. private static final String ACCESS_TOKEN_ENDPOINT_URL = "http://www.goodreads.com/oauth/access_token";
  141. private static final String REQUEST_TOKEN_ENDPOINT_URL = "http://www.goodreads.com/oauth/request_token";
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement