0.6.0
This commit is contained in:
@@ -1,18 +1,22 @@
|
||||
plugins {
|
||||
id("com.android.application")
|
||||
kotlin("android")
|
||||
kotlin("kapt")
|
||||
alias(libs.plugins.android.application)
|
||||
alias(libs.plugins.kotlin.android)
|
||||
alias(libs.plugins.ksp)
|
||||
}
|
||||
|
||||
android {
|
||||
compileSdk = 33
|
||||
compileSdk = 34
|
||||
|
||||
defaultConfig {
|
||||
applicationId = "it.hamy.muza"
|
||||
applicationId = project.group.toString()
|
||||
|
||||
minSdk = 21
|
||||
targetSdk = 33
|
||||
versionCode = 20
|
||||
versionName = "0.5.4.1rus"
|
||||
targetSdk = 34
|
||||
|
||||
versionCode = 30
|
||||
versionName = project.version.toString()
|
||||
|
||||
multiDexEnabled = true
|
||||
}
|
||||
|
||||
splits {
|
||||
@@ -22,35 +26,50 @@ android {
|
||||
}
|
||||
}
|
||||
|
||||
namespace = "it.hamy.muza"
|
||||
signingConfigs {
|
||||
create("ci") {
|
||||
storeFile = System.getenv("ANDROID_NIGHTLY_KEYSTORE")?.let { file(it) }
|
||||
storePassword = System.getenv("ANDROID_NIGHTLY_KEYSTORE_PASSWORD")
|
||||
keyAlias = System.getenv("ANDROID_NIGHTLY_KEYSTORE_ALIAS")
|
||||
keyPassword = System.getenv("ANDROID_NIGHTLY_KEYSTORE_PASSWORD")
|
||||
}
|
||||
}
|
||||
|
||||
namespace = project.group.toString()
|
||||
|
||||
buildTypes {
|
||||
debug {
|
||||
applicationIdSuffix = ".debug"
|
||||
manifestPlaceholders["appName"] = "Debug"
|
||||
versionNameSuffix = "-DEBUG"
|
||||
manifestPlaceholders["appName"] = "Muza (Debug)"
|
||||
}
|
||||
|
||||
release {
|
||||
isMinifyEnabled = true
|
||||
isShrinkResources = true
|
||||
isMinifyEnabled = false
|
||||
isShrinkResources = false
|
||||
manifestPlaceholders["appName"] = "Muza"
|
||||
signingConfig = signingConfigs.getByName("debug")
|
||||
proguardFiles(getDefaultProguardFile("proguard-android-optimize.txt"), "proguard-rules.pro")
|
||||
buildConfigField("String", "RELEASE_HACK", "\"AndroidWhyTfDidYouMakeMeDoThis\"")
|
||||
}
|
||||
}
|
||||
|
||||
sourceSets.all {
|
||||
kotlin.srcDir("src/$name/kotlin")
|
||||
create("X") {
|
||||
initWith(getByName("release"))
|
||||
matchingFallbacks += "release"
|
||||
|
||||
applicationIdSuffix = ".x"
|
||||
versionNameSuffix = "-X"
|
||||
manifestPlaceholders["appName"] = "Muza X"
|
||||
signingConfig = signingConfigs.findByName("ci")
|
||||
}
|
||||
}
|
||||
|
||||
buildFeatures {
|
||||
compose = true
|
||||
buildConfig = true
|
||||
}
|
||||
|
||||
compileOptions {
|
||||
isCoreLibraryDesugaringEnabled = true
|
||||
sourceCompatibility = JavaVersion.VERSION_1_8
|
||||
targetCompatibility = JavaVersion.VERSION_1_8
|
||||
}
|
||||
|
||||
composeOptions {
|
||||
@@ -58,24 +77,29 @@ android {
|
||||
}
|
||||
|
||||
kotlinOptions {
|
||||
freeCompilerArgs += "-Xcontext-receivers"
|
||||
jvmTarget = "1.8"
|
||||
freeCompilerArgs = freeCompilerArgs + listOf("-Xcontext-receivers")
|
||||
}
|
||||
|
||||
packaging {
|
||||
resources.excludes.add("META-INF/**/*")
|
||||
}
|
||||
}
|
||||
|
||||
kapt {
|
||||
arguments {
|
||||
arg("room.schemaLocation", "$projectDir/schemas")
|
||||
}
|
||||
kotlin {
|
||||
jvmToolchain(libs.versions.jvm.get().toInt())
|
||||
}
|
||||
|
||||
ksp {
|
||||
arg("room.schemaLocation", "$projectDir/schemas")
|
||||
}
|
||||
|
||||
dependencies {
|
||||
implementation(projects.composePersist)
|
||||
implementation(projects.composeRouting)
|
||||
implementation(projects.composeReordering)
|
||||
|
||||
|
||||
implementation(projects.compose.persist)
|
||||
implementation(projects.compose.preferences)
|
||||
implementation(projects.compose.routing)
|
||||
implementation(projects.compose.reordering)
|
||||
|
||||
implementation(platform(libs.compose.bom))
|
||||
implementation(libs.compose.activity)
|
||||
implementation(libs.compose.foundation)
|
||||
implementation(libs.compose.ui)
|
||||
@@ -83,22 +107,34 @@ dependencies {
|
||||
implementation(libs.compose.ripple)
|
||||
implementation(libs.compose.shimmer)
|
||||
implementation(libs.compose.coil)
|
||||
implementation(libs.compose.material3)
|
||||
|
||||
implementation(libs.palette)
|
||||
|
||||
implementation(libs.exoplayer)
|
||||
implementation(libs.exoplayer.okhttp)
|
||||
implementation(libs.exoplayer.workmanager)
|
||||
implementation(libs.workmanager)
|
||||
implementation(libs.workmanager.ktx)
|
||||
|
||||
implementation(libs.kotlin.coroutines)
|
||||
implementation(libs.kotlin.immutable)
|
||||
|
||||
implementation(libs.room)
|
||||
implementation("androidx.media3:media3-datasource-okhttp:1.0.0-alpha03")
|
||||
ksp(libs.room.compiler)
|
||||
|
||||
implementation(projects.providers.github)
|
||||
implementation(projects.providers.innertube)
|
||||
implementation(projects.providers.kugou)
|
||||
implementation(projects.providers.lrclib)
|
||||
implementation(projects.providers.piped)
|
||||
implementation(projects.core.data)
|
||||
implementation(projects.core.ui)
|
||||
|
||||
coreLibraryDesugaring(libs.desugaring)
|
||||
|
||||
detektPlugins(libs.detekt.compose)
|
||||
detektPlugins(libs.detekt.formatting)
|
||||
|
||||
implementation ("com.yandex.android:mobileads:6.4.0")
|
||||
implementation("com.google.android.gms:play-services-ads-identifier:18.0.1")
|
||||
|
||||
kapt(libs.room.compiler)
|
||||
|
||||
implementation(projects.innertube)
|
||||
implementation(projects.kugou)
|
||||
|
||||
coreLibraryDesugaring(libs.desugaring)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user