Simple-Voice-Recorder/app/build.gradle

72 lines
2 KiB
Groovy
Raw Normal View History

apply plugin: 'com.android.application'
apply plugin: 'kotlin-android'
apply plugin: 'kotlin-android-extensions'
2020-03-30 19:28:12 +00:00
def keystorePropertiesFile = rootProject.file("keystore.properties")
def keystoreProperties = new Properties()
if (keystorePropertiesFile.exists()) {
keystoreProperties.load(new FileInputStream(keystorePropertiesFile))
}
android {
2022-04-13 09:39:51 +00:00
compileSdkVersion 31
defaultConfig {
applicationId "com.simplemobiletools.voicerecorder"
minSdkVersion 21
2022-04-13 09:39:51 +00:00
targetSdkVersion 31
2022-05-20 20:29:22 +00:00
versionCode 22
versionName "5.7.1"
setProperty("archivesBaseName", "voice-recorder")
vectorDrawables.useSupportLibrary = true
}
2020-03-30 19:28:12 +00:00
signingConfigs {
if (keystorePropertiesFile.exists()) {
release {
keyAlias keystoreProperties['keyAlias']
keyPassword keystoreProperties['keyPassword']
storeFile file(keystoreProperties['storeFile'])
storePassword keystoreProperties['storePassword']
}
}
}
buildTypes {
debug {
applicationIdSuffix ".debug"
}
release {
2022-02-10 21:13:55 +00:00
minifyEnabled true
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
2020-03-30 19:28:12 +00:00
if (keystorePropertiesFile.exists()) {
signingConfig signingConfigs.release
}
}
}
2022-01-03 21:58:02 +00:00
flavorDimensions "variants"
productFlavors {
2022-02-02 21:45:22 +00:00
core {}
2022-01-03 21:58:02 +00:00
fdroid {}
}
sourceSets {
main.java.srcDirs += 'src/main/kotlin'
}
lintOptions {
checkReleaseBuilds false
abortOnError false
}
}
dependencies {
2022-05-20 19:46:24 +00:00
implementation 'com.github.SimpleMobileTools:Simple-Commons:e0671f01ce'
implementation 'org.greenrobot:eventbus:3.3.1'
2021-12-07 10:19:20 +00:00
implementation 'com.github.Armen101:AudioRecordView:1.0.4'
implementation 'androidx.documentfile:documentfile:1.0.1'
implementation 'androidx.swiperefreshlayout:swiperefreshlayout:1.1.0'
2022-05-20 19:46:24 +00:00
implementation 'androidx.constraintlayout:constraintlayout:2.1.4'
}