codeplay-common 4.1.4 → 4.1.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
+
15
+ Version 4.1.5
16
+ While isTesting is true it is not validated from our new configuration admob file, now it is solved
17
+
14
18
  Version 4.1.4
15
19
  hardcoded version is removed for the admob-emi-nextgen
16
20
 
@@ -129,14 +129,14 @@ function getAdMobConfig() {
129
129
 
130
130
  const _capacitorConfig = getAdMobConfig();
131
131
 
132
- const _isADMOB_ENABLED=_capacitorConfig.ADMOB_ENABLED;
133
- isAdmobFound = _isADMOB_ENABLED;
132
+ const _isADMOB_ENABLED=_capacitorConfig.ADMOB_ENABLED;
133
+ isAdmobFound = _isADMOB_ENABLED;
134
134
 
135
135
  // Proceed only if ADMOB_ENABLED is true
136
136
  //if (_capacitorConfig.ADMOB_ENABLED)
137
137
 
138
138
 
139
- const admobConfigPath = join('src', 'js','Ads', 'admob-ad-configuration.json');
139
+ const admobConfigPath = join('src', 'js','Ads', 'admob-ad-configuration-nextgen.json');
140
140
  let admobConfig;
141
141
 
142
142
  if (_isADMOB_ENABLED)
@@ -264,7 +264,7 @@ const checkCommonFileStoreId=()=>{
264
264
  const checkIsTestingInAdmob=()=>{
265
265
 
266
266
  if (admobConfig.config && admobConfig.config.isTesting === true) {
267
- console.error(`❌ Problem found while generating the AAB file. Please change "isTesting: true" to "isTesting: false" in the "admob-ad-configuration.json" file.`);
267
+ console.error(`❌ Problem found while generating the AAB file. Please change "isTesting: true" to "isTesting: false" in the "admob-ad-configuration-nextgen.json" file.`);
268
268
  process.exit(1); // Exit with an error code to halt the process
269
269
  } else {
270
270
  console.log('✅ No problem found. "isTesting" is either already false or not defined.');
@@ -322,9 +322,9 @@ const checkIsAdsDisableByReturnStatement=()=>{
322
322
 
323
323
 
324
324
 
325
- const addPermission_AD_ID=async()=>{
326
-
327
- if (isAdmobFound) {
325
+ const addPermission_AD_ID=async()=>{
326
+
327
+ if (isAdmobFound) {
328
328
  if (existsSync(androidManifestPath)) {
329
329
  let manifestContent = readFileSync(androidManifestPath, 'utf8');
330
330
  let modified = false;
@@ -693,17 +693,17 @@ rl.question('Enter new versionCode (press enter to keep current): ', (newVersion
693
693
  }
694
694
 
695
695
 
696
- // Run the Node.js script to modify plugin.xml
697
- if (isAdmobFound) {
698
- const modifyPluginXmlPath = join('buildCodeplay', 'modify-plugin-xml.js');
699
- if (existsSync(modifyPluginXmlPath)) {
700
- execSync(`node ${modifyPluginXmlPath}`, { stdio: 'inherit' });
701
- } else {
702
- console.log("\x1b[33m%s\x1b[0m", "⚠️ modify-plugin-xml.js not found. Skipping old AdMob plugin.xml modification.");
703
- }
704
- } else {
705
- console.log("\x1b[33m%s\x1b[0m", "Seems to Pro Version [No ads found]");
706
- }
696
+ // Run the Node.js script to modify plugin.xml
697
+ if (isAdmobFound) {
698
+ const modifyPluginXmlPath = join('buildCodeplay', 'modify-plugin-xml.js');
699
+ if (existsSync(modifyPluginXmlPath)) {
700
+ execSync(`node ${modifyPluginXmlPath}`, { stdio: 'inherit' });
701
+ } else {
702
+ console.log("\x1b[33m%s\x1b[0m", "⚠️ modify-plugin-xml.js not found. Skipping old AdMob plugin.xml modification.");
703
+ }
704
+ } else {
705
+ console.log("\x1b[33m%s\x1b[0m", "Seems to Pro Version [No ads found]");
706
+ }
707
707
 
708
708
  // Run the Vite build
709
709
  execSync(`npm run build:storeid${id}`, { stdio: 'inherit' });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "codeplay-common",
3
- "version": "4.1.4",
3
+ "version": "4.1.5",
4
4
  "description": "Common build scripts and files",
5
5
  "scripts": {
6
6
  "postinstall": "node scripts/sync-files.js",