android-finalizer: cleanup final and remove temporary workflow
This commit is contained in:
@@ -1,58 +0,0 @@
|
|||||||
name: Android finalizer cleanup once
|
|
||||||
|
|
||||||
on:
|
|
||||||
push:
|
|
||||||
branches:
|
|
||||||
- 'release/android-0.19.0-final-field-flow'
|
|
||||||
|
|
||||||
permissions:
|
|
||||||
contents: write
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
cleanup:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v4
|
|
||||||
with:
|
|
||||||
ref: release/android-0.19.0-final-field-flow
|
|
||||||
fetch-depth: 0
|
|
||||||
|
|
||||||
- name: Apply final cleanup
|
|
||||||
run: |
|
|
||||||
set -Eeuo pipefail
|
|
||||||
python - <<'PY'
|
|
||||||
from pathlib import Path
|
|
||||||
|
|
||||||
def replace(path, old, new):
|
|
||||||
p = Path(path)
|
|
||||||
text = p.read_text()
|
|
||||||
if old not in text:
|
|
||||||
raise SystemExit(f'Pattern not found in {path}: {old!r}')
|
|
||||||
p.write_text(text.replace(old, new))
|
|
||||||
|
|
||||||
replace(
|
|
||||||
'android-app/app/src/main/java/com/korexlabs/dhinspeccion/MainViewModel.kt',
|
|
||||||
' fun uploadFieldPhoto(\n file: File,\n latitude: Double,\n longitude: Double,\n accuracyM: Double?,\n description: String? = null,\n ) {',
|
|
||||||
' fun uploadFieldPhoto(\n file: File,\n latitude: Double,\n longitude: Double,\n accuracyM: Double?,\n ) {',
|
|
||||||
)
|
|
||||||
replace(
|
|
||||||
'android-app/app/src/main/java/com/korexlabs/dhinspeccion/ui/ModernMobileActsScreen.kt',
|
|
||||||
'La ausencia no resuelve la manifestación. Debe registrarse firma o negativa antes de sellar.',
|
|
||||||
'La ausencia no resuelve la manifestación. Debe registrarse firma o negativa antes de firmar y cerrar el Acta.',
|
|
||||||
)
|
|
||||||
replace(
|
|
||||||
'android-app/app/src/main/java/com/korexlabs/dhinspeccion/ui/LoginGate.kt',
|
|
||||||
'R.drawable.mendoza_logo',
|
|
||||||
'R.drawable.ic_mendoza_launcher_exact',
|
|
||||||
)
|
|
||||||
PY
|
|
||||||
|
|
||||||
- name: Commit cleanup and remove temporary workflow
|
|
||||||
run: |
|
|
||||||
set -Eeuo pipefail
|
|
||||||
git config user.name 'DH Android Finalizer'
|
|
||||||
git config user.email 'android-finalizer@dhv2.local'
|
|
||||||
git rm .github/workflows/android-finalize-once.yml
|
|
||||||
git add android-app/app/src/main/java/com/korexlabs/dhinspeccion
|
|
||||||
git commit -m 'android-finalizer: cleanup final and remove temporary workflow'
|
|
||||||
git push origin HEAD:release/android-0.19.0-final-field-flow
|
|
||||||
@@ -307,7 +307,6 @@ class MainViewModel(application: Application) : AndroidViewModel(application) {
|
|||||||
latitude: Double,
|
latitude: Double,
|
||||||
longitude: Double,
|
longitude: Double,
|
||||||
accuracyM: Double?,
|
accuracyM: Double?,
|
||||||
description: String? = null,
|
|
||||||
) {
|
) {
|
||||||
val visitId = visit?.id ?: return
|
val visitId = visit?.id ?: return
|
||||||
val asset = selectedFieldAsset?.asset ?: return
|
val asset = selectedFieldAsset?.asset ?: return
|
||||||
|
|||||||
@@ -112,7 +112,7 @@ private fun EnhancedLoginScreen(model: MainViewModel, onPasswordLogin: () -> Uni
|
|||||||
Box(Modifier.fillMaxSize().padding(24.dp), contentAlignment = Alignment.Center) {
|
Box(Modifier.fillMaxSize().padding(24.dp), contentAlignment = Alignment.Center) {
|
||||||
Column(Modifier.fillMaxWidth(), verticalArrangement = Arrangement.spacedBy(14.dp), horizontalAlignment = Alignment.CenterHorizontally) {
|
Column(Modifier.fillMaxWidth(), verticalArrangement = Arrangement.spacedBy(14.dp), horizontalAlignment = Alignment.CenterHorizontally) {
|
||||||
Image(
|
Image(
|
||||||
painter = painterResource(R.drawable.mendoza_logo),
|
painter = painterResource(R.drawable.ic_mendoza_launcher_exact),
|
||||||
contentDescription = "Gobierno de Mendoza",
|
contentDescription = "Gobierno de Mendoza",
|
||||||
modifier = Modifier.fillMaxWidth().height(170.dp),
|
modifier = Modifier.fillMaxWidth().height(170.dp),
|
||||||
contentScale = ContentScale.Fit,
|
contentScale = ContentScale.Fit,
|
||||||
@@ -210,7 +210,7 @@ private fun BiometricUnlockScreen(
|
|||||||
horizontalAlignment = Alignment.CenterHorizontally,
|
horizontalAlignment = Alignment.CenterHorizontally,
|
||||||
) {
|
) {
|
||||||
Image(
|
Image(
|
||||||
painter = painterResource(R.drawable.mendoza_logo),
|
painter = painterResource(R.drawable.ic_mendoza_launcher_exact),
|
||||||
contentDescription = "Gobierno de Mendoza",
|
contentDescription = "Gobierno de Mendoza",
|
||||||
modifier = Modifier.fillMaxWidth().height(140.dp),
|
modifier = Modifier.fillMaxWidth().height(140.dp),
|
||||||
contentScale = ContentScale.Fit,
|
contentScale = ContentScale.Fit,
|
||||||
|
|||||||
+1
-1
@@ -413,7 +413,7 @@ fun ModernMobileActsScreen(
|
|||||||
Row(Modifier.padding(12.dp), horizontalArrangement = Arrangement.spacedBy(8.dp)) {
|
Row(Modifier.padding(12.dp), horizontalArrangement = Arrangement.spacedBy(8.dp)) {
|
||||||
Icon(Icons.Filled.ErrorOutline, null, tint = MaterialTheme.colorScheme.error)
|
Icon(Icons.Filled.ErrorOutline, null, tint = MaterialTheme.colorScheme.error)
|
||||||
Text(
|
Text(
|
||||||
"La ausencia no resuelve la manifestación. Debe registrarse firma o negativa antes de sellar.",
|
"La ausencia no resuelve la manifestación. Debe registrarse firma o negativa antes de firmar y cerrar el Acta.",
|
||||||
Modifier.weight(1f),
|
Modifier.weight(1f),
|
||||||
style = MaterialTheme.typography.bodySmall,
|
style = MaterialTheme.typography.bodySmall,
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user