mirror of https://github.com/tasks/tasks
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
264 lines
11 KiB
Kotlin
264 lines
11 KiB
Kotlin
plugins {
|
|
id("com.android.application")
|
|
id("checkstyle")
|
|
id("com.google.firebase.crashlytics")
|
|
kotlin("android")
|
|
kotlin("kapt")
|
|
id("com.cookpad.android.plugin.license-tools") version "1.2.6"
|
|
id("com.github.ben-manes.versions") version "0.38.0"
|
|
id("com.vanniktech.android.junit.jacoco") version "0.16.0"
|
|
id("dagger.hilt.android.plugin")
|
|
}
|
|
|
|
repositories {
|
|
mavenCentral()
|
|
google()
|
|
maven {
|
|
url = uri("https://jitpack.io")
|
|
content {
|
|
includeGroup("com.gitlab.abaker")
|
|
includeModule("com.gitlab.bitfireAT", "cert4android")
|
|
includeModule("com.github.dmfs.opentasks", "opentasks-provider")
|
|
includeModule("com.github.QuadFlask", "colorpicker")
|
|
}
|
|
}
|
|
jcenter {
|
|
content {
|
|
includeModule("com.twofortyfouram", "android-plugin-api-for-locale")
|
|
}
|
|
}
|
|
}
|
|
|
|
android {
|
|
val commonTest = "src/commonTest/java"
|
|
sourceSets["test"].java.srcDir(commonTest)
|
|
sourceSets["androidTest"].java.srcDirs("src/androidTest/java", commonTest)
|
|
|
|
bundle {
|
|
language {
|
|
enableSplit = false
|
|
}
|
|
}
|
|
|
|
buildFeatures {
|
|
viewBinding = true
|
|
dataBinding = true
|
|
compose = true
|
|
}
|
|
|
|
lint {
|
|
disable("InvalidPeriodicWorkRequestInterval")
|
|
lintConfig = file("lint.xml")
|
|
textOutput("stdout")
|
|
textReport = true
|
|
}
|
|
|
|
compileSdkVersion(Versions.targetSdk)
|
|
|
|
defaultConfig {
|
|
testApplicationId = "org.tasks.test"
|
|
applicationId = "org.tasks"
|
|
versionCode = 111004
|
|
versionName = "11.10"
|
|
targetSdkVersion(Versions.targetSdk)
|
|
minSdkVersion(Versions.minSdk)
|
|
testInstrumentationRunner = "org.tasks.TestRunner"
|
|
|
|
kapt {
|
|
arguments {
|
|
arg("room.schemaLocation", "$projectDir/schemas")
|
|
arg("room.incremental", "true")
|
|
}
|
|
}
|
|
}
|
|
|
|
signingConfigs {
|
|
create("release") {
|
|
val tasksKeyAlias: String? by project
|
|
val tasksStoreFile: String? by project
|
|
val tasksStorePassword: String? by project
|
|
val tasksKeyPassword: String? by project
|
|
|
|
keyAlias = tasksKeyAlias
|
|
storeFile = file(tasksStoreFile ?: "none")
|
|
storePassword = tasksStorePassword
|
|
keyPassword = tasksKeyPassword
|
|
}
|
|
}
|
|
|
|
compileOptions {
|
|
isCoreLibraryDesugaringEnabled = true
|
|
sourceCompatibility = JavaVersion.VERSION_1_8
|
|
targetCompatibility = JavaVersion.VERSION_1_8
|
|
}
|
|
|
|
composeOptions {
|
|
kotlinCompilerExtensionVersion = Versions.compose
|
|
}
|
|
|
|
kotlinOptions {
|
|
jvmTarget = "1.8"
|
|
}
|
|
|
|
@Suppress("LocalVariableName")
|
|
buildTypes {
|
|
getByName("debug") {
|
|
firebaseCrashlytics {
|
|
mappingFileUploadEnabled = false
|
|
}
|
|
val tasks_mapbox_key_debug: String? by project
|
|
val tasks_google_key_debug: String? by project
|
|
val tasks_caldav_url: String? by project
|
|
resValue("string", "mapbox_key", tasks_mapbox_key_debug ?: "")
|
|
resValue("string", "google_key", tasks_google_key_debug ?: "")
|
|
resValue("string", "tasks_caldav_url", tasks_caldav_url ?: "https://caldav.tasks.org")
|
|
resValue("string", "tasks_nominatim_url", tasks_caldav_url ?: "https://nominatim.tasks.org")
|
|
resValue("string", "tasks_places_url", tasks_caldav_url ?: "https://places.tasks.org")
|
|
isTestCoverageEnabled = project.hasProperty("coverage")
|
|
}
|
|
getByName("release") {
|
|
val tasks_mapbox_key: String? by project
|
|
val tasks_google_key: String? by project
|
|
resValue("string", "mapbox_key", tasks_mapbox_key ?: "")
|
|
resValue("string", "google_key", tasks_google_key ?: "")
|
|
isMinifyEnabled = true
|
|
proguardFiles(getDefaultProguardFile("proguard-android.txt"), "proguard.pro")
|
|
signingConfig = signingConfigs.getByName("release")
|
|
}
|
|
}
|
|
|
|
flavorDimensions("store")
|
|
|
|
productFlavors {
|
|
create("generic") {
|
|
dimension = "store"
|
|
}
|
|
create("googleplay") {
|
|
dimension = "store"
|
|
}
|
|
}
|
|
|
|
packagingOptions {
|
|
exclude("META-INF/*.kotlin_module")
|
|
}
|
|
}
|
|
|
|
configure<CheckstyleExtension> {
|
|
configFile = project.file("google_checks.xml")
|
|
toolVersion = "8.16"
|
|
}
|
|
|
|
configurations.all {
|
|
exclude(group = "org.apache.httpcomponents")
|
|
exclude(group = "org.checkerframework")
|
|
exclude(group = "com.google.code.findbugs")
|
|
exclude(group = "com.google.errorprone")
|
|
exclude(group = "com.google.j2objc")
|
|
exclude(group = "com.google.http-client", module = "google-http-client-apache-v2")
|
|
exclude(group = "com.google.http-client", module = "google-http-client-jackson2")
|
|
}
|
|
|
|
val genericImplementation by configurations
|
|
val googleplayImplementation by configurations
|
|
|
|
dependencies {
|
|
coreLibraryDesugaring("com.android.tools:desugar_jdk_libs:1.1.5")
|
|
implementation("com.gitlab.abaker:dav4jvm:deb2c9aef8")
|
|
implementation("com.gitlab.abaker:ical4android:0e928b567c")
|
|
implementation("com.gitlab.bitfireAT:cert4android:26a91a729f")
|
|
implementation("com.github.dmfs.opentasks:opentasks-provider:1.2.4") {
|
|
exclude("com.github.dmfs.opentasks", "opentasks-contract")
|
|
}
|
|
|
|
implementation("com.google.dagger:hilt-android:${Versions.hilt}")
|
|
kapt("com.google.dagger:hilt-compiler:${Versions.hilt}")
|
|
kapt("androidx.hilt:hilt-compiler:${Versions.hilt_androidx}")
|
|
implementation("androidx.hilt:hilt-work:${Versions.hilt_androidx}")
|
|
|
|
implementation("androidx.fragment:fragment-ktx:1.3.2")
|
|
implementation("androidx.lifecycle:lifecycle-runtime-ktx:${Versions.lifecycle}")
|
|
implementation("androidx.lifecycle:lifecycle-viewmodel-ktx:${Versions.lifecycle}")
|
|
implementation("androidx.room:room-ktx:${Versions.room}")
|
|
kapt("androidx.room:room-compiler:${Versions.room}")
|
|
implementation("androidx.appcompat:appcompat:1.3.0-rc01")
|
|
implementation("io.reactivex.rxjava2:rxandroid:2.1.1")
|
|
implementation("androidx.paging:paging-runtime:2.1.2")
|
|
implementation("io.noties.markwon:core:${Versions.markwon}")
|
|
implementation("io.noties.markwon:editor:${Versions.markwon}")
|
|
implementation("io.noties.markwon:ext-tasklist:${Versions.markwon}")
|
|
implementation("io.noties.markwon:ext-strikethrough:${Versions.markwon}")
|
|
implementation("io.noties.markwon:ext-tables:${Versions.markwon}")
|
|
implementation("io.noties.markwon:linkify:${Versions.markwon}")
|
|
|
|
debugImplementation("com.facebook.flipper:flipper:${Versions.flipper}")
|
|
debugImplementation("com.facebook.flipper:flipper-network-plugin:${Versions.flipper}")
|
|
debugImplementation("com.facebook.soloader:soloader:0.10.1")
|
|
debugImplementation("com.squareup.leakcanary:leakcanary-android:${Versions.leakcanary}")
|
|
debugImplementation("androidx.compose.ui:ui-tooling:${Versions.compose}")
|
|
debugImplementation("org.jetbrains.kotlin:kotlin-reflect:${Versions.kotlin}")
|
|
|
|
implementation("org.jetbrains.kotlin:kotlin-stdlib:${Versions.kotlin}")
|
|
implementation("org.jetbrains.kotlinx:kotlinx-collections-immutable-jvm:0.3.4")
|
|
implementation("com.squareup.okhttp3:okhttp:${Versions.okhttp}")
|
|
implementation("com.google.code.gson:gson:2.8.6")
|
|
implementation("com.google.android.material:material:1.3.0")
|
|
implementation("androidx.constraintlayout:constraintlayout:2.1.0-beta01")
|
|
implementation("androidx.swiperefreshlayout:swiperefreshlayout:1.1.0")
|
|
implementation("androidx.preference:preference:1.1.1")
|
|
implementation("com.jakewharton.timber:timber:4.7.1")
|
|
implementation("com.google.android.apps.dashclock:dashclock-api:2.0.0")
|
|
implementation("com.twofortyfouram:android-plugin-api-for-locale:1.0.2") {
|
|
isTransitive = false
|
|
}
|
|
implementation("com.rubiconproject.oss:jchronic:0.2.6") {
|
|
isTransitive = false
|
|
}
|
|
implementation("me.leolin:ShortcutBadger:1.1.22@aar")
|
|
implementation("com.google.apis:google-api-services-tasks:v1-rev20210109-1.31.0")
|
|
implementation("com.google.apis:google-api-services-drive:v3-rev20210419-1.31.0")
|
|
implementation("com.google.auth:google-auth-library-oauth2-http:0.25.5")
|
|
implementation("androidx.work:work-runtime:${Versions.work}")
|
|
implementation("androidx.work:work-runtime-ktx:${Versions.work}")
|
|
implementation("com.etesync:journalmanager:1.1.1")
|
|
implementation("com.etebase:client:2.3.2")
|
|
implementation("com.github.QuadFlask:colorpicker:0.0.15")
|
|
implementation("net.openid:appauth:0.8.1")
|
|
implementation("org.osmdroid:osmdroid-android:6.1.10@aar")
|
|
|
|
implementation("androidx.compose.ui:ui:${Versions.compose}")
|
|
implementation("androidx.compose.foundation:foundation:${Versions.compose}")
|
|
implementation("androidx.compose.material:material:${Versions.compose}")
|
|
implementation("androidx.compose.runtime:runtime-livedata:${Versions.compose}")
|
|
implementation("com.google.android.material:compose-theme-adapter:1.0.0-beta05")
|
|
implementation("androidx.activity:activity-compose:1.3.0-alpha07")
|
|
releaseCompileOnly("androidx.compose.ui:ui-tooling:${Versions.compose}")
|
|
|
|
googleplayImplementation("com.google.firebase:firebase-crashlytics:${Versions.crashlytics}")
|
|
googleplayImplementation("com.google.firebase:firebase-analytics:${Versions.analytics}") {
|
|
exclude("com.google.android.gms", "play-services-ads-identifier")
|
|
}
|
|
googleplayImplementation("com.google.firebase:firebase-config-ktx:${Versions.remote_config}")
|
|
googleplayImplementation("com.google.android.gms:play-services-location:18.0.0")
|
|
googleplayImplementation("com.google.android.gms:play-services-maps:17.0.1")
|
|
googleplayImplementation("com.android.billingclient:billing-ktx:3.0.3")
|
|
|
|
androidTestImplementation("com.google.dagger:hilt-android-testing:${Versions.hilt}")
|
|
kaptAndroidTest("com.google.dagger:hilt-compiler:${Versions.hilt}")
|
|
kaptAndroidTest("androidx.hilt:hilt-compiler:${Versions.hilt_androidx}")
|
|
androidTestImplementation("org.mockito:mockito-android:${Versions.mockito}")
|
|
androidTestImplementation("com.natpryce:make-it-easy:${Versions.make_it_easy}")
|
|
androidTestImplementation("androidx.test:runner:${Versions.androidx_test}")
|
|
androidTestImplementation("androidx.test:rules:${Versions.androidx_test}")
|
|
androidTestImplementation("androidx.test.ext:junit:1.1.2")
|
|
androidTestImplementation("com.squareup.okhttp3:mockwebserver:${Versions.okhttp}")
|
|
|
|
testImplementation("junit:junit:4.13.2")
|
|
testImplementation("org.jetbrains.kotlinx:kotlinx-coroutines-test:1.4.3")
|
|
testImplementation("com.natpryce:make-it-easy:${Versions.make_it_easy}")
|
|
testImplementation("androidx.test:core:${Versions.androidx_test}")
|
|
testImplementation("org.mockito:mockito-core:${Versions.mockito}")
|
|
testImplementation("org.ogce:xpp3:1.1.6")
|
|
}
|
|
|
|
apply(mapOf("plugin" to "com.google.gms.google-services"))
|