esoftplay 0.0.112-o → 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 +8 -2
- 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
|
@@ -608,6 +608,7 @@ function build() {
|
|
|
608
608
|
name: "2. IOS (Preview) - Simulator",
|
|
609
609
|
cmd: "eas build --platform ios --profile preview",
|
|
610
610
|
pre: () => {
|
|
611
|
+
devClientPos(appjson)
|
|
611
612
|
jsEng(appjson, true)
|
|
612
613
|
jsEng(appdebug, true)
|
|
613
614
|
jsEng(applive, true)
|
|
@@ -618,6 +619,7 @@ function build() {
|
|
|
618
619
|
name: "3. IOS (Production) - ipa",
|
|
619
620
|
cmd: "eas build --platform ios --profile production",
|
|
620
621
|
pre: () => {
|
|
622
|
+
devClientPos(appjson)
|
|
621
623
|
jsEng(appjson, true)
|
|
622
624
|
jsEng(appdebug, true)
|
|
623
625
|
jsEng(applive, true)
|
|
@@ -639,6 +641,7 @@ function build() {
|
|
|
639
641
|
name: "5. Android (Preview) - apk",
|
|
640
642
|
cmd: "eas build --platform android --profile preview",
|
|
641
643
|
pre: () => {
|
|
644
|
+
devClientPos(appjson)
|
|
642
645
|
jsEng(appjson, true)
|
|
643
646
|
jsEng(appdebug, true)
|
|
644
647
|
jsEng(applive, true)
|
|
@@ -649,6 +652,7 @@ function build() {
|
|
|
649
652
|
name: "6. Android (Production) - aab",
|
|
650
653
|
cmd: "eas build --platform android --profile production",
|
|
651
654
|
pre: () => {
|
|
655
|
+
devClientPos(appjson)
|
|
652
656
|
jsEng(appjson, true)
|
|
653
657
|
jsEng(appdebug, true)
|
|
654
658
|
jsEng(applive, true)
|
|
@@ -674,7 +678,7 @@ function build() {
|
|
|
674
678
|
}
|
|
675
679
|
|
|
676
680
|
if (args[0] == "build" || args[0] == "b") {
|
|
677
|
-
let d
|
|
681
|
+
let d = false
|
|
678
682
|
const rl = readline.createInterface({
|
|
679
683
|
input: process.stdin,
|
|
680
684
|
output: process.stdout
|
|
@@ -689,10 +693,12 @@ function build() {
|
|
|
689
693
|
if (d) {
|
|
690
694
|
let cmd = d.cmd
|
|
691
695
|
let pre = d.pre
|
|
692
|
-
if (pre)
|
|
696
|
+
if (pre) pre()
|
|
693
697
|
consoleSucces("⚙⚙⚙ ... \n" + cmd)
|
|
694
698
|
command(cmd)
|
|
695
699
|
devClientPos(appjson)
|
|
700
|
+
} else if (d === false) {
|
|
701
|
+
consoleError("Build Canceled")
|
|
696
702
|
} else {
|
|
697
703
|
consoleError("Build type tidak ditemukan")
|
|
698
704
|
}
|