Update Android app icon for 1.0.18
This commit is contained in:
+32
-2
@@ -1,3 +1,6 @@
|
||||
import java.io.File
|
||||
import java.util.Properties
|
||||
|
||||
plugins {
|
||||
alias(libs.plugins.android.application)
|
||||
alias(libs.plugins.kotlin.android)
|
||||
@@ -9,6 +12,13 @@ if (file("google-services.json").exists()) {
|
||||
apply(plugin = "com.google.gms.google-services")
|
||||
}
|
||||
|
||||
val keystorePropertiesFile = rootProject.file("keystore.properties")
|
||||
val keystoreProperties = Properties().apply {
|
||||
if (keystorePropertiesFile.exists()) {
|
||||
keystorePropertiesFile.inputStream().use(::load)
|
||||
}
|
||||
}
|
||||
|
||||
android {
|
||||
namespace = "pl.firmatpp.kierowca"
|
||||
compileSdk = 35
|
||||
@@ -23,8 +33,9 @@ android {
|
||||
applicationId = "pl.firmatpp.kierowca"
|
||||
minSdk = 26
|
||||
targetSdk = 35
|
||||
versionCode = 18
|
||||
versionName = "1.0.17"
|
||||
versionCode = 19
|
||||
versionName = "1.0.18"
|
||||
setProperty("archivesBaseName", "pl.firmatpp.kierowca")
|
||||
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
|
||||
|
||||
buildConfigField("String", "API_BASE_URL", "\"https://api-intranet.firmatpp.pl/api/\"")
|
||||
@@ -32,11 +43,30 @@ android {
|
||||
buildConfigField("String", "REVERB_WS_BASE_URL", "\"${configValue("REVERB_WS_BASE_URL", "wss://api-intranet.firmatpp.pl/app/")}\"")
|
||||
}
|
||||
|
||||
signingConfigs {
|
||||
create("release") {
|
||||
fun requiredSigningProperty(name: String): String =
|
||||
keystoreProperties.getProperty(name)
|
||||
?: throw GradleException("Missing '$name' in keystore.properties")
|
||||
|
||||
val configuredStoreFile = requiredSigningProperty("storeFile")
|
||||
storeFile = if (File(configuredStoreFile).isAbsolute) {
|
||||
file(configuredStoreFile)
|
||||
} else {
|
||||
rootProject.file(configuredStoreFile)
|
||||
}
|
||||
storePassword = requiredSigningProperty("storePassword")
|
||||
keyAlias = requiredSigningProperty("keyAlias")
|
||||
keyPassword = requiredSigningProperty("keyPassword")
|
||||
}
|
||||
}
|
||||
|
||||
buildTypes {
|
||||
debug {
|
||||
isMinifyEnabled = false
|
||||
}
|
||||
release {
|
||||
signingConfig = signingConfigs.getByName("release")
|
||||
isMinifyEnabled = false
|
||||
proguardFiles(
|
||||
getDefaultProguardFile("proguard-android-optimize.txt"),
|
||||
|
||||
Reference in New Issue
Block a user