58 lines
1.8 KiB
Groovy
58 lines
1.8 KiB
Groovy
apply plugin: 'com.android.application'
|
|
apply plugin: 'com.github.axet.dxplugin'
|
|
|
|
android {
|
|
compileSdkVersion 25
|
|
buildToolsVersion '28.0.3'
|
|
|
|
defaultConfig {
|
|
applicationId "com.github.axet.audiorecorder"
|
|
minSdkVersion 9
|
|
targetSdkVersion 26
|
|
versionCode 317
|
|
versionName "3.2.59"
|
|
}
|
|
signingConfigs {
|
|
release {
|
|
storeFile file(prop('RELEASE_STORE_FILE')?:'none')
|
|
storePassword prop('RELEASE_STORE_PASSWORD')
|
|
keyAlias prop('RELEASE_KEY_ALIAS')
|
|
keyPassword prop('RELEASE_KEY_PASSWORD')
|
|
}
|
|
}
|
|
buildTypes {
|
|
debug {
|
|
debuggable true
|
|
jniDebuggable true
|
|
minifyEnabled false
|
|
}
|
|
release {
|
|
shrinkResources true
|
|
minifyEnabled true
|
|
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
|
|
signingConfig signingConfigs.release
|
|
}
|
|
}
|
|
applicationVariants.all { variant ->
|
|
variant.outputs.each { output ->
|
|
output.outputFileName = org.apache.commons.io.FilenameUtils.getExtension(android.defaultConfig.applicationId) + "-" + (output.getFilter(com.android.build.OutputFile.ABI) ?: "universal") + "-" + android.defaultConfig.versionName + "-" + variant.buildType.name + ".apk"
|
|
}
|
|
}
|
|
bundle {
|
|
abi {
|
|
enableSplit = true
|
|
}
|
|
}
|
|
splits {
|
|
abi {
|
|
enable false
|
|
universalApk true
|
|
}
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
testImplementation 'junit:junit:4.12'
|
|
implementation 'com.github.axet:android-audio-library:1.0.150' // implementation project(':android-audio-library')
|
|
assets('com.google.android.exoplayer:exoplayer:2.7.3') { exclude group: 'com.android.support' }
|
|
}
|