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
|
|
|
|
2019-03-10 21:11:41 +00:00
|
|
|
def keystorePropertiesFile = rootProject.file("keystore.properties")
|
|
|
|
def keystoreProperties = new Properties()
|
2019-12-19 20:58:21 +00:00
|
|
|
if (keystorePropertiesFile.exists()) {
|
|
|
|
keystoreProperties.load(new FileInputStream(keystorePropertiesFile))
|
|
|
|
}
|
2019-03-10 21:11:41 +00:00
|
|
|
|
2016-01-10 12:26:04 +00:00
|
|
|
android {
|
2022-08-29 10:49:48 +00:00
|
|
|
compileSdkVersion 33
|
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
|
2022-08-29 10:49:48 +00:00
|
|
|
targetSdkVersion 33
|
2022-07-15 15:47:08 +00:00
|
|
|
versionCode 102
|
|
|
|
versionName "5.13.1"
|
2017-11-29 23:01:54 +00:00
|
|
|
setProperty("archivesBaseName", "music-player")
|
2019-08-15 21:13:08 +00:00
|
|
|
vectorDrawables.useSupportLibrary = true
|
2016-01-10 12:26:04 +00:00
|
|
|
}
|
2016-04-25 21:08:24 +00:00
|
|
|
|
|
|
|
signingConfigs {
|
2019-12-19 20:58:21 +00:00
|
|
|
if (keystorePropertiesFile.exists()) {
|
|
|
|
release {
|
|
|
|
keyAlias keystoreProperties['keyAlias']
|
|
|
|
keyPassword keystoreProperties['keyPassword']
|
|
|
|
storeFile file(keystoreProperties['storeFile'])
|
|
|
|
storePassword keystoreProperties['storePassword']
|
|
|
|
}
|
2019-03-10 21:11:41 +00:00
|
|
|
}
|
2016-04-25 21:08:24 +00:00
|
|
|
}
|
|
|
|
|
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'
|
2019-12-22 21:58:36 +00:00
|
|
|
if (keystorePropertiesFile.exists()) {
|
|
|
|
signingConfig signingConfigs.release
|
|
|
|
}
|
2016-01-10 12:26:04 +00:00
|
|
|
}
|
|
|
|
}
|
2016-11-03 21:46:37 +00:00
|
|
|
|
2022-01-03 15:03:40 +00:00
|
|
|
flavorDimensions "variants"
|
|
|
|
productFlavors {
|
2022-02-08 15:33:43 +00:00
|
|
|
core {}
|
2022-01-03 15:03:40 +00:00
|
|
|
fdroid {}
|
2022-07-02 13:46:57 +00:00
|
|
|
prepaid {}
|
2022-01-03 15:03:40 +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
|
|
|
|
}
|
2021-05-11 08:21:58 +00:00
|
|
|
|
|
|
|
compileOptions {
|
|
|
|
sourceCompatibility JavaVersion.VERSION_1_8
|
|
|
|
targetCompatibility JavaVersion.VERSION_1_8
|
2022-05-20 15:15:42 +00:00
|
|
|
coreLibraryDesugaringEnabled = true
|
2021-05-11 08:21:58 +00:00
|
|
|
}
|
2016-01-10 12:26:04 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
dependencies {
|
2022-09-01 20:54:03 +00:00
|
|
|
implementation 'com.github.SimpleMobileTools:Simple-Commons:041407d4da'
|
2022-05-27 18:26:38 +00:00
|
|
|
implementation 'org.greenrobot:eventbus:3.3.1'
|
|
|
|
implementation 'androidx.media:media:1.6.0'
|
2020-09-19 13:26:02 +00:00
|
|
|
implementation 'androidx.swiperefreshlayout:swiperefreshlayout:1.1.0'
|
2022-05-27 18:26:38 +00:00
|
|
|
implementation 'androidx.constraintlayout:constraintlayout:2.1.4'
|
2022-07-08 21:31:17 +00:00
|
|
|
implementation 'com.google.android.material:material:1.6.1'
|
2021-03-01 14:14:45 +00:00
|
|
|
implementation 'com.airbnb.android:lottie:3.6.1'
|
2022-05-25 17:52:43 +00:00
|
|
|
implementation 'com.github.bjoernpetersen:m3u-parser:1.3.0'
|
2022-07-02 15:45:40 +00:00
|
|
|
implementation 'me.grantland:autofittextview:0.2.1'
|
2022-05-25 17:52:43 +00:00
|
|
|
coreLibraryDesugaring('com.android.tools:desugar_jdk_libs:1.1.5')
|
2017-11-29 23:07:30 +00:00
|
|
|
|
2021-11-10 21:16:43 +00:00
|
|
|
// higher versions of jaudiotagger not compatible with <= API 25 devices
|
|
|
|
// https://bitbucket.org/ijabz/jaudiotagger/issues/149/some-nio-classes-are-unavailable-while
|
|
|
|
implementation "net.jthink:jaudiotagger:2.2.5"
|
2022-08-29 10:49:48 +00:00
|
|
|
kapt "androidx.room:room-compiler:2.4.3"
|
|
|
|
implementation "androidx.room:room-runtime:2.4.3"
|
2022-08-29 13:55:20 +00:00
|
|
|
annotationProcessor "androidx.room:room-compiler:2.4.3"
|
2016-01-10 12:26:04 +00:00
|
|
|
}
|