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.

118 lines
4.0 KiB

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