esoftplay 0.0.112-p → 0.0.112-s

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
@@ -286,6 +286,7 @@ export default function App() {
286
286
  'expo-media-library',
287
287
  'expo-notifications',
288
288
  'expo-status-bar',
289
+ 'expo-splash-screen',
289
290
  'expo-secure-store',
290
291
  'expo-updates',
291
292
  'immhelper',
package/bin/cli.js CHANGED
@@ -16,6 +16,7 @@ const packjson = DIR + "package.json"
16
16
  const confjson = DIR + "config.json"
17
17
  const conflive = DIR + "config.live.json"
18
18
  const confdebug = DIR + "config.debug.json"
19
+ const gitignore = DIR + ".gitignore"
19
20
 
20
21
  const gplist = DIR + "GoogleService-Info.plist"
21
22
  const gplistlive = DIR + "GoogleService-Info.live.plist"
@@ -392,6 +393,9 @@ function readToJSON(path) {
392
393
  }
393
394
 
394
395
  function publish(notes) {
396
+ jsEng(appjson, true)
397
+ jsEng(appdebug, true)
398
+ jsEng(applive, true)
395
399
  let status = "-"
396
400
  let ajson = readToJSON(appjson)
397
401
  let pack = readToJSON(packjson)
@@ -590,6 +594,21 @@ function devClientPos(file) {
590
594
  }
591
595
  }
592
596
 
597
+ function configAvailable(enabled) {
598
+ if (fs.existsSync(gitignore)) {
599
+ let _git = fs.readFileSync(gitignore, 'utf8')
600
+ const ignore = "config.json"
601
+ const notignore = "#config.json"
602
+ if (enabled) {
603
+ _git = _git.replace(ignore, notignore)
604
+ } else {
605
+ _git = _git.replace(notignore, ignore)
606
+ }
607
+ fs.writeFileSync(gitignore, _git, { encoding: 'utf8' })
608
+ } else {
609
+ consoleError(gitignore)
610
+ }
611
+ }
593
612
 
594
613
  function build() {
595
614
  const types = [
@@ -597,6 +616,7 @@ function build() {
597
616
  name: "1. IOS (Development) - Simulator",
598
617
  cmd: "eas build --platform ios --profile development",
599
618
  pre: () => {
619
+ configAvailable(true)
600
620
  devClientPre(appjson)
601
621
  jsEng(appjson, false)
602
622
  jsEng(appdebug, false)
@@ -608,6 +628,7 @@ function build() {
608
628
  name: "2. IOS (Preview) - Simulator",
609
629
  cmd: "eas build --platform ios --profile preview",
610
630
  pre: () => {
631
+ configAvailable(true)
611
632
  devClientPos(appjson)
612
633
  jsEng(appjson, true)
613
634
  jsEng(appdebug, true)
@@ -619,6 +640,7 @@ function build() {
619
640
  name: "3. IOS (Production) - ipa",
620
641
  cmd: "eas build --platform ios --profile production",
621
642
  pre: () => {
643
+ configAvailable(true)
622
644
  devClientPos(appjson)
623
645
  jsEng(appjson, true)
624
646
  jsEng(appdebug, true)
@@ -630,6 +652,7 @@ function build() {
630
652
  name: "4. Android (Development) - apk",
631
653
  cmd: "eas build --platform android --profile development",
632
654
  pre: () => {
655
+ configAvailable(true)
633
656
  devClientPre(appjson)
634
657
  jsEng(appjson, false)
635
658
  jsEng(appdebug, false)
@@ -641,6 +664,7 @@ function build() {
641
664
  name: "5. Android (Preview) - apk",
642
665
  cmd: "eas build --platform android --profile preview",
643
666
  pre: () => {
667
+ configAvailable(true)
644
668
  devClientPos(appjson)
645
669
  jsEng(appjson, true)
646
670
  jsEng(appdebug, true)
@@ -652,6 +676,7 @@ function build() {
652
676
  name: "6. Android (Production) - aab",
653
677
  cmd: "eas build --platform android --profile production",
654
678
  pre: () => {
679
+ configAvailable(true)
655
680
  devClientPos(appjson)
656
681
  jsEng(appjson, true)
657
682
  jsEng(appdebug, true)
@@ -696,6 +721,7 @@ function build() {
696
721
  if (pre) pre()
697
722
  consoleSucces("⚙⚙⚙ ... \n" + cmd)
698
723
  command(cmd)
724
+ configAvailable(false)
699
725
  devClientPos(appjson)
700
726
  } else if (d === false) {
701
727
  consoleError("Build Canceled")
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "esoftplay",
3
- "version": "0.0.112-p",
3
+ "version": "0.0.112-s",
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",