UNPKG

@nativescript/appversion

Version:
37 lines (32 loc) 1.1 kB
declare module "@nativescript/appversion" { /** * 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 getVersionName(): Promise<string>; /** * Same as getVersionName, but synchronous. */ export function getVersionNameSync(): string; /** * Returns the app's ID. * - For iOS we read it from *.plist's bundle identifier. * - For Android we read the package name. */ export function getAppId(): Promise<string>; /** * Same as getAppId, but synchronous. */ export function getAppIdSync(): string; /** * Returns the version code (build number) of your app. * - For iOS we read it from *.plist's CFBundleVersion. * - For Android we read the versionCode from AndroidManifest.xml. */ export function getVersionCode(): Promise<string>; /** * Same as getVersionCode, but synchronous. */ export function getVersionCodeSync(): string; }