Simple Version Getter for Unity, it can be used for iOS, Android and unity editor platform. It can also get build version.
To get application version
UniVersionManager.GetVersion();
To compare version
var newVersion = "1.0.1";
if(UniVersionManager.IsNewVersion(newVersion)){
// Update your application
}
To get application build version
UniVersionManager.GetBuildVersion();
Use unitypackage under dist folder.