Auto-sync: 20260305_200000

This commit is contained in:
Paolo 2026-03-05 20:00:01 +01:00
parent 18b0965aae
commit 37e59d5652
2 changed files with 33 additions and 6 deletions

BIN
.DS_Store vendored

Binary file not shown.

View file

@ -8,6 +8,17 @@ plugins {
id("dev.flutter.flutter-gradle-plugin") id("dev.flutter.flutter-gradle-plugin")
} }
// Aggiungiamo esplicitamente gli import richiesti da Kotlin
import java.io.FileInputStream
import java.util.Properties
// Carichiamo il file con le password
val keystoreProperties = Properties()
val keystorePropertiesFile = rootProject.file("key.properties")
if (keystorePropertiesFile.exists()) {
keystoreProperties.load(FileInputStream(keystorePropertiesFile))
}
android { android {
namespace = "com.amastra.tetraq" namespace = "com.amastra.tetraq"
compileSdk = flutter.compileSdkVersion compileSdk = flutter.compileSdkVersion
@ -18,8 +29,11 @@ android {
targetCompatibility = JavaVersion.VERSION_17 targetCompatibility = JavaVersion.VERSION_17
} }
kotlinOptions { // Sintassi aggiornata come richiesto dal compilatore Kotlin
jvmTarget = JavaVersion.VERSION_17.toString() kotlin {
compilerOptions {
jvmTarget.set(org.jetbrains.kotlin.gradle.dsl.JvmTarget.JVM_17)
}
} }
defaultConfig { defaultConfig {
@ -33,15 +47,28 @@ android {
versionName = flutter.versionName versionName = flutter.versionName
} }
// Aggiunto il blocco per la firma in formato Kotlin DSL
signingConfigs {
create("release") {
keyAlias = keystoreProperties.getProperty("keyAlias")
keyPassword = keystoreProperties.getProperty("keyPassword")
val storeFileString = keystoreProperties.getProperty("storeFile")
if (storeFileString != null) {
storeFile = file(storeFileString)
}
storePassword = keystoreProperties.getProperty("storePassword")
}
}
buildTypes { buildTypes {
release { getByName("release") {
// TODO: Add your own signing config for the release build. // TODO: Add your own signing config for the release build.
// Signing with the debug keys for now, so `flutter run --release` works. // Ora usiamo la chiave di release appena creata
signingConfig = signingConfigs.getByName("debug") signingConfig = signingConfigs.getByName("release")
} }
} }
} }
flutter { flutter {
source = "../.." source = "../.."
} }