FairEmail/app/build.gradle

875 lines
42 KiB
Groovy
Raw Normal View History

2018-08-02 13:33:06 +00:00
apply plugin: 'com.android.application'
2020-10-15 12:01:13 +00:00
apply plugin: 'com.bugsnag.android.gradle'
2021-05-15 20:03:05 +00:00
apply plugin: 'kotlin-android'
apply plugin: 'de.undercouch.download'
2018-08-02 13:33:06 +00:00
2024-04-27 06:17:00 +00:00
def getVersionCode = { -> return 2177 }
2024-04-27 06:19:38 +00:00
def getRevision = { -> return "b" }
2024-04-26 09:14:11 +00:00
def getReleaseName = { -> return "Acantholipan" }
2020-10-16 20:30:11 +00:00
// https://en.wikipedia.org/wiki/List_of_dinosaur_genera
def keystoreProperties = new Properties()
2023-11-18 08:14:54 +00:00
if (rootProject.file("keystore.properties").exists())
keystoreProperties.load(new FileInputStream(rootProject.file("keystore.properties")))
2019-03-26 13:51:35 +00:00
2022-02-07 07:24:15 +00:00
Properties localProperties = new Properties()
2022-02-11 13:34:49 +00:00
if (rootProject.file("local.properties").exists())
localProperties.load(new FileInputStream(rootProject.file("local.properties")))
2018-08-02 13:33:06 +00:00
android {
2023-06-28 10:43:49 +00:00
//compileSdkExtension 4 // https://developer.android.com/guide/sdk-extensions
2022-05-10 20:53:56 +00:00
namespace 'eu.faircode.email'
2019-06-15 08:02:41 +00:00
2022-04-03 11:27:37 +00:00
// https://apilevels.com/
2018-08-02 13:33:06 +00:00
defaultConfig {
applicationId "eu.faircode.email"
2023-08-01 11:28:48 +00:00
compileSdk 34
2018-12-09 17:49:52 +00:00
minSdkVersion 21
2023-06-28 10:43:49 +00:00
targetSdkVersion 34
2020-10-16 20:30:11 +00:00
versionCode getVersionCode()
versionName "1." + getVersionCode()
2018-08-03 12:07:51 +00:00
2022-11-22 14:27:57 +00:00
manifestPlaceholders = [namespace: applicationId.replace('.debug', '')]
2021-10-04 07:18:02 +00:00
buildConfigField "String", "REVISION", "\"" + getRevision() + "\""
buildConfigField "String", "RELEASE_NAME", "\"" + getReleaseName() + "\""
2019-07-13 18:14:19 +00:00
2018-08-03 12:07:51 +00:00
javaCompileOptions {
annotationProcessorOptions {
arguments = ["room.schemaLocation": "$projectDir/schemas".toString()]
}
}
2019-06-14 18:29:40 +00:00
// https://developer.android.com/guide/topics/graphics/vector-drawable-resources
vectorDrawables.useSupportLibrary = true
2019-06-15 08:02:41 +00:00
2023-10-28 08:58:41 +00:00
externalNativeBuild {
cmake {
cFlags "-ffile-prefix-map=${rootDir}=."
cppFlags "-ffile-prefix-map=${rootDir}=."
}
}
2022-06-26 06:10:58 +00:00
// https://developer.android.com/ndk/downloads
2023-03-13 20:33:21 +00:00
ndkVersion "25.2.9519653" // r25c
2019-06-15 08:02:41 +00:00
ndk {
2020-06-27 11:38:24 +00:00
// Bugsnag, sqlite
2022-08-11 06:00:42 +00:00
// https://developer.android.com/ndk/guides/abis
2019-06-15 08:02:41 +00:00
abiFilters "armeabi-v7a", "x86", "arm64-v8a", "x86_64"
}
2018-08-02 13:33:06 +00:00
}
2019-06-15 08:02:41 +00:00
2023-12-02 15:50:29 +00:00
base {
archivesName = "FairEmail-v1." + getVersionCode() + getRevision()
}
2020-10-16 20:30:11 +00:00
sourceSets {
github {
java.srcDirs = ['src/main/java', 'src/github/java', 'src/extra/java']
2020-05-28 17:54:40 +00:00
}
2023-02-04 09:33:46 +00:00
large {
java.srcDirs = ['src/main/java', 'src/github/java', 'src/extra/java']
2023-02-04 09:33:46 +00:00
}
2020-10-16 20:30:11 +00:00
fdroid {
2022-04-27 12:56:42 +00:00
java.srcDirs = ['src/main/java', 'src/fdroid/java', 'src/extra/java']
2020-06-13 18:08:33 +00:00
}
2020-10-16 20:30:11 +00:00
play {
2022-04-27 12:56:42 +00:00
java.srcDirs = ['src/main/java', 'src/play/java', 'src/dummy/java']
2020-10-16 20:30:11 +00:00
}
2021-12-29 11:29:54 +00:00
amazon {
2022-04-27 12:56:42 +00:00
java.srcDirs = ['src/main/java', 'src/amazon/java', 'src/extra/java']
2021-12-29 11:29:54 +00:00
}
2020-10-16 20:30:11 +00:00
main.res.srcDirs += 'src/main/resExtra'
2020-05-28 17:54:40 +00:00
}
2022-01-05 15:34:16 +00:00
lint {
2023-11-02 09:43:27 +00:00
// https://developer.android.com/studio/write/lint
// https://developer.android.com/reference/tools/gradle-api/8.0/com/android/build/api/dsl/LintOptions
abortOnError true
2023-02-02 08:12:56 +00:00
checkReleaseBuilds false
2023-11-03 08:40:36 +00:00
//checkDependencies false
2022-01-05 15:34:16 +00:00
disable 'MissingTranslation'
2023-11-02 09:43:27 +00:00
fatal 'StringFormatInvalid', 'StringFormatMatches', 'StringFormatCount'
checkOnly 'StringFormatInvalid', 'StringFormatMatches', 'StringFormatCount'
2019-07-23 18:27:05 +00:00
}
compileOptions {
2023-10-30 14:53:24 +00:00
// https://developer.android.com/studio/write/java8-support#groovy
coreLibraryDesugaringEnabled true
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
2023-05-04 05:26:03 +00:00
kotlinOptions {
jvmTarget = '1.8'
}
2020-10-14 18:54:28 +00:00
externalNativeBuild {
cmake {
2022-10-15 07:25:30 +00:00
version "3.22.1"
2020-10-14 18:54:28 +00:00
path "CMakeLists.txt"
}
}
2020-10-16 20:30:11 +00:00
dependenciesInfo {
includeInApk = false
includeInBundle = false
}
2019-07-23 18:27:05 +00:00
packagingOptions {
2021-12-14 07:11:48 +00:00
jniLibs {
2023-08-24 11:09:36 +00:00
useLegacyPackaging = true // https://issuetracker.google.com/issues/127691101
2021-12-14 07:11:48 +00:00
excludes += [
'org/apache/**'
]
}
resources {
excludes += [
'LICENSES',
'META-INF/LICENSE.txt',
'META-INF/README.md',
'META-INF/CHANGES',
'META-INF/jersey-module-version',
'META-INF/COPYRIGHT.html',
'META-INF/LICENSE.gpl.txt',
'META-INF/LICENSE.commercial.txt',
'LICENSE-2.0.txt',
2022-08-11 08:16:29 +00:00
'RELEASE.txt',
'DebugProbesKt.bin',
2024-02-19 11:38:55 +00:00
'font_metrics.properties'
2021-12-14 07:11:48 +00:00
]
}
2019-07-23 18:27:05 +00:00
}
2023-11-18 08:14:54 +00:00
// https://developer.android.com/reference/tools/gradle-api/4.2/com/android/build/api/dsl/SigningConfig
signingConfigs {
2020-06-13 18:08:33 +00:00
release {
2023-11-18 08:14:54 +00:00
if (rootProject.file("keystore.properties").exists()) {
storeFile file(keystoreProperties['storeFile'])
storePassword keystoreProperties['storePassword']
keyAlias keystoreProperties['keyAlias']
keyPassword keystoreProperties['keyPassword']
v1SigningEnabled true
v2SigningEnabled true
}
}
}
2018-08-02 13:33:06 +00:00
2020-10-16 20:30:11 +00:00
buildFeatures {
2021-01-19 16:54:32 +00:00
buildConfig = true
viewBinding = false
dataBinding = false
aidl = true
renderScript = false
resValues = false
shaders = false
compose = false
2020-10-16 20:30:11 +00:00
}
2018-08-02 13:33:06 +00:00
buildTypes {
2020-10-15 09:13:05 +00:00
// https://developer.android.com/studio/build/shrink-code
2020-06-13 18:08:33 +00:00
release {
debuggable = false
minifyEnabled = true
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
2020-06-13 18:08:33 +00:00
signingConfig signingConfigs.release
2023-10-31 17:25:13 +00:00
buildConfigField "String", "TX_URI", "\"\""
buildConfigField "String", "GPA_URI", "\"\""
buildConfigField "String", "INFO_URI", "\"\""
buildConfigField "String", "BUGSNAG_URI", "\"\""
buildConfigField "String", "DEV_DOMAIN", "\"\""
2018-12-21 09:18:58 +00:00
}
2018-08-02 13:33:06 +00:00
debug {
2019-12-03 07:45:26 +00:00
applicationIdSuffix '.debug'
2018-09-04 18:06:22 +00:00
debuggable = true
2018-11-22 08:00:02 +00:00
minifyEnabled = false
2018-08-02 13:33:06 +00:00
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
2023-10-31 17:25:13 +00:00
buildConfigField "String", "TX_URI", localProperties.getProperty("paypal.uri", "\"\"")
buildConfigField "String", "GPA_URI", localProperties.getProperty("gpa.uri", "\"\"")
buildConfigField "String", "INFO_URI", localProperties.getProperty("info.uri", "\"\"")
buildConfigField "String", "BUGSNAG_URI", localProperties.getProperty("bugsnag.uri", "\"\"")
buildConfigField "String", "DEV_DOMAIN", localProperties.getProperty("dev.domain", "\"\"")
2019-01-07 10:45:17 +00:00
}
}
2023-10-31 15:41:54 +00:00
flavorDimensions += "all"
2019-01-07 10:45:17 +00:00
productFlavors {
2020-06-13 18:08:33 +00:00
github {
2019-01-07 10:45:17 +00:00
dimension "all"
2023-02-04 09:33:46 +00:00
manifestPlaceholders.largeHeap = false
2023-12-02 15:50:29 +00:00
manifestPlaceholders.build_uuid = UUID.nameUUIDFromBytes(("github" + getVersionCode() + getRevision()).getBytes()).toString();
2023-02-04 09:33:46 +00:00
buildConfigField "boolean", "TEST_RELEASE", "false"
buildConfigField "boolean", "BETA_RELEASE", "true"
buildConfigField "boolean", "PLAY_STORE_RELEASE", "false"
buildConfigField "boolean", "FDROID_RELEASE", "false"
buildConfigField "boolean", "AMAZON_RELEASE", "false"
buildConfigField "String", "PRO_FEATURES_URI", "\"https://email.faircode.eu/donate/\""
buildConfigField "String", "CHANGELOG", "\"https://github.com/M66B/FairEmail/releases/\""
buildConfigField "String", "GITHUB_LATEST_API", "\"https://api.github.com/repos/M66B/FairEmail/releases/latest\""
buildConfigField "String", "GITHUB_LATEST_URI", "\"https://github.com/M66B/FairEmail/releases\""
buildConfigField "String", "BITBUCKET_DOWNLOADS_API", "\"https://api.bitbucket.org/2.0/repositories/M66B/fairemail-test/downloads\""
buildConfigField "String", "BITBUCKET_DOWNLOADS_URI", "\"https://bitbucket.org/M66B/fairemail-test/downloads/\""
2023-02-10 20:13:04 +00:00
buildConfigField "String", "ANNOUNCEMENT_URI", "\"\""
2023-02-04 09:33:46 +00:00
buildConfigField "String", "CLOUD_URI", "\"https://api.fairemail.net/sync\""
buildConfigField "String", "CLOUD_EMAIL", "\"cloud@in.faircode.eu\""
2023-11-28 19:35:21 +00:00
buildConfigField "String", "OPENAI_ENDPOINT", "\"https://api.openai.com/v1/\""
2023-03-09 14:28:30 +00:00
buildConfigField "String", "OPENAI_PRIVACY", "\"https://openai.com/policies/privacy-policy\""
2024-03-27 08:03:44 +00:00
buildConfigField "String", "GEMINI_ENDPOINT", "\"https://generativelanguage.googleapis.com/v1beta/\""
2024-03-29 08:46:43 +00:00
buildConfigField "String", "GEMINI_PRIVACY", "\"https://support.google.com/gemini/answer/13594961\""
2024-04-26 06:58:33 +00:00
buildConfigField "String", "PWNED_ENDPOINT", "\"https://api.pwnedpasswords.com/\""
2024-04-26 19:14:23 +00:00
buildConfigField "String", "PWNED_URI", "\"https://haveibeenpwned.com/\""
2023-02-04 09:33:46 +00:00
buildConfigField "String", "FDROID", "\"https://f-droid.org/packages/%s/\""
}
large {
dimension "all"
manifestPlaceholders.largeHeap = true
2023-12-02 15:50:29 +00:00
manifestPlaceholders.build_uuid = UUID.nameUUIDFromBytes(("large" + getVersionCode() + getRevision()).getBytes()).toString();
2022-05-11 12:41:39 +00:00
buildConfigField "boolean", "TEST_RELEASE", "false"
2019-02-07 19:49:14 +00:00
buildConfigField "boolean", "BETA_RELEASE", "true"
buildConfigField "boolean", "PLAY_STORE_RELEASE", "false"
2023-01-18 08:20:03 +00:00
buildConfigField "boolean", "FDROID_RELEASE", "false"
2021-06-28 14:39:55 +00:00
buildConfigField "boolean", "AMAZON_RELEASE", "false"
2019-02-07 19:49:14 +00:00
buildConfigField "String", "PRO_FEATURES_URI", "\"https://email.faircode.eu/donate/\""
2021-09-22 18:28:22 +00:00
buildConfigField "String", "CHANGELOG", "\"https://github.com/M66B/FairEmail/releases/\""
2020-10-02 09:02:14 +00:00
buildConfigField "String", "GITHUB_LATEST_API", "\"https://api.github.com/repos/M66B/FairEmail/releases/latest\""
buildConfigField "String", "GITHUB_LATEST_URI", "\"https://github.com/M66B/FairEmail/releases\""
2022-10-31 14:52:31 +00:00
buildConfigField "String", "BITBUCKET_DOWNLOADS_API", "\"https://api.bitbucket.org/2.0/repositories/M66B/fairemail-test/downloads\""
buildConfigField "String", "BITBUCKET_DOWNLOADS_URI", "\"https://bitbucket.org/M66B/fairemail-test/downloads/\""
2023-02-10 20:13:04 +00:00
buildConfigField "String", "ANNOUNCEMENT_URI", "\"\""
2023-01-12 16:33:16 +00:00
buildConfigField "String", "CLOUD_URI", "\"https://api.fairemail.net/sync\""
2023-01-22 11:43:33 +00:00
buildConfigField "String", "CLOUD_EMAIL", "\"cloud@in.faircode.eu\""
2023-11-28 19:35:21 +00:00
buildConfigField "String", "OPENAI_ENDPOINT", "\"https://api.openai.com/v1/\""
2023-03-09 14:28:30 +00:00
buildConfigField "String", "OPENAI_PRIVACY", "\"https://openai.com/policies/privacy-policy\""
2024-03-27 08:03:44 +00:00
buildConfigField "String", "GEMINI_ENDPOINT", "\"https://generativelanguage.googleapis.com/v1beta/\""
2024-03-29 08:46:43 +00:00
buildConfigField "String", "GEMINI_PRIVACY", "\"https://support.google.com/gemini/answer/13594961\""
2024-04-26 06:58:33 +00:00
buildConfigField "String", "PWNED_ENDPOINT", "\"https://api.pwnedpasswords.com/\""
2024-04-26 19:14:23 +00:00
buildConfigField "String", "PWNED_URI", "\"https://haveibeenpwned.com/\""
2022-05-14 13:48:14 +00:00
buildConfigField "String", "FDROID", "\"https://f-droid.org/packages/%s/\""
2019-01-09 18:15:47 +00:00
}
2020-06-13 18:08:33 +00:00
fdroid {
2019-01-09 18:15:47 +00:00
dimension "all"
2023-02-04 09:33:46 +00:00
manifestPlaceholders.largeHeap = false
2023-12-02 15:50:29 +00:00
manifestPlaceholders.build_uuid = UUID.nameUUIDFromBytes(("fdroid" + getVersionCode() + getRevision()).getBytes()).toString();
2023-10-28 14:35:51 +00:00
externalNativeBuild {
cmake {
arguments "-DCMAKE_SHARED_LINKER_FLAGS=-Wl,--build-id=none"
// https://f-droid.org/docs/Reproducible_Builds/
// The build ID is a 160-bit SHA1 string computed over the elf header bits and section contents in the file.
// It is bundled in the elf file as an entry in the notes section.
// readelf -n ./app/build/intermediates/stripped_native_libs/xxxRelease/out/lib/armeabi-v7a/libfairemail.so
}
}
2022-01-02 08:04:32 +00:00
buildConfigField "boolean", "TEST_RELEASE", "false"
2019-02-07 19:49:14 +00:00
buildConfigField "boolean", "BETA_RELEASE", "true"
2020-06-13 18:08:33 +00:00
buildConfigField "boolean", "PLAY_STORE_RELEASE", "false"
2023-01-18 08:20:03 +00:00
buildConfigField "boolean", "FDROID_RELEASE", "true"
2021-06-28 14:39:55 +00:00
buildConfigField "boolean", "AMAZON_RELEASE", "false"
2020-06-13 18:08:33 +00:00
buildConfigField "String", "PRO_FEATURES_URI", "\"https://email.faircode.eu/donate/\""
2021-09-22 18:28:22 +00:00
buildConfigField "String", "CHANGELOG", "\"https://github.com/M66B/FairEmail/releases/\""
2020-10-02 09:02:14 +00:00
buildConfigField "String", "GITHUB_LATEST_API", "\"https://api.github.com/repos/M66B/FairEmail/releases/latest\""
buildConfigField "String", "GITHUB_LATEST_URI", "\"https://github.com/M66B/FairEmail/releases\""
2022-10-31 14:52:31 +00:00
buildConfigField "String", "BITBUCKET_DOWNLOADS_API", "\"https://api.bitbucket.org/2.0/repositories/M66B/fairemail-test/downloads\""
buildConfigField "String", "BITBUCKET_DOWNLOADS_URI", "\"https://bitbucket.org/M66B/fairemail-test/downloads/\""
buildConfigField "String", "ANNOUNCEMENT_URI", "\"\""
2023-01-12 16:33:16 +00:00
buildConfigField "String", "CLOUD_URI", "\"https://api.fairemail.net/sync\""
2023-01-22 11:43:33 +00:00
buildConfigField "String", "CLOUD_EMAIL", "\"cloud@in.faircode.eu\""
2023-11-28 19:35:21 +00:00
buildConfigField "String", "OPENAI_ENDPOINT", "\"https://api.openai.com/v1/\""
2023-03-09 14:28:30 +00:00
buildConfigField "String", "OPENAI_PRIVACY", "\"https://openai.com/policies/privacy-policy\""
2024-03-27 08:03:44 +00:00
buildConfigField "String", "GEMINI_ENDPOINT", "\"https://generativelanguage.googleapis.com/v1beta/\""
2024-03-29 08:46:43 +00:00
buildConfigField "String", "GEMINI_PRIVACY", "\"https://support.google.com/gemini/answer/13594961\""
2024-04-26 06:58:33 +00:00
buildConfigField "String", "PWNED_ENDPOINT", "\"https://api.pwnedpasswords.com/\""
2024-04-26 19:14:23 +00:00
buildConfigField "String", "PWNED_URI", "\"https://haveibeenpwned.com/\""
2022-05-14 13:48:14 +00:00
buildConfigField "String", "FDROID", "\"https://f-droid.org/packages/%s/\""
2018-08-02 13:33:06 +00:00
}
2020-06-13 18:08:33 +00:00
play {
2019-01-07 10:45:17 +00:00
dimension "all"
2022-04-08 10:20:39 +00:00
//minSdkVersion 23
2023-02-04 09:33:46 +00:00
manifestPlaceholders.largeHeap = false
2023-12-02 15:50:29 +00:00
manifestPlaceholders.build_uuid = UUID.nameUUIDFromBytes(("play" + getVersionCode() + getRevision()).getBytes()).toString();
2022-01-02 08:04:32 +00:00
buildConfigField "boolean", "TEST_RELEASE", "false"
2020-06-13 18:08:33 +00:00
buildConfigField "boolean", "BETA_RELEASE", "true"
2019-01-07 10:45:17 +00:00
buildConfigField "boolean", "PLAY_STORE_RELEASE", "true"
2023-01-18 08:20:03 +00:00
buildConfigField "boolean", "FDROID_RELEASE", "false"
2021-06-28 14:39:55 +00:00
buildConfigField "boolean", "AMAZON_RELEASE", "false"
buildConfigField "String", "PRO_FEATURES_URI", "\"https://email.faircode.eu/#pro\""
2021-09-22 18:28:22 +00:00
buildConfigField "String", "CHANGELOG", "\"\""
2021-06-28 14:39:55 +00:00
buildConfigField "String", "GITHUB_LATEST_API", "\"\""
buildConfigField "String", "GITHUB_LATEST_URI", "\"\""
2022-10-31 14:52:31 +00:00
buildConfigField "String", "BITBUCKET_DOWNLOADS_API", "\"\""
buildConfigField "String", "BITBUCKET_DOWNLOADS_URI", "\"\""
2023-01-08 11:29:30 +00:00
buildConfigField "String", "ANNOUNCEMENT_URI", "\"\""
2023-01-12 16:33:16 +00:00
buildConfigField "String", "CLOUD_URI", "\"\""
2023-01-22 11:43:33 +00:00
buildConfigField "String", "CLOUD_EMAIL", "\"\""
buildConfigField "String", "OPENAI_ENDPOINT", "\"\""
buildConfigField "String", "OPENAI_PRIVACY", "\"\""
buildConfigField "String", "GEMINI_ENDPOINT", "\"\""
buildConfigField "String", "GEMINI_PRIVACY", "\"\""
2024-04-27 17:53:10 +00:00
buildConfigField "String", "PWNED_ENDPOINT", "\"https://api.pwnedpasswords.com/\""
buildConfigField "String", "PWNED_URI", "\"https://haveibeenpwned.com/\""
2022-05-14 13:48:14 +00:00
buildConfigField "String", "FDROID", "\"\""
2023-12-09 11:42:04 +00:00
getIsDefault().set(true)
2021-06-28 14:39:55 +00:00
}
amazon {
dimension "all"
2022-04-03 11:27:37 +00:00
minSdkVersion 23
2023-02-04 09:33:46 +00:00
manifestPlaceholders.largeHeap = false
2023-12-02 15:50:29 +00:00
manifestPlaceholders.build_uuid = UUID.nameUUIDFromBytes(("amazon" + getVersionCode() + getRevision()).getBytes()).toString();
2022-01-02 08:04:32 +00:00
buildConfigField "boolean", "TEST_RELEASE", "false"
2021-06-28 14:39:55 +00:00
buildConfigField "boolean", "BETA_RELEASE", "true"
buildConfigField "boolean", "PLAY_STORE_RELEASE", "false"
2023-01-18 08:20:03 +00:00
buildConfigField "boolean", "FDROID_RELEASE", "false"
2021-06-28 14:39:55 +00:00
buildConfigField "boolean", "AMAZON_RELEASE", "true"
2019-02-07 19:49:14 +00:00
buildConfigField "String", "PRO_FEATURES_URI", "\"https://email.faircode.eu/#pro\""
2019-04-19 13:16:40 +00:00
buildConfigField "String", "CHANGELOG", "\"\""
2019-01-07 10:45:17 +00:00
buildConfigField "String", "GITHUB_LATEST_API", "\"\""
2020-10-02 09:02:14 +00:00
buildConfigField "String", "GITHUB_LATEST_URI", "\"\""
2022-10-31 14:52:31 +00:00
buildConfigField "String", "BITBUCKET_DOWNLOADS_API", "\"\""
buildConfigField "String", "BITBUCKET_DOWNLOADS_URI", "\"\""
2023-01-08 11:29:30 +00:00
buildConfigField "String", "ANNOUNCEMENT_URI", "\"\""
2023-01-12 16:33:16 +00:00
buildConfigField "String", "CLOUD_URI", "\"\""
2023-01-22 11:43:33 +00:00
buildConfigField "String", "CLOUD_EMAIL", "\"\""
2023-03-09 14:28:30 +00:00
buildConfigField "String", "OPENAI_ENDPOINT", "\"\""
buildConfigField "String", "OPENAI_PRIVACY", "\"\""
2024-03-27 08:03:44 +00:00
buildConfigField "String", "GEMINI_ENDPOINT", "\"\""
buildConfigField "String", "GEMINI_PRIVACY", "\"\""
2024-04-27 17:53:10 +00:00
buildConfigField "String", "PWNED_ENDPOINT", "\"https://api.pwnedpasswords.com/\""
buildConfigField "String", "PWNED_URI", "\"https://haveibeenpwned.com/\""
2022-05-14 13:48:14 +00:00
buildConfigField "String", "FDROID", "\"\""
2019-01-07 10:45:17 +00:00
}
2018-08-02 13:33:06 +00:00
}
variantFilter { variant ->
def flavors = variant.flavors*.name
2020-06-13 18:08:33 +00:00
// Builds: release, debug
2023-02-04 09:33:46 +00:00
// Flavors: github, large, fdroid, play
2020-06-13 18:08:33 +00:00
if (variant.buildType.name == "debug" &&
2023-12-09 11:42:04 +00:00
(flavors.contains("amazon") ||
flavors.contains("fdroid") ||
flavors.contains("large") ||
flavors.contains("play"))) {
setIgnore(true)
}
}
2020-10-15 12:01:13 +00:00
2020-10-16 20:30:11 +00:00
// https://stackoverflow.com/questions/28948538/
2023-12-24 16:05:41 +00:00
applicationVariants.configureEach { variant ->
2021-07-01 07:19:59 +00:00
if (variant.buildType.name == "debug")
variant.buildConfigField "String", "MXTOOLBOX_URI", "\"https://mxtoolbox.com\""
else
variant.buildConfigField "String", "MXTOOLBOX_URI", "\"\""
2023-12-09 22:27:22 +00:00
//if (variant.getBuildType().isMinifyEnabled())
// variant.assembleProvider.get().doLast {
// for (file in variant.getMappingFileProvider().get().files)
// if (file != null && file.exists()) {
// def dir = "${rootDir}/app/schemas/mapping"
// def name = "$archivesBaseName-$variant.baseName-$file.name"
// def target = new File(dir, name)
// if (!target.exists())
// copy {
// from file
// into dir
// rename { String fileName -> name }
// }
// }
// }
2020-10-16 20:30:11 +00:00
}
2020-10-15 12:01:13 +00:00
bugsnag {
// https://docs.bugsnag.com/build-integrations/gradle/
uploadJvmMappings = false // disables upload of ProGuard/DexGuard/R8 mapping files
uploadNdkMappings = false // disables upload of NDK mapping files
2020-10-15 12:01:13 +00:00
reportBuilds = false // disables upload of build metadata
overwrite = true
builderName = "M66B"
}
2018-08-02 13:33:06 +00:00
}
2023-12-24 16:05:41 +00:00
tasks.register('copyMarkdown', Copy) {
from "${rootDir}"
into "src/main/assets"
2021-09-17 17:57:10 +00:00
include "CHANGELOG.md"
include "SETUP.md"
2019-07-23 14:59:12 +00:00
include "ATTRIBUTION.md"
}
2021-09-18 19:56:47 +00:00
preBuild.dependsOn copyMarkdown
2023-12-24 16:05:41 +00:00
tasks.register('copyChangelog', Copy) {
2021-09-18 19:56:47 +00:00
from "${rootDir}"
into "../metadata/en-US/changelogs"
include "CHANGELOG.md"
rename "CHANGELOG.md", getVersionCode() + ".txt"
2022-06-25 11:29:57 +00:00
filter { String line ->
line
.replaceAll(".*Google Translate.*", "--------------------")
.replaceAll("### ", "")
.replaceAll("## ", "")
2023-01-22 07:44:44 +00:00
.replaceAll("<img.*/>", "")
2022-06-25 11:29:57 +00:00
.replaceAll("\\(https.*\\)", "")
.replaceAll("\\[", "")
.replaceAll("\\]", "")
}
2021-09-18 19:56:47 +00:00
}
preBuild.dependsOn copyChangelog
2023-12-24 16:05:41 +00:00
tasks.register('updateFAQ', Exec) {
2023-08-06 05:38:07 +00:00
workingDir "${rootDir}"
2024-03-28 09:20:20 +00:00
commandLine 'sh', '-c', 'pandoc --standalone --columns=10000 -M document-css=false --metadata-file FAQ.yaml FAQ.md -o index.html'
2023-08-06 05:38:07 +00:00
}
2023-12-24 16:05:41 +00:00
tasks.register('updatePrivacy', Exec) {
2023-11-18 06:52:39 +00:00
workingDir "${rootDir}"
2024-02-18 08:19:43 +00:00
commandLine 'sh', '-c', 'pandoc --standalone --metadata title="FairEmail" --metadata-file privacy/privacy.yaml PRIVACY.md -o privacy/index.html'
2023-11-18 06:52:39 +00:00
}
2023-12-24 16:05:41 +00:00
tasks.register('updateCrowdin', Exec) {
2023-12-01 06:51:23 +00:00
// https://crowdin.github.io/crowdin-cli/
// https://developer.crowdin.com/configuration-file/
workingDir "${rootDir}"
commandLine 'sh', '-c', 'crowdin download --branch=master'
}
2023-12-24 16:05:41 +00:00
tasks.register('downloadPSL', Download) {
2021-09-03 08:35:57 +00:00
// https://github.com/michel-kraemer/gradle-download-task
src "https://raw.githubusercontent.com/publicsuffix/list/master/public_suffix_list.dat"
dest "src/main/assets"
overwrite true
}
2023-12-24 16:05:41 +00:00
tasks.register('downloadBraveClean', Download) {
2023-12-24 16:02:16 +00:00
src "https://raw.githubusercontent.com/brave/adblock-lists/master/brave-lists/clean-urls.json"
dest "src/main/assets"
overwrite true
}
2023-12-24 16:05:41 +00:00
tasks.register('downloadBraveDebouce', Download) {
2023-12-24 16:02:16 +00:00
src "https://raw.githubusercontent.com/brave/adblock-lists/master/brave-lists/debounce.json"
dest "src/main/assets"
overwrite true
}
2023-12-29 08:47:15 +00:00
tasks.register('downloadAdguard', Download) {
src "https://raw.githubusercontent.com/AdguardTeam/FiltersRegistry/master/filters/filter_17_TrackParam/filter.txt"
dest "src/main/assets/adguard_filter.txt"
overwrite true
}
2023-12-24 16:05:41 +00:00
tasks.register('downloadBrave') {
2023-12-24 16:02:16 +00:00
dependsOn("downloadBraveClean", "downloadBraveDebouce")
}
2023-12-24 16:05:41 +00:00
tasks.register('extractSignature', Exec) {
2023-10-28 18:09:43 +00:00
workingDir "${rootDir}"
// sudo apt install apksigcopier
commandLine 'sh', '-c', 'mkdir -p metadata/eu.faircode.email/signatures/' + getVersionCode() + ' &&' +
'apksigcopier extract --v1-only=auto app/build/outputs/apk/fdroid/release/FairEmail-v1.' + getVersionCode() + getRevision() + '-fdroid-release.apk metadata/eu.faircode.email/signatures/' + getVersionCode()
}
2023-12-24 16:05:41 +00:00
tasks.register('upload') {
2023-03-07 16:04:28 +00:00
// ./gradlew upload -Ptarget=play-preview
2023-03-03 09:53:18 +00:00
doLast {
2023-03-07 16:04:28 +00:00
println "\nhttps://bitbucket.org/M66B/fairemail-test/downloads/FairEmail-v1." + getVersionCode() + getRevision() + "-" + target + "-release.apk\n"
2023-03-03 09:53:18 +00:00
exec {
workingDir "${buildDir}"
commandLine 'curl',
'-o', '/dev/null',
'-X', 'POST', "https://M66B:" + localProperties.getProperty("bb.pwd", "") + "@api.bitbucket.org/2.0/repositories/M66B/fairemail-test/downloads",
2023-03-07 16:04:28 +00:00
'--form', "files=@${buildDir}/outputs/apk/" + target.split('-')[0] + "/release/FairEmail-v1." + getVersionCode() + getRevision() + "-" + target.split('-')[0] + "-release.apk;" +
"filename=FairEmail-v1." + getVersionCode() + getRevision() + "-" + target + "-release.apk"
2023-03-03 09:53:18 +00:00
}
}
}
2018-08-02 13:33:06 +00:00
repositories {
2018-10-12 08:33:23 +00:00
google()
2021-05-04 18:42:24 +00:00
mavenCentral()
2019-04-19 06:31:00 +00:00
maven { url "https://jitpack.io" }
2020-02-27 10:55:20 +00:00
//maven { url "https://oss.sonatype.org/content/repositories/snapshots" }
2020-02-27 09:19:35 +00:00
//maven { url "https://jakarta.oss.sonatype.org/content/repositories/snapshots/" }
2018-08-02 13:33:06 +00:00
}
2023-12-24 16:05:41 +00:00
configurations.configureEach {
// Workaround https://issuetracker.google.com/issues/138441698
// Support @69c481c39a17d4e1e44a4eb298bb81c48f226eef
2019-09-06 09:01:08 +00:00
exclude group: "androidx.room", module: "room-runtime"
2023-04-01 07:42:20 +00:00
2023-12-22 14:44:49 +00:00
exclude group: "androidx.sqlite", module: "sqlite-framework"
2019-07-27 09:42:19 +00:00
// Workaround https://issuetracker.google.com/issues/134685570
2019-09-06 09:01:08 +00:00
exclude group: "androidx.lifecycle", module: "lifecycle-livedata"
2019-10-11 12:12:34 +00:00
exclude group: "androidx.lifecycle", module: "lifecycle-livedata-core"
// lifecycle-livedata: ComputableLiveData, MediatorLiveData, Transformations
// lifecycle-livedata-core: LiveData, MutableLiveData, Observer
// paging-runtime: AsyncPagedListDiffer, LivePagedListBuilder, PagedListAdapter, PagedStorageDiffHelper
2023-04-01 07:41:38 +00:00
exclude group: "androidx.emoji2", module: "emoji2"
2024-02-20 07:54:20 +00:00
// Markwon
exclude group: "com.atlassian.commonmark", module: "commonmark"
2019-06-29 19:18:24 +00:00
}
2023-12-24 16:05:41 +00:00
configurations.configureEach {
2021-09-14 07:05:11 +00:00
resolutionStrategy.eachDependency { details ->
2023-03-13 19:05:28 +00:00
if (details.requested.group == "androidx.room") {
2023-05-25 18:50:32 +00:00
//print("Pinning " + details.requested.group + ":" + details.requested.name + "\n")
2023-03-13 19:05:28 +00:00
details.useVersion "2.4.3"
} else if (details.requested.group == "androidx.lifecycle" &&
details.requested.name != "lifecycle-extensions") {
2023-05-25 18:50:32 +00:00
//print("Pinning " + details.requested.group + ":" + details.requested.name + "\n")
2024-01-11 08:52:58 +00:00
details.useVersion "2.7.0"
2023-03-13 19:05:28 +00:00
} else if (details.requested.group == "org.apache.poi") {
2023-05-25 18:50:32 +00:00
//print("Pinning " + details.requested.group + ":" + details.requested.name + "\n")
2021-09-14 07:05:11 +00:00
details.useVersion "3.17"
2023-03-13 19:05:28 +00:00
} else if (details.requested.group == "org.simplejavamail") {
2023-05-25 18:50:32 +00:00
//print("Pinning " + details.requested.group + ":" + details.requested.name + "\n")
2023-03-13 19:05:28 +00:00
details.useVersion "1.7.13"
2023-04-01 06:57:04 +00:00
} else if (details.requested.group == "com.google.flatbuffers") {
2023-05-25 18:50:32 +00:00
//print("Pinning " + details.requested.group + ":" + details.requested.name + "\n")
2023-04-01 06:57:04 +00:00
details.useVersion "2.0.0"
2021-09-14 07:05:11 +00:00
}
}
}
2018-08-02 13:33:06 +00:00
dependencies {
2021-06-28 14:39:55 +00:00
//implementation fileTree(dir: 'libs', include: ['*.jar'])
2018-08-02 13:33:06 +00:00
2023-12-31 16:31:49 +00:00
def desugar_version = "2.0.4"
2024-01-25 17:36:37 +00:00
def startup_version = "1.2.0-alpha02"
2024-04-04 06:11:11 +00:00
def annotation_version_experimental = "1.4.1"
2024-04-18 06:26:36 +00:00
def core_version = "1.13.0"
2023-07-28 05:49:48 +00:00
def appcompat_version = "1.6.1" // 1.7.0-alpha03
2023-12-13 19:19:17 +00:00
def emoji_version = "1.4.0" // 1.5.0-alpha01
2023-04-01 06:57:04 +00:00
def flatbuffers_version = "2.0.0"
2024-04-18 06:26:36 +00:00
def activity_version = " 1.9.0"
def fragment_version = "1.6.2" // 1.7.0-rc02
2024-04-04 06:11:11 +00:00
def windows_version = "1.2.0" // 1.3.0-beta01
def webkit_version = "1.10.0" // 1.11.0-rc01
2023-10-19 16:18:22 +00:00
def recyclerview_version = "1.3.2" // 1.4.0-alpha01
2023-10-04 20:23:37 +00:00
def coordinatorlayout_version = "1.2.0" // 1.3.0-alpha02
def constraintlayout_version = "2.1.4" // 2.2.0-alpha13
2024-01-03 20:49:33 +00:00
def material_version = "1.11.0" // 1.11.0-alpha01
2024-03-07 06:26:18 +00:00
def browser_version = "1.8.0"
2022-02-04 15:52:57 +00:00
def lbm_version = "1.1.0"
2020-07-26 06:55:59 +00:00
def swiperefresh_version = "1.2.0-alpha01"
2021-08-24 06:32:25 +00:00
def documentfile_version = "1.1.0-alpha01"
2024-04-18 06:26:36 +00:00
def lifecycle_version = "2.7.0" // 2.8.0-beta01
2020-08-23 10:55:03 +00:00
def lifecycle_extensions_version = "2.2.0"
2023-11-29 20:52:36 +00:00
def room_version = "2.4.3" // 2.5.2/2.6.1
2023-10-19 16:18:22 +00:00
def sqlite_version = "2.4.0"
2022-08-18 06:12:45 +00:00
def requery_version = "3.39.2"
2024-04-04 06:11:11 +00:00
def paging_version = "2.1.2" // 3.3.0-beta01
2023-08-24 05:50:49 +00:00
def preference_version = "1.2.1"
2024-04-18 06:26:36 +00:00
def work_version = "2.9.0" // 2.10.0-alpha02
2023-12-16 07:48:32 +00:00
def exif_version = "1.3.7"
2022-09-23 07:45:04 +00:00
def biometric_version = "1.2.0-alpha05"
2024-04-09 09:44:17 +00:00
def billingclient_version = "6.0.1" // 6.2.0
2024-01-25 17:39:09 +00:00
def playservicesbase_version = "18.3.0";
2023-12-30 13:22:24 +00:00
def transparency_version = "2.5.19"
2021-04-27 07:20:49 +00:00
def javamail_version = "1.6.7"
2023-12-31 10:14:24 +00:00
def jsoup_version = "1.17.2"
2024-01-25 17:25:19 +00:00
def jsonpath_version = "2.9.0"
2023-10-29 06:25:59 +00:00
def css_version = "0.9.30"
2020-04-20 13:01:05 +00:00
def jax_version = "2.3.0-jaxb-1.0.6"
2024-01-01 20:18:05 +00:00
def minidns_version = "1.0.4"
2018-10-28 12:49:13 +00:00
def openpgp_version = "12.0"
2019-03-27 09:48:20 +00:00
def badge_version = "1.1.22"
2023-12-31 10:34:04 +00:00
def bugsnag_version = "6.1.0"
def biweekly_version = "0.6.8"
2023-09-02 18:34:49 +00:00
def vcard_version = "0.12.1"
2022-07-19 11:35:43 +00:00
def relinker_version = "1.4.5"
2021-03-05 20:24:34 +00:00
def markwon_version = "4.6.2"
2024-02-20 07:54:20 +00:00
def commonmark_version = "0.21.0"
2023-12-31 11:36:33 +00:00
def bouncycastle_version = "1.77"
2019-12-08 19:15:33 +00:00
def colorpicker_version = "0.0.15"
2021-05-04 18:42:24 +00:00
def overscroll_version = "1.1.1"
2022-08-13 13:19:25 +00:00
def appauth_version = "0.11.1"
2020-03-20 18:12:18 +00:00
def jcharset_version = "2.1"
2021-03-05 20:24:34 +00:00
def apache_poi = "3.17" // Do not update
2022-02-11 13:06:27 +00:00
def outlook_parser_version = "1.7.13" // Do not update
2021-05-21 21:11:58 +00:00
def reactivestreams_version = "1.0.3"
def rxjava2_version = "2.2.21"
2021-07-12 21:37:29 +00:00
def svg_version = "1.4"
2023-12-31 11:23:45 +00:00
def compress_version = "1.25.0"
2023-09-20 19:52:42 +00:00
def ipaddress_version = "5.4.0"
2024-01-03 20:40:28 +00:00
def canary_version = "2.13"
2022-07-31 12:11:13 +00:00
def ws_version = "2.14"
2023-12-14 12:18:41 +00:00
def tinylog_version = "2.6.2"
2024-02-08 09:58:45 +00:00
def zxing_version = "3.5.3"
2024-04-17 10:53:07 +00:00
def evalex_version = "3.2.0"
2018-08-07 05:30:15 +00:00
2023-10-30 14:53:24 +00:00
// https://mvnrepository.com/artifact/com.android.tools/desugar_jdk_libs?repo=google
2023-12-31 16:31:49 +00:00
coreLibraryDesugaring "com.android.tools:desugar_jdk_libs:$desugar_version"
2023-10-30 14:53:24 +00:00
2021-05-19 13:46:01 +00:00
// https://developer.android.com/jetpack/androidx/releases/startup
implementation "androidx.startup:startup-runtime:$startup_version"
2019-03-27 13:50:47 +00:00
// https://developer.android.com/jetpack/androidx/releases/
2024-01-03 20:49:10 +00:00
// https://mvnrepository.com/artifact/com.google.code.findbugs/jsr305
2023-05-10 07:31:19 +00:00
fdroidImplementation "com.google.code.findbugs:jsr305:3.0.2"
2021-11-08 16:55:00 +00:00
implementation "androidx.annotation:annotation-experimental:$annotation_version_experimental"
2019-09-14 15:39:08 +00:00
// https://mvnrepository.com/artifact/androidx.core/core
implementation "androidx.core:core:$core_version"
2018-11-10 09:09:56 +00:00
// https://mvnrepository.com/artifact/androidx.appcompat/appcompat
2021-10-28 09:33:36 +00:00
// https://mvnrepository.com/artifact/androidx.emoji2/emoji2
2020-10-01 20:40:02 +00:00
// https://mvnrepository.com/artifact/androidx.activity/activity
2019-08-21 17:12:19 +00:00
// https://mvnrepository.com/artifact/androidx.fragment/fragment
2022-05-10 09:11:37 +00:00
// https://mvnrepository.com/artifact/androidx.window/window-java
2018-11-13 15:03:20 +00:00
implementation "androidx.appcompat:appcompat:$appcompat_version"
2023-04-01 06:57:04 +00:00
//implementation "androidx.emoji2:emoji2:$emoji_version"
implementation "com.google.flatbuffers:flatbuffers-java:$flatbuffers_version"
2020-10-01 20:40:02 +00:00
implementation "androidx.activity:activity:$activity_version"
2019-08-11 19:08:26 +00:00
implementation "androidx.fragment:fragment:$fragment_version"
2022-05-10 09:11:37 +00:00
implementation "androidx.window:window-java:$windows_version"
2018-11-10 09:09:56 +00:00
2021-01-23 14:08:22 +00:00
// https://developer.android.com/jetpack/androidx/releases/webkit
// https://mvnrepository.com/artifact/androidx.webkit/webkit
implementation "androidx.webkit:webkit:$webkit_version"
2020-04-20 14:58:16 +00:00
// https://mvnrepository.com/artifact/androidx.viewpager2/viewpager2
2020-05-19 09:10:59 +00:00
//implementation "androidx.viewpager2:viewpager2:1.1.0-alpha01"
2020-04-20 14:58:16 +00:00
2018-11-10 09:09:56 +00:00
// https://mvnrepository.com/artifact/androidx.recyclerview/recyclerview
// https://mvnrepository.com/artifact/androidx.recyclerview/recyclerview-selection
implementation "androidx.recyclerview:recyclerview:$recyclerview_version"
2021-05-08 06:16:36 +00:00
//implementation "androidx.recyclerview:recyclerview-selection:1.1.0" // 1.2.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
// https://github.com/material-components/material-components-android/releases
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
2019-09-14 11:30:34 +00:00
// https://mvnrepository.com/artifact/androidx.localbroadcastmanager/localbroadcastmanager
implementation "androidx.localbroadcastmanager:localbroadcastmanager:$lbm_version"
// https://mvnrepository.com/artifact/androidx.swiperefreshlayout/swiperefreshlayout
implementation "androidx.swiperefreshlayout:swiperefreshlayout:$swiperefresh_version"
// https://mvnrepository.com/artifact/androidx.documentfile/documentfile
implementation "androidx.documentfile:documentfile:$documentfile_version"
2018-11-10 09:09:56 +00:00
// https://mvnrepository.com/artifact/androidx.lifecycle/lifecycle-runtime
2019-07-06 08:46:15 +00:00
// https://mvnrepository.com/artifact/androidx.lifecycle/lifecycle-livedata
// https://mvnrepository.com/artifact/androidx.lifecycle/lifecycle-livedata-core
2023-01-11 18:43:27 +00:00
// https://mvnrepository.com/artifact/androidx.lifecycle/lifecycle-viewmodel-savedstate
2020-08-23 10:55:03 +00:00
// https://mvnrepository.com/artifact/androidx.lifecycle/lifecycle-compiler
implementation "androidx.lifecycle:lifecycle-runtime:$lifecycle_version"
implementation "androidx.lifecycle:lifecycle-livedata:$lifecycle_version"
implementation "androidx.lifecycle:lifecycle-livedata-core:$lifecycle_version"
2023-01-11 18:43:27 +00:00
implementation "androidx.lifecycle:lifecycle-viewmodel-savedstate:$lifecycle_version"
2018-08-23 09:48:27 +00:00
annotationProcessor "androidx.lifecycle:lifecycle-compiler:$lifecycle_version"
2020-08-23 10:55:03 +00:00
// https://mvnrepository.com/artifact/androidx.lifecycle/lifecycle-extensions
implementation "androidx.lifecycle:lifecycle-extensions:$lifecycle_extensions_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"
implementation "androidx.room:room-common:$room_version" // because of exclude
// https://mvnrepository.com/artifact/androidx.sqlite/sqlite-framework
2023-12-22 14:44:49 +00:00
//implementation "androidx.sqlite:sqlite-framework:$sqlite_version" // because of exclude
2018-08-23 09:48:27 +00:00
annotationProcessor "androidx.room:room-compiler:$room_version"
2021-04-27 07:26:28 +00:00
// https://www.sqlite.org/changes.html
// https://github.com/requery/sqlite-android/
2021-04-27 07:32:51 +00:00
// https://jitpack.io/#requery/sqlite-android
2022-09-24 07:22:13 +00:00
//implementation "com.github.requery:sqlite-android:$requery_version"
2022-09-26 07:01:55 +00:00
//implementation project(':sqlite-android')
2021-04-27 07:26:28 +00:00
2018-11-10 09:09:56 +00:00
// https://mvnrepository.com/artifact/androidx.paging/paging-runtime
2020-06-01 06:40:04 +00:00
// https://developer.android.com/jetpack/androidx/releases/paging
//implementation "androidx.paging:paging-runtime:$paging_version"
2019-09-14 11:44:19 +00:00
2019-03-15 13:54:25 +00:00
// https://mvnrepository.com/artifact/androidx.preference/preference
2022-05-11 18:03:58 +00:00
implementation("androidx.preference:preference:$preference_version") {
exclude group: "androidx.fragment", module: "fragment-ktx"
}
2019-03-15 13:54:25 +00:00
2019-09-14 11:44:19 +00:00
// https://mvnrepository.com/artifact/androidx.work/work-runtime
2019-03-27 13:50:47 +00:00
implementation "androidx.work:work-runtime:$work_version"
2023-06-09 15:00:41 +00:00
// implementation "com.google.guava:listenablefuture:1.0"
implementation "com.google.guava:guava:31.1-android" // ListenableFuture
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"
2019-07-10 15:58:26 +00:00
// https://mvnrepository.com/artifact/androidx.biometric/biometric
// https://developer.android.com/jetpack/androidx/releases/biometric
implementation "androidx.biometric:biometric:$biometric_version"
2018-11-10 09:09:56 +00:00
// https://developer.android.com/google/play/billing/billing_library_releases_notes
2020-06-13 16:51:15 +00:00
// https://android-developers.googleblog.com/2020/06/meet-google-play-billing-library.html
playImplementation "com.android.billingclient:billing:$billingclient_version"
2018-08-25 13:32:52 +00:00
2023-12-06 20:25:36 +00:00
// https://mvnrepository.com/artifact/com.google.android.gms/play-services-base
githubImplementation "com.google.android.gms:play-services-basement:$playservicesbase_version"
largeImplementation "com.google.android.gms:play-services-basement:$playservicesbase_version"
playImplementation "com.google.android.gms:play-services-basement:$playservicesbase_version"
2023-12-06 20:25:36 +00:00
2023-12-30 13:22:24 +00:00
// https://github.com/appmattus/certificatetransparency
2024-01-25 17:42:18 +00:00
// https://mvnrepository.com/artifact/com.appmattus.certificatetransparency/certificatetransparency-android
2023-12-30 13:22:24 +00:00
implementation "com.appmattus.certificatetransparency:certificatetransparency-android:$transparency_version"
2021-06-28 14:39:55 +00:00
// https://developer.amazon.com/docs/in-app-purchasing/iap-get-started.html
amazonImplementation files('lib/in-app-purchasing-2.0.76.jar')
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
2020-06-13 19:44:18 +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
2019-10-13 12:40:41 +00:00
// https://jsoup.org/news/
2020-06-27 09:17:10 +00:00
// https://mvnrepository.com/artifact/org.jsoup/jsoup
2018-08-07 05:30:15 +00:00
implementation "org.jsoup:jsoup:$jsoup_version"
2018-08-08 05:02:25 +00:00
2023-12-01 10:37:14 +00:00
// https://github.com/json-path/JsonPath
implementation "com.jayway.jsonpath:json-path:$jsonpath_version"
2020-04-20 13:01:05 +00:00
// http://cssparser.sourceforge.net/
// https://mvnrepository.com/artifact/net.sourceforge.cssparser/cssparser
implementation "net.sourceforge.cssparser:cssparser:$css_version"
// https://github.com/eclipse-ee4j/jaxb-ri
// https://mvnrepository.com/artifact/org.w3c/dom
implementation "org.w3c:dom:$jax_version"
2024-01-01 20:18:05 +00:00
// https://github.com/MiniDNS/minidns
// https://mvnrepository.com/artifact/org.minidns/minidns-hla
implementation "org.minidns:minidns-hla:$minidns_version"
2018-09-18 14:22:10 +00:00
2018-10-28 12:49:13 +00:00
// https://github.com/open-keychain/openpgp-api
2019-11-15 16:55:35 +00:00
// https://mvnrepository.com/artifact/org.sufficientlysecure/openpgp-api
2019-12-24 18:20:16 +00:00
//implementation "org.sufficientlysecure:openpgp-api:$openpgp_version"
implementation project(':openpgp-api')
2018-10-28 12:49:13 +00:00
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
implementation "me.leolin:ShortcutBadger:$badge_version"
2019-03-27 09:48:20 +00:00
2019-05-10 06:53:45 +00:00
// https://github.com/bugsnag/bugsnag-android
2021-01-17 09:55:48 +00:00
// https://mvnrepository.com/artifact/com.bugsnag/bugsnag-android
implementation("com.bugsnag:bugsnag-android:$bugsnag_version") {
2024-03-16 07:56:10 +00:00
//exclude group: "com.bugsnag", module: "bugsnag-plugin-android-anr"
exclude group: "com.bugsnag", module: "bugsnag-plugin-android-ndk"
2021-05-15 20:03:05 +00:00
exclude group: "com.bugsnag", module: "bugsnag-android-core"
2019-07-22 17:06:09 +00:00
}
2019-05-10 06:53:45 +00:00
2019-05-18 09:19:39 +00:00
// https://github.com/mangstadt/biweekly
2021-01-17 09:55:48 +00:00
// https://mvnrepository.com/artifact/net.sf.biweekly/biweekly
implementation("net.sf.biweekly:biweekly:$biweekly_version") {
exclude group: 'com.fasterxml.jackson.core', module: 'jackson-core'
exclude group: 'com.fasterxml.jackson.core', module: 'jackson-databind'
}
2024-01-07 18:06:04 +00:00
//api "com.fasterxml.jackson.core:jackson-core:2.16.1"
//api "com.fasterxml.jackson.core:jackson-databind:2.16.1"
2019-05-18 09:19:39 +00:00
// https://github.com/mangstadt/ez-vcard
2023-10-28 07:21:38 +00:00
implementation("com.googlecode.ez-vcard:ez-vcard:$vcard_version") {
exclude group: 'com.fasterxml.jackson.core', module: 'jackson-core'
exclude group: 'com.fasterxml.jackson.core', module: 'jackson-databind'
}
2019-07-17 10:21:17 +00:00
// https://github.com/KeepSafe/ReLinker
2021-05-04 18:42:24 +00:00
// https://mvnrepository.com/artifact/com.getkeepsafe.relinker/relinker
2022-09-27 11:30:35 +00:00
//implementation "com.getkeepsafe.relinker:relinker:$relinker_version"
2019-07-17 10:21:17 +00:00
// https://github.com/noties/Markwon
2021-01-17 09:55:48 +00:00
// https://mvnrepository.com/artifact/io.noties.markwon/core
implementation "io.noties.markwon:core:$markwon_version"
2021-06-26 09:34:56 +00:00
implementation "io.noties.markwon:html:$markwon_version"
2024-02-18 14:28:17 +00:00
implementation "io.noties.markwon:editor:$markwon_version"
2024-02-20 07:54:20 +00:00
// https://github.com/commonmark/commonmark-java
// https://mvnrepository.com/artifact/org.commonmark
implementation "org.commonmark:commonmark:$commonmark_version";
implementation "org.commonmark:commonmark-ext-ins:$commonmark_version";
implementation "org.commonmark:commonmark-ext-task-list-items:$commonmark_version";
2024-02-20 07:54:20 +00:00
implementation "org.commonmark:commonmark-ext-gfm-tables:$commonmark_version";
implementation "org.commonmark:commonmark-ext-gfm-strikethrough:$commonmark_version";
2024-02-20 09:59:17 +00:00
// https://github.com/vsch/flexmark-java
implementation "com.vladsch.flexmark:flexmark-html2md-converter:0.64.8"
2019-10-06 18:09:19 +00:00
// // https://github.com/QuadFlask/colorpicker
2023-01-19 19:04:52 +00:00
//implementation "com.github.QuadFlask:colorpicker:$colorpicker_version"
implementation project(':colorpicker')
2019-10-20 16:25:21 +00:00
2020-07-21 12:48:07 +00:00
// https://github.com/EverythingMe/overscroll-decor
2021-06-01 05:36:01 +00:00
// https://search.maven.org/artifact/io.github.everythingme/overscroll-decor-android
2021-05-04 18:42:24 +00:00
implementation "io.github.everythingme:overscroll-decor-android:$overscroll_version"
2020-07-21 12:48:07 +00:00
2020-04-15 17:23:02 +00:00
// https://www.bouncycastle.org/latest_releases.html
2024-01-25 07:05:24 +00:00
// https://mvnrepository.com/artifact/org.bouncycastle/bcpkix-jdk15to18
// https://mvnrepository.com/artifact/org.bouncycastle/bctls-jdk15to18
2019-12-03 16:26:05 +00:00
implementation "org.bouncycastle:bcpkix-jdk15to18:$bouncycastle_version"
2023-11-09 20:17:52 +00:00
implementation "org.bouncycastle:bctls-jdk15to18:$bouncycastle_version"
2019-12-20 11:20:50 +00:00
// https://github.com/openid/AppAuth-Android
2022-08-13 13:19:25 +00:00
// https://mvnrepository.com/artifact/net.openid/appauth
2019-12-20 11:20:50 +00:00
implementation "net.openid:appauth:$appauth_version"
2020-03-20 18:12:18 +00:00
// http://www.freeutils.net/source/jcharset/
2020-04-15 17:23:02 +00:00
// https://mvnrepository.com/artifact/net.freeutils/jcharset
2020-03-20 18:12:18 +00:00
implementation "net.freeutils:jcharset:$jcharset_version"
2020-10-17 19:05:37 +00:00
// https://poi.apache.org/components/hmef/index.html
// https://mvnrepository.com/artifact/org.apache.poi/poi-scratchpad
implementation "org.apache.poi:poi-scratchpad:$apache_poi"
2021-05-21 21:11:58 +00:00
2021-09-14 07:05:11 +00:00
// https://github.com/bbottema/outlook-message-parser
2022-02-04 16:45:14 +00:00
implementation("org.simplejavamail:outlook-message-parser:$outlook_parser_version") {
exclude group: "com.sun.activation", module: "jakarta.activation"
}
2021-09-14 07:05:11 +00:00
2021-05-21 21:11:58 +00:00
// https://mvnrepository.com/artifact/org.reactivestreams/reactive-streams
// https://mvnrepository.com/artifact/io.reactivex.rxjava2/rxjava
implementation "org.reactivestreams:reactive-streams:$reactivestreams_version"
implementation "io.reactivex.rxjava2:rxjava:$rxjava2_version"
2021-07-12 21:37:29 +00:00
// http://bigbadaboom.github.io/androidsvg/
implementation "com.caverock:androidsvg:$svg_version"
2022-03-11 11:20:39 +00:00
// https://commons.apache.org/proper/commons-compress/
// https://mvnrepository.com/artifact/org.apache.commons/commons-compress
implementation "org.apache.commons:commons-compress:$compress_version"
2022-04-12 19:16:04 +00:00
2022-05-11 10:10:40 +00:00
// https://seancfoley.github.io/IPAddress/
// https://mvnrepository.com/artifact/com.github.seancfoley/ipaddress
implementation "com.github.seancfoley:ipaddress:$ipaddress_version"
2022-07-06 18:48:41 +00:00
// https://mvnrepository.com/artifact/androidx.car.app/app?repo=google
2024-01-25 07:05:24 +00:00
// implementation "androidx.car.app:app:1.4.0-rc02"
2022-07-06 18:48:41 +00:00
2022-04-12 19:16:04 +00:00
// https://github.com/square/leakcanary
// https://square.github.io/leakcanary/getting_started/
2022-11-12 20:43:01 +00:00
// https://square.github.io/leakcanary/changelog/
2022-04-12 19:16:04 +00:00
// https://mvnrepository.com/artifact/com.squareup.leakcanary/leakcanary-android
2022-04-23 20:46:59 +00:00
debugImplementation "com.squareup.leakcanary:leakcanary-android:$canary_version"
2022-07-31 12:11:13 +00:00
// https://github.com/TakahikoKawasaki/nv-websocket-client
implementation "com.neovisionaries:nv-websocket-client:$ws_version"
2023-12-14 12:18:41 +00:00
// https://tinylog.org/v2/download/
// https://mvnrepository.com/artifact/org.tinylog
implementation "org.tinylog:tinylog-api:$tinylog_version"
implementation "org.tinylog:tinylog-impl:$tinylog_version"
2024-02-08 09:58:45 +00:00
// https://github.com/zxing/zxing
// https://mvnrepository.com/artifact/com.google.zxing/core
implementation "com.google.zxing:core:$zxing_version"
2024-04-17 10:53:07 +00:00
// https://github.com/ezylang/EvalEx
implementation "com.ezylang:EvalEx:$evalex_version"
2018-08-02 13:33:06 +00:00
}