esoftplay 0.0.230 → 0.0.231

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.
Files changed (2) hide show
  1. package/esp.ts +2 -2
  2. package/package.json +1 -1
package/esp.ts CHANGED
@@ -3,7 +3,7 @@ import cacheConfig from 'esoftplay/cache/config.json';
3
3
  import { LibLocale } from 'esoftplay/cache/lib/locale/import';
4
4
  import { EspRouterPropertyInterface } from 'esoftplay/cache/properties';
5
5
  import { EspRouterInterface } from 'esoftplay/cache/routers';
6
- import Constants from 'expo-constants';
6
+ import * as Application from 'expo-application';
7
7
  import { LogBox, Platform } from 'react-native';
8
8
  import 'react-native-reanimated';
9
9
  import './oneplusfixfont';
@@ -86,7 +86,7 @@ const esp = {
86
86
  return _assets(path)
87
87
  },
88
88
  versionName(): string {
89
- return (Platform.OS == 'android' ? Constants?.expoConfig?.android?.versionCode : Constants?.expoConfig?.ios?.buildNumber) + '-' + esp.config('publish_id')
89
+ return (Application.nativeBuildVersion) + '-' + esp.config('publish_id')
90
90
  },
91
91
  config<T = ConfigType>(param?: keyof ConfigType, ...params: string[]): T {
92
92
  let out: any = this._config();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "esoftplay",
3
- "version": "0.0.230",
3
+ "version": "0.0.231",
4
4
  "description": "embedding data from esoftplay framework (web based) into mobile app",
5
5
  "main": "cache/index.js",
6
6
  "types": "../../index.d.ts",