RetroMusicPlayer/app/build.gradle

175 lines
5.3 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'
2020-07-24 23:58:15 +05:30
apply plugin: "androidx.navigation.safeargs.kotlin"
apply plugin: 'kotlin-parcelize'
apply plugin: 'com.google.devtools.ksp'
2020-01-05 21:44:41 +05:30
2018-07-27 18:37:33 +05:30
android {
compileSdk 35
2022-07-22 15:05:42 +08:00
namespace "code.name.monkey.retromusic"
2018-07-27 18:37:33 +05:30
defaultConfig {
minSdk 21
targetSdk 35
2018-07-27 18:37:33 +05:30
vectorDrawables.useSupportLibrary = true
2022-07-22 15:05:42 +08:00
applicationId namespace
versionCode 10621
versionName '6.2.1'
2018-07-27 18:37:33 +05:30
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
}
def signingProperties = getProperties('retro.properties')
def releaseSigning
if (signingProperties != null) {
releaseSigning = signingConfigs.create("release") {
storeFile file(getProperty(signingProperties, 'storeFile'))
keyAlias getProperty(signingProperties, 'keyAlias')
storePassword getProperty(signingProperties, 'storePassword')
keyPassword getProperty(signingProperties, 'keyPassword')
2018-08-30 14:59:30 +05:30
}
} else {
releaseSigning = signingConfigs.debug
2018-08-30 14:59:30 +05:30
}
2018-07-27 18:37:33 +05:30
buildTypes {
release {
shrinkResources true
minifyEnabled true
2021-12-20 16:03:02 +05:30
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
signingConfig releaseSigning
2018-07-27 18:37:33 +05:30
}
debug {
signingConfig releaseSigning
2018-07-27 18:37:33 +05:30
applicationIdSuffix '.debug'
2019-07-31 10:52:09 +05:30
versionNameSuffix ' DEBUG'
2018-07-27 18:37:33 +05:30
}
}
flavorDimensions = ["version"]
2022-06-14 23:05:59 +05:30
productFlavors {
normal {
dimension "version"
}
fdroid {
dimension "version"
}
}
2018-08-30 14:59:30 +05:30
buildFeatures {
viewBinding true
2024-10-17 22:34:11 +02:00
buildConfig true
}
2018-07-27 18:37:33 +05:30
packagingOptions {
2022-01-27 13:19:39 +05:30
resources {
excludes += ['META-INF/LICENSE', 'META-INF/NOTICE', 'META-INF/java.properties']
}
2018-07-27 18:37:33 +05:30
}
2022-01-27 13:19:39 +05:30
lint {
2022-07-24 10:19:31 +08:00
abortOnError true
2024-10-18 23:39:04 +02:00
warning 'ImpliedQuantity', 'Instantiatable', 'MissingQuantity', 'MissingTranslation', 'StringFormatInvalid'
2018-07-27 18:37:33 +05:30
}
compileOptions {
2024-12-04 18:48:43 +04:00
sourceCompatibility JavaVersion.VERSION_21
targetCompatibility JavaVersion.VERSION_21
}
kotlinOptions {
2024-12-04 18:48:43 +04:00
jvmTarget = "21"
2018-07-27 18:37:33 +05:30
}
dependenciesInfo {
includeInApk = false
includeInBundle = false
}
configurations.configureEach {
2018-07-27 18:37:33 +05:30
resolutionStrategy.force 'com.google.code.findbugs:jsr305:1.3.9'
}
}
def getProperties(String fileName) {
Properties properties = new Properties()
def file = rootProject.file(fileName)
2018-07-27 18:37:33 +05:30
if (file.exists()) {
file.withInputStream { stream -> properties.load(stream) }
} else {
properties = null
2018-07-27 18:37:33 +05:30
}
return properties
}
static def getProperty(Properties properties, String name) {
return properties?.getProperty(name) ?: "$name missing"
2018-07-27 18:37:33 +05:30
}
dependencies {
2019-09-30 00:28:10 +05:30
implementation project(':appthemehelper')
implementation libs.gridLayout
2022-05-30 13:56:43 +05:30
implementation libs.androidx.appcompat
implementation libs.androidx.annotation
implementation libs.androidx.constraintLayout
implementation libs.androidx.recyclerview
implementation libs.androidx.preference.ktx
implementation libs.androidx.core.ktx
implementation libs.androidx.palette.ktx
implementation libs.androidx.mediarouter
2022-06-14 23:05:59 +05:30
//Cast Dependencies
normalImplementation libs.google.play.services.cast.framework
//WebServer by NanoHttpd
normalImplementation libs.nanohttpd
implementation libs.androidx.navigation.runtime.ktx
implementation libs.androidx.navigation.fragment.ktx
implementation libs.androidx.navigation.ui.ktx
implementation libs.androidx.room.runtime
implementation libs.androidx.room.ktx
ksp libs.androidx.room.compiler
implementation libs.androidx.lifecycle.viewmodel.ktx
implementation libs.androidx.lifecycle.livedata.ktx
implementation libs.androidx.lifecycle.common.java8
2019-06-05 13:47:45 +05:30
implementation libs.androidx.core.splashscreen
2022-05-20 14:32:40 +05:30
normalImplementation libs.google.feature.delivery
normalImplementation libs.google.play.review
implementation libs.android.material
2019-06-05 13:47:45 +05:30
implementation libs.retrofit
implementation libs.retrofit.converter.gson
implementation libs.okhttp3.logging.interceptor
2019-12-26 20:05:21 +05:30
implementation libs.afollestad.material.dialogs.core
implementation libs.afollestad.material.dialogs.input
implementation libs.afollestad.material.dialogs.color
implementation libs.afollestad.material.cab
implementation libs.kotlinx.coroutines.android
2019-06-05 13:47:45 +05:30
implementation libs.koin.core
implementation libs.koin.android
2019-10-25 01:38:09 +05:30
implementation libs.glide
ksp libs.glide.ksp
implementation libs.glide.okhttp3.integration
2020-07-24 23:58:15 +05:30
implementation libs.advrecyclerview
2020-08-19 19:30:45 +05:30
implementation libs.fadingedgelayout
2020-08-21 18:35:01 +05:30
implementation libs.keyboardvisibilityevent
implementation libs.jetradarmobile.android.snowfall
implementation libs.chrisbanes.insetter
implementation libs.org.eclipse.egit.github.core
implementation libs.jaudiotagger
normalImplementation libs.android.lab.library
implementation libs.slidableactivity
implementation libs.material.intro
implementation libs.dhaval2404.imagepicker
implementation libs.fastscroll.library
implementation libs.customactivityoncrash
implementation libs.tankery.circularSeekBar
2021-12-12 16:53:58 +05:30
}