Advertisement
Guest User

Untitled

a guest
Mar 8th, 2017
286
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.17 KB | None | 0 0
  1. buildscript {
  2. repositories {
  3. maven { url 'https://maven.fabric.io/public' }
  4. /* maven{
  5. url 'https://dl.bintray.com/wasabifx/wasabifx/'
  6. }*/
  7.  
  8. jcenter()
  9. }
  10.  
  11. dependencies {
  12. // classpath 'io.fabric.tools:gradle:1.+'
  13. classpath "io.realm:realm-gradle-plugin:2.3.1"
  14. classpath 'com.canelmas.let:let-plugin:0.1.11'
  15. }
  16. }
  17. apply plugin: 'com.android.application'
  18. //apply plugin: 'io.fabric'
  19. apply plugin: 'realm-android'
  20. apply plugin: 'let'
  21.  
  22.  
  23. //repositories {
  24. // maven { url 'https://maven.fabric.io/public' }
  25. //}
  26.  
  27.  
  28. android {
  29. signingConfigs {
  30. config { }
  31. }
  32. lintOptions {
  33. abortOnError false
  34. disable 'MissingTranslation'
  35.  
  36. }
  37. }
  38.  
  39. android {
  40.  
  41. // signingConfigs {
  42. // config {
  43. // }
  44. // }
  45. compileOptions {
  46. sourceCompatibility JavaVersion.VERSION_1_7
  47. targetCompatibility JavaVersion.VERSION_1_7
  48. }
  49. compileSdkVersion 23
  50. buildToolsVersion '25.0.2'
  51. repositories {
  52. mavenCentral()
  53. maven {
  54. url 'https://dl.bintray.com/ayz4sci/maven/'
  55. }
  56. maven {
  57. url "https://jitpack.io"
  58. }
  59. }
  60.  
  61. packagingOptions {
  62. exclude 'META-INF/services/javax.annotation.processing.Processor'
  63. exclude 'META-INF/LICENSE.txt'
  64. exclude 'META-INF/NOTICE.txt'
  65. exclude "lib/armeabi/librealm-jni.so"
  66. exclude "lib/arm64-v8a/librealm-jni.so"
  67. exclude "lib/mips/librealm-jni.so"
  68. exclude "lib/x86/librealm-jni.so"
  69. exclude 'META-INF/NOTICE'
  70. exclude 'META-INF/notice.txt'
  71. exclude 'META-INF/NOTICE.txt'
  72. }
  73.  
  74.  
  75. defaultConfig {
  76. applicationId "com.vis.kotob"
  77. minSdkVersion 15
  78. targetSdkVersion 25
  79. versionCode 70
  80. versionName "9.0.5"
  81. multiDexEnabled true
  82.  
  83. ndk {
  84. abiFilters "armeabi-v7a"
  85. }
  86.  
  87.  
  88. }
  89.  
  90. buildTypes {
  91. release {
  92. minifyEnabled false
  93. proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
  94. // signingConfig signingConfigs.config
  95. debuggable false
  96. jniDebuggable false
  97. signingConfig signingConfigs.config
  98. }
  99. }
  100.  
  101. buildTypes.each {}
  102. }
  103.  
  104. dependencies {
  105. compile fileTree(include: ['*.jar'], dir: 'libs')
  106. compile files('libs/wasabi.jar')
  107. compile project(':facebook')
  108. compile project(':ramzcalender')
  109. compile 'de.greenrobot:eventbus:2.4.0'
  110. compile 'commons-codec:commons-codec:1.9'
  111. compile 'com.pnikosis:materialish-progress:1.7'
  112. compile files('libs/FlurryAnalytics-5.5.0.jar')
  113. compile 'com.facebook.fresco:fresco:0.7.0'
  114. compile 'com.cocosw:favor:0.1.0@aar'
  115. compile 'com.android.support:recyclerview-v7:23.1.1'
  116. compile 'com.android.support:cardview-v7:23.1.1'
  117. compile 'com.path:android-priority-jobqueue:1.1.2'
  118. compile 'com.android.support:appcompat-v7:23.1.1'
  119. compile files('libs/epublib-core-latest.jar')
  120. compile files('libs/slf4j-android-1.6.1-RC1.jar')
  121. compile 'com.jakewharton:butterknife:7.0.1'
  122. compile 'com.squareup.retrofit:retrofit:1.9.0'
  123. compile 'com.squareup.okhttp:okhttp:2.7.2'
  124. compile 'com.squareup.okhttp:okhttp-urlconnection:2.7.2'
  125. compile 'com.squareup.okhttp:okhttp:2.7.2'
  126. compile 'com.sothree.slidinguppanel:library:3.2.0'
  127. compile 'com.github.rey5137:material:1.2.2'
  128. //compile 'io.paperdb:paperdb:1.1'
  129.  
  130. //TODO Don't forget to upgrade this version to maintain decryption also update the realm instance with key
  131.  
  132. //compile 'io.realm:realm-android:1.0.0'
  133. compile 'com.android.support:design:23.1.1'
  134. compile 'com.andreabaccega:android-form-edittext:1.2.1@aar'
  135. compile 'com.mani:ThinDownloadManager:1.2.0'
  136. compile project(':PDFReader')
  137. compile 'net.sourceforge.htmlcleaner:htmlcleaner:2.6.1'
  138. compile 'com.facebook.conceal:conceal:1.0.3@aar'
  139. compile 'com.github.citux:datetimepicker:0.1.2'
  140. compile 'com.android.support:support-v4:23.1.0'
  141. compile 'it.sephiroth.android.library.horizontallistview:hlistview:1.2.2'
  142. compile 'com.urbanairship.android:urbanairship-sdk:8.2.+'
  143.  
  144. compile 'io.reactivex:rxandroid:0.24.0'
  145. compile 'io.reactivex:rxjava:1.0.14'
  146. compile 'com.android.support:multidex:1.0.1'
  147. compile files('libs/commons-io-2.4.jar')
  148. compile 'me.henrytao:smooth-app-bar-layout:0.2.1'
  149. }
  150.  
  151. apply plugin: 'com.android.library'
  152.  
  153. repositories {
  154. mavenCentral()
  155. }
  156.  
  157. project.group = 'com.facebook.android'
  158.  
  159. dependencies {
  160. compile 'com.android.support:support-v4:[22,23)'
  161. compile 'com.parse.bolts:bolts-android:1.2.0'
  162. }
  163.  
  164. android {
  165.  
  166. compileSdkVersion 23
  167. buildToolsVersion '25.0.2'
  168.  
  169. defaultConfig {
  170. minSdkVersion 15
  171. targetSdkVersion 19
  172. }
  173.  
  174. lintOptions {
  175. abortOnError false
  176. }
  177.  
  178. sourceSets {
  179. main {
  180. manifest.srcFile 'AndroidManifest.xml'
  181. java.srcDirs = ['src']
  182. res.srcDirs = ['res']
  183. }
  184. }
  185.  
  186. compileOptions {
  187. sourceCompatibility JavaVersion.VERSION_1_7
  188. targetCompatibility JavaVersion.VERSION_1_7
  189. }
  190. }
  191.  
  192. apply plugin: 'maven'
  193. apply plugin: 'signing'
  194.  
  195. def isSnapshot = version.endsWith('-SNAPSHOT')
  196. def ossrhUsername = hasProperty('NEXUS_USERNAME') ? NEXUS_USERNAME : ""
  197. def ossrhPassword = hasProperty('NEXUS_PASSWORD') ? NEXUS_PASSWORD : ""
  198.  
  199. task setVersion {
  200. // The version will be derived from source
  201. project.version = null
  202. def sdkVersionFile = file('src/com/facebook/FacebookSdkVersion.java')
  203. sdkVersionFile.eachLine{
  204. def matcher = (it =~ /(?:.*BUILD = ")(.*)(?:".*)/)
  205. if (matcher.matches()) {
  206. project.version = matcher[0][1]
  207. return
  208. }
  209. }
  210. if (project.version.is('unspecified')) {
  211. throw new GradleScriptException('Version could not be found.', null)
  212. }
  213. }
  214.  
  215. uploadArchives {
  216. repositories.mavenDeployer {
  217. beforeDeployment { MavenDeployment deployment -> signing.signPom(deployment) }
  218.  
  219. repository(url: "https://oss.sonatype.org/service/local/staging/deploy/maven2/") {
  220. authentication(userName: ossrhUsername, password: ossrhPassword)
  221. }
  222.  
  223. snapshotRepository(url: "https://oss.sonatype.org/content/repositories/snapshots/") {
  224. authentication(userName: ossrhUsername, password: ossrhPassword)
  225. }
  226.  
  227. pom.project {
  228. name 'Facebook-Android-SDK'
  229. artifactId = 'facebook-android-sdk'
  230. packaging 'aar'
  231. description 'Facebook Android SDK'
  232. url 'https://github.com/facebook/facebook-android-sdk'
  233.  
  234. scm {
  235. connection 'scm:git@github.com:facebook/facebook-android-sdk.git'
  236. developerConnection 'scm:git@github.com:facebook/facebook-android-sdk.git'
  237. url 'https://github.com/facebook/facebook-android-sdk'
  238. }
  239.  
  240. licenses {
  241. license {
  242. name 'Facebook Platform License'
  243. url 'https://github.com/facebook/facebook-android-sdk/blob/master/LICENSE.txt'
  244. distribution 'repo'
  245. }
  246. }
  247.  
  248. developers {
  249. developer {
  250. id 'facebook'
  251. name 'Facebook'
  252. }
  253. }
  254. }
  255. }
  256. }
  257.  
  258. uploadArchives.dependsOn(setVersion)
  259.  
  260. signing {
  261. required { !isSnapshot && gradle.taskGraph.hasTask("uploadArchives") }
  262. sign configurations.archives
  263. }
  264.  
  265. task androidJavadocs(type: Javadoc) {
  266. source = android.sourceSets.main.java.srcDirs
  267. classpath += project.files(android.getBootClasspath().join(File.pathSeparator))
  268. // JDK 1.8 is more strict then 1.7. Have JDK 1.8 behave like 1.7 for javadoc generation
  269. if (org.gradle.internal.jvm.Jvm.current().getJavaVersion() == JavaVersion.VERSION_1_8) {
  270. options.addStringOption('Xdoclint:none', '-quiet')
  271. }
  272. }
  273.  
  274. task androidJavadocsJar(type: Jar, dependsOn: androidJavadocs) {
  275. classifier = 'javadoc'
  276. from androidJavadocs.destinationDir
  277. }
  278.  
  279. task androidSourcesJar(type: Jar) {
  280. classifier = 'sources'
  281. from android.sourceSets.main.java.sourceFiles
  282. }
  283.  
  284. artifacts {
  285. archives androidSourcesJar
  286. archives androidJavadocsJar
  287. }
  288.  
  289. afterEvaluate {
  290. androidJavadocs.classpath += project.android.libraryVariants.toList().first().javaCompile.classpath
  291. }
  292.  
  293. android {
  294. compileSdkVersion 23
  295. buildToolsVersion '25.0.2'
  296.  
  297. defaultConfig {
  298. minSdkVersion 14
  299. targetSdkVersion 23
  300. versionCode 1
  301. versionName "1.0"
  302. }
  303. buildTypes {
  304. release {
  305. minifyEnabled false
  306. proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
  307. }
  308. }
  309. }
  310.  
  311. dependencies {
  312. compile fileTree(dir: 'libs', include: ['*.jar'])
  313. compile 'com.android.support:appcompat-v7:23.0.1'
  314. compile 'net.danlew:android.joda:2.8.1'
  315. }
  316.  
  317. apply plugin: 'com.android.library'
  318.  
  319. android {
  320. compileSdkVersion 19
  321. buildToolsVersion "25.0.2"
  322.  
  323. defaultConfig {
  324. minSdkVersion 8
  325. targetSdkVersion 8
  326. compileOptions {
  327. sourceCompatibility JavaVersion.VERSION_1_5
  328. targetCompatibility JavaVersion.VERSION_1_5
  329. }
  330. }
  331.  
  332.  
  333.  
  334.  
  335. dependencies {
  336.  
  337. //environment setup
  338. compile files('libs/com.radaee.view.jar')}
  339.  
  340. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement