esoftplay 0.0.120-a → 0.0.120-d

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/bin/build.js CHANGED
@@ -246,11 +246,12 @@ yarn-error.log\n\
246
246
  });
247
247
 
248
248
  const AppJS = `
249
- import { esp } from 'esoftplay';
249
+
250
250
  import { LibNotification } from 'esoftplay/cache/lib/notification.import';
251
+ import { UserIndex } from 'esoftplay/cache/user/index.import';
251
252
  import * as ErrorReport from 'esoftplay/error';
252
253
  import * as Notifications from 'expo-notifications';
253
- import React, { useEffect, useRef } from 'react';
254
+ import React, { useEffect } from 'react';
254
255
  import { enableFreeze, enableScreens } from 'react-native-screens';
255
256
  const { globalIdx } = require('esoftplay/global');
256
257
  enableScreens();
@@ -259,14 +260,12 @@ enableFreeze();
259
260
  Notifications.addNotificationResponseReceivedListener(x => LibNotification.onAction(x));
260
261
 
261
262
  export default function App() {
262
- const Home = useRef(esp.home()).current
263
-
264
263
  useEffect(() => {
265
264
  globalIdx.reset()
266
265
  ErrorReport.getError()
267
266
  }, [])
268
267
 
269
- return (<Home />)
268
+ return (<UserIndex />)
270
269
  }`;
271
270
  let expoLib = [
272
271
  '@expo/vector-icons',
package/esp.ts CHANGED
@@ -75,7 +75,7 @@ export default class esp {
75
75
  }
76
76
 
77
77
  static versionName(): string {
78
- return (Platform.OS == 'android' ? Constants?.manifest?.android?.versionCode : Constants?.manifest?.ios?.buildNumber) + '-' + config('publish_id')
78
+ return (Platform.OS == 'android' ? Constants?.manifest?.android?.versionCode : Constants?.manifest?.ios?.buildNumber) + '-' + esp.config('publish_id')
79
79
  }
80
80
 
81
81
  static config(param?: string, ...params: string[]): any {
@@ -4,7 +4,7 @@ import { CommonActions, StackActions } from '@react-navigation/native';
4
4
  import { LibNavigationRoutes } from 'esoftplay/cache/lib/navigation.import';
5
5
  import { UserClass } from 'esoftplay/cache/user/class.import';
6
6
  import { UserRoutes } from 'esoftplay/cache/user/routes.import';
7
-
7
+ import _global from 'esoftplay/_global';
8
8
  import React from "react";
9
9
 
10
10
  export interface LibNavigationInjector {
@@ -1,8 +1,8 @@
1
1
  // noPage
2
+ import NetInfo from '@react-native-community/netinfo';
2
3
  import { useGlobalReturn } from 'esoftplay';
3
4
  import { LibComponent } from 'esoftplay/cache/lib/component.import';
4
5
  import useGlobalState from 'esoftplay/global';
5
-
6
6
  import React from "react";
7
7
  import { Animated, Text } from "react-native";
8
8
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "esoftplay",
3
- "version": "0.0.120-a",
3
+ "version": "0.0.120-d",
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",