apps-sdk 1.1.63 → 1.1.64

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "apps-sdk",
3
- "version": "1.1.63",
3
+ "version": "1.1.64",
4
4
  "description": "Apps SDK",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -231,6 +231,10 @@ class Session {
231
231
  getDeviceLanguageAndRegion = () => {
232
232
  return Localization.getLocales()[0].languageCode + '-' + Localization.getLocales()[0].regionCode;
233
233
  }
234
+
235
+ getAppVersion = () => {
236
+ return this.sessionData.app.shortVersion || '';
237
+ }
234
238
  }
235
239
 
236
240
  export default new Session();
package/types/index.d.ts CHANGED
@@ -65,6 +65,7 @@ declare module 'apps-sdk' {
65
65
  isForcedUpdate(): boolean;
66
66
  getDeviceLanguage(): string;
67
67
  getDeviceLanguageAndRegion(): string;
68
+ getAppVersion(): string;
68
69
  }
69
70
 
70
71
  export class Networking {