Job desktop-msi su windows-latest: packageMsi con versione dal tag e upload sulla stessa release (asset InTono-vX.Y.Z-windows.msi). Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
71 lines
1.8 KiB
Kotlin
71 lines
1.8 KiB
Kotlin
plugins {
|
|
alias(libs.plugins.android.application)
|
|
alias(libs.plugins.kotlin.android)
|
|
alias(libs.plugins.kotlin.compose)
|
|
}
|
|
|
|
android {
|
|
namespace = "com.notemusicali"
|
|
compileSdk = 35
|
|
|
|
defaultConfig {
|
|
applicationId = "com.notemusicali"
|
|
minSdk = 26
|
|
targetSdk = 35
|
|
versionCode = 4
|
|
versionName = "1.1.2"
|
|
}
|
|
|
|
signingConfigs {
|
|
create("release") {
|
|
val keystorePath = System.getenv("INTONO_KEYSTORE_PATH")
|
|
if (keystorePath != null) {
|
|
storeFile = file(keystorePath)
|
|
storePassword = System.getenv("INTONO_KEYSTORE_PASSWORD")
|
|
keyAlias = System.getenv("INTONO_KEY_ALIAS")
|
|
keyPassword = System.getenv("INTONO_KEY_PASSWORD")
|
|
}
|
|
}
|
|
}
|
|
|
|
buildTypes {
|
|
release {
|
|
isMinifyEnabled = true
|
|
proguardFiles(
|
|
getDefaultProguardFile("proguard-android-optimize.txt"),
|
|
"proguard-rules.pro"
|
|
)
|
|
val keystorePath = System.getenv("INTONO_KEYSTORE_PATH")
|
|
if (keystorePath != null) {
|
|
signingConfig = signingConfigs.getByName("release")
|
|
}
|
|
}
|
|
}
|
|
|
|
compileOptions {
|
|
sourceCompatibility = JavaVersion.VERSION_17
|
|
targetCompatibility = JavaVersion.VERSION_17
|
|
}
|
|
|
|
kotlinOptions {
|
|
jvmTarget = "17"
|
|
}
|
|
|
|
buildFeatures {
|
|
compose = true
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
implementation(project(":shared"))
|
|
|
|
implementation(libs.androidx.core.ktx)
|
|
implementation(libs.androidx.lifecycle.runtime.ktx)
|
|
implementation(libs.androidx.activity.compose)
|
|
implementation(platform(libs.androidx.compose.bom))
|
|
implementation(libs.androidx.ui)
|
|
implementation(libs.androidx.material3)
|
|
|
|
debugImplementation(libs.androidx.ui.tooling)
|
|
}
|