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.

123 lines
4.1 KiB

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