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.

124 lines
4.2 KiB

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