esoftplay 0.0.112-s → 0.0.112-v
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 +20 -16
- package/modules/lib/image.tsx +1 -1
- package/package.json +1 -1
package/bin/cli.js
CHANGED
|
@@ -94,6 +94,9 @@ switch (args[0]) {
|
|
|
94
94
|
createMaster(args[1])
|
|
95
95
|
break;
|
|
96
96
|
case "start":
|
|
97
|
+
jsEng(appjson, false)
|
|
98
|
+
jsEng(appdebug, false)
|
|
99
|
+
jsEng(applive, false)
|
|
97
100
|
excludeModules()
|
|
98
101
|
execution();
|
|
99
102
|
break;
|
|
@@ -139,6 +142,23 @@ function consoleFunc(msg, success) {
|
|
|
139
142
|
}
|
|
140
143
|
}
|
|
141
144
|
|
|
145
|
+
|
|
146
|
+
function jsEng(file, isHermes) {
|
|
147
|
+
if (fs.existsSync(file)) {
|
|
148
|
+
var txt = fs.readFileSync(file, 'utf8');
|
|
149
|
+
let isJSON = txt.startsWith('{') || txt.startsWith('[')
|
|
150
|
+
if (!isJSON) {
|
|
151
|
+
consoleError('app.json tidak valid')
|
|
152
|
+
return
|
|
153
|
+
}
|
|
154
|
+
let app = JSON.parse(txt)
|
|
155
|
+
app.expo.jsEngine = isHermes ? "hermes" : "jsc"
|
|
156
|
+
fs.writeFileSync(file, JSON.stringify(app, undefined, 2))
|
|
157
|
+
} else {
|
|
158
|
+
consoleError(file)
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
|
|
142
162
|
function configUpdate(state) {
|
|
143
163
|
let _path;
|
|
144
164
|
let _slug
|
|
@@ -686,22 +706,6 @@ function build() {
|
|
|
686
706
|
}
|
|
687
707
|
]
|
|
688
708
|
|
|
689
|
-
function jsEng(file, isHermes) {
|
|
690
|
-
if (fs.existsSync(file)) {
|
|
691
|
-
var txt = fs.readFileSync(file, 'utf8');
|
|
692
|
-
let isJSON = txt.startsWith('{') || txt.startsWith('[')
|
|
693
|
-
if (!isJSON) {
|
|
694
|
-
consoleError('app.json tidak valid')
|
|
695
|
-
return
|
|
696
|
-
}
|
|
697
|
-
let app = JSON.parse(txt)
|
|
698
|
-
app.expo.jsEngine = isHermes ? "hermes" : "jsc"
|
|
699
|
-
fs.writeFileSync(file, JSON.stringify(app, undefined, 2))
|
|
700
|
-
} else {
|
|
701
|
-
consoleError(file)
|
|
702
|
-
}
|
|
703
|
-
}
|
|
704
|
-
|
|
705
709
|
if (args[0] == "build" || args[0] == "b") {
|
|
706
710
|
let d = false
|
|
707
711
|
const rl = readline.createInterface({
|
package/modules/lib/image.tsx
CHANGED
|
@@ -160,7 +160,7 @@ class m extends LibComponent<LibImageProps, LibImageState> {
|
|
|
160
160
|
max = 1
|
|
161
161
|
}
|
|
162
162
|
if (max == 1) {
|
|
163
|
-
ImagePicker.launchImageLibraryAsync({ presentationStyle:
|
|
163
|
+
ImagePicker.launchImageLibraryAsync({ presentationStyle: ImagePicker.UIImagePickerPresentationStyle.FULL_SCREEN }).then(async (x: any) => {
|
|
164
164
|
if (!x.cancelled) {
|
|
165
165
|
if (options && options.crop) {
|
|
166
166
|
m.showCropper(x.uri, options.crop.forceCrop, options.crop.ratio, options.crop?.message, async (x) => {
|