2016-01-10 12:26:04 +00:00
|
|
|
apply plugin: 'com.android.application'
|
2016-11-03 21:46:37 +00:00
|
|
|
apply plugin: 'kotlin-android'
|
|
|
|
apply plugin: 'kotlin-android-extensions'
|
2018-05-18 10:12:55 +00:00
|
|
|
apply plugin: 'kotlin-kapt'
|
2016-01-10 12:26:04 +00:00
|
|
|
|
|
|
|
android {
|
2018-09-10 21:48:05 +00:00
|
|
|
compileSdkVersion 28
|
2018-09-29 20:28:48 +00:00
|
|
|
buildToolsVersion "28.0.3"
|
2016-01-10 12:26:04 +00:00
|
|
|
|
|
|
|
defaultConfig {
|
2016-02-25 20:58:06 +00:00
|
|
|
applicationId "com.simplemobiletools.musicplayer"
|
2018-10-12 18:38:06 +00:00
|
|
|
minSdkVersion 21
|
2018-09-10 21:48:05 +00:00
|
|
|
targetSdkVersion 28
|
2018-10-25 18:41:04 +00:00
|
|
|
versionCode 53
|
|
|
|
versionName "5.0.3"
|
2017-11-29 23:01:54 +00:00
|
|
|
setProperty("archivesBaseName", "music-player")
|
2016-01-10 12:26:04 +00:00
|
|
|
}
|
2016-04-25 21:08:24 +00:00
|
|
|
|
|
|
|
signingConfigs {
|
|
|
|
release
|
|
|
|
}
|
|
|
|
|
2016-01-10 12:26:04 +00:00
|
|
|
buildTypes {
|
2018-01-30 21:02:21 +00:00
|
|
|
debug {
|
2018-05-21 18:49:48 +00:00
|
|
|
applicationIdSuffix ".debug"
|
2018-01-30 21:02:21 +00:00
|
|
|
}
|
2016-01-10 12:26:04 +00:00
|
|
|
release {
|
2016-04-25 21:08:24 +00:00
|
|
|
minifyEnabled true
|
2016-01-10 12:26:04 +00:00
|
|
|
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
|
2016-04-25 21:08:24 +00:00
|
|
|
signingConfig signingConfigs.release
|
2016-01-10 12:26:04 +00:00
|
|
|
}
|
|
|
|
}
|
2016-11-03 21:46:37 +00:00
|
|
|
|
|
|
|
sourceSets {
|
|
|
|
main.java.srcDirs += 'src/main/kotlin'
|
|
|
|
}
|
2017-09-20 20:16:36 +00:00
|
|
|
|
|
|
|
lintOptions {
|
|
|
|
checkReleaseBuilds false
|
|
|
|
abortOnError false
|
|
|
|
}
|
2016-01-10 12:26:04 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
dependencies {
|
2018-10-25 17:07:44 +00:00
|
|
|
implementation 'com.simplemobiletools:commons:5.2.8'
|
2017-11-29 23:01:54 +00:00
|
|
|
implementation 'com.squareup:otto:1.3.8'
|
2018-10-19 15:02:01 +00:00
|
|
|
implementation 'com.squareup.picasso:picasso:2.71828'
|
2018-10-19 15:23:15 +00:00
|
|
|
implementation 'androidx.media:media:1.0.0'
|
2017-11-29 23:07:30 +00:00
|
|
|
|
2018-10-12 18:38:06 +00:00
|
|
|
kapt "androidx.room:room-compiler:2.0.0"
|
|
|
|
implementation "androidx.room:room-runtime:2.0.0"
|
|
|
|
annotationProcessor "androidx.room:room-compiler:2.0.0"
|
2016-01-10 12:26:04 +00:00
|
|
|
}
|
2016-04-25 21:08:24 +00:00
|
|
|
|
2017-11-29 23:01:54 +00:00
|
|
|
Properties props = new Properties()
|
2016-04-25 21:08:24 +00:00
|
|
|
def propFile = new File('signing.properties')
|
|
|
|
if (propFile.canRead()) {
|
|
|
|
props.load(new FileInputStream(propFile))
|
|
|
|
|
2017-01-23 22:19:45 +00:00
|
|
|
if (props != null && props.containsKey('STORE_FILE') && props.containsKey('KEY_ALIAS') && props.containsKey('PASSWORD')) {
|
2016-04-25 21:08:24 +00:00
|
|
|
android.signingConfigs.release.storeFile = file(props['STORE_FILE'])
|
2017-01-23 22:19:45 +00:00
|
|
|
android.signingConfigs.release.storePassword = props['PASSWORD']
|
2016-04-25 21:08:24 +00:00
|
|
|
android.signingConfigs.release.keyAlias = props['KEY_ALIAS']
|
2017-01-23 22:19:45 +00:00
|
|
|
android.signingConfigs.release.keyPassword = props['PASSWORD']
|
2016-04-25 21:08:24 +00:00
|
|
|
} else {
|
|
|
|
println 'signing.properties found but some entries are missing'
|
|
|
|
android.buildTypes.release.signingConfig = null
|
|
|
|
}
|
|
|
|
} else {
|
|
|
|
println 'signing.properties not found'
|
|
|
|
android.buildTypes.release.signingConfig = null
|
|
|
|
}
|