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.

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