chore: versionar app para android

This commit is contained in:
mono
2026-10-25 18:30:02 -05:00
parent 01b5ee64cc
commit 6da4996cec
11 changed files with 102 additions and 6 deletions

View File

@@ -1,14 +1,16 @@
apply plugin: 'com.android.application'
android {
def appVersion = new Properties()
file('../../version.properties').withInputStream { appVersion.load(it) }
namespace "com.ilusion.toldoconjunto"
compileSdk rootProject.ext.compileSdkVersion
defaultConfig {
applicationId "com.ilusion.toldoconjunto"
minSdkVersion rootProject.ext.minSdkVersion
targetSdkVersion rootProject.ext.targetSdkVersion
versionCode 1
versionName "1.0"
versionCode appVersion.getProperty('versionCode').toInteger()
versionName appVersion.getProperty('versionName')
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
aaptOptions {
// Files and dirs to omit from the packaged assets dir, modified to accommodate modern web apps.

View File

@@ -1,12 +1,12 @@
{
"name": "toldo-app",
"version": "0.0.1",
"version": "0.0.2",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "toldo-app",
"version": "0.0.1",
"version": "0.0.2",
"dependencies": {
"@capacitor/android": "^6.2.1",
"@capacitor/core": "^6.2.1",

View File

@@ -1,7 +1,7 @@
{
"name": "toldo-app",
"private": true,
"version": "0.0.1",
"version": "0.0.2",
"type": "module",
"scripts": {
"dev": "vite",

View File

@@ -2,6 +2,11 @@ import { describe, expect, it } from 'vitest';
import { ExportImportService } from '@toldo/services';
describe('contratos de operación y respaldo', () => {
it('expone la versión actual en las exportaciones', () => {
const result = new ExportImportService().exportAll({ productores: [], productos: [], movimientosInventario: [], ventas: [], ventaLineas: [], gastos: [], ajustes: [], cuadres: [] });
expect(result.appVersion).toBe('0.0.2');
});
it('exporta jornadas junto con los datos operativos', () => {
const service = new ExportImportService();
const result = service.exportAll({

View File

@@ -0,0 +1,2 @@
versionName=0.0.2
versionCode=2