changes
This commit is contained in:
@@ -18,6 +18,7 @@ android {
|
||||
minSdk = 24
|
||||
targetSdk = 36
|
||||
|
||||
// Incrémentation automatique du versionCode basé sur le temps
|
||||
versionCode = (System.currentTimeMillis() / 60000).toInt()
|
||||
versionName = "1.0." + (System.currentTimeMillis() / 3600000).toString().takeLast(3)
|
||||
|
||||
@@ -25,6 +26,7 @@ android {
|
||||
}
|
||||
|
||||
signingConfigs {
|
||||
// Chargement des propriétés depuis local.properties
|
||||
val keystoreProperties = Properties()
|
||||
val keystorePropertiesFile = rootProject.file("local.properties")
|
||||
if (keystorePropertiesFile.exists()) {
|
||||
@@ -33,13 +35,14 @@ android {
|
||||
|
||||
getByName("debug") {
|
||||
storeFile = file(System.getProperty("user.home") + "/.android/debug.keystore")
|
||||
storePassword = "android"
|
||||
keyAlias = "androiddebugkey"
|
||||
keyPassword = "android"
|
||||
getByName("debug").storePassword = "android"
|
||||
getByName("debug").keyAlias = "androiddebugkey"
|
||||
getByName("debug").keyPassword = "android"
|
||||
}
|
||||
|
||||
create("release") {
|
||||
storeFile = file("C:\\Users\\mac\\keys\\keys")
|
||||
// Utilisation d'un chemin relatif au dossier Utilisateur pour fonctionner sur tous les PC
|
||||
storeFile = file("${System.getProperty("user.home")}/keys/keys")
|
||||
storePassword = keystoreProperties.getProperty("RELEASE_STORE_PASSWORD")
|
||||
keyAlias = keystoreProperties.getProperty("RELEASE_KEY_ALIAS") ?: "key0"
|
||||
keyPassword = keystoreProperties.getProperty("RELEASE_KEY_PASSWORD")
|
||||
@@ -51,7 +54,7 @@ android {
|
||||
|
||||
buildTypes {
|
||||
release {
|
||||
isMinifyEnabled = true
|
||||
isMinifyEnabled = true // Activer l'offuscation
|
||||
signingConfig = signingConfigs.getByName("release")
|
||||
proguardFiles(
|
||||
getDefaultProguardFile("proguard-android-optimize.txt"),
|
||||
@@ -109,7 +112,9 @@ dependencies {
|
||||
implementation(libs.androidx.compose.material3)
|
||||
implementation(libs.androidx.compose.material.icons.extended)
|
||||
|
||||
// SDK Firebase App Distribution COMPLET (API + Implémentation)
|
||||
implementation(libs.firebase.appdistribution)
|
||||
|
||||
implementation(libs.google.generativeai)
|
||||
implementation(libs.coil.compose)
|
||||
implementation(libs.androidx.exifinterface)
|
||||
@@ -128,14 +133,22 @@ dependencies {
|
||||
implementation(libs.firebase.auth)
|
||||
implementation(libs.firebase.firestore)
|
||||
implementation(libs.firebase.appcheck.playintegrity)
|
||||
|
||||
// On met le debug provider en implementation pour qu'il soit disponible à la compilation en Release
|
||||
// (le code MainActivity utilise un check BuildConfig.DEBUG pour ne pas l'utiliser en prod)
|
||||
implementation(libs.firebase.appcheck.debug)
|
||||
|
||||
// Barcode Scanning & Camera
|
||||
implementation(libs.mlkit.barcode.scanning)
|
||||
implementation(libs.androidx.camera.core)
|
||||
implementation(libs.androidx.camera.camera2)
|
||||
implementation(libs.androidx.camera.lifecycle)
|
||||
implementation(libs.androidx.camera.view)
|
||||
|
||||
// PDF generation
|
||||
implementation(libs.itext7.core)
|
||||
|
||||
// Security
|
||||
implementation(libs.androidx.security.crypto)
|
||||
|
||||
testImplementation(libs.junit)
|
||||
@@ -145,5 +158,4 @@ dependencies {
|
||||
androidTestImplementation(libs.androidx.compose.ui.test.junit4)
|
||||
debugImplementation(libs.androidx.compose.ui.tooling)
|
||||
debugImplementation(libs.androidx.compose.ui.test.manifest)
|
||||
debugImplementation(libs.firebase.appcheck.debug)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user