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.

137 lines
4.7 KiB

6 years ago
6 years ago
  1. apply plugin: "com.android.application"
  2. apply plugin: "kotlin-android"
  3. apply plugin: "kotlin-android-extensions"
  4. apply from: "${rootDir}/jdee.gradle"
  5. android {
  6. compileSdkVersion 30
  7. defaultConfig {
  8. applicationId "org.dystopia.email"
  9. minSdkVersion 21
  10. targetSdkVersion 30
  11. versionCode 116
  12. versionName "1.4.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. maven {
  56. url "https://jitpack.io"
  57. }
  58. }
  59. configurations {
  60. implementationDeps.extendsFrom implementation
  61. }
  62. dependencies {
  63. implementation fileTree(dir: 'libs', include: ['*.jar'])
  64. def androidx_version = "1.0.0"
  65. def appcompat_version = "1.2.0"
  66. def fragment_version = "1.3.0-beta01"
  67. def constraintlayout_version = "1.1.3"
  68. def lifecycle_version = "2.0.0"
  69. def room_version = "2.0.0"
  70. def paging_version = "2.0.0"
  71. def javamail_version = "1.6.2"
  72. def jsoup_version = "1.11.3"
  73. def jcharset_version = "2.0"
  74. def dnsjava_version = "2.1.8"
  75. def openpgp_version = "12.0"
  76. def colorpicker_version = "0.0.15"
  77. // https://mvnrepository.com/artifact/androidx.appcompat/appcompat
  78. implementation "androidx.appcompat:appcompat:$appcompat_version"
  79. // https://mvnrepository.com/artifact/androidx.fragment/fragment
  80. implementation "androidx.fragment:fragment:$fragment_version"
  81. // https://mvnrepository.com/artifact/androidx.annotation/annotation
  82. implementation "androidx.annotation:annotation:$androidx_version"
  83. // https://mvnrepository.com/artifact/androidx.recyclerview/recyclerview
  84. implementation "androidx.recyclerview:recyclerview:$androidx_version"
  85. implementation "androidx.recyclerview:recyclerview-selection:$androidx_version"
  86. // https://mvnrepository.com/artifact/androidx.constraintlayout/constraintlayout
  87. implementation "androidx.coordinatorlayout:coordinatorlayout:$androidx_version"
  88. implementation "androidx.constraintlayout:constraintlayout:$constraintlayout_version"
  89. // https://mvnrepository.com/artifact/com.google.android.material/material
  90. implementation "com.google.android.material:material:$androidx_version"
  91. // https://mvnrepository.com/artifact/androidx.browser/browser
  92. implementation "androidx.browser:browser:$androidx_version"
  93. // https://mvnrepository.com/artifact/androidx.lifecycle/lifecycle-runtime
  94. implementation "androidx.lifecycle:lifecycle-extensions:$lifecycle_version"
  95. annotationProcessor "androidx.lifecycle:lifecycle-compiler:$lifecycle_version"
  96. // https://mvnrepository.com/artifact/androidx.room/room-runtime
  97. implementation "androidx.room:room-runtime:$room_version"
  98. annotationProcessor "androidx.room:room-compiler:$room_version"
  99. // https://mvnrepository.com/artifact/androidx.paging/paging-runtime
  100. implementation "androidx.paging:paging-runtime:$paging_version"
  101. // https://javaee.github.io/javamail/
  102. implementation "com.sun.mail:android-mail:$javamail_version"
  103. implementation "com.sun.mail:android-activation:$javamail_version"
  104. // https://jsoup.org/
  105. implementation "org.jsoup:jsoup:$jsoup_version"
  106. // http://www.freeutils.net/source/jcharset/
  107. implementation "net.freeutils:jcharset:$jcharset_version"
  108. // http://www.xbill.org/dnsjava/
  109. implementation "dnsjava:dnsjava:$dnsjava_version"
  110. // https://github.com/open-keychain/openpgp-api
  111. implementation "org.sufficientlysecure:openpgp-api:$openpgp_version"
  112. // https://android.googlesource.com/platform/frameworks/opt/colorpicker
  113. implementation "com.github.QuadFlask:colorpicker:$colorpicker_version"
  114. // Kotlin support
  115. implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
  116. }