Advertisement
Guest User

Untitled

a guest
Aug 22nd, 2019
119
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.45 KB | None | 0 0
  1. buildscript {
  2. repositories {
  3. google()
  4. jcenter()
  5. }
  6.  
  7. dependencies {
  8. classpath 'com.android.tools.build:gradle:3.2.1'
  9. }
  10. }
  11.  
  12. apply plugin: 'com.android.library'
  13. apply plugin: 'maven'
  14.  
  15. group = 'org.unimodules'
  16. version = '3.0.0'
  17.  
  18. def safeExtGet(prop, fallback) {
  19. rootProject.ext.has(prop) ? rootProject.ext.get(prop) : fallback
  20. }
  21.  
  22. //Upload android library to maven with javadoc and android sources
  23. configurations {
  24. deployerJars
  25. }
  26.  
  27. //Creating sources with comments
  28. task androidSourcesJar(type: Jar) {
  29. classifier = 'sources'
  30. from android.sourceSets.main.java.srcDirs
  31. }
  32.  
  33. //Put the androidSources and javadoc to the artifacts
  34. artifacts {
  35. archives androidSourcesJar
  36. }
  37.  
  38. uploadArchives {
  39. repositories {
  40. mavenDeployer {
  41. configuration = configurations.deployerJars
  42. repository(url: mavenLocal().url)
  43. }
  44. }
  45. }
  46.  
  47. android {
  48. compileSdkVersion safeExtGet("compileSdkVersion", 28)
  49.  
  50. defaultConfig {
  51. minSdkVersion safeExtGet("minSdkVersion", 21)
  52. targetSdkVersion safeExtGet("targetSdkVersion", 28)
  53. versionCode 9
  54. versionName "3.0.0"
  55. }
  56. lintOptions {
  57. abortOnError false
  58. }
  59. }
  60.  
  61. apply from: project(":unimodules-core").file("../unimodules-core.gradle")
  62.  
  63. dependencies {
  64. unimodule 'unimodules-core'
  65. unimodule 'unimodules-font-interface'
  66. unimodule 'unimodules-permissions-interface'
  67. unimodule 'unimodules-image-loader-interface'
  68.  
  69. implementation 'com.facebook.react:react-native:+'
  70. api 'com.github.bumptech.glide:glide:4.9.0'
  71. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement