From 8202d07d5084bf0de44a47094b1b59a1a94208f5 Mon Sep 17 00:00:00 2001 From: Rodrigo Date: Mon, 3 Jun 2024 12:59:18 +0200 Subject: [PATCH] cambiar creditos --- app/.gitignore | 3 +- app/build.gradle.kts | 5 +++- .../rodalc/amarracos/main/PantallaInicio.kt | 30 ++++++++++--------- build.gradle.kts | 2 ++ 4 files changed, 24 insertions(+), 16 deletions(-) diff --git a/app/.gitignore b/app/.gitignore index 42afabf..67e07b8 100644 --- a/app/.gitignore +++ b/app/.gitignore @@ -1 +1,2 @@ -/build \ No newline at end of file +/build +/release diff --git a/app/build.gradle.kts b/app/build.gradle.kts index 409127a..cc374b3 100644 --- a/app/build.gradle.kts +++ b/app/build.gradle.kts @@ -28,9 +28,12 @@ android { getDefaultProguardFile("proguard-android-optimize.txt"), "proguard-rules.pro" ) - versionNameSuffix = "beta" + versionNameSuffix = rootProject.extra["releaseVersionSuffix"] as String signingConfig = signingConfigs.getByName("debug") } + getByName("debug") { + versionNameSuffix = rootProject.extra["debugVersionSuffix"] as String + } } compileOptions { sourceCompatibility = JavaVersion.VERSION_1_8 diff --git a/app/src/main/java/com/rodalc/amarracos/main/PantallaInicio.kt b/app/src/main/java/com/rodalc/amarracos/main/PantallaInicio.kt index e2b093b..402ed89 100644 --- a/app/src/main/java/com/rodalc/amarracos/main/PantallaInicio.kt +++ b/app/src/main/java/com/rodalc/amarracos/main/PantallaInicio.kt @@ -12,7 +12,10 @@ import androidx.compose.foundation.layout.fillMaxSize import androidx.compose.foundation.layout.fillMaxWidth import androidx.compose.foundation.layout.padding import androidx.compose.foundation.shape.RoundedCornerShape +import androidx.compose.material.icons.Icons +import androidx.compose.material.icons.outlined.Info import androidx.compose.material3.Button +import androidx.compose.material3.Icon import androidx.compose.material3.Surface import androidx.compose.material3.Text import androidx.compose.runtime.Composable @@ -47,6 +50,18 @@ fun PantallaInicio(navController: NavController) { verticalArrangement = Arrangement.Bottom, horizontalAlignment = Alignment.CenterHorizontally ) { + Row( + horizontalArrangement = Arrangement.End, + modifier = Modifier.fillMaxWidth() + ) { + Box( + Modifier + .padding(10.dp) + .clickable(onClick = { showCreditos = true }) + ) { + Icon(Icons.Outlined.Info, contentDescription = "Info") + } + } Spacer(modifier = Modifier.weight(1f)) Box( @@ -78,19 +93,6 @@ fun PantallaInicio(navController: NavController) { Text("Pocha") } } - Row( - modifier = Modifier - .fillMaxWidth() - .padding(16.dp), - horizontalArrangement = Arrangement.SpaceEvenly - ) { - Button(onClick = { showCreditos = true }) { - Text("Créditos") - } - Button(enabled = false, onClick = { }) { - Text("Ajustes") - } - } } } @@ -113,7 +115,7 @@ fun Creditos(state: (Boolean) -> Unit) { Surface( modifier = Modifier .align(Alignment.Center) - .padding(10.dp), + .padding(5.dp), shape = RoundedCornerShape(16.dp), ) { Column( diff --git a/build.gradle.kts b/build.gradle.kts index a0ee198..b805aa8 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -6,3 +6,5 @@ plugins { } val defaultVersionCode by extra(3) val defaultVersionName by extra("0.4") +val releaseVersionSuffix by extra("-beta-release") +val debugVersionSuffix by extra("-beta-debug")