codeplay-common 1.9.9 → 2.0.1

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.
@@ -22,7 +22,7 @@ const requiredPlugins = [
22
22
  { pattern: /Ads[\/\\]admob-emi-(\d+\.\d+)\.js$/, minVersion: '3.1', required: true },
23
23
 
24
24
  // New added plugins
25
- { pattern: /video-player-(\d+\.\d+)\.js$/, minVersion: '1.4', required: true },
25
+ { pattern: /video-player-(\d+\.\d+)\.js$/, minVersion: '1.5', required: true },
26
26
  { pattern: /image-cropper-(\d+\.\d+)\.js$/, minVersion: '1.1', required: true },
27
27
 
28
28
  // New folders
@@ -212,7 +212,17 @@ if (fs.existsSync(appJsPath)) {
212
212
  fs.writeFileSync(appJsPath, newLines.join('\n'), 'utf8');
213
213
  console.log(`✅ All Keyboard.set* lines wrapped safely with ios check`);
214
214
  } else {
215
- console.error(`❌ src/js/capacitor-app.js not found at: ${appJsPath}`);
215
+
216
+
217
+ const configPath = path.join(process.cwd(), 'capacitor.config.json');
218
+
219
+ const rawData = fs.readFileSync(configPath, 'utf8');
220
+ const config = JSON.parse(rawData);
221
+
222
+ const appUniqueId=config.android.APP_UNIQUE_ID
223
+
224
+ if(appUniqueId!=172)
225
+ console.error(`❌ src/js/capacitor-app.js not found at: ${appJsPath}`);
216
226
  }
217
227
 
218
228
 
@@ -242,6 +252,9 @@ const rawData = fs.readFileSync(configPath, 'utf8');
242
252
  const config = JSON.parse(rawData);
243
253
  const targetAppId=config.appId
244
254
 
255
+
256
+
257
+
245
258
  //console.log("TARGET APP ID IS : "+ targetAppId)
246
259
 
247
260
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "codeplay-common",
3
- "version": "1.9.9",
3
+ "version": "2.0.1",
4
4
  "description": "Common build scripts and files",
5
5
  "scripts": {
6
6
  "postinstall": "node scripts/sync-files.js",