feat: Implement automated versioning system with PowerShell build script and centralized version management
- Add version.properties file as single source of truth for VERSION_NAME and VERSION_CODE - Create build.ps1 script with automated version bumping (Major/Minor/Patch/None) and build orchestration - Update app/build.gradle.kts to read version from version.properties instead of hardcoded values - Display dynamic version info in Settings screen using BuildConfig.VERSION_NAME and VERSION_CODE - Add
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
package com.shaarit.presentation.settings
|
||||
|
||||
import android.content.Intent
|
||||
import com.shaarit.BuildConfig
|
||||
import android.net.Uri
|
||||
import android.widget.Toast
|
||||
import androidx.activity.compose.rememberLauncherForActivityResult
|
||||
@@ -318,7 +319,7 @@ fun SettingsScreen(
|
||||
SettingsItem(
|
||||
icon = Icons.Default.Info,
|
||||
title = "Version",
|
||||
subtitle = "ShaarIt v1.0",
|
||||
subtitle = "ShaarIt v${BuildConfig.VERSION_NAME} (build ${BuildConfig.VERSION_CODE})",
|
||||
onClick = {}
|
||||
)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user