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.
FairEmail/app/build.gradle

183 lines
6.8 KiB

apply plugin: 'com.android.application'
def keystorePropertiesFile = rootProject.file("keystore.properties")
def keystoreProperties = new Properties()
keystoreProperties.load(new FileInputStream(keystorePropertiesFile))
android {
compileSdkVersion 28
defaultConfig {
applicationId "eu.faircode.email"
minSdkVersion 21
targetSdkVersion 28
6 years ago
versionCode 339
versionName "1.339"
archivesBaseName = "FairEmail-v$versionName"
javaCompileOptions {
annotationProcessorOptions {
arguments = ["room.schemaLocation": "$projectDir/schemas".toString()]
}
}
}
signingConfigs {
release {
storeFile file(keystoreProperties['storeFile'])
storePassword keystoreProperties['storePassword']
keyAlias keystoreProperties['keyAlias']
keyPassword keystoreProperties['keyPassword']
}
}
buildTypes {
release {
debuggable = false
minifyEnabled = true
useProguard = true
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
signingConfig signingConfigs.release
}
debug {
debuggable = true
6 years ago
minifyEnabled = false
useProguard = false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
flavorDimensions "all"
productFlavors {
full {
dimension "all"
6 years ago
buildConfigField "boolean", "BETA_RELEASE", "true"
buildConfigField "boolean", "PLAY_STORE_RELEASE", "false"
6 years ago
buildConfigField "String", "INVITE_URI", "\"https://email.faircode.eu/\""
buildConfigField "String", "PRO_FEATURES_URI", "\"https://email.faircode.eu/donate/\""
buildConfigField "String", "GITHUB_LATEST_API", "\"https://api.github.com/repos/M66B/open-source-email/releases/latest\""
}
play_beta {
dimension "all"
6 years ago
buildConfigField "boolean", "BETA_RELEASE", "true"
buildConfigField "boolean", "PLAY_STORE_RELEASE", "true"
6 years ago
buildConfigField "String", "INVITE_URI", "\"https://play.google.com/apps/testing/eu.faircode.email\""
buildConfigField "String", "PRO_FEATURES_URI", "\"https://email.faircode.eu/#pro\""
buildConfigField "String", "GITHUB_LATEST_API", "\"\""
}
play_release {
dimension "all"
6 years ago
buildConfigField "boolean", "BETA_RELEASE", "false"
buildConfigField "boolean", "PLAY_STORE_RELEASE", "true"
6 years ago
buildConfigField "String", "INVITE_URI", "\"https://play.google.com/store/apps/details?id=eu.faircode.email\""
buildConfigField "String", "PRO_FEATURES_URI", "\"https://email.faircode.eu/#pro\""
buildConfigField "String", "GITHUB_LATEST_API", "\"\""
}
}
lintOptions {
disable 'MissingTranslation'
abortOnError false
}
packagingOptions {
pickFirst 'META-INF/LICENSE.txt'
// keep lib/armeabi-v7a/libsqlite3x.so
// keep lib/arm64-v8a/libsqlite3x.so
// keep lib/x86/libsqlite3x.so
// keep lib/x86_64/libsqlite3x.so
}
}
repositories {
6 years ago
google()
jcenter()
maven {
url "https://repo1.maven.org/maven2/"
}
}
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
def appcompat_version = "1.0.2"
def recyclerview_version = "1.0.0"
def coordinatorlayout_version = "1.0.0"
def constraintlayout_version = "1.1.3"
def material_version = "1.0.0"
def browser_version = "1.0.0"
6 years ago
def lifecycle_version = "2.0.0"
def room_version = "2.0.0"
def paging_version = "2.1.0"
def billingclient_version = "1.2"
def javamail_version = "1.6.3"
def jsoup_version = "1.11.3"
def jcharset_version = "2.0"
def icu4j_version = "63.1"
def dnsjava_version = "2.1.8"
def openpgp_version = "12.0"
def requery_version = "3.27.1"
6 years ago
// https://developer.android.com/jetpack/docs/release-notes
// https://mvnrepository.com/artifact/androidx.appcompat/appcompat
implementation "androidx.appcompat:appcompat:$appcompat_version"
6 years ago
// https://mvnrepository.com/artifact/androidx.recyclerview/recyclerview
implementation "androidx.recyclerview:recyclerview:$recyclerview_version"
//implementation "androidx.recyclerview:recyclerview-selection:$recyclerview_version"
6 years ago
// https://mvnrepository.com/artifact/androidx.coordinatorlayout/coordinatorlayout
implementation "androidx.coordinatorlayout:coordinatorlayout:$coordinatorlayout_version"
6 years ago
// https://mvnrepository.com/artifact/androidx.constraintlayout/constraintlayout
implementation "androidx.constraintlayout:constraintlayout:$constraintlayout_version"
6 years ago
// https://mvnrepository.com/artifact/com.google.android.material/material
implementation "com.google.android.material:material:$material_version"
6 years ago
// https://mvnrepository.com/artifact/androidx.browser/browser
implementation "androidx.browser:browser:$browser_version"
6 years ago
// https://mvnrepository.com/artifact/androidx.lifecycle/lifecycle-runtime
implementation "androidx.lifecycle:lifecycle-extensions:$lifecycle_version"
annotationProcessor "androidx.lifecycle:lifecycle-compiler:$lifecycle_version"
6 years ago
// https://mvnrepository.com/artifact/androidx.room/room-runtime
implementation "androidx.room:room-runtime:$room_version"
annotationProcessor "androidx.room:room-compiler:$room_version"
6 years ago
// https://mvnrepository.com/artifact/androidx.paging/paging-runtime
implementation "androidx.paging:paging-runtime:$paging_version"
6 years ago
// https://developer.android.com/google/play/billing/billing_library_releases_notes
6 years ago
implementation "com.android.billingclient:billing:$billingclient_version"
6 years ago
// https://javaee.github.io/javamail/
// https://projects.eclipse.org/projects/ee4j.javamail
implementation "com.sun.mail:android-mail:$javamail_version"
implementation "com.sun.mail:android-activation:$javamail_version"
6 years ago
// https://jsoup.org/
implementation "org.jsoup:jsoup:$jsoup_version"
6 years ago
// http://www.freeutils.net/source/jcharset/
//implementation "net.freeutils:jcharset:$jcharset_version"
// https://mvnrepository.com/artifact/com.ibm.icu/icu4j
//implementation "com.ibm.icu:icu4j:$icu4j_version"
6 years ago
// http://www.dnsjava.org/
// https://mvnrepository.com/artifact/dnsjava/dnsjava
implementation "dnsjava:dnsjava:$dnsjava_version"
// https://github.com/open-keychain/openpgp-api
implementation "org.sufficientlysecure:openpgp-api:$openpgp_version"
// https://github.com/requery/sqlite-android/
implementation "io.requery:sqlite-android:$requery_version"
// git clone https://android.googlesource.com/platform/frameworks/opt/colorpicker
implementation project(path: ':colorpicker')
}