Skip to content

Commit

Permalink
cambiar creditos
Browse files Browse the repository at this point in the history
  • Loading branch information
RodAlc24 committed Jun 3, 2024
1 parent eac20ad commit 8202d07
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 16 deletions.
3 changes: 2 additions & 1 deletion app/.gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
/build
/build
/release
5 changes: 4 additions & 1 deletion app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
30 changes: 16 additions & 14 deletions app/src/main/java/com/rodalc/amarracos/main/PantallaInicio.kt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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(
Expand Down Expand Up @@ -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")
}
}
}
}

Expand All @@ -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(
Expand Down
2 changes: 2 additions & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -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")

0 comments on commit 8202d07

Please sign in to comment.