build.gradle 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. apply plugin: 'com.android.library'
  2. apply plugin: 'com.github.dcendents.android-maven'
  3. apply plugin: 'org.jetbrains.dokka'
  4. ext {
  5. bintrayRepo = 'maven'
  6. bintrayName = 'ussd-library'
  7. publishedGroupId = 'com.romellfudi.ussdlibrary'
  8. libraryName = 'VoIpUSSD'
  9. artifact = 'ussd-library'
  10. libraryDescription = 'Android library To comunicate with ussd display'
  11. siteUrl = 'https://romellfudi.github.io/VoIpUSSDSample'
  12. gitUrl = 'https://romellfudi.github.io/VoIpUSSDSample.git'
  13. libraryVersion = '1.4.a'
  14. developerId = 'romellfudi'
  15. developerName = 'Romell Dominguez'
  16. developerEmail = 'romllz489@gmail.com'
  17. licenseName = 'The Apache Software License, Version 2.0'
  18. licenseUrl = 'http://www.apache.org/licenses/LICENSE-2.0.txt'
  19. allLicenses = ["Apache-2.0"]
  20. }
  21. android {
  22. compileSdkVersion 31
  23. buildToolsVersion "30.0.2"
  24. defaultConfig {
  25. minSdkVersion 21
  26. targetSdkVersion 31
  27. versionCode 1
  28. versionName libraryVersion
  29. }
  30. buildTypes {
  31. release {
  32. minifyEnabled false
  33. proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
  34. }
  35. }
  36. testOptions{
  37. unitTests.returnDefaultValues = true
  38. }
  39. compileOptions {
  40. sourceCompatibility JavaVersion.VERSION_1_8
  41. targetCompatibility JavaVersion.VERSION_1_8
  42. }
  43. }
  44. tasks.dokkaHtml.configure {
  45. outputDirectory.set(file("../documentation"))
  46. }
  47. tasks.dokkaJavadoc.configure {
  48. outputDirectory.set(file("../documentation/javadoc"))
  49. }
  50. tasks.dokkaGfm.configure {
  51. outputDirectory.set(file("../documentation/gfm"))
  52. }
  53. tasks.withType(dokkaHtml.getClass()).configureEach {
  54. pluginsMapConfiguration.set(
  55. ["org.jetbrains.dokka.base.DokkaBase": """{ "separateInheritedMembers": true}"""]
  56. )
  57. }
  58. //dokkaHtml.configure {
  59. // dokkaSourceSets {
  60. // named("app") {
  61. // skipDeprecated.set(true)
  62. // }
  63. // }
  64. //}
  65. dependencies {
  66. implementation 'com.android.support:appcompat-v7:30.0.0'
  67. testImplementation 'junit:junit:4.12'
  68. testImplementation 'org.mockito:mockito-all:1.10.19'
  69. testImplementation 'org.powermock:powermock-module-junit4:1.6.2'
  70. testImplementation 'org.powermock:powermock-api-mockito:1.6.2'
  71. implementation 'com.orhanobut:logger:2.2.0'
  72. implementation 'com.google.code.gson:gson:2.10.1'
  73. api 'com.elvishew:xlog:1.11.0'
  74. }
  75. //apply from: 'https://raw.githubusercontent.com/romellfudi/assets/bintray/artifactory_bintray.gradle'
  76. //apply from: 'https://raw.githubusercontent.com/romellfudi/assets/bintray/artifactory_install.gradle'