codeplay-common 4.7.7 → 4.7.8
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.
|
@@ -2940,6 +2940,23 @@ function removeOneSignalPlugin() {
|
|
|
2940
2940
|
|
|
2941
2941
|
const CODEPLAY_SYSTEM_BARS_PLUGIN = "capacitor-codeplay-system-bars";
|
|
2942
2942
|
|
|
2943
|
+
function ensureMandatoryCapacitorPlugins() {
|
|
2944
|
+
const requiredPackages = [
|
|
2945
|
+
"@capacitor/device",
|
|
2946
|
+
"@capacitor-community/in-app-review"
|
|
2947
|
+
];
|
|
2948
|
+
|
|
2949
|
+
for (const packageName of requiredPackages) {
|
|
2950
|
+
const installedPackagePath = path.join(process.cwd(), "node_modules", packageName, "package.json");
|
|
2951
|
+
if (isPackageAvailable(packageName) && fs.existsSync(installedPackagePath)) {
|
|
2952
|
+
console.log(`ℹ️ ${packageName} is already installed.`);
|
|
2953
|
+
continue;
|
|
2954
|
+
}
|
|
2955
|
+
|
|
2956
|
+
runNpmCommand(`npm install ${packageName}`);
|
|
2957
|
+
}
|
|
2958
|
+
}
|
|
2959
|
+
|
|
2943
2960
|
const syncCodeplaySystemBarsPackage = () => {
|
|
2944
2961
|
if (!fs.existsSync(packageJsonPath)) {
|
|
2945
2962
|
console.warn(`⚠️ package.json not found. Skipping ${CODEPLAY_SYSTEM_BARS_PLUGIN} package sync.`);
|
|
@@ -4227,6 +4244,7 @@ function patchFile() {
|
|
|
4227
4244
|
async function main() {
|
|
4228
4245
|
validateThemeFolderLocation();
|
|
4229
4246
|
validateAndRestoreSignDetails();
|
|
4247
|
+
ensureMandatoryCapacitorPlugins();
|
|
4230
4248
|
|
|
4231
4249
|
await loadPluginVersions(); // 🔥 NEW
|
|
4232
4250
|
await syncAgentInstructions();
|