RetroMusicPlayer/app/build.gradle

182 lines
6.1 KiB
Groovy
Raw Normal View History

2018-07-27 18:37:33 +05:30
apply plugin: 'com.android.application'
2018-11-28 13:18:19 +05:30
apply plugin: 'kotlin-android'
2018-11-30 06:36:16 +05:30
apply plugin: 'kotlin-android-extensions'
2018-12-13 02:32:14 +05:30
apply plugin: 'kotlin-kapt'
2020-01-05 21:44:41 +05:30
apply plugin: "ru.cleverpumpkin.proguard-dictionaries-generator"
proguardDictionaries {
dictionaryNames = [
"build/class-dictionary",
"build/package-dictionary",
"build/obfuscation-dictionary"
]
}
2018-07-27 18:37:33 +05:30
android {
2019-12-30 09:44:04 +05:30
compileSdkVersion 29
2018-07-27 18:37:33 +05:30
defaultConfig {
minSdkVersion 21
2020-01-29 22:55:43 +05:30
targetSdkVersion 29
2018-07-27 18:37:33 +05:30
2020-01-29 22:55:43 +05:30
renderscriptTargetApi 29 //must match target sdk and build tools
2018-07-27 18:37:33 +05:30
vectorDrawables.useSupportLibrary = true
applicationId "code.name.monkey.retromusic"
2020-01-29 00:08:12 +05:30
versionCode 405
versionName '3.4.900'
2018-07-27 18:37:33 +05:30
multiDexEnabled true
2018-12-09 12:08:34 +05:30
buildConfigField("String", "GOOGLE_PLAY_LICENSING_KEY", "\"${getProperty(getProperties('../public.properties'), 'GOOGLE_PLAY_LICENSE_KEY')}\"")
2018-07-27 18:37:33 +05:30
}
2018-08-30 14:59:30 +05:30
signingConfigs {
release {
Properties properties = getProperties('/Users/hemanths/Desktop/KeepSafe/retro.properties')
storeFile file(getProperty(properties, 'storeFile'))
keyAlias getProperty(properties, 'keyAlias')
storePassword getProperty(properties, 'storePassword')
keyPassword getProperty(properties, 'keyPassword')
}
}
2018-07-27 18:37:33 +05:30
buildTypes {
release {
minifyEnabled true
shrinkResources true
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
2018-08-30 14:59:30 +05:30
signingConfig signingConfigs.release
2018-07-27 18:37:33 +05:30
}
debug {
applicationIdSuffix '.debug'
2019-07-31 10:52:09 +05:30
versionNameSuffix ' DEBUG'
2018-07-27 18:37:33 +05:30
}
}
2018-08-30 14:59:30 +05:30
2018-07-27 18:37:33 +05:30
flavorDimensions "default"
2018-11-05 19:23:07 +05:30
2018-07-27 18:37:33 +05:30
productFlavors {
normal {
versionCode defaultConfig.versionCode + 10000
versionName defaultConfig.versionName + "_" + getDate()
dimension "default"
}
2019-10-03 00:37:12 +05:30
font {
versionCode defaultConfig.versionCode + 10000
versionName defaultConfig.versionName + "_" + getDate()
dimension "default"
}
2018-07-27 18:37:33 +05:30
}
packagingOptions {
exclude 'META-INF/LICENSE'
exclude 'META-INF/NOTICE'
2020-01-29 22:55:43 +05:30
exclude 'META-INF/java.properties'
2018-07-27 18:37:33 +05:30
}
lintOptions {
disable 'MissingTranslation'
disable 'InvalidPackage'
abortOnError false
}
compileOptions {
2019-03-25 18:13:43 +05:30
sourceCompatibility '1.8'
targetCompatibility '1.8'
2018-07-27 18:37:33 +05:30
}
2019-09-27 21:06:10 +05:30
buildToolsVersion = '29.0.2'
2018-08-30 14:59:30 +05:30
2018-07-27 18:37:33 +05:30
configurations.all {
resolutionStrategy.force 'com.google.code.findbugs:jsr305:1.3.9'
}
2019-03-04 09:25:09 +05:30
androidExtensions {
experimental = true
}
2019-09-05 01:00:24 +05:30
kapt {
generateStubs = true
}
2019-10-25 01:38:09 +05:30
2018-07-27 18:37:33 +05:30
}
def getProperties(String fileName) {
2018-07-29 22:47:52 +05:30
final Properties properties = new Properties()
2018-07-27 18:37:33 +05:30
def file = file(fileName)
if (file.exists()) {
file.withInputStream { stream -> properties.load(stream) }
}
return properties
}
static def getProperty(Properties properties, String name) {
return properties.getProperty(name) ?: "$name missing"
}
static def getDate() {
2018-08-08 13:33:38 +05:30
new Date().format('MMdd')
2018-07-27 18:37:33 +05:30
}
2018-09-10 01:14:46 +05:30
2018-07-27 18:37:33 +05:30
dependencies {
implementation fileTree(include: ['*.jar'], dir: 'libs')
2019-09-30 00:28:10 +05:30
implementation project(':appthemehelper')
implementation 'androidx.multidex:multidex:2.0.1'
2019-12-26 20:05:21 +05:30
2019-03-25 18:13:43 +05:30
implementation "androidx.gridlayout:gridlayout:1.0.0"
implementation "androidx.cardview:cardview:1.0.0"
implementation "androidx.palette:palette:1.0.0"
2019-12-26 20:05:21 +05:30
implementation 'androidx.palette:palette-ktx:1.0.0'
implementation 'androidx.appcompat:appcompat:1.1.0'
2019-06-06 19:06:51 +05:30
implementation 'androidx.annotation:annotation:1.1.0'
implementation 'androidx.preference:preference:1.1.0'
2019-12-26 20:05:21 +05:30
implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
2019-11-15 23:14:42 +05:30
implementation 'androidx.core:core-ktx:1.1.0'
2020-02-01 23:23:26 +05:30
implementation 'androidx.fragment:fragment:1.2.0'
implementation 'androidx.recyclerview:recyclerview:1.1.0'
2019-06-05 13:47:45 +05:30
2020-02-01 23:23:26 +05:30
implementation 'com.google.android.material:material:1.2.0-alpha04'
2019-11-15 23:14:42 +05:30
implementation 'com.google.android.play:core:1.6.4'
2019-06-05 13:47:45 +05:30
2019-12-26 20:05:21 +05:30
def retrofit_version = "2.6.2"
implementation "com.squareup.retrofit2:retrofit:$retrofit_version"
implementation "com.squareup.retrofit2:converter-gson:$retrofit_version"
implementation 'com.jakewharton.retrofit:retrofit2-kotlin-coroutines-adapter:0.9.2'
2019-06-05 13:47:45 +05:30
2019-12-26 20:05:21 +05:30
def material_dialog_version = "3.1.1"
implementation "com.afollestad.material-dialogs:core:$material_dialog_version"
implementation "com.afollestad.material-dialogs:input:$material_dialog_version"
implementation "com.afollestad.material-dialogs:color:$material_dialog_version"
implementation "com.afollestad.material-dialogs:bottomsheets:$material_dialog_version"
2018-07-27 18:37:33 +05:30
implementation 'com.afollestad:material-cab:0.1.12'
2019-06-05 13:47:45 +05:30
implementation 'com.github.bumptech.glide:glide:3.8.0'
implementation 'com.github.bumptech.glide:okhttp3-integration:1.5.0'
2020-01-28 23:17:48 +05:30
implementation 'com.squareup.okhttp3:logging-interceptor:3.6.0'
2019-06-05 13:47:45 +05:30
2018-07-27 18:37:33 +05:30
implementation('com.h6ah4i.android.widget.advrecyclerview:advrecyclerview:0.11.0@aar') {
transitive = true
}
/*UI Library*/
2019-03-25 18:13:43 +05:30
implementation 'me.zhanghai.android.materialprogressbar:library:1.6.1'
2019-07-31 22:12:19 +05:30
2019-06-05 13:47:45 +05:30
2019-03-04 09:25:09 +05:30
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version"
2019-12-26 20:05:21 +05:30
def kotlin_coroutines_version = "1.3.0"
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-core:$kotlin_coroutines_version"
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-android:$kotlin_coroutines_version"
2019-10-25 01:38:09 +05:30
2019-03-25 18:13:43 +05:30
implementation 'org.eclipse.mylyn.github:org.eclipse.egit.github.core:3.4.0.201406110918-r'
2019-06-05 13:47:45 +05:30
implementation 'com.github.ksoichiro:android-observablescrollview:1.6.0'
2019-09-23 00:26:40 +05:30
implementation 'com.github.kabouzeid:recyclerview-fastscroll:1.9-kmod'
2019-09-02 20:22:47 +05:30
2019-06-05 13:47:45 +05:30
implementation 'com.github.AdrienPoupa:jaudiotagger:2.2.3'
2019-09-01 19:02:36 +05:30
implementation 'com.anjlab.android.iab.v3:library:1.1.0'
implementation 'com.r0adkll:slidableactivity:2.1.0'
2019-07-31 22:12:19 +05:30
implementation 'com.heinrichreimersoftware:material-intro:1.6'
2020-01-17 22:49:06 +05:30
implementation 'me.zhanghai.android.fastscroll:library:1.1.0'
2019-07-31 22:12:19 +05:30
2019-12-26 20:05:21 +05:30
def dagger_version = "2.23.1"
implementation "com.google.dagger:dagger:$dagger_version"
kapt "com.google.dagger:dagger-compiler:$dagger_version"
2019-10-25 01:38:09 +05:30
}