Simple email application for Android. Original source code: https://framagit.org/dystopia-project/simple-email
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

129 lines
4.4 KiB

6 years ago
6 years ago
  1. apply plugin: "com.android.application"
  2. apply plugin: "kotlin-android-extensions"
  3. apply plugin: "kotlin-android"
  4. apply from: "${rootDir}/jdee.gradle"
  5. android {
  6. compileSdkVersion 28
  7. defaultConfig {
  8. applicationId "org.dystopia.email"
  9. minSdkVersion 23
  10. targetSdkVersion 28
  11. versionCode 115
  12. versionName "1.3.0"
  13. archivesBaseName = "SimpleEmail-v$versionName"
  14. proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
  15. javaCompileOptions {
  16. annotationProcessorOptions {
  17. arguments = ["room.schemaLocation": "$projectDir/schemas".toString()]
  18. }
  19. }
  20. }
  21. buildTypes {
  22. debug {
  23. applicationIdSuffix ".debug"
  24. debuggable = true
  25. minifyEnabled !rootProject.ext.ci
  26. useProguard = true
  27. }
  28. release {
  29. debuggable = false
  30. minifyEnabled = true
  31. useProguard = true
  32. shrinkResources true
  33. }
  34. }
  35. lintOptions {
  36. xmlReport false
  37. htmlReport true
  38. textReport true
  39. lintConfig file("${rootProject.getRootDir()}/lint.xml")
  40. warningsAsErrors true
  41. abortOnError false
  42. explainIssues true
  43. absolutePaths false
  44. }
  45. packagingOptions {
  46. pickFirst 'META-INF/LICENSE.txt'
  47. }
  48. }
  49. repositories {
  50. google()
  51. jcenter()
  52. maven {
  53. url "https://repo1.maven.org/maven2/"
  54. }
  55. }
  56. configurations {
  57. implementationDeps.extendsFrom implementation
  58. }
  59. dependencies {
  60. implementation fileTree(dir: 'libs', include: ['*.jar'])
  61. def androidx_version = "1.0.0"
  62. def constraintlayout_version = "1.1.3"
  63. def lifecycle_version = "2.0.0"
  64. def room_version = "2.0.0"
  65. def paging_version = "2.0.0"
  66. def javamail_version = "1.6.2"
  67. def jsoup_version = "1.11.3"
  68. def jcharset_version = "2.0"
  69. def dnsjava_version = "2.1.8"
  70. def openpgp_version = "12.0"
  71. // https://mvnrepository.com/artifact/androidx.appcompat/appcompat
  72. implementation "androidx.appcompat:appcompat:$androidx_version"
  73. // https://mvnrepository.com/artifact/androidx.annotation/annotation
  74. implementation "androidx.annotation:annotation:$androidx_version"
  75. // https://mvnrepository.com/artifact/androidx.recyclerview/recyclerview
  76. implementation "androidx.recyclerview:recyclerview:$androidx_version"
  77. implementation "androidx.recyclerview:recyclerview-selection:$androidx_version"
  78. // https://mvnrepository.com/artifact/androidx.constraintlayout/constraintlayout
  79. implementation "androidx.coordinatorlayout:coordinatorlayout:$androidx_version"
  80. implementation "androidx.constraintlayout:constraintlayout:$constraintlayout_version"
  81. // https://mvnrepository.com/artifact/com.google.android.material/material
  82. implementation "com.google.android.material:material:$androidx_version"
  83. // https://mvnrepository.com/artifact/androidx.browser/browser
  84. implementation "androidx.browser:browser:$androidx_version"
  85. // https://mvnrepository.com/artifact/androidx.lifecycle/lifecycle-runtime
  86. implementation "androidx.lifecycle:lifecycle-extensions:$lifecycle_version"
  87. annotationProcessor "androidx.lifecycle:lifecycle-compiler:$lifecycle_version"
  88. // https://mvnrepository.com/artifact/androidx.room/room-runtime
  89. implementation "androidx.room:room-runtime:$room_version"
  90. annotationProcessor "androidx.room:room-compiler:$room_version"
  91. // https://mvnrepository.com/artifact/androidx.paging/paging-runtime
  92. implementation "androidx.paging:paging-runtime:$paging_version"
  93. // https://javaee.github.io/javamail/
  94. implementation "com.sun.mail:android-mail:$javamail_version"
  95. implementation "com.sun.mail:android-activation:$javamail_version"
  96. // https://jsoup.org/
  97. implementation "org.jsoup:jsoup:$jsoup_version"
  98. // http://www.freeutils.net/source/jcharset/
  99. implementation "net.freeutils:jcharset:$jcharset_version"
  100. // http://www.xbill.org/dnsjava/
  101. implementation "dnsjava:dnsjava:$dnsjava_version"
  102. // https://github.com/open-keychain/openpgp-api
  103. implementation "org.sufficientlysecure:openpgp-api:$openpgp_version"
  104. // https://android.googlesource.com/platform/frameworks/opt/colorpicker
  105. implementation project(path: ':colorpicker', configuration: 'default')
  106. // Kotlin support
  107. implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
  108. }