esoftplay 0.0.144 → 0.0.146

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 CHANGED
@@ -290,7 +290,16 @@ function switchStatusAssets(status) {
290
290
  command('cp ' + from + ' ' + to)
291
291
  }
292
292
  }
293
-
293
+ fs.readFileSync(DIR).forEach((file) => {
294
+ if (status.includes('d'))
295
+ if (file.match(/^.*.debug.*/g)) {
296
+ copyFileFromTo(file, file.replace('.debug.', '.'))
297
+ }
298
+ if (status.includes('l'))
299
+ if (file.match(/^.*.live.*/g)) {
300
+ copyFileFromTo(file, file.replace('.live.', '.'))
301
+ }
302
+ })
294
303
  fs.readdirSync(DIR + '/modules/').forEach((mod) => {
295
304
  const path = DIR + '/modules/' + mod
296
305
  if (fs.statSync(path).isDirectory())
@@ -1361,7 +1370,6 @@ function doInc(file) {
1361
1370
  consoleSucces(file + " Versi yang lama " + app.expo.version)
1362
1371
  app.expo.android.versionCode = lastVersion + 1
1363
1372
  app.expo.ios.buildNumber = String(lastVersion + 1)
1364
- // app.expo.runtimeVersion = String(lastVersion + 1)
1365
1373
  app.expo.version = args[1] || ('0.' + String(lastVersion + 1))
1366
1374
  consoleSucces(file + " Berhasil diupdate ke versi " + app.expo.version)
1367
1375
  fs.writeFileSync(file, JSON.stringify(app, undefined, 2))
@@ -7,7 +7,7 @@ import { Alert, Linking } from 'react-native';
7
7
 
8
8
 
9
9
  export const params = useGlobalState<any>(undefined)
10
-
10
+ /** Klik [disini](https://github.com/dev-esoftplay/mobile-docs/blob/main/modules/use/deeplink.md) untuk melihat dokumentasi*/
11
11
  export default function m(defaultUrl?: string): void {
12
12
  const doLink = useCallback(({ url }: { url: string }) => {
13
13
  const { domain, uri, protocol } = esp.config()
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "esoftplay",
3
- "version": "0.0.144",
3
+ "version": "0.0.146",
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",
@@ -33,7 +33,7 @@
33
33
  "url": "https://github.com/esoftplay/mobile/issues"
34
34
  },
35
35
  "bin": {
36
- "esoftplay": "./bin/cli.js"
36
+ "esoftplay": "bin/cli.js"
37
37
  },
38
38
  "homepage": "https://github.com/esoftplay/mobile#readme"
39
39
  }
package/publisher.js CHANGED
@@ -1,26 +1,16 @@
1
- const shell = require('child_process').execSync;
2
- const packJson = require("./package.json")
3
- const fs = require('fs');
1
+ const shell = require('child_process').execSync;
2
+ const packJson = require("./package.json")
3
+ const fs = require('fs');
4
4
  const letterVersion = "abcdefghijklmnopqrstuvwxyz"
5
- const version = packJson.version
6
- const vm = version.match(/([a-z])/g)
7
- const letter = vm ? vm[0] : null
8
- const number = version.replace(/-/g, "").replace(letter, "")
9
- let nextLetter = ""
10
- let nextNumber = number.split(".")[2]
11
- let nextVersion = number.split(".")[0] + "." + number.split(".")[1] + "."
12
- if (!letter) {
13
- nextLetter = letterVersion[0]
14
- nextVersion += nextNumber
15
- nextVersion += "-" + nextLetter
16
- } else if (letter != "z") {
17
- nextLetter = letterVersion[letterVersion.indexOf(String(letter)) + 1]
18
- nextVersion += nextNumber
19
- nextVersion += "-" + nextLetter
20
- } else {
21
- nextNumber = Number(nextNumber) + 1
22
- nextVersion += nextNumber
23
- }
5
+ const version = packJson.version
6
+ const vm = version.match(/([a-z])/g)
7
+ const letter = vm ? vm[0] : null
8
+ const number = version.replace(/-/g, "").replace(letter, "")
9
+ let nextNumber = number.split(".")[2]
10
+ let nextVersion = number.split(".")[0] + "." + number.split(".")[1] + "."
11
+
12
+ nextNumber = Number(nextNumber) + 1
13
+ nextVersion += nextNumber
24
14
  const newPackJson = { ...packJson, version: nextVersion }
25
15
  fs.writeFileSync("./package.json", JSON.stringify(newPackJson, undefined, 2))
26
16
  shell("npm publish", { stdio: ['inherit', 'inherit', 'inherit'] })