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.

85 lines
2.8 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 19
  9. versionName "0.19"
  10. archivesBaseName = "FairEmail-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. def androidx_version = "1.0.0-rc01"
  42. def lifecycle_version = "2.0.0-beta01"
  43. def room_version = "2.0.0-beta01"
  44. def paging_version = "2.0.0-beta01"
  45. def javamail_version = "1.6.0"
  46. def jsoup_version = "1.11.3"
  47. def jcharset_version = "2.0"
  48. // https://developer.android.com/topic/libraries/support-library/androidx-rn
  49. // https://developer.android.com/topic/libraries/support-library/refactor
  50. implementation "androidx.appcompat:appcompat:$androidx_version"
  51. implementation "androidx.recyclerview:recyclerview:$androidx_version"
  52. implementation "com.google.android.material:material:$androidx_version"
  53. implementation "androidx.browser:browser:$androidx_version"
  54. // https://mvnrepository.com/artifact/androidx.constraintlayout/constraintlayout
  55. implementation "androidx.constraintlayout:constraintlayout:1.1.2"
  56. // https://developer.android.com/topic/libraries/architecture/adding-components.html
  57. // https://developer.android.com/jetpack/docs/release-notes
  58. implementation "androidx.lifecycle:lifecycle-extensions:$lifecycle_version"
  59. annotationProcessor "androidx.lifecycle:lifecycle-compiler:$lifecycle_version"
  60. implementation "androidx.room:room-runtime:$room_version"
  61. annotationProcessor "androidx.room:room-compiler:$room_version"
  62. implementation "androidx.paging:paging-runtime:$paging_version"
  63. // https://javaee.github.io/javamail/
  64. implementation "com.sun.mail:android-mail:$javamail_version"
  65. implementation "com.sun.mail:android-activation:$javamail_version"
  66. // https://jsoup.org/
  67. implementation "org.jsoup:jsoup:$jsoup_version"
  68. // http://www.freeutils.net/source/jcharset/
  69. implementation "net.freeutils:jcharset:$jcharset_version"
  70. }