setAppVersion static method
Sets the application version.
Use this to explicitly set the application version, or in cases when automatic detection is not possible (e.g. Flutter web apps).
Throws SdkException
in case provided value does not comply with semantic versioning specification.
Implementation
static void setAppVersion(String version) {
if (!Util.isValidSemanticVersion(version)) {
throw SdkException(
'Localizely SDK expects a valid version of the app which complies with semantic versioning specification.');
}
SdkData.appBuildNumber = version;
}