test
This commit is contained in:
@@ -1,9 +1,12 @@
|
||||
import java.util.Properties
|
||||
|
||||
plugins {
|
||||
alias(libs.plugins.android.application)
|
||||
alias(libs.plugins.kotlin.compose)
|
||||
alias(libs.plugins.ksp)
|
||||
alias(libs.plugins.secrets)
|
||||
alias(libs.plugins.google.services)
|
||||
alias(libs.plugins.firebase.appdistribution)
|
||||
}
|
||||
|
||||
android {
|
||||
@@ -21,23 +24,45 @@ android {
|
||||
}
|
||||
|
||||
signingConfigs {
|
||||
// On configure la release pour utiliser la même clé que le debug pour l'instant
|
||||
val keystoreProperties = Properties()
|
||||
val keystorePropertiesFile = rootProject.file("local.properties")
|
||||
if (keystorePropertiesFile.exists()) {
|
||||
keystoreProperties.load(keystorePropertiesFile.inputStream())
|
||||
}
|
||||
|
||||
getByName("debug") {
|
||||
storeFile = file(System.getProperty("user.home") + "/.android/debug.keystore")
|
||||
storePassword = "android"
|
||||
keyAlias = "androiddebugkey"
|
||||
keyPassword = "android"
|
||||
}
|
||||
|
||||
create("release") {
|
||||
storeFile = file("C:\\Users\\mac\\keys\\keys")
|
||||
storePassword = keystoreProperties.getProperty("RELEASE_STORE_PASSWORD")
|
||||
keyAlias = keystoreProperties.getProperty("RELEASE_KEY_ALIAS") ?: "key0"
|
||||
keyPassword = keystoreProperties.getProperty("RELEASE_KEY_PASSWORD")
|
||||
}
|
||||
}
|
||||
|
||||
buildTypes {
|
||||
release {
|
||||
isMinifyEnabled = false
|
||||
signingConfig = signingConfigs.getByName("debug")
|
||||
signingConfig = signingConfigs.getByName("release")
|
||||
proguardFiles(
|
||||
getDefaultProguardFile("proguard-android-optimize.txt"),
|
||||
"proguard-rules.pro"
|
||||
)
|
||||
|
||||
configure<com.google.firebase.appdistribution.gradle.AppDistributionExtension> {
|
||||
artifactType = "APK"
|
||||
}
|
||||
}
|
||||
|
||||
debug {
|
||||
configure<com.google.firebase.appdistribution.gradle.AppDistributionExtension> {
|
||||
artifactType = "APK"
|
||||
}
|
||||
}
|
||||
}
|
||||
compileOptions {
|
||||
@@ -51,7 +76,6 @@ android {
|
||||
}
|
||||
|
||||
secrets {
|
||||
// A list of keys that should be ignored by the plugin by default.
|
||||
ignoreList.add("properties")
|
||||
}
|
||||
|
||||
@@ -68,24 +92,19 @@ dependencies {
|
||||
implementation(libs.coil.compose)
|
||||
implementation(libs.androidx.exifinterface)
|
||||
|
||||
// Navigation
|
||||
implementation(libs.androidx.navigation.compose)
|
||||
|
||||
// Room
|
||||
implementation(libs.androidx.room.runtime)
|
||||
implementation(libs.androidx.room.ktx)
|
||||
ksp(libs.androidx.room.compiler)
|
||||
|
||||
// Network & Strava Auth
|
||||
implementation(libs.retrofit.core)
|
||||
implementation(libs.retrofit.gson)
|
||||
implementation(libs.okhttp.logging)
|
||||
implementation(libs.androidx.browser)
|
||||
|
||||
// Google Sign-In
|
||||
implementation(libs.play.services.auth)
|
||||
|
||||
// Firebase
|
||||
implementation(platform(libs.firebase.bom))
|
||||
implementation(libs.firebase.analytics)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user