esoftplay 0.0.126-s → 0.0.126-u

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/cli.js CHANGED
@@ -138,6 +138,10 @@ function switchStatusAssets(status) {
138
138
  const icondebug = DIR + "assets/icon.debug.png"
139
139
  const iconlive = DIR + "assets/icon.live.png"
140
140
 
141
+ const icon_iospng = DIR + "assets/icon_ios.png"
142
+ const icon_iosdebug = DIR + "assets/icon_ios.debug.png"
143
+ const icon_ioslive = DIR + "assets/icon_ios.live.png"
144
+
141
145
  const iconNotifpng = DIR + "assets/iconNotif.png"
142
146
  const iconNotifdebug = DIR + "assets/iconNotif.debug.png"
143
147
  const iconNotiflive = DIR + "assets/iconNotif.live.png"
@@ -156,11 +160,13 @@ function switchStatusAssets(status) {
156
160
  }
157
161
  if (status.includes('l')) {
158
162
  copyFileFromTo(iconlive, iconpng)
163
+ copyFileFromTo(icon_ioslive, icon_iospng)
159
164
  copyFileFromTo(splashlive, splashpng)
160
165
  copyFileFromTo(iconNotiflive, iconNotifpng)
161
166
  }
162
167
  if (status.includes('d')) {
163
168
  copyFileFromTo(icondebug, iconpng)
169
+ copyFileFromTo(icon_iosdebug, icon_iospng)
164
170
  copyFileFromTo(splashdebug, splashpng)
165
171
  copyFileFromTo(iconNotifdebug, iconNotifpng)
166
172
  }
@@ -964,8 +970,17 @@ function switchStatus(status) {
964
970
  let valid = true
965
971
  if (valid)
966
972
  valid = copyFromTo(status.includes("l") ? applive : appdebug, appjson)
967
- if (valid)
973
+ if (valid) {
968
974
  valid = copyFromTo(status.includes("l") ? conflive : confdebug, confjson)
975
+
976
+ const cjson = readToJSON(confjson)
977
+ if (cjson.hasOwnProperty('config')) {
978
+ if (cjson.config.hasOwnProperty('build')) {
979
+ const [usr, pwd] = cjson.config.build
980
+ command(`expo logout && expo login -u ${usr} -p ${pwd}`)
981
+ }
982
+ }
983
+ }
969
984
  if (valid && fs.existsSync(gplist))
970
985
  valid = copyFromTo(status.includes("l") ? gplistlive : gplistdebug, gplistlive)
971
986
  switchStatusAssets(status)
@@ -105,8 +105,6 @@ export default function m(props: UserIndexProps): any {
105
105
 
106
106
  }
107
107
  }
108
-
109
-
110
108
  LibUpdaterProperty.check()
111
109
  }, [])
112
110
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "esoftplay",
3
- "version": "0.0.126-s",
3
+ "version": "0.0.126-u",
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",