build.gradle 4.2KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144
  1. buildscript {
  2. repositories {
  3. google()
  4. jcenter()
  5. }
  6. dependencies {
  7. classpath 'com.android.tools.build:gradle:3.3.0-alpha12'
  8. }
  9. }
  10. /* gets the version name from the latest Git tag, stripping the leading v off */
  11. def getVersionName = { ->
  12. def stdout = new ByteArrayOutputStream()
  13. exec {
  14. commandLine 'git', 'describe', '--tags', '--always', '--abbrev=0'
  15. standardOutput = stdout
  16. }
  17. return stdout.toString().trim()
  18. }
  19. apply plugin: 'com.android.application'
  20. repositories {
  21. google()
  22. jcenter()
  23. maven { url 'https://github.com/FireZenk/maven-repo/raw/master/' }
  24. maven { url 'https://jitpack.io' }
  25. }
  26. allprojects {
  27. project.ext {
  28. // these are common variables used in */build.gradle
  29. version_number = getVersionName()
  30. group_info = "haven"
  31. buildToolsVersion = "28.0.3"
  32. minSdkVersion = 16
  33. targetSdkVersion = 28
  34. }
  35. /**
  36. gradle.projectsEvaluated {
  37. tasks.withType(JavaCompile) {
  38. options.compilerArgs << "-Xlint:unchecked"
  39. }
  40. }**/
  41. }
  42. android {
  43. compileSdkVersion 28
  44. buildToolsVersion = '28.0.3'
  45. packagingOptions {
  46. exclude 'META-INF/LICENSE.txt'
  47. exclude 'META-INF/NOTICE.txt'
  48. exclude 'META-INF/DEPENDENCIES'
  49. exclude 'META-INF/NOTICE'
  50. exclude 'META-INF/LICENSE'
  51. exclude 'META-INF/LICENSE.txt'
  52. exclude 'META-INF/NOTICE.txt'
  53. }
  54. dexOptions {
  55. javaMaxHeapSize "2g"
  56. preDexLibraries true
  57. }
  58. defaultConfig {
  59. applicationId "org.havenapp.main"
  60. versionCode 118
  61. versionName getVersionName()
  62. archivesBaseName = "Haven-$versionName"
  63. minSdkVersion 16
  64. targetSdkVersion 28
  65. compileOptions {
  66. sourceCompatibility JavaVersion.VERSION_1_8
  67. targetCompatibility JavaVersion.VERSION_1_8
  68. }
  69. multiDexEnabled true
  70. vectorDrawables.useSupportLibrary = true
  71. renderscriptTargetApi 16
  72. renderscriptSupportModeEnabled true
  73. ndk {
  74. abiFilters "armeabi", "armeabi-v7a", "x86"
  75. }
  76. }
  77. buildTypes {
  78. release {
  79. minifyEnabled false
  80. proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
  81. }
  82. }
  83. compileOptions {
  84. sourceCompatibility JavaVersion.VERSION_1_8
  85. targetCompatibility JavaVersion.VERSION_1_8
  86. }
  87. lintOptions {
  88. checkReleaseBuilds false
  89. abortOnError false
  90. }
  91. }
  92. dependencies {
  93. implementation 'androidx.appcompat:appcompat:1.0.0'
  94. implementation 'androidx.cardview:cardview:1.0.0'
  95. implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
  96. implementation 'androidx.preference:preference:1.0.0'
  97. implementation 'androidx.multidex:multidex:2.0.0'
  98. implementation 'androidx.annotation:annotation:1.0.0'
  99. implementation 'com.google.android.material:material:1.0.0'
  100. implementation 'com.wdullaer:materialdatetimepicker:3.6.4'
  101. implementation 'com.github.guardianproject:signal-cli-android:v0.6.0-android-beta-1'
  102. implementation 'com.github.satyan:sugar:1.5'
  103. implementation 'net.the4thdimension:audio-wife:1.0.3'
  104. implementation 'com.github.apl-devs:appintro:master' /* use master until androidx ver is released */
  105. implementation 'info.guardianproject.netcipher:netcipher:2.0.0-beta1'
  106. implementation 'org.nanohttpd:nanohttpd-webserver:2.3.1'
  107. implementation 'me.angrybyte.picker:picker:1.3.1'
  108. implementation 'com.github.stfalcon:frescoimageviewer:0.5.0'
  109. implementation 'com.facebook.fresco:fresco:1.10.0'
  110. // implementation 'com.github.derlio.waveform:library:1.0.3@aar'
  111. implementation 'com.github.derlio:audio-waveform:v1.0.1'
  112. implementation 'org.firezenk:audiowaves:1.1@aar'
  113. implementation 'com.maxproj.simplewaveform:app:1.0.0'
  114. implementation 'com.googlecode.libphonenumber:libphonenumber:8.9.14'
  115. implementation('com.mikepenz:aboutlibraries:6.1.1@aar') {
  116. transitive = true
  117. }
  118. implementation 'com.asksira.android:cameraviewplus:0.9.5'
  119. implementation 'com.github.halilozercan:BetterVideoPlayer:1.1.0'
  120. implementation 'io.github.silvaren:easyrs:0.5.3'
  121. implementation 'org.jcodec:jcodec:0.2.3'
  122. implementation 'org.jcodec:jcodec-android:0.2.3'
  123. }