UNPKG

nativescript-check-version

Version:

An easy way to check if there's an update available for the current app in the App Store or Google Play.

13 lines (12 loc) 393 B
/** * Returns the version of your app. * - For iOS we read it from *.plist's CFBundleShortVersionString. * - For Android we read the versionName from AndroidManifest.xml. */ export function versionCompare(): Promise<{ needsUpdate:boolean, updateType:string|null, currentVersion:string, notice:string; storeUrl:string }>;