codeplay-common 1.8.4 → 1.8.5

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.
@@ -108,7 +108,14 @@ if (editorDirs.length === 0) {
108
108
  }
109
109
  else
110
110
  {
111
- const latestEditorDir = editorDirs[editorDirs.length - 1];
111
+
112
+ const latestEditorDir = editorDirs.sort((a, b) => {
113
+ const versionA = parseFloat(a.split('-')[1]);
114
+ const versionB = parseFloat(b.split('-')[1]);
115
+ return versionB - versionA;
116
+ })[0];
117
+
118
+ //const latestEditorDir = editorDirs[editorDirs.length - 1];
112
119
  const runJsPath = path.join(baseDir, latestEditorDir, "run.js");
113
120
 
114
121
  if (!fs.existsSync(runJsPath)) {
@@ -600,7 +607,8 @@ function validateAndroidBuildOptions() {
600
607
  "com.HTML.AngularJS.Codeplay",
601
608
  "com.html.codeplay.pro",
602
609
  "com.bootstrap.code.play",
603
- "com.kids.learning.master"
610
+ "com.kids.learning.master",
611
+ "com.Simple.Barcode.Scanner"
604
612
  ]
605
613
  };
606
614
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "codeplay-common",
3
- "version": "1.8.4",
3
+ "version": "1.8.5",
4
4
  "description": "Common build scripts and files",
5
5
  "scripts": {
6
6
  "postinstall": "node scripts/sync-files.js",