FairEmail/app/build.gradle

86 lines
2.8 KiB
Groovy
Raw Normal View History

2018-08-02 13:33:06 +00:00
apply plugin: 'com.android.application'
android {
compileSdkVersion 28
defaultConfig {
applicationId "eu.faircode.email"
minSdkVersion 23
targetSdkVersion 28
2018-08-23 19:00:19 +00:00
versionCode 20
versionName "0.20"
2018-08-14 05:53:24 +00:00
archivesBaseName = "FairEmail-v$versionName"
2018-08-03 12:07:51 +00:00
javaCompileOptions {
annotationProcessorOptions {
arguments = ["room.schemaLocation": "$projectDir/schemas".toString()]
}
}
2018-08-02 13:33:06 +00:00
}
buildTypes {
release {
minifyEnabled = true
useProguard = true
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
debug {
minifyEnabled = true
useProguard = true
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
packagingOptions {
pickFirst 'META-INF/LICENSE.txt'
}
}
repositories {
jcenter()
maven {
url "https://repo1.maven.org/maven2/"
2018-08-02 13:33:06 +00:00
}
}
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
2018-08-23 09:48:27 +00:00
def androidx_version = "1.0.0-rc01"
def lifecycle_version = "2.0.0-beta01"
def room_version = "2.0.0-beta01"
def paging_version = "2.0.0-beta01"
2018-08-07 05:30:15 +00:00
def javamail_version = "1.6.0"
def jsoup_version = "1.11.3"
2018-08-23 09:48:27 +00:00
def jcharset_version = "2.0"
2018-08-07 05:30:15 +00:00
2018-08-23 09:48:27 +00:00
// https://developer.android.com/topic/libraries/support-library/androidx-rn
2018-08-08 06:55:47 +00:00
// https://developer.android.com/topic/libraries/support-library/refactor
2018-08-23 09:48:27 +00:00
implementation "androidx.appcompat:appcompat:$androidx_version"
implementation "androidx.recyclerview:recyclerview:$androidx_version"
implementation "com.google.android.material:material:$androidx_version"
implementation "androidx.browser:browser:$androidx_version"
2018-08-02 13:33:06 +00:00
2018-08-23 09:48:27 +00:00
// https://mvnrepository.com/artifact/androidx.constraintlayout/constraintlayout
2018-08-15 10:32:51 +00:00
implementation "androidx.constraintlayout:constraintlayout:1.1.2"
2018-08-02 13:33:06 +00:00
// https://developer.android.com/topic/libraries/architecture/adding-components.html
2018-08-23 09:48:27 +00:00
// https://developer.android.com/jetpack/docs/release-notes
implementation "androidx.lifecycle:lifecycle-extensions:$lifecycle_version"
annotationProcessor "androidx.lifecycle:lifecycle-compiler:$lifecycle_version"
implementation "androidx.room:room-runtime:$room_version"
annotationProcessor "androidx.room:room-compiler:$room_version"
implementation "androidx.paging:paging-runtime:$paging_version"
2018-08-07 06:38:00 +00:00
2018-08-02 13:33:06 +00:00
// https://javaee.github.io/javamail/
2018-08-07 05:30:15 +00:00
implementation "com.sun.mail:android-mail:$javamail_version"
implementation "com.sun.mail:android-activation:$javamail_version"
2018-08-02 13:33:06 +00:00
// https://jsoup.org/
2018-08-07 05:30:15 +00:00
implementation "org.jsoup:jsoup:$jsoup_version"
2018-08-08 05:02:25 +00:00
// http://www.freeutils.net/source/jcharset/
2018-08-23 09:48:27 +00:00
implementation "net.freeutils:jcharset:$jcharset_version"
2018-08-02 13:33:06 +00:00
}