pabal-store-api-mcp 1.3.9 → 1.3.10
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.
|
@@ -191,14 +191,15 @@ export class GooglePlayService {
|
|
|
191
191
|
for (const locale of localesToPush) {
|
|
192
192
|
try {
|
|
193
193
|
const localeData = googlePlayData.locales[locale];
|
|
194
|
-
// Check if
|
|
195
|
-
const
|
|
196
|
-
(
|
|
197
|
-
localeData.screenshots.phone
|
|
198
|
-
|
|
199
|
-
localeData.screenshots.tablet
|
|
194
|
+
// Check if images are defined in aso-data.json
|
|
195
|
+
const hasImagesInJson = Boolean(localeData?.featureGraphic) ||
|
|
196
|
+
Boolean(localeData?.screenshots &&
|
|
197
|
+
((localeData.screenshots.phone &&
|
|
198
|
+
localeData.screenshots.phone.length > 0) ||
|
|
199
|
+
(localeData.screenshots.tablet &&
|
|
200
|
+
localeData.screenshots.tablet.length > 0)));
|
|
200
201
|
let screenshots;
|
|
201
|
-
if (
|
|
202
|
+
if (hasImagesInJson) {
|
|
202
203
|
// Use screenshots from aso-data.json (relative paths)
|
|
203
204
|
console.error(`[GooglePlay] 📋 Using screenshots from aso-data.json for ${locale}`);
|
|
204
205
|
const relativePaths = localeData.screenshots;
|
|
@@ -230,10 +231,17 @@ export class GooglePlayService {
|
|
|
230
231
|
featureGraphic: fsScreenshots.featureGraphic,
|
|
231
232
|
};
|
|
232
233
|
}
|
|
233
|
-
// Google Play requires minimum 2 phone screenshots
|
|
234
|
+
// Google Play requires minimum 2 phone screenshots for that image type.
|
|
234
235
|
const phoneCount = screenshots.phone.length;
|
|
235
|
-
if (phoneCount < 2) {
|
|
236
|
-
console.error(`[GooglePlay] ⚠️ Skipping ${locale} - needs at least 2
|
|
236
|
+
if (phoneCount > 0 && phoneCount < 2) {
|
|
237
|
+
console.error(`[GooglePlay] ⚠️ Skipping phone screenshots for ${locale} - needs at least 2 (found ${phoneCount})`);
|
|
238
|
+
screenshots.phone = [];
|
|
239
|
+
}
|
|
240
|
+
const hasImagesToUpload = screenshots.phone.length > 0 ||
|
|
241
|
+
screenshots.tablet.length > 0 ||
|
|
242
|
+
Boolean(screenshots.featureGraphic);
|
|
243
|
+
if (!hasImagesToUpload) {
|
|
244
|
+
console.error(`[GooglePlay] ⏭️ Skipping ${locale} - no uploadable images found`);
|
|
237
245
|
skippedLocales.push(locale);
|
|
238
246
|
continue;
|
|
239
247
|
}
|
|
@@ -248,7 +256,7 @@ export class GooglePlayService {
|
|
|
248
256
|
tenInchScreenshots: screenshots.tablet,
|
|
249
257
|
featureGraphic: screenshots.featureGraphic || undefined,
|
|
250
258
|
});
|
|
251
|
-
console.error(`[GooglePlay] ✅
|
|
259
|
+
console.error(`[GooglePlay] ✅ Images uploaded for ${locale}: ${uploadResult.uploaded.phoneScreenshots} phone, ${uploadResult.uploaded.sevenInchScreenshots} 7-inch, ${uploadResult.uploaded.tenInchScreenshots} 10-inch, feature graphic ${uploadResult.uploaded.featureGraphic ? "yes" : "no"}`);
|
|
252
260
|
uploadedLocales.push(locale);
|
|
253
261
|
}
|
|
254
262
|
catch (error) {
|