esoftplay 0.0.112-m → 0.0.112-p
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 +2 -1
- package/bin/cli.js +9 -9
- package/package.json +1 -1
package/bin/build.js
CHANGED
|
@@ -241,9 +241,10 @@ import * as ErrorReport from 'esoftplay/error';
|
|
|
241
241
|
import * as Notifications from 'expo-notifications';
|
|
242
242
|
import React, { useEffect, useRef } from 'react';
|
|
243
243
|
import { GestureHandlerRootView } from 'react-native-gesture-handler';
|
|
244
|
-
import { enableScreens } from 'react-native-screens';
|
|
244
|
+
import { enableScreens, enableFreeze } from 'react-native-screens';
|
|
245
245
|
const { globalIdx } = require('esoftplay/global');
|
|
246
246
|
enableScreens();
|
|
247
|
+
enableFreeze();
|
|
247
248
|
|
|
248
249
|
Notifications.addNotificationResponseReceivedListener(x => LibNotification.onAction(x));
|
|
249
250
|
|
package/bin/cli.js
CHANGED
|
@@ -568,10 +568,7 @@ function devClientPre(file) {
|
|
|
568
568
|
return
|
|
569
569
|
}
|
|
570
570
|
let app = JSON.parse(txt)
|
|
571
|
-
app.expo.name = "DC-" + app.expo.name
|
|
572
|
-
app.expo.slug = "DC-" + app.expo.slug
|
|
573
|
-
app.expo.android.package = app.expo.android.package + "-dc"
|
|
574
|
-
app.expo.ios.bundleIdentifier = app.expo.ios.bundleIdentifier + "-dc"
|
|
571
|
+
app.expo.name = app.expo.name.includes("DC-") ? app.expo.name : ("DC-" + app.expo.name)
|
|
575
572
|
fs.writeFileSync(file, JSON.stringify(app, undefined, 2))
|
|
576
573
|
} else {
|
|
577
574
|
consoleError(file)
|
|
@@ -587,9 +584,6 @@ function devClientPos(file) {
|
|
|
587
584
|
}
|
|
588
585
|
let app = JSON.parse(txt)
|
|
589
586
|
app.expo.name = app.expo.name.replace("DC-", "")
|
|
590
|
-
app.expo.slug = app.expo.slug.replace("DC-", "")
|
|
591
|
-
app.expo.android.package = app.expo.android.package.replace("-dc", "")
|
|
592
|
-
app.expo.ios.bundleIdentifier = app.expo.ios.bundleIdentifier.replace("-dc", "")
|
|
593
587
|
fs.writeFileSync(file, JSON.stringify(app, undefined, 2))
|
|
594
588
|
} else {
|
|
595
589
|
consoleError(file)
|
|
@@ -614,6 +608,7 @@ function build() {
|
|
|
614
608
|
name: "2. IOS (Preview) - Simulator",
|
|
615
609
|
cmd: "eas build --platform ios --profile preview",
|
|
616
610
|
pre: () => {
|
|
611
|
+
devClientPos(appjson)
|
|
617
612
|
jsEng(appjson, true)
|
|
618
613
|
jsEng(appdebug, true)
|
|
619
614
|
jsEng(applive, true)
|
|
@@ -624,6 +619,7 @@ function build() {
|
|
|
624
619
|
name: "3. IOS (Production) - ipa",
|
|
625
620
|
cmd: "eas build --platform ios --profile production",
|
|
626
621
|
pre: () => {
|
|
622
|
+
devClientPos(appjson)
|
|
627
623
|
jsEng(appjson, true)
|
|
628
624
|
jsEng(appdebug, true)
|
|
629
625
|
jsEng(applive, true)
|
|
@@ -645,6 +641,7 @@ function build() {
|
|
|
645
641
|
name: "5. Android (Preview) - apk",
|
|
646
642
|
cmd: "eas build --platform android --profile preview",
|
|
647
643
|
pre: () => {
|
|
644
|
+
devClientPos(appjson)
|
|
648
645
|
jsEng(appjson, true)
|
|
649
646
|
jsEng(appdebug, true)
|
|
650
647
|
jsEng(applive, true)
|
|
@@ -655,6 +652,7 @@ function build() {
|
|
|
655
652
|
name: "6. Android (Production) - aab",
|
|
656
653
|
cmd: "eas build --platform android --profile production",
|
|
657
654
|
pre: () => {
|
|
655
|
+
devClientPos(appjson)
|
|
658
656
|
jsEng(appjson, true)
|
|
659
657
|
jsEng(appdebug, true)
|
|
660
658
|
jsEng(applive, true)
|
|
@@ -680,7 +678,7 @@ function build() {
|
|
|
680
678
|
}
|
|
681
679
|
|
|
682
680
|
if (args[0] == "build" || args[0] == "b") {
|
|
683
|
-
let d
|
|
681
|
+
let d = false
|
|
684
682
|
const rl = readline.createInterface({
|
|
685
683
|
input: process.stdin,
|
|
686
684
|
output: process.stdout
|
|
@@ -695,10 +693,12 @@ function build() {
|
|
|
695
693
|
if (d) {
|
|
696
694
|
let cmd = d.cmd
|
|
697
695
|
let pre = d.pre
|
|
698
|
-
if (pre)
|
|
696
|
+
if (pre) pre()
|
|
699
697
|
consoleSucces("⚙⚙⚙ ... \n" + cmd)
|
|
700
698
|
command(cmd)
|
|
701
699
|
devClientPos(appjson)
|
|
700
|
+
} else if (d === false) {
|
|
701
|
+
consoleError("Build Canceled")
|
|
702
702
|
} else {
|
|
703
703
|
consoleError("Build type tidak ditemukan")
|
|
704
704
|
}
|