% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/version_check.R
\name{.resolve_app_version}
\alias{.resolve_app_version}
\title{Resolve the current app version}
\usage{
.resolve_app_version(package_name, app_version = NULL)
}
\arguments{
\item{package_name}{Name of the package / repository.}

\item{app_version}{Optional fallback version string.}
}
\value{
A character string with the version (e.g. "1.1.0"), or NULL if
neither strategy succeeds.
}
\description{
Tries two strategies in order:
\enumerate{
\item \code{utils::packageVersion(package_name)} -- works when the package
is installed locally (development, local \code{runApp()}).
\item \code{app_version} argument -- an explicit version string supplied by
the caller, e.g. from an \code{app_version()} function bundled with the
app. Used on shinyapps.io where the package is not installed.
}
}
