2018-08-02 13:33:06 +00:00
|
|
|
apply plugin: 'com.android.application'
|
|
|
|
|
2019-01-15 13:07:07 +00:00
|
|
|
def keystorePropertiesFile = rootProject.file("keystore.properties")
|
|
|
|
def keystoreProperties = new Properties()
|
2019-03-26 13:51:35 +00:00
|
|
|
|
2019-01-15 13:07:07 +00:00
|
|
|
keystoreProperties.load(new FileInputStream(keystorePropertiesFile))
|
|
|
|
|
2018-08-02 13:33:06 +00:00
|
|
|
android {
|
|
|
|
compileSdkVersion 28
|
|
|
|
defaultConfig {
|
|
|
|
applicationId "eu.faircode.email"
|
2018-12-09 17:49:52 +00:00
|
|
|
minSdkVersion 21
|
2018-08-02 13:33:06 +00:00
|
|
|
targetSdkVersion 28
|
2019-04-18 07:30:54 +00:00
|
|
|
versionCode 432
|
|
|
|
versionName "1.432"
|
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
|
|
|
}
|
2019-01-15 13:07:07 +00:00
|
|
|
signingConfigs {
|
|
|
|
release {
|
|
|
|
storeFile file(keystoreProperties['storeFile'])
|
|
|
|
storePassword keystoreProperties['storePassword']
|
|
|
|
keyAlias keystoreProperties['keyAlias']
|
|
|
|
keyPassword keystoreProperties['keyPassword']
|
|
|
|
}
|
|
|
|
}
|
2018-08-02 13:33:06 +00:00
|
|
|
|
|
|
|
buildTypes {
|
|
|
|
release {
|
2018-09-03 08:04:51 +00:00
|
|
|
debuggable = false
|
2018-08-02 13:33:06 +00:00
|
|
|
minifyEnabled = true
|
|
|
|
useProguard = true
|
|
|
|
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
|
2019-01-15 13:07:07 +00:00
|
|
|
signingConfig signingConfigs.release
|
2018-12-21 09:18:58 +00:00
|
|
|
}
|
2018-08-02 13:33:06 +00:00
|
|
|
debug {
|
2018-09-04 18:06:22 +00:00
|
|
|
debuggable = true
|
2018-11-22 08:00:02 +00:00
|
|
|
minifyEnabled = false
|
|
|
|
useProguard = false
|
2018-08-02 13:33:06 +00:00
|
|
|
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
|
2019-01-07 10:45:17 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
flavorDimensions "all"
|
|
|
|
|
|
|
|
productFlavors {
|
|
|
|
full {
|
|
|
|
dimension "all"
|
2019-02-07 19:49:14 +00:00
|
|
|
buildConfigField "boolean", "BETA_RELEASE", "true"
|
2018-12-19 13:57:01 +00:00
|
|
|
buildConfigField "boolean", "PLAY_STORE_RELEASE", "false"
|
2019-02-07 19:49:14 +00:00
|
|
|
buildConfigField "String", "INVITE_URI", "\"https://email.faircode.eu/\""
|
|
|
|
buildConfigField "String", "PRO_FEATURES_URI", "\"https://email.faircode.eu/donate/\""
|
2018-12-19 13:57:01 +00:00
|
|
|
buildConfigField "String", "GITHUB_LATEST_API", "\"https://api.github.com/repos/M66B/open-source-email/releases/latest\""
|
2019-01-09 18:15:47 +00:00
|
|
|
}
|
|
|
|
play_beta {
|
|
|
|
dimension "all"
|
2019-02-07 19:49:14 +00:00
|
|
|
buildConfigField "boolean", "BETA_RELEASE", "true"
|
2019-01-09 18:15:47 +00:00
|
|
|
buildConfigField "boolean", "PLAY_STORE_RELEASE", "true"
|
2019-02-07 19:49:14 +00:00
|
|
|
buildConfigField "String", "INVITE_URI", "\"https://play.google.com/apps/testing/eu.faircode.email\""
|
|
|
|
buildConfigField "String", "PRO_FEATURES_URI", "\"https://email.faircode.eu/#pro\""
|
2019-01-09 18:15:47 +00:00
|
|
|
buildConfigField "String", "GITHUB_LATEST_API", "\"\""
|
2018-08-02 13:33:06 +00:00
|
|
|
}
|
2019-01-09 18:15:47 +00:00
|
|
|
play_release {
|
2019-01-07 10:45:17 +00:00
|
|
|
dimension "all"
|
2019-02-07 19:49:14 +00:00
|
|
|
buildConfigField "boolean", "BETA_RELEASE", "false"
|
2019-01-07 10:45:17 +00:00
|
|
|
buildConfigField "boolean", "PLAY_STORE_RELEASE", "true"
|
2019-02-07 19:49:14 +00:00
|
|
|
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\""
|
2019-01-07 10:45:17 +00:00
|
|
|
buildConfigField "String", "GITHUB_LATEST_API", "\"\""
|
|
|
|
}
|
2018-08-02 13:33:06 +00:00
|
|
|
}
|
|
|
|
|
2018-12-21 09:18:58 +00:00
|
|
|
lintOptions {
|
|
|
|
disable 'MissingTranslation'
|
2019-01-19 15:25:09 +00:00
|
|
|
abortOnError false
|
2018-12-21 09:18:58 +00:00
|
|
|
}
|
|
|
|
|
2018-08-02 13:33:06 +00:00
|
|
|
packagingOptions {
|
|
|
|
pickFirst 'META-INF/LICENSE.txt'
|
2018-11-09 07:38:07 +00:00
|
|
|
|
|
|
|
// keep lib/armeabi-v7a/libsqlite3x.so
|
2019-01-16 19:17:30 +00:00
|
|
|
// keep lib/arm64-v8a/libsqlite3x.so
|
2018-11-09 07:38:07 +00:00
|
|
|
// keep lib/x86/libsqlite3x.so
|
2019-01-16 19:17:30 +00:00
|
|
|
// keep lib/x86_64/libsqlite3x.so
|
2018-08-02 13:33:06 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
repositories {
|
2018-10-12 08:33:23 +00:00
|
|
|
google()
|
2018-08-02 13:33:06 +00:00
|
|
|
jcenter()
|
|
|
|
maven {
|
2018-08-03 00:25:50 +00:00
|
|
|
url "https://repo1.maven.org/maven2/"
|
2018-08-02 13:33:06 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
dependencies {
|
|
|
|
implementation fileTree(dir: 'libs', include: ['*.jar'])
|
|
|
|
|
2018-12-30 10:51:47 +00:00
|
|
|
def appcompat_version = "1.0.2"
|
|
|
|
def recyclerview_version = "1.0.0"
|
2018-11-13 14:33:41 +00:00
|
|
|
def coordinatorlayout_version = "1.0.0"
|
2018-09-11 16:28:43 +00:00
|
|
|
def constraintlayout_version = "1.1.3"
|
2018-11-13 14:33:41 +00:00
|
|
|
def material_version = "1.0.0"
|
|
|
|
def browser_version = "1.0.0"
|
2018-09-26 12:53:15 +00:00
|
|
|
def lifecycle_version = "2.0.0"
|
2018-10-10 11:03:32 +00:00
|
|
|
def room_version = "2.0.0"
|
2019-02-07 19:54:04 +00:00
|
|
|
def paging_version = "2.1.0"
|
2019-03-15 13:54:25 +00:00
|
|
|
def preference_version = "1.0.0"
|
2019-04-10 06:41:34 +00:00
|
|
|
def work_version = "2.0.1"
|
2019-03-27 11:14:09 +00:00
|
|
|
def exif_version = "1.0.0"
|
2019-03-19 10:32:10 +00:00
|
|
|
def billingclient_version = "1.2.2"
|
2018-11-23 10:56:17 +00:00
|
|
|
def javamail_version = "1.6.3"
|
2018-08-07 05:30:15 +00:00
|
|
|
def jsoup_version = "1.11.3"
|
2018-09-18 14:22:10 +00:00
|
|
|
def dnsjava_version = "2.1.8"
|
2018-10-28 12:49:13 +00:00
|
|
|
def openpgp_version = "12.0"
|
2019-03-30 07:26:23 +00:00
|
|
|
def requery_version = "3.27.2"
|
2019-03-27 09:48:20 +00:00
|
|
|
def badge_version = "1.1.22"
|
2018-08-07 05:30:15 +00:00
|
|
|
|
2019-03-27 13:50:47 +00:00
|
|
|
// https://developer.android.com/jetpack/androidx/releases/
|
2019-03-31 17:04:23 +00:00
|
|
|
|
|
|
|
// temporary
|
|
|
|
implementation "androidx.arch.core:core-common:2.0.1"
|
|
|
|
implementation "androidx.arch.core:core-runtime:2.0.1"
|
|
|
|
implementation "androidx.sqlite:sqlite:2.0.1"
|
|
|
|
implementation "androidx.sqlite:sqlite-framework:2.0.1"
|
2018-11-10 09:09:56 +00:00
|
|
|
|
|
|
|
// https://mvnrepository.com/artifact/androidx.appcompat/appcompat
|
2018-11-13 15:03:20 +00:00
|
|
|
implementation "androidx.appcompat:appcompat:$appcompat_version"
|
2018-11-10 09:09:56 +00:00
|
|
|
|
|
|
|
// https://mvnrepository.com/artifact/androidx.recyclerview/recyclerview
|
2019-03-31 14:49:10 +00:00
|
|
|
// https://mvnrepository.com/artifact/androidx.recyclerview/recyclerview-selection
|
2018-11-13 14:33:41 +00:00
|
|
|
implementation "androidx.recyclerview:recyclerview:$recyclerview_version"
|
2019-03-31 14:49:10 +00:00
|
|
|
//implementation "androidx.recyclerview:recyclerview-selection:1.1.0-alpha01"
|
2018-11-10 09:09:56 +00:00
|
|
|
|
|
|
|
// https://mvnrepository.com/artifact/androidx.coordinatorlayout/coordinatorlayout
|
2018-11-13 14:33:41 +00:00
|
|
|
implementation "androidx.coordinatorlayout:coordinatorlayout:$coordinatorlayout_version"
|
2018-11-10 09:09:56 +00:00
|
|
|
|
|
|
|
// https://mvnrepository.com/artifact/androidx.constraintlayout/constraintlayout
|
2018-09-12 16:54:48 +00:00
|
|
|
implementation "androidx.constraintlayout:constraintlayout:$constraintlayout_version"
|
2018-11-10 09:09:56 +00:00
|
|
|
|
|
|
|
// https://mvnrepository.com/artifact/com.google.android.material/material
|
2018-11-13 14:33:41 +00:00
|
|
|
implementation "com.google.android.material:material:$material_version"
|
2018-11-10 09:09:56 +00:00
|
|
|
|
|
|
|
// https://mvnrepository.com/artifact/androidx.browser/browser
|
2018-11-13 14:33:41 +00:00
|
|
|
implementation "androidx.browser:browser:$browser_version"
|
2018-08-02 13:33:06 +00:00
|
|
|
|
2018-11-10 09:09:56 +00:00
|
|
|
// https://mvnrepository.com/artifact/androidx.lifecycle/lifecycle-runtime
|
2018-08-23 09:48:27 +00:00
|
|
|
implementation "androidx.lifecycle:lifecycle-extensions:$lifecycle_version"
|
|
|
|
annotationProcessor "androidx.lifecycle:lifecycle-compiler:$lifecycle_version"
|
|
|
|
|
2018-11-10 09:09:56 +00:00
|
|
|
// https://mvnrepository.com/artifact/androidx.room/room-runtime
|
2018-08-23 09:48:27 +00:00
|
|
|
implementation "androidx.room:room-runtime:$room_version"
|
|
|
|
annotationProcessor "androidx.room:room-compiler:$room_version"
|
|
|
|
|
2018-11-10 09:09:56 +00:00
|
|
|
// https://mvnrepository.com/artifact/androidx.paging/paging-runtime
|
2018-08-23 09:48:27 +00:00
|
|
|
implementation "androidx.paging:paging-runtime:$paging_version"
|
2018-08-07 06:38:00 +00:00
|
|
|
|
2019-03-15 13:54:25 +00:00
|
|
|
// https://mvnrepository.com/artifact/androidx.preference/preference
|
|
|
|
implementation "androidx.preference:preference:$preference_version"
|
|
|
|
|
2019-03-03 09:09:11 +00:00
|
|
|
// https://mvnrepository.com/artifact/android.arch.work/work-runtime
|
2019-03-27 13:50:47 +00:00
|
|
|
implementation "androidx.work:work-runtime:$work_version"
|
2019-03-03 09:09:11 +00:00
|
|
|
|
2019-03-27 11:14:09 +00:00
|
|
|
// https://mvnrepository.com/artifact/androidx.exifinterface/exifinterface
|
|
|
|
implementation "androidx.exifinterface:exifinterface:$exif_version"
|
|
|
|
|
2018-11-10 09:09:56 +00:00
|
|
|
// https://developer.android.com/google/play/billing/billing_library_releases_notes
|
2018-08-25 13:32:52 +00:00
|
|
|
implementation "com.android.billingclient:billing:$billingclient_version"
|
|
|
|
|
2018-11-10 09:09:56 +00:00
|
|
|
// https://javaee.github.io/javamail/
|
|
|
|
// https://projects.eclipse.org/projects/ee4j.javamail
|
2019-03-17 09:18:40 +00:00
|
|
|
// https://mvnrepository.com/artifact/com.sun.mail
|
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
|
|
|
|
2018-11-10 09:09:56 +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
|
|
|
|
2019-02-20 11:34:35 +00:00
|
|
|
// http://www.dnsjava.org/
|
|
|
|
// https://mvnrepository.com/artifact/dnsjava/dnsjava
|
2018-09-18 14:22:10 +00:00
|
|
|
implementation "dnsjava:dnsjava:$dnsjava_version"
|
|
|
|
|
2018-10-28 12:49:13 +00:00
|
|
|
// https://github.com/open-keychain/openpgp-api
|
|
|
|
implementation "org.sufficientlysecure:openpgp-api:$openpgp_version"
|
|
|
|
|
2019-03-30 07:26:23 +00:00
|
|
|
// https://www.sqlite.org/changes.html
|
2018-11-09 07:38:07 +00:00
|
|
|
// https://github.com/requery/sqlite-android/
|
|
|
|
implementation "io.requery:sqlite-android:$requery_version"
|
|
|
|
|
2019-03-27 09:48:20 +00:00
|
|
|
// https://github.com/leolin310148/ShortcutBadger
|
2019-04-04 17:37:29 +00:00
|
|
|
// https://mvnrepository.com/artifact/me.leolin/ShortcutBadger
|
2019-03-27 09:48:20 +00:00
|
|
|
implementation "me.leolin:ShortcutBadger:$badge_version"
|
|
|
|
|
2018-09-12 19:11:50 +00:00
|
|
|
// git clone https://android.googlesource.com/platform/frameworks/opt/colorpicker
|
2018-09-12 16:54:48 +00:00
|
|
|
implementation project(path: ':colorpicker')
|
2018-08-02 13:33:06 +00:00
|
|
|
}
|