codeplay-common 4.0.4 → 4.0.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.
package/README.md CHANGED
@@ -11,6 +11,10 @@ Make it to ionic project
11
11
  Donate to get full code including many common functions
12
12
  https://ko-fi.com/codeplay
13
13
 
14
+ Version 4.0.5
15
+ In "files\buildCodeplay\packageidBaseModification-1.4.js" SCHEDULE_EXACT_ALARM permission added for the app unique id 2 (resume generator app)
16
+
17
+
14
18
  Version 4.0.4
15
19
  patchFile(); method is disabled, Due to "@capacitor/android:8.4.2" this update. I think it is realted to safearea issue fixed in this latest version, file in "SystemBars.java"
16
20
 
@@ -326,6 +326,7 @@ if (!fs.existsSync(configPath)) {
326
326
  const rawData = fs.readFileSync(configPath, 'utf8');
327
327
  const config = JSON.parse(rawData);
328
328
  const targetAppId=config.appId
329
+ const appUniqueId=config.android?.APP_UNIQUE_ID
329
330
 
330
331
 
331
332
 
@@ -394,6 +395,23 @@ function addPostNotificationPermissionIfNeeded() {
394
395
  addPostNotificationPermissionIfNeeded();
395
396
 
396
397
 
398
+ function addExactAlarmPermissionIfNeeded() {
399
+ const permission =
400
+ '<uses-permission android:name="android.permission.SCHEDULE_EXACT_ALARM" />';
401
+
402
+ if (Number(appUniqueId) !== 2) {
403
+ console.log('ℹ️ Skipping SCHEDULE_EXACT_ALARM permission for this APP_UNIQUE_ID.');
404
+ return;
405
+ }
406
+
407
+ console.log('✅ Career reminders app detected. Ensuring SCHEDULE_EXACT_ALARM permission...');
408
+ addAndroidPermissions([permission]);
409
+ }
410
+
411
+
412
+ addExactAlarmPermissionIfNeeded();
413
+
414
+
397
415
 
398
416
 
399
417
  //console.log("TARGET APP ID IS : "+ targetAppId)
@@ -418,4 +436,4 @@ else if(targetAppId=="image.to.text.document")
418
436
  ];
419
437
  }
420
438
 
421
- addAndroidPermissions(permissions);
439
+ addAndroidPermissions(permissions);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "codeplay-common",
3
- "version": "4.0.4",
3
+ "version": "4.0.5",
4
4
  "description": "Common build scripts and files",
5
5
  "scripts": {
6
6
  "postinstall": "node scripts/sync-files.js",