codeplay-common 4.10.2 → 4.10.3

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/CHANGELOG.md CHANGED
@@ -1,5 +1,15 @@
1
1
  # Changelog
2
2
 
3
+ ## 4.10.3 — 2026-10-23
4
+
5
+ Version name: 4.10.3. Version code/build number: not applicable to this npm package.
6
+
7
+ Files changed: `package.json`, `files/finalrelease`, `CHANGELOG.md`, `RELEASE_NOTES.md`.
8
+
9
+ - Allow ad-free apps with `plugins.AdMob.ADMOB_ENABLED: false` to pass release validation without an AdMob alias or controller.
10
+ - Continue requiring a production AdMob alias when advertising is enabled or the enabled flag is unspecified.
11
+ - Preserve rejection of test aliases, commented or duplicate aliases, and missing production controllers for apps with ads enabled.
12
+
3
13
  ## 4.10.0 — 2026-10-23
4
14
 
5
15
  Version name: 4.10.0. Version code/build number: not applicable to this npm package.
package/RELEASE_NOTES.md CHANGED
@@ -1,5 +1,15 @@
1
1
  # Release notes
2
2
 
3
+ ## 4.10.3 — 2026-10-23
4
+
5
+ Version name: 4.10.3. Version code/build number: not applicable to this npm package.
6
+
7
+ Files changed: `package.json`, `files/finalrelease`, `CHANGELOG.md`, `RELEASE_NOTES.md`.
8
+
9
+ - Release ad-free apps without adding an unnecessary AdMob alias or controller.
10
+ - Explicitly set `plugins.AdMob.ADMOB_ENABLED` to `false` to use the ad-free release path.
11
+ - Keep production AdMob safety checks for apps with advertising enabled.
12
+
3
13
  ## 4.10.0 — 2026-10-23
4
14
 
5
15
  Version name: 4.10.0. Version code/build number: not applicable to this npm package.
@@ -90,6 +90,12 @@ function stripJavaScriptComments(content) {
90
90
  }
91
91
 
92
92
  function checkProductionAdmobAlias() {
93
+ const capacitorConfig = JSON.parse(readFileSync(resolve(__dirname, 'capacitor.config.json'), 'utf8'));
94
+ if (capacitorConfig.plugins?.AdMob?.ADMOB_ENABLED === false) {
95
+ console.log('ℹ️ AdMob is disabled; production @admob alias validation skipped.');
96
+ return;
97
+ }
98
+
93
99
  const possibleConfigFiles = ['vite.config.mjs', 'vite.config.js'];
94
100
  const viteConfigPath = possibleConfigFiles
95
101
  .map(configFile => resolve(__dirname, configFile))
@@ -133,7 +139,7 @@ function checkProductionAdmobAlias() {
133
139
  console.log(`✅ Production @admob alias verified: ${activeAlias}`);
134
140
  }
135
141
 
136
- // This must be the first release validation so test/no-ad builds cannot proceed.
142
+ // Validate the production alias first when AdMob is enabled.
137
143
  checkProductionAdmobAlias();
138
144
 
139
145
  // Define a mapping between store IDs and store names
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "codeplay-common",
3
- "version": "4.10.2",
3
+ "version": "4.10.3",
4
4
  "description": "Common build scripts and files",
5
5
  "scripts": {
6
6
  "postinstall": "node scripts/sync-files.js",