mirror of
https://github.com/msfjarvis/compose-lobsters
synced 2025-08-14 08:17:04 +05:30
gradle: sync property set with APS
This commit is contained in:
parent
f6e3b6c540
commit
91d97e0696
4 changed files with 74 additions and 8 deletions
|
@ -44,7 +44,7 @@ android {
|
|||
}
|
||||
val keystoreConfigFile = rootProject.layout.projectDirectory.file("keystore.properties")
|
||||
if (keystoreConfigFile.asFile.exists()) {
|
||||
val contents = providers.fileContents(keystoreConfigFile).asText.forUseAtConfigurationTime()
|
||||
val contents = providers.fileContents(keystoreConfigFile).asText
|
||||
val keystoreProperties = Properties()
|
||||
keystoreProperties.load(contents.get().byteInputStream())
|
||||
signingConfigs {
|
||||
|
@ -57,14 +57,19 @@ android {
|
|||
}
|
||||
buildTypes.all { signingConfig = signingConfigs.getByName("release") }
|
||||
}
|
||||
buildFeatures { buildConfig = true }
|
||||
buildTypes {
|
||||
getByName("release") {
|
||||
isMinifyEnabled = true
|
||||
proguardFiles("proguard-android-optimize.txt", "proguard-rules.pro")
|
||||
named("release") {
|
||||
isMinifyEnabled = false
|
||||
setProguardFiles(listOf("proguard-android-optimize.txt", "proguard-rules.pro"))
|
||||
}
|
||||
}
|
||||
compileOptions {
|
||||
sourceCompatibility = JavaVersion.VERSION_11
|
||||
targetCompatibility = JavaVersion.VERSION_11
|
||||
}
|
||||
dependenciesInfo {
|
||||
includeInBundle = false
|
||||
includeInApk = false
|
||||
}
|
||||
}
|
||||
|
|
|
@ -124,7 +124,7 @@ fun LobstersApp(
|
|||
},
|
||||
title = {
|
||||
if (navItems.any { it.route == currentDestination }) {
|
||||
Text(text = stringResource(R.string.app_name), fontWeight = FontWeight.Bold)
|
||||
Text(text = stringResource(commonR.string.app_name), fontWeight = FontWeight.Bold)
|
||||
}
|
||||
},
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue