esoftplay 0.0.129-m → 0.0.129-o
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 +8 -7
- package/modules/lib/net_status.tsx +5 -2
- package/package.json +1 -1
package/bin/cli.js
CHANGED
|
@@ -700,6 +700,7 @@ function configAvailable(enabled) {
|
|
|
700
700
|
}
|
|
701
701
|
|
|
702
702
|
function build() {
|
|
703
|
+
const local = args[1] == 'local' ? ' --local' : ''
|
|
703
704
|
const types = isWeb
|
|
704
705
|
?
|
|
705
706
|
[
|
|
@@ -715,7 +716,7 @@ function build() {
|
|
|
715
716
|
[
|
|
716
717
|
{
|
|
717
718
|
name: "1. IOS (Development) - Simulator",
|
|
718
|
-
cmd: "eas build --platform ios --profile development",
|
|
719
|
+
cmd: "eas build --platform ios --profile development" + local,
|
|
719
720
|
pre: () => {
|
|
720
721
|
configAvailable(true)
|
|
721
722
|
devClientPre(appjson)
|
|
@@ -727,7 +728,7 @@ function build() {
|
|
|
727
728
|
},
|
|
728
729
|
{
|
|
729
730
|
name: "2. IOS (Preview) - Simulator",
|
|
730
|
-
cmd: "eas build --platform ios --profile preview",
|
|
731
|
+
cmd: "eas build --platform ios --profile preview" + local,
|
|
731
732
|
pre: () => {
|
|
732
733
|
configAvailable(true)
|
|
733
734
|
devClientPos(appjson)
|
|
@@ -739,7 +740,7 @@ function build() {
|
|
|
739
740
|
},
|
|
740
741
|
{
|
|
741
742
|
name: "3. IOS (Preview) - Non Simulator",
|
|
742
|
-
cmd: "eas build --platform ios --profile preview_build",
|
|
743
|
+
cmd: "eas build --platform ios --profile preview_build" + local,
|
|
743
744
|
pre: () => {
|
|
744
745
|
configAvailable(true)
|
|
745
746
|
devClientPos(appjson)
|
|
@@ -751,7 +752,7 @@ function build() {
|
|
|
751
752
|
},
|
|
752
753
|
{
|
|
753
754
|
name: "4. IOS (Production) - ipa",
|
|
754
|
-
cmd: "eas build --platform ios --profile production",
|
|
755
|
+
cmd: "eas build --platform ios --profile production" + local,
|
|
755
756
|
pre: () => {
|
|
756
757
|
configAvailable(true)
|
|
757
758
|
devClientPos(appjson)
|
|
@@ -763,7 +764,7 @@ function build() {
|
|
|
763
764
|
},
|
|
764
765
|
{
|
|
765
766
|
name: "5. Android (Development) - apk",
|
|
766
|
-
cmd: "eas build --platform android --profile development",
|
|
767
|
+
cmd: "eas build --platform android --profile development" + local,
|
|
767
768
|
pre: () => {
|
|
768
769
|
configAvailable(true)
|
|
769
770
|
devClientPre(appjson)
|
|
@@ -775,7 +776,7 @@ function build() {
|
|
|
775
776
|
},
|
|
776
777
|
{
|
|
777
778
|
name: "6. Android (Preview) - apk",
|
|
778
|
-
cmd: "eas build --platform android --profile preview",
|
|
779
|
+
cmd: "eas build --platform android --profile preview" + local,
|
|
779
780
|
pre: () => {
|
|
780
781
|
configAvailable(true)
|
|
781
782
|
devClientPos(appjson)
|
|
@@ -787,7 +788,7 @@ function build() {
|
|
|
787
788
|
},
|
|
788
789
|
{
|
|
789
790
|
name: "7. Android (Production) - aab",
|
|
790
|
-
cmd: "eas build --platform android --profile production",
|
|
791
|
+
cmd: "eas build --platform android --profile production" + local,
|
|
791
792
|
pre: () => {
|
|
792
793
|
configAvailable(true)
|
|
793
794
|
devClientPos(appjson)
|
|
@@ -39,7 +39,7 @@ class net_status extends LibComponent<LibNet_statusProps, LibNet_statusState> {
|
|
|
39
39
|
componentDidMount(): void {
|
|
40
40
|
super.componentDidMount()
|
|
41
41
|
this.unsubscribe = NetInfo.addEventListener(state => {
|
|
42
|
-
this.onChangeConnectivityStatus(!!state.isConnected, state.isInternetReachable)
|
|
42
|
+
this.onChangeConnectivityStatus(!!state.isConnected, !!state.isInternetReachable)
|
|
43
43
|
});
|
|
44
44
|
}
|
|
45
45
|
|
|
@@ -52,12 +52,15 @@ class net_status extends LibComponent<LibNet_statusProps, LibNet_statusState> {
|
|
|
52
52
|
let isOnline = isConnected && isInternetReachable
|
|
53
53
|
net_status.setOnline(isConnected, isInternetReachable)
|
|
54
54
|
if (isOnline) {
|
|
55
|
+
clearTimeout(this.timeout)
|
|
55
56
|
this.timeout = setTimeout(() => {
|
|
56
57
|
this.setState({ zeroHeight: 1 })
|
|
57
58
|
}, 1500)
|
|
58
59
|
} else {
|
|
59
|
-
this.setState({ zeroHeight: 2 })
|
|
60
60
|
clearTimeout(this.timeout)
|
|
61
|
+
this.timeout = setTimeout(() => {
|
|
62
|
+
this.setState({ zeroHeight: 2 })
|
|
63
|
+
}, 600)
|
|
61
64
|
}
|
|
62
65
|
}
|
|
63
66
|
|