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.

78 lines
2.5 KiB

6 years ago
  1. apply plugin: 'com.android.application'
  2. android {
  3. compileSdkVersion 28
  4. defaultConfig {
  5. applicationId "eu.faircode.email"
  6. minSdkVersion 23
  7. targetSdkVersion 28
  8. versionCode 8
  9. versionName "0.8"
  10. archivesBaseName = "SafeEmail-v$versionName"
  11. javaCompileOptions {
  12. annotationProcessorOptions {
  13. arguments = ["room.schemaLocation": "$projectDir/schemas".toString()]
  14. }
  15. }
  16. }
  17. buildTypes {
  18. release {
  19. minifyEnabled = true
  20. useProguard = true
  21. proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
  22. }
  23. debug {
  24. minifyEnabled = true
  25. useProguard = true
  26. proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
  27. }
  28. }
  29. packagingOptions {
  30. pickFirst 'META-INF/LICENSE.txt'
  31. }
  32. }
  33. repositories {
  34. jcenter()
  35. maven {
  36. url "https://repo1.maven.org/maven2/"
  37. }
  38. }
  39. dependencies {
  40. implementation fileTree(dir: 'libs', include: ['*.jar'])
  41. // TODO: AndroidX
  42. def support_version = "28.0.0-alpha1"
  43. def constraintlayout_version = "1.1.2" // 2.0.0-alpha1
  44. def lifecycle_version = "1.1.1"
  45. def room_version = "1.1.1"
  46. def paging_version = "1.0.0"
  47. def javamail_version = "1.6.0"
  48. def jsoup_version = "1.11.3"
  49. // https://developer.android.com/topic/libraries/support-library/revisions.html
  50. implementation "com.android.support:appcompat-v7:$support_version"
  51. implementation "com.android.support.constraint:constraint-layout:$constraintlayout_version"
  52. implementation "com.android.support:recyclerview-v7:$support_version"
  53. implementation "com.android.support:design:$support_version"
  54. // https://developer.android.com/topic/libraries/architecture/adding-components.html
  55. implementation "android.arch.lifecycle:extensions:$lifecycle_version"
  56. implementation "android.arch.persistence.room:runtime:$room_version"
  57. annotationProcessor "android.arch.lifecycle:compiler:$lifecycle_version"
  58. annotationProcessor "android.arch.persistence.room:compiler:$room_version"
  59. implementation "android.arch.paging:runtime:$paging_version"
  60. // https://javaee.github.io/javamail/
  61. implementation "com.sun.mail:android-mail:$javamail_version"
  62. implementation "com.sun.mail:android-activation:$javamail_version"
  63. // https://jsoup.org/
  64. implementation "org.jsoup:jsoup:$jsoup_version"
  65. }