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.

77 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 14
  9. versionName "0.14"
  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 support_version = "1.0.0-alpha1"
  42. def androidx_version = "2.0.0-alpha1"
  43. def javamail_version = "1.6.0"
  44. def jsoup_version = "1.11.3"
  45. // https://developer.android.com/topic/libraries/support-library/revisions.html
  46. // https://developer.android.com/topic/libraries/support-library/packages
  47. // https://developer.android.com/topic/libraries/support-library/refactor
  48. implementation "androidx.appcompat:appcompat:$support_version"
  49. implementation "androidx.recyclerview:recyclerview:$support_version"
  50. implementation "com.google.android.material:material:$support_version"
  51. implementation "androidx.browser:browser:$support_version"
  52. implementation "androidx.constraintlayout:constraintlayout:1.1.2"
  53. // https://developer.android.com/topic/libraries/architecture/adding-components.html
  54. implementation "androidx.lifecycle:lifecycle-extensions:$androidx_version"
  55. implementation "androidx.room:room-runtime:$androidx_version"
  56. implementation "androidx.paging:paging-runtime:$androidx_version"
  57. annotationProcessor "androidx.lifecycle:lifecycle-compiler:$androidx_version"
  58. annotationProcessor "androidx.room:room-compiler:$androidx_version"
  59. // https://javaee.github.io/javamail/
  60. implementation "com.sun.mail:android-mail:$javamail_version"
  61. implementation "com.sun.mail:android-activation:$javamail_version"
  62. // https://jsoup.org/
  63. implementation "org.jsoup:jsoup:$jsoup_version"
  64. }