blob: 4d5fb688358210719934d59e73f5f92bf06a1099 [file] [log] [blame]
plugins {
id 'com.android.application'
id 'org.jetbrains.kotlin.android'
id 'org.ec4j.editorconfig'
}
editorconfig {
excludes = ['external/**', 'metadata/**', '**/*.webp']
}
android {
namespace 'ws.xsoh.etar'
testNamespace 'com.android.calendar.tests'
compileSdk 34
defaultConfig {
minSdk 26
targetSdk 34
versionCode 42
versionName "1.0.42"
applicationId "ws.xsoh.etar"
testInstrumentationRunner 'androidx.test.runner.AndroidJUnitRunner'
}
sourceSets {
main.java.srcDirs += '../external/ex/common/java'
}
buildTypes {
release {
// TODO: could be enabled for ProGuard minimization
minifyEnabled false
}
debug {
minifyEnabled false
applicationIdSuffix ".debug"
}
}
/*
* To sign release build, create file gradle.properties in ~/.gradle/ with this content:
*
* signingStoreLocation=/home/key.store
* signingStorePassword=xxx
* signingKeyAlias=alias
* signingKeyPassword=xxx
*/
if (project.hasProperty('signingStoreLocation') &&
project.hasProperty('signingStorePassword') &&
project.hasProperty('signingKeyAlias') &&
project.hasProperty('signingKeyPassword')) {
println "Found sign properties in gradle.properties! Signing build…"
signingConfigs {
release {
storeFile file(signingStoreLocation)
storePassword signingStorePassword
keyAlias signingKeyAlias
keyPassword signingKeyPassword
}
}
buildTypes.release.signingConfig = signingConfigs.release
} else {
buildTypes.release.signingConfig = null
}
lint {
checkReleaseBuilds false
// Or, if you prefer, you can continue to check for errors in release builds,
// but continue the build even when errors are found:
abortOnError false
}
compileOptions {
coreLibraryDesugaringEnabled true
sourceCompatibility JavaVersion.VERSION_11
targetCompatibility JavaVersion.VERSION_11
}
kotlinOptions {
jvmTarget = "11"
}
useLibrary 'android.test.base'
useLibrary 'android.test.mock'
}
dependencies {
// Core
implementation 'androidx.core:core-ktx:1.12.0'
implementation fileTree(include: ['*.jar', '*.aar'], dir: 'libs')
implementation 'androidx.preference:preference:1.2.1'
implementation 'androidx.appcompat:appcompat:1.6.1'
implementation 'androidx.constraintlayout:constraintlayout:2.1.4'
implementation 'com.google.android.material:material:1.11.0'
testImplementation 'junit:junit:4.13.2'
coreLibraryDesugaring 'com.android.tools:desugar_jdk_libs:2.0.4'
// Coroutines
def coroutines_version = "1.7.3"
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-core:$coroutines_version"
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-android:$coroutines_version"
// https://mvnrepository.com/artifact/org.dmfs/lib-recur
implementation 'org.dmfs:lib-recur:0.15.0'
}
ext.targetSdk = android.defaultConfig.targetSdk
apply from: 'generatebp.gradle.kts'
preBuild.dependsOn (":aarGen")