codeplay-common 4.6.5 â 4.6.6
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.
|
@@ -2905,12 +2905,38 @@ const sourceImportsPackage = (packageName, ignoredFilePath) => {
|
|
|
2905
2905
|
return scan(sourceDir);
|
|
2906
2906
|
};
|
|
2907
2907
|
|
|
2908
|
-
const runNpmCommand = (command) => {
|
|
2909
|
-
console.log(`đ ${command}`);
|
|
2910
|
-
execSync(command, { stdio: "inherit" });
|
|
2911
|
-
};
|
|
2912
|
-
|
|
2913
|
-
const
|
|
2908
|
+
const runNpmCommand = (command) => {
|
|
2909
|
+
console.log(`đ ${command}`);
|
|
2910
|
+
execSync(command, { stdio: "inherit" });
|
|
2911
|
+
};
|
|
2912
|
+
|
|
2913
|
+
const CODEPLAY_SYSTEM_BARS_PLUGIN = "capacitor-codeplay-system-bars";
|
|
2914
|
+
|
|
2915
|
+
const syncCodeplaySystemBarsPackage = () => {
|
|
2916
|
+
if (!fs.existsSync(packageJsonPath)) {
|
|
2917
|
+
console.warn(`â ī¸ package.json not found. Skipping ${CODEPLAY_SYSTEM_BARS_PLUGIN} package sync.`);
|
|
2918
|
+
return;
|
|
2919
|
+
}
|
|
2920
|
+
|
|
2921
|
+
const packageJson = JSON.parse(fs.readFileSync(packageJsonPath, "utf8"));
|
|
2922
|
+
const declaredVersion = packageJson.dependencies?.[CODEPLAY_SYSTEM_BARS_PLUGIN];
|
|
2923
|
+
const usesLocalReference = typeof declaredVersion === "string" && declaredVersion.startsWith("file:");
|
|
2924
|
+
|
|
2925
|
+
if (usesLocalReference) {
|
|
2926
|
+
console.log(`âšī¸ Replacing the local ${CODEPLAY_SYSTEM_BARS_PLUGIN} reference with the npm package.`);
|
|
2927
|
+
runNpmCommand(`npm install ${CODEPLAY_SYSTEM_BARS_PLUGIN}`);
|
|
2928
|
+
return;
|
|
2929
|
+
}
|
|
2930
|
+
|
|
2931
|
+
if (!isPackageAvailable(CODEPLAY_SYSTEM_BARS_PLUGIN)) {
|
|
2932
|
+
runNpmCommand(`npm install ${CODEPLAY_SYSTEM_BARS_PLUGIN}`);
|
|
2933
|
+
return;
|
|
2934
|
+
}
|
|
2935
|
+
|
|
2936
|
+
console.log(`âšī¸ ${CODEPLAY_SYSTEM_BARS_PLUGIN} is already installed.`);
|
|
2937
|
+
};
|
|
2938
|
+
|
|
2939
|
+
const ADMOB_NEXTGEN_DEFAULTS = {
|
|
2914
2940
|
VERSION: "1.6",
|
|
2915
2941
|
ios: { nativeid: "" },
|
|
2916
2942
|
android: { nativeid: "" },
|
|
@@ -4170,8 +4196,9 @@ async function main() {
|
|
|
4170
4196
|
await loadPluginVersions(); // đĨ NEW
|
|
4171
4197
|
await syncAgentInstructions();
|
|
4172
4198
|
|
|
4173
|
-
|
|
4174
|
-
|
|
4199
|
+
await syncAdmobNextgenMigration();
|
|
4200
|
+
syncCodeplaySystemBarsPackage();
|
|
4201
|
+
syncSystemBarsSafeAreaMigration();
|
|
4175
4202
|
await checkPlugins();
|
|
4176
4203
|
ensureIapStartupOnHomePage();
|
|
4177
4204
|
syncRevenueCatIapSetup();
|