@yoonion/mimi-seed-mcp 0.24.0 → 0.25.1
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/dist/admob/cli.js +34 -5
- package/dist/admob/errors.js +39 -14
- package/dist/ai/client.js +35 -14
- package/dist/ai/notes.js +14 -3
- package/dist/ai/review.js +17 -4
- package/dist/android/keystore-store.js +28 -8
- package/dist/android/keystore.d.ts +17 -2
- package/dist/android/keystore.js +110 -21
- package/dist/android/messages.d.ts +13 -11
- package/dist/android/messages.js +166 -72
- package/dist/android/playstore-sa.js +6 -3
- package/dist/appstore/analytics.js +46 -14
- package/dist/appstore/app-info-policy.js +7 -1
- package/dist/appstore/app-info.js +13 -3
- package/dist/appstore/apps.js +7 -1
- package/dist/appstore/asset-library-write.js +119 -37
- package/dist/appstore/asset-library.js +19 -5
- package/dist/appstore/auth.d.ts +2 -0
- package/dist/appstore/auth.js +31 -5
- package/dist/appstore/client.js +27 -6
- package/dist/appstore/declarations.js +22 -6
- package/dist/appstore/errors.d.ts +1 -1
- package/dist/appstore/errors.js +60 -34
- package/dist/appstore/http.d.ts +6 -0
- package/dist/appstore/http.js +22 -5
- package/dist/appstore/messages.js +86 -28
- package/dist/appstore/previews.js +22 -6
- package/dist/appstore/product-localization.js +10 -2
- package/dist/appstore/product-review.js +29 -10
- package/dist/appstore/products.js +20 -6
- package/dist/appstore/read-response.js +13 -3
- package/dist/appstore/release-target.js +13 -3
- package/dist/appstore/release.js +59 -22
- package/dist/appstore/review-preview.js +17 -6
- package/dist/appstore/review-submission.js +86 -35
- package/dist/appstore/sales.js +96 -44
- package/dist/appstore/screenshots.js +19 -5
- package/dist/appstore/testflight.js +41 -18
- package/dist/appstore/upload-parts.js +12 -3
- package/dist/appstore/versions.js +22 -10
- package/dist/auth/bigquery-auth.js +44 -15
- package/dist/auth/bigquery-setup-cli.js +1 -1
- package/dist/auth/cli.js +4 -2
- package/dist/auth/constants.js +13 -3
- package/dist/auth/drive-auth.d.ts +3 -2
- package/dist/auth/drive-auth.js +47 -17
- package/dist/auth/drive-setup-cli.js +1 -0
- package/dist/auth/errors.d.ts +75 -0
- package/dist/auth/errors.js +190 -86
- package/dist/auth/google-auth.d.ts +3 -1
- package/dist/auth/google-auth.js +39 -27
- package/dist/auth/playstore-auth.d.ts +1 -0
- package/dist/auth/playstore-auth.js +35 -15
- package/dist/auth/scopes.d.ts +11 -29
- package/dist/auth/scopes.js +38 -11
- package/dist/auth/youtube-channel.d.ts +8 -0
- package/dist/auth/youtube-channel.js +11 -3
- package/dist/bigquery/ids.js +19 -5
- package/dist/bigquery/tools.js +24 -8
- package/dist/billing/tools.js +22 -6
- package/dist/checks/appstore-submission.d.ts +1 -1
- package/dist/checks/appstore-submission.js +29 -8
- package/dist/checks/plan.js +169 -62
- package/dist/checks/release-status.js +10 -2
- package/dist/checks/risks.js +230 -63
- package/dist/checks/screenshots.d.ts +4 -4
- package/dist/checks/screenshots.js +63 -22
- package/dist/ci/config.js +8 -5
- package/dist/ci/gitlab.js +3 -1
- package/dist/core/atomic-write.d.ts +5 -2
- package/dist/core/atomic-write.js +8 -4
- package/dist/core/catch-scan.d.ts +17 -0
- package/dist/core/catch-scan.js +111 -0
- package/dist/core/checks/billing.d.ts +5 -0
- package/dist/core/checks/billing.js +36 -5
- package/dist/core/checks/lockfile.js +2 -0
- package/dist/core/checks/release-doctor/fcm.js +1 -0
- package/dist/core/checks/release-doctor/files.d.ts +3 -1
- package/dist/core/checks/release-doctor/files.js +12 -1
- package/dist/core/checks/release-doctor/gradle-apply.js +1 -0
- package/dist/core/checks/release-doctor/ios-xcode.js +22 -3
- package/dist/core/checks/release-doctor/target-sdk.js +1 -1
- package/dist/core/checks/release-doctor/util.d.ts +5 -0
- package/dist/core/checks/release-doctor/util.js +56 -0
- package/dist/core/checks/release-doctor.js +59 -16
- package/dist/core/credential-envelope.d.ts +25 -0
- package/dist/core/credential-envelope.js +66 -0
- package/dist/core/credential-keystore.d.ts +51 -0
- package/dist/core/credential-keystore.js +331 -0
- package/dist/core/credential-read.d.ts +33 -0
- package/dist/core/credential-read.js +112 -0
- package/dist/core/credential-store.d.ts +61 -0
- package/dist/core/credential-store.js +240 -0
- package/dist/core/http-errors.js +1 -0
- package/dist/core/i18n-scan.d.ts +10 -0
- package/dist/core/i18n-scan.js +79 -0
- package/dist/core/json-file.d.ts +30 -0
- package/dist/core/json-file.js +53 -0
- package/dist/core/lang.d.ts +14 -0
- package/dist/core/lang.js +22 -2
- package/dist/core/project-manifest.d.ts +24 -1
- package/dist/core/project-manifest.js +27 -16
- package/dist/drive/tools.js +86 -34
- package/dist/facebook/api.js +3 -1
- package/dist/facebook/config.js +11 -3
- package/dist/facebook/setup.d.ts +2 -0
- package/dist/facebook/setup.js +32 -9
- package/dist/firebase/cli.js +39 -5
- package/dist/firebase/tools.js +36 -10
- package/dist/ga4/cli.js +48 -4
- package/dist/ga4/tools.js +4 -2
- package/dist/googleads/config.js +24 -8
- package/dist/googleads/tools.js +3 -1
- package/dist/gsc/tools.js +10 -2
- package/dist/helpers.d.ts +4 -2
- package/dist/helpers.js +66 -32
- package/dist/i18n/manifest-en.d.ts +6 -0
- package/dist/i18n/manifest-en.js +53 -0
- package/dist/i18n/tools-en/admob.d.ts +25 -0
- package/dist/i18n/tools-en/admob.js +24 -0
- package/dist/i18n/tools-en/ai.d.ts +14 -0
- package/dist/i18n/tools-en/ai.js +13 -0
- package/dist/i18n/tools-en/android.d.ts +14 -0
- package/dist/i18n/tools-en/android.js +13 -0
- package/dist/i18n/tools-en/appstore.d.ts +240 -0
- package/dist/i18n/tools-en/appstore.js +239 -0
- package/dist/i18n/tools-en/auth.d.ts +16 -0
- package/dist/i18n/tools-en/auth.js +15 -0
- package/dist/i18n/tools-en/bigquery.d.ts +16 -0
- package/dist/i18n/tools-en/bigquery.js +15 -0
- package/dist/i18n/tools-en/billing.d.ts +17 -0
- package/dist/i18n/tools-en/billing.js +16 -0
- package/dist/i18n/tools-en/checks.d.ts +23 -0
- package/dist/i18n/tools-en/checks.js +22 -0
- package/dist/i18n/tools-en/ci.d.ts +21 -0
- package/dist/i18n/tools-en/ci.js +20 -0
- package/dist/i18n/tools-en/drive.d.ts +33 -0
- package/dist/i18n/tools-en/drive.js +32 -0
- package/dist/i18n/tools-en/facebook.d.ts +14 -0
- package/dist/i18n/tools-en/facebook.js +13 -0
- package/dist/i18n/tools-en/firebase.d.ts +42 -0
- package/dist/i18n/tools-en/firebase.js +41 -0
- package/dist/i18n/tools-en/ga4.d.ts +35 -0
- package/dist/i18n/tools-en/ga4.js +34 -0
- package/dist/i18n/tools-en/googleads.d.ts +15 -0
- package/dist/i18n/tools-en/googleads.js +14 -0
- package/dist/i18n/tools-en/gsc.d.ts +27 -0
- package/dist/i18n/tools-en/gsc.js +26 -0
- package/dist/i18n/tools-en/iam.d.ts +15 -0
- package/dist/i18n/tools-en/iam.js +14 -0
- package/dist/i18n/tools-en/index.d.ts +7 -0
- package/dist/i18n/tools-en/index.js +58 -0
- package/dist/i18n/tools-en/instagram.d.ts +16 -0
- package/dist/i18n/tools-en/instagram.js +15 -0
- package/dist/i18n/tools-en/jenkins.d.ts +41 -0
- package/dist/i18n/tools-en/jenkins.js +40 -0
- package/dist/i18n/tools-en/naver.d.ts +10 -0
- package/dist/i18n/tools-en/naver.js +9 -0
- package/dist/i18n/tools-en/playstore.d.ts +148 -0
- package/dist/i18n/tools-en/playstore.js +147 -0
- package/dist/i18n/tools-en/registrar.d.ts +6 -0
- package/dist/i18n/tools-en/registrar.js +6 -0
- package/dist/i18n/tools-en/threads.d.ts +21 -0
- package/dist/i18n/tools-en/threads.js +20 -0
- package/dist/i18n/tools-en/tiktok.d.ts +21 -0
- package/dist/i18n/tools-en/tiktok.js +20 -0
- package/dist/i18n/tools-en/video.d.ts +59 -0
- package/dist/i18n/tools-en/video.js +58 -0
- package/dist/i18n/tools-en/youtube.d.ts +44 -0
- package/dist/i18n/tools-en/youtube.js +43 -0
- package/dist/iam/key-files.js +13 -3
- package/dist/instagram/api.js +19 -5
- package/dist/instagram/config.js +11 -3
- package/dist/instagram/setup.js +37 -11
- package/dist/jenkins/builds.d.ts +2 -2
- package/dist/jenkins/builds.js +70 -30
- package/dist/jenkins/config.d.ts +5 -0
- package/dist/jenkins/config.js +25 -6
- package/dist/jenkins/credentials.js +33 -13
- package/dist/jenkins/http.js +6 -3
- package/dist/jenkins/jobs.js +19 -5
- package/dist/jenkins/messages.js +93 -36
- package/dist/lib/cli-args.js +13 -7
- package/dist/lib/google-errors.js +31 -9
- package/dist/lib/http.js +10 -3
- package/dist/lib/json-file.d.ts +15 -0
- package/dist/lib/json-file.js +65 -0
- package/dist/lib/meta-auth.d.ts +1 -1
- package/dist/lib/meta-auth.js +26 -8
- package/dist/lib/package-name.js +15 -4
- package/dist/lib/package-root.js +1 -1
- package/dist/lib/paginate.js +10 -2
- package/dist/lib/path-containment.js +22 -6
- package/dist/lib/resource-id.js +10 -3
- package/dist/lib/store-create-result.js +54 -13
- package/dist/lib/text-validators.js +20 -5
- package/dist/lib/tool-registrar.d.ts +9 -0
- package/dist/lib/tool-registrar.js +33 -14
- package/dist/lib/tool-text.d.ts +31 -0
- package/dist/lib/tool-text.js +52 -0
- package/dist/lib/toolsets.js +13 -3
- package/dist/lib/url-path.js +3 -1
- package/dist/naver/tools.js +138 -46
- package/dist/playstore/data-safety.js +16 -4
- package/dist/playstore/errors.js +33 -8
- package/dist/playstore/financials.js +83 -35
- package/dist/playstore/listing.js +7 -1
- package/dist/playstore/messages.js +179 -57
- package/dist/playstore/products.js +10 -2
- package/dist/playstore/recovery.js +10 -2
- package/dist/playstore/releases.js +34 -14
- package/dist/playstore/reviews.js +14 -4
- package/dist/playstore/statistics.js +3 -1
- package/dist/prompts.js +160 -50
- package/dist/registers/admob.js +36 -11
- package/dist/registers/android.js +25 -9
- package/dist/registers/appstore/apps.js +22 -6
- package/dist/registers/appstore/customer-reviews.js +7 -1
- package/dist/registers/appstore/declarations.js +63 -19
- package/dist/registers/appstore/media.js +76 -24
- package/dist/registers/appstore/metadata.js +26 -8
- package/dist/registers/appstore/products.js +53 -19
- package/dist/registers/appstore/review-submission.js +31 -9
- package/dist/registers/appstore/testflight.js +82 -24
- package/dist/registers/appstore/versions.js +88 -30
- package/dist/registers/auth.js +343 -90
- package/dist/registers/bigquery.js +54 -14
- package/dist/registers/billing.js +18 -4
- package/dist/registers/checks.js +20 -5
- package/dist/registers/ci.js +60 -20
- package/dist/registers/drive.js +18 -7
- package/dist/registers/facebook.js +31 -9
- package/dist/registers/firebase.js +21 -7
- package/dist/registers/googleads.js +23 -6
- package/dist/registers/gsc.js +3 -1
- package/dist/registers/iam.js +44 -13
- package/dist/registers/instagram.js +19 -5
- package/dist/registers/jenkins.js +43 -14
- package/dist/registers/naver.js +13 -3
- package/dist/registers/playstore/financials.d.ts +6 -0
- package/dist/registers/playstore/financials.js +48 -0
- package/dist/registers/playstore/listing.d.ts +15 -0
- package/dist/registers/playstore/listing.js +138 -0
- package/dist/registers/playstore/media.d.ts +6 -0
- package/dist/registers/playstore/media.js +56 -0
- package/dist/registers/playstore/products.d.ts +21 -0
- package/dist/registers/playstore/products.js +238 -0
- package/dist/registers/playstore/recovery.d.ts +11 -0
- package/dist/registers/playstore/recovery.js +105 -0
- package/dist/registers/playstore/releases.d.ts +8 -0
- package/dist/registers/playstore/releases.js +157 -0
- package/dist/registers/playstore/reviews.d.ts +6 -0
- package/dist/registers/playstore/reviews.js +43 -0
- package/dist/registers/playstore/service-accounts.d.ts +13 -0
- package/dist/registers/playstore/service-accounts.js +127 -0
- package/dist/registers/playstore/shared.d.ts +12 -0
- package/dist/registers/playstore/shared.js +24 -0
- package/dist/registers/playstore.d.ts +8 -0
- package/dist/registers/playstore.js +28 -734
- package/dist/registers/threads.js +28 -8
- package/dist/registers/tiktok.js +4 -2
- package/dist/registers/video.js +3 -1
- package/dist/remote-sync.js +80 -28
- package/dist/resources.d.ts +0 -8
- package/dist/resources.js +73 -32
- package/dist/server.d.ts +2 -0
- package/dist/server.js +9 -1
- package/dist/social/profile-store.js +36 -12
- package/dist/social/setup-cli.js +1 -1
- package/dist/threads/api.js +23 -6
- package/dist/threads/setup.js +42 -14
- package/dist/tiktok-business/api.js +13 -3
- package/dist/tiktok-business/auth.js +10 -2
- package/dist/tiktok-business/config.js +8 -3
- package/dist/tiktok-business/posting.d.ts +6 -0
- package/dist/tiktok-business/posting.js +118 -36
- package/dist/tiktok-business/setup-cli.js +3 -1
- package/dist/tools-cli.js +4 -5
- package/dist/video/captions.js +3 -1
- package/dist/video/files.js +13 -3
- package/dist/video/project.js +65 -21
- package/dist/video/providers.js +52 -16
- package/dist/video/render.js +71 -22
- package/dist/video/research.js +10 -2
- package/dist/video/schemas.js +19 -5
- package/dist/video/youtube-publish.js +62 -32
- package/package.json +1 -1
package/dist/checks/risks.js
CHANGED
|
@@ -7,7 +7,174 @@ import { checkLegacyScreenshotReadiness } from '../appstore/screenshots.js';
|
|
|
7
7
|
import { readAppInfoAgeRatingForRelease, readAppInfoPrivacy } from '../appstore/app-info-policy.js';
|
|
8
8
|
import { encodePathSegment } from '../lib/url-path.js';
|
|
9
9
|
import { extractHttpStatus } from '../lib/google-errors.js';
|
|
10
|
+
import { catalog } from '#core/lang.js';
|
|
10
11
|
import { isRiskCheckIncomplete, releaseReadiness } from './release-readiness.js';
|
|
12
|
+
/** Risk titles and details — the caller agent reads them before a store submission, so they follow the user's language. */
|
|
13
|
+
const R = catalog({
|
|
14
|
+
playEditFailed: 'Google Play edit 조회 실패',
|
|
15
|
+
listingLookup: (language) => `${language} 리스팅`,
|
|
16
|
+
phoneScreenshots: '전화 스크린샷',
|
|
17
|
+
appIcon: '앱 아이콘',
|
|
18
|
+
appContact: '앱 연락처',
|
|
19
|
+
releaseTracks: '릴리스 트랙',
|
|
20
|
+
noListing: (language) => `${language} 리스팅 없음`,
|
|
21
|
+
noListingDetail: 'Play Console에서 스토어 정보를 입력하세요.',
|
|
22
|
+
noTitle: '앱 이름 없음',
|
|
23
|
+
noTitleDetail: '제목은 필수 항목입니다.',
|
|
24
|
+
titleTooLong: '앱 이름 50자 초과',
|
|
25
|
+
titleTooLongDetail: (n) => `현재 ${n}자. Google 가이드라인: 50자 이내.`,
|
|
26
|
+
noShortDesc: '짧은 설명 없음',
|
|
27
|
+
noShortDescDetail: '짧은 설명은 검색 노출에 영향을 줍니다.',
|
|
28
|
+
noFullDesc: '전체 설명 없음',
|
|
29
|
+
noFullDescDetail: '전체 설명은 필수 항목입니다.',
|
|
30
|
+
descTooLong: '설명 4000자 초과',
|
|
31
|
+
descTooLongDetail: (n) => `현재 ${n}자. 4000자 이내로 줄이세요.`,
|
|
32
|
+
noScreenshots: '전화 스크린샷 없음',
|
|
33
|
+
noScreenshotsDetail: '최소 2장 이상의 스크린샷이 필요합니다.',
|
|
34
|
+
fewScreenshots: (n) => `스크린샷 ${n}장 (권장: 4~8장)`,
|
|
35
|
+
fewScreenshotsDetail: '더 많은 스크린샷이 전환율을 높입니다.',
|
|
36
|
+
noIcon: '앱 아이콘 없음',
|
|
37
|
+
noIconDetail: '512×512px PNG 아이콘이 필요합니다.',
|
|
38
|
+
noContactEmail: '개발자 이메일 없음',
|
|
39
|
+
noContactEmailDetail: 'Play Console에서 개발자 연락처를 설정하세요.',
|
|
40
|
+
targetAmbiguous: '대상 트랙에 일치하는 릴리스가 여러 개 있음',
|
|
41
|
+
targetAmbiguousDetail: (track, versionCode) => `${track} 트랙에서 versionCode ${versionCode}가 포함된 릴리스 상태를 확인하세요.`,
|
|
42
|
+
targetNotFound: '대상 트랙에서 빌드를 찾을 수 없음',
|
|
43
|
+
targetNotFoundDetail: (track, versionCode) => `${track} 트랙에 versionCode ${versionCode}가 있는지 확인하세요.`,
|
|
44
|
+
noBuild: '업로드된 빌드 없음',
|
|
45
|
+
noBuildDetail: '내부 테스트 트랙에 APK/AAB를 먼저 업로드하세요.',
|
|
46
|
+
lookupFailed: (title) => `조회 실패 — ${title}`,
|
|
47
|
+
lookupFailedDetail: (cause) => `이 항목은 위험 분석에서 제외됨. 원인: ${cause}`,
|
|
48
|
+
versionNoBuild: '버전에 연결된 빌드 없음',
|
|
49
|
+
versionNoBuildDetail: '대상 버전에 사용할 빌드를 업로드하고 연결하세요.',
|
|
50
|
+
buildNotReady: '연결된 빌드 처리 미완료',
|
|
51
|
+
buildNotReadyDetail: (id, state) => `빌드 ${id}의 처리 상태는 ${state}입니다. App Store Connect에서 처리 결과를 확인하세요.`,
|
|
52
|
+
buildUnknown: '연결된 빌드 점검 미완료',
|
|
53
|
+
versionLocalizations: '버전 로컬라이제이션',
|
|
54
|
+
localizationsIncomplete: '버전 로컬라이제이션 목록이 불완전함',
|
|
55
|
+
localizationsIncompleteDetail: 'App Store Connect에서 대상 버전의 전체 로컬라이제이션을 확인하세요.',
|
|
56
|
+
noLocalizations: '로컬라이제이션 없음',
|
|
57
|
+
noLocalizationsDetail: '메타데이터를 입력하세요.',
|
|
58
|
+
noDesc: (locale) => `${locale} 설명 없음`,
|
|
59
|
+
noDescDetail: '앱 설명은 필수 항목입니다.',
|
|
60
|
+
noWhatsNew: (locale) => `${locale} 새로운 기능 없음`,
|
|
61
|
+
noWhatsNewDetail: '릴리즈 노트를 입력하면 다운로드 전환율이 높아집니다.',
|
|
62
|
+
noKeywords: (locale) => `${locale} 키워드 없음`,
|
|
63
|
+
noKeywordsDetail: '키워드는 검색 노출에 직접 영향을 줍니다.',
|
|
64
|
+
screenshotStatusUnknown: 'App Store Connect의 스크린샷 상태를 확인할 수 없습니다.',
|
|
65
|
+
localeScreenshots: (locale) => `${locale} 스크린샷`,
|
|
66
|
+
noLocaleScreenshots: (locale) => `${locale} 스크린샷 없음`,
|
|
67
|
+
noLocaleScreenshotsDetail: '대상 플랫폼에서 허용하는 스크린샷을 로케일에 배치하세요.',
|
|
68
|
+
screenshotsNotReady: (locale) => `${locale} 스크린샷 준비 미완료`,
|
|
69
|
+
screenshotsNotReadyDetail: '배치된 스크린샷이 처리 중이거나 처리에 실패했습니다. App Store Connect에서 상태를 확인하세요.',
|
|
70
|
+
appInfo: '앱 정보',
|
|
71
|
+
appInfoLinkage: '앱 정보 레코드를 확인할 수 없음',
|
|
72
|
+
privacyLocalizations: '개인정보 로컬라이제이션',
|
|
73
|
+
ageRatingSocial: '연령등급 소셜 미디어 응답',
|
|
74
|
+
noPrivacy: '개인정보처리방침 없음',
|
|
75
|
+
noPrivacyTvos: '대상 tvOS 앱의 개인정보처리방침 텍스트를 입력하세요.',
|
|
76
|
+
noPrivacyUrl: '대상 앱의 개인정보처리방침 URL을 입력하세요.',
|
|
77
|
+
socialAnswersMissing: '연령등급 소셜 미디어 질문 미응답',
|
|
78
|
+
socialAnswersMissingDetail: '2026년 9월부터 신규 앱·업데이트 제출에 socialMedia와 socialMediaAgeRestricted 응답이 필요합니다.',
|
|
79
|
+
ageRestrictionMismatch: '13세 미만 제한 응답 불일치',
|
|
80
|
+
ageRestrictionMismatchDetail: 'socialMediaAgeRestricted=true는 socialMedia=true인 앱에서만 의미가 있습니다.',
|
|
81
|
+
ageAssuranceMissing: '13세 미만 소셜 기능 제한에 연령 확인이 없음',
|
|
82
|
+
ageAssuranceMissingDetail: 'Apple은 socialMediaAgeRestricted=true인 경우 최소한 Declared Age Range API로 연령 범위를 확인하도록 요구합니다. ageAssurance 응답과 실제 구현을 확인하세요.',
|
|
83
|
+
capabilityMismatch: '앱 기능과 App Store 소셜 미디어 응답 불일치',
|
|
84
|
+
capabilityMismatchDetail: (expected, actual) => `프로젝트 기능 선언은 socialMedia=${expected}이지만 App Store Connect는 ${actual}입니다.`,
|
|
85
|
+
ageGateMismatch: '13세 미만 기능 제한과 App Store 응답 불일치',
|
|
86
|
+
ageGateMismatchDetail: (expected, actual) => `프로젝트 기능 선언은 socialMediaAgeRestricted=${expected}이지만 App Store Connect는 ${actual}입니다.`,
|
|
87
|
+
ugcWithoutSocial: 'UGC는 있으나 소셜 미디어 기능은 없음으로 응답',
|
|
88
|
+
ugcWithoutSocialDetail: '피드·좋아요·댓글·공유·발견 기능이 있다면 socialMedia 응답을 true로 바꿔야 합니다.',
|
|
89
|
+
noRisks: (platform) => `✅ ${platform} — 제출 위험 요소 없음`,
|
|
90
|
+
header: (platform, n) => `📊 ${platform} 제출 위험 분석 (${n}건)\n`,
|
|
91
|
+
blockers: (n) => `🚫 블로커 ${n}건 — 반드시 수정해야 제출 가능:`,
|
|
92
|
+
warnings: (n) => `⚠ 경고 ${n}건 — 강력 권장:`,
|
|
93
|
+
incomplete: '⛔ 점검 미완료 — 조회 실패를 해결한 뒤 다시 점검하세요.',
|
|
94
|
+
noBlockers: '✅ 블로커 없음 — 경고 항목 검토 후 제출 가능',
|
|
95
|
+
}, {
|
|
96
|
+
playEditFailed: 'Google Play edit lookup failed',
|
|
97
|
+
listingLookup: (language) => `${language} listing`,
|
|
98
|
+
phoneScreenshots: 'Phone screenshots',
|
|
99
|
+
appIcon: 'App icon',
|
|
100
|
+
appContact: 'App contact details',
|
|
101
|
+
releaseTracks: 'Release tracks',
|
|
102
|
+
noListing: (language) => `No ${language} listing`,
|
|
103
|
+
noListingDetail: 'Enter the store listing in Play Console.',
|
|
104
|
+
noTitle: 'No app name',
|
|
105
|
+
noTitleDetail: 'The title is required.',
|
|
106
|
+
titleTooLong: 'App name over 50 characters',
|
|
107
|
+
titleTooLongDetail: (n) => `Currently ${n} characters. Google guideline: 50 characters or fewer.`,
|
|
108
|
+
noShortDesc: 'No short description',
|
|
109
|
+
noShortDescDetail: 'The short description affects search visibility.',
|
|
110
|
+
noFullDesc: 'No full description',
|
|
111
|
+
noFullDescDetail: 'The full description is required.',
|
|
112
|
+
descTooLong: 'Description over 4000 characters',
|
|
113
|
+
descTooLongDetail: (n) => `Currently ${n} characters. Shorten it to 4000 characters or fewer.`,
|
|
114
|
+
noScreenshots: 'No phone screenshots',
|
|
115
|
+
noScreenshotsDetail: 'At least 2 screenshots are required.',
|
|
116
|
+
fewScreenshots: (n) => `${n} screenshot(s) (recommended: 4~8)`,
|
|
117
|
+
fewScreenshotsDetail: 'More screenshots increase the conversion rate.',
|
|
118
|
+
noIcon: 'No app icon',
|
|
119
|
+
noIconDetail: 'A 512×512px PNG icon is required.',
|
|
120
|
+
noContactEmail: 'No developer email',
|
|
121
|
+
noContactEmailDetail: 'Set the developer contact details in Play Console.',
|
|
122
|
+
targetAmbiguous: 'Multiple matching releases on the target track',
|
|
123
|
+
targetAmbiguousDetail: (track, versionCode) => `Check the status of the releases on the ${track} track that include versionCode ${versionCode}.`,
|
|
124
|
+
targetNotFound: 'Build not found on the target track',
|
|
125
|
+
targetNotFoundDetail: (track, versionCode) => `Check that versionCode ${versionCode} is on the ${track} track.`,
|
|
126
|
+
noBuild: 'No uploaded build',
|
|
127
|
+
noBuildDetail: 'Upload an APK/AAB to the internal testing track first.',
|
|
128
|
+
lookupFailed: (title) => `Lookup failed — ${title}`,
|
|
129
|
+
lookupFailedDetail: (cause) => `This item is excluded from the risk analysis. Cause: ${cause}`,
|
|
130
|
+
versionNoBuild: 'No build attached to the version',
|
|
131
|
+
versionNoBuildDetail: 'Upload and attach a build for the target version.',
|
|
132
|
+
buildNotReady: 'Attached build has not finished processing',
|
|
133
|
+
buildNotReadyDetail: (id, state) => `The processing state of build ${id} is ${state}. Check the processing result in App Store Connect.`,
|
|
134
|
+
buildUnknown: 'Attached build check incomplete',
|
|
135
|
+
versionLocalizations: 'Version localizations',
|
|
136
|
+
localizationsIncomplete: 'Version localization list is incomplete',
|
|
137
|
+
localizationsIncompleteDetail: 'Check all localizations of the target version in App Store Connect.',
|
|
138
|
+
noLocalizations: 'No localizations',
|
|
139
|
+
noLocalizationsDetail: 'Enter the metadata.',
|
|
140
|
+
noDesc: (locale) => `No ${locale} description`,
|
|
141
|
+
noDescDetail: 'The app description is required.',
|
|
142
|
+
noWhatsNew: (locale) => `No ${locale} What's New`,
|
|
143
|
+
noWhatsNewDetail: 'Entering release notes increases the download conversion rate.',
|
|
144
|
+
noKeywords: (locale) => `No ${locale} keywords`,
|
|
145
|
+
noKeywordsDetail: 'Keywords directly affect search visibility.',
|
|
146
|
+
screenshotStatusUnknown: 'Cannot determine the screenshot status in App Store Connect.',
|
|
147
|
+
localeScreenshots: (locale) => `${locale} screenshots`,
|
|
148
|
+
noLocaleScreenshots: (locale) => `No ${locale} screenshots`,
|
|
149
|
+
noLocaleScreenshotsDetail: 'Place screenshots that the target platform accepts in the locale.',
|
|
150
|
+
screenshotsNotReady: (locale) => `${locale} screenshots not ready`,
|
|
151
|
+
screenshotsNotReadyDetail: 'The placed screenshots are still processing or failed processing. Check their status in App Store Connect.',
|
|
152
|
+
appInfo: 'App info',
|
|
153
|
+
appInfoLinkage: 'Cannot determine the app info record',
|
|
154
|
+
privacyLocalizations: 'Privacy localizations',
|
|
155
|
+
ageRatingSocial: 'Age rating social media answers',
|
|
156
|
+
noPrivacy: 'No privacy policy',
|
|
157
|
+
noPrivacyTvos: 'Enter the privacy policy text for the target tvOS app.',
|
|
158
|
+
noPrivacyUrl: 'Enter the privacy policy URL for the target app.',
|
|
159
|
+
socialAnswersMissing: 'Age rating social media questions unanswered',
|
|
160
|
+
socialAnswersMissingDetail: 'From September 2026, new app and update submissions require socialMedia and socialMediaAgeRestricted answers.',
|
|
161
|
+
ageRestrictionMismatch: 'Under-13 restriction answer mismatch',
|
|
162
|
+
ageRestrictionMismatchDetail: 'socialMediaAgeRestricted=true is meaningful only for an app with socialMedia=true.',
|
|
163
|
+
ageAssuranceMissing: 'Under-13 social feature restriction has no age assurance',
|
|
164
|
+
ageAssuranceMissingDetail: 'When socialMediaAgeRestricted=true, Apple requires at minimum an age range check with the Declared Age Range API. Check the ageAssurance answer and the actual implementation.',
|
|
165
|
+
capabilityMismatch: 'App features and App Store social media answer mismatch',
|
|
166
|
+
capabilityMismatchDetail: (expected, actual) => `The project feature declaration is socialMedia=${expected}, but App Store Connect has ${actual}.`,
|
|
167
|
+
ageGateMismatch: 'Under-13 feature restriction and App Store answer mismatch',
|
|
168
|
+
ageGateMismatchDetail: (expected, actual) => `The project feature declaration is socialMediaAgeRestricted=${expected}, but App Store Connect has ${actual}.`,
|
|
169
|
+
ugcWithoutSocial: 'UGC present, but social media features answered as absent',
|
|
170
|
+
ugcWithoutSocialDetail: 'If the app has feed, like, comment, share, or discovery features, the socialMedia answer must be changed to true.',
|
|
171
|
+
noRisks: (platform) => `✅ ${platform} — no submission risks`,
|
|
172
|
+
header: (platform, n) => `📊 ${platform} submission risk analysis (${n})\n`,
|
|
173
|
+
blockers: (n) => `🚫 ${n} blocker(s) — must be fixed before submission:`,
|
|
174
|
+
warnings: (n) => `⚠ ${n} warning(s) — strongly recommended:`,
|
|
175
|
+
incomplete: '⛔ Check incomplete — resolve the lookup failures and check again.',
|
|
176
|
+
noBlockers: '✅ No blockers — can submit after reviewing the warnings',
|
|
177
|
+
});
|
|
11
178
|
export function findPlayTargetReleases(tracks, target) {
|
|
12
179
|
return tracks.filter(({ track }) => track === target.track)
|
|
13
180
|
.flatMap(({ releases }) => releases?.filter((release) => release.versionCodes?.includes(target.versionCode)) ?? []);
|
|
@@ -23,7 +190,7 @@ export async function checkPlayStoreRisks(auth, packageName, language = 'ko-KR',
|
|
|
23
190
|
return releaseReadiness(releaseTarget, [{
|
|
24
191
|
level: 'warning',
|
|
25
192
|
code: 'API_ERROR_PLAY_EDIT',
|
|
26
|
-
title:
|
|
193
|
+
title: R().playEditFailed,
|
|
27
194
|
detail: error instanceof Error ? error.message : String(error),
|
|
28
195
|
}], false, false);
|
|
29
196
|
}
|
|
@@ -40,45 +207,45 @@ export async function checkPlayStoreRisksInEdit(auth, packageName, editId, langu
|
|
|
40
207
|
return { data: null };
|
|
41
208
|
throw error;
|
|
42
209
|
}
|
|
43
|
-
}, risks, 'LISTING',
|
|
44
|
-
safeGet(() => publisher().edits.images.list({ auth, packageName, editId, language, imageType: 'phoneScreenshots' }), risks, 'SCREENSHOTS',
|
|
45
|
-
safeGet(() => publisher().edits.images.list({ auth, packageName, editId, language, imageType: 'icon' }), risks, 'ICON',
|
|
46
|
-
safeGet(() => publisher().edits.details.get({ auth, packageName, editId }), risks, 'DETAILS',
|
|
47
|
-
tracksSnapshot ?? safeGet(async () => (await publisher().edits.tracks.list({ auth, packageName, editId })).data.tracks ?? [], risks, 'TRACKS',
|
|
210
|
+
}, risks, 'LISTING', R().listingLookup(language)),
|
|
211
|
+
safeGet(() => publisher().edits.images.list({ auth, packageName, editId, language, imageType: 'phoneScreenshots' }), risks, 'SCREENSHOTS', R().phoneScreenshots),
|
|
212
|
+
safeGet(() => publisher().edits.images.list({ auth, packageName, editId, language, imageType: 'icon' }), risks, 'ICON', R().appIcon),
|
|
213
|
+
safeGet(() => publisher().edits.details.get({ auth, packageName, editId }), risks, 'DETAILS', R().appContact),
|
|
214
|
+
tracksSnapshot ?? safeGet(async () => (await publisher().edits.tracks.list({ auth, packageName, editId })).data.tracks ?? [], risks, 'TRACKS', R().releaseTracks),
|
|
48
215
|
]);
|
|
49
216
|
if (listing && !listing.data) {
|
|
50
|
-
risks.push({ level: 'blocker', code: 'NO_LISTING', title:
|
|
217
|
+
risks.push({ level: 'blocker', code: 'NO_LISTING', title: R().noListing(language), detail: R().noListingDetail, fixUrl: 'https://play.google.com/console/developers' });
|
|
51
218
|
}
|
|
52
219
|
else if (listing?.data) {
|
|
53
220
|
const { title, shortDescription, fullDescription } = listing.data;
|
|
54
221
|
if (!title || title.length < 2) {
|
|
55
|
-
risks.push({ level: 'blocker', code: 'NO_TITLE', title:
|
|
222
|
+
risks.push({ level: 'blocker', code: 'NO_TITLE', title: R().noTitle, detail: R().noTitleDetail });
|
|
56
223
|
}
|
|
57
224
|
else if (title.length > 50) {
|
|
58
|
-
risks.push({ level: 'warning', code: 'TITLE_TOO_LONG', title:
|
|
225
|
+
risks.push({ level: 'warning', code: 'TITLE_TOO_LONG', title: R().titleTooLong, detail: R().titleTooLongDetail(title.length) });
|
|
59
226
|
}
|
|
60
227
|
if (!shortDescription || shortDescription.length < 10) {
|
|
61
|
-
risks.push({ level: 'warning', code: 'NO_SHORT_DESC', title:
|
|
228
|
+
risks.push({ level: 'warning', code: 'NO_SHORT_DESC', title: R().noShortDesc, detail: R().noShortDescDetail });
|
|
62
229
|
}
|
|
63
230
|
if (!fullDescription || fullDescription.length < 50) {
|
|
64
|
-
risks.push({ level: 'blocker', code: 'NO_FULL_DESC', title:
|
|
231
|
+
risks.push({ level: 'blocker', code: 'NO_FULL_DESC', title: R().noFullDesc, detail: R().noFullDescDetail });
|
|
65
232
|
}
|
|
66
233
|
else if (fullDescription.length > 4000) {
|
|
67
|
-
risks.push({ level: 'warning', code: 'DESC_TOO_LONG', title:
|
|
234
|
+
risks.push({ level: 'warning', code: 'DESC_TOO_LONG', title: R().descTooLong, detail: R().descTooLongDetail(fullDescription.length) });
|
|
68
235
|
}
|
|
69
236
|
}
|
|
70
237
|
const screenCount = phoneScreenshots?.data?.images?.length ?? 0;
|
|
71
238
|
if (phoneScreenshots && screenCount === 0) {
|
|
72
|
-
risks.push({ level: 'blocker', code: 'NO_SCREENSHOTS', title:
|
|
239
|
+
risks.push({ level: 'blocker', code: 'NO_SCREENSHOTS', title: R().noScreenshots, detail: R().noScreenshotsDetail });
|
|
73
240
|
}
|
|
74
241
|
else if (phoneScreenshots && screenCount < 2) {
|
|
75
|
-
risks.push({ level: 'warning', code: 'FEW_SCREENSHOTS', title:
|
|
242
|
+
risks.push({ level: 'warning', code: 'FEW_SCREENSHOTS', title: R().fewScreenshots(screenCount), detail: R().fewScreenshotsDetail });
|
|
76
243
|
}
|
|
77
244
|
if (icons && !icons.data?.images?.length) {
|
|
78
|
-
risks.push({ level: 'blocker', code: 'NO_ICON', title:
|
|
245
|
+
risks.push({ level: 'blocker', code: 'NO_ICON', title: R().noIcon, detail: R().noIconDetail });
|
|
79
246
|
}
|
|
80
247
|
if (details && !details.data?.contactEmail) {
|
|
81
|
-
risks.push({ level: 'warning', code: 'NO_CONTACT_EMAIL', title:
|
|
248
|
+
risks.push({ level: 'warning', code: 'NO_CONTACT_EMAIL', title: R().noContactEmail, detail: R().noContactEmailDetail });
|
|
82
249
|
}
|
|
83
250
|
if (tracks) {
|
|
84
251
|
if (target) {
|
|
@@ -87,21 +254,21 @@ export async function checkPlayStoreRisksInEdit(auth, packageName, editId, langu
|
|
|
87
254
|
risks.push({
|
|
88
255
|
level: 'warning',
|
|
89
256
|
code: 'API_ERROR_TARGET_BUILD_AMBIGUOUS',
|
|
90
|
-
title:
|
|
91
|
-
detail:
|
|
257
|
+
title: R().targetAmbiguous,
|
|
258
|
+
detail: R().targetAmbiguousDetail(target.track, target.versionCode),
|
|
92
259
|
});
|
|
93
260
|
}
|
|
94
261
|
else if (matches.length === 0) {
|
|
95
262
|
risks.push({
|
|
96
263
|
level: 'blocker',
|
|
97
264
|
code: 'TARGET_BUILD_NOT_FOUND',
|
|
98
|
-
title:
|
|
99
|
-
detail:
|
|
265
|
+
title: R().targetNotFound,
|
|
266
|
+
detail: R().targetNotFoundDetail(target.track, target.versionCode),
|
|
100
267
|
});
|
|
101
268
|
}
|
|
102
269
|
}
|
|
103
270
|
else if (!tracks.some((track) => track.releases?.some((release) => release.versionCodes?.length))) {
|
|
104
|
-
risks.push({ level: 'blocker', code: 'NO_BUILD', title:
|
|
271
|
+
risks.push({ level: 'blocker', code: 'NO_BUILD', title: R().noBuild, detail: R().noBuildDetail });
|
|
105
272
|
}
|
|
106
273
|
}
|
|
107
274
|
return risks;
|
|
@@ -115,8 +282,8 @@ async function safeGet(call, risks, code, title) {
|
|
|
115
282
|
risks.push({
|
|
116
283
|
level: 'warning',
|
|
117
284
|
code: `API_ERROR_${code}`,
|
|
118
|
-
title:
|
|
119
|
-
detail:
|
|
285
|
+
title: R().lookupFailed(title),
|
|
286
|
+
detail: R().lookupFailedDetail(e instanceof Error ? e.message : String(e)),
|
|
120
287
|
});
|
|
121
288
|
return null;
|
|
122
289
|
}
|
|
@@ -151,16 +318,16 @@ export function appStoreBuildRisk(build) {
|
|
|
151
318
|
case 'ready':
|
|
152
319
|
return undefined;
|
|
153
320
|
case 'missing':
|
|
154
|
-
return { level: 'blocker', code: 'NO_BUILD', title:
|
|
321
|
+
return { level: 'blocker', code: 'NO_BUILD', title: R().versionNoBuild, detail: R().versionNoBuildDetail };
|
|
155
322
|
case 'not-ready':
|
|
156
323
|
return {
|
|
157
324
|
level: 'blocker',
|
|
158
325
|
code: 'BUILD_NOT_READY',
|
|
159
|
-
title:
|
|
160
|
-
detail:
|
|
326
|
+
title: R().buildNotReady,
|
|
327
|
+
detail: R().buildNotReadyDetail(build.id, build.processingState),
|
|
161
328
|
};
|
|
162
329
|
case 'unknown':
|
|
163
|
-
return { level: 'warning', code: 'API_ERROR_BUILD', title:
|
|
330
|
+
return { level: 'warning', code: 'API_ERROR_BUILD', title: R().buildUnknown, detail: build.detail };
|
|
164
331
|
}
|
|
165
332
|
}
|
|
166
333
|
export async function checkAppStoreVersionRisks(appId, { id: selectedVersionId, platform }, expected = {}) {
|
|
@@ -181,19 +348,19 @@ async function checkAppStoreLocalizationRisks(selectedVersionId) {
|
|
|
181
348
|
'limit[appScreenshotSets]': '1',
|
|
182
349
|
'fields[appStoreVersionLocalizations]': 'locale,description,whatsNew,keywords,placements,appScreenshotSets',
|
|
183
350
|
'fields[appAssetLibraryPlacements]': 'placementType,state,image',
|
|
184
|
-
}), risks, 'LOCALIZATIONS',
|
|
351
|
+
}), risks, 'LOCALIZATIONS', R().versionLocalizations);
|
|
185
352
|
if (!locs)
|
|
186
353
|
return risks;
|
|
187
354
|
if (pageIsIncomplete(locs, locs.data.length)) {
|
|
188
355
|
risks.push({
|
|
189
356
|
level: 'warning',
|
|
190
357
|
code: 'API_ERROR_LOCALIZATIONS_INCOMPLETE',
|
|
191
|
-
title:
|
|
192
|
-
detail:
|
|
358
|
+
title: R().localizationsIncomplete,
|
|
359
|
+
detail: R().localizationsIncompleteDetail,
|
|
193
360
|
});
|
|
194
361
|
}
|
|
195
362
|
else if (locs.data.length === 0) {
|
|
196
|
-
risks.push({ level: 'blocker', code: 'NO_LOCALIZATIONS', title:
|
|
363
|
+
risks.push({ level: 'blocker', code: 'NO_LOCALIZATIONS', title: R().noLocalizations, detail: R().noLocalizationsDetail });
|
|
197
364
|
}
|
|
198
365
|
const placementsById = indexIncludedPlacements(locs.included ?? []);
|
|
199
366
|
const localeRisks = new Array(locs.data.length);
|
|
@@ -212,11 +379,11 @@ async function checkAppStoreLocale(loc, placementsById) {
|
|
|
212
379
|
const { locale: rawLocale, description, whatsNew, keywords } = loc.attributes ?? {};
|
|
213
380
|
const locale = rawLocale ?? loc.id;
|
|
214
381
|
if (!description)
|
|
215
|
-
risks.push({ level: 'blocker', code: `NO_DESC_${locale}`, title:
|
|
382
|
+
risks.push({ level: 'blocker', code: `NO_DESC_${locale}`, title: R().noDesc(locale), detail: R().noDescDetail });
|
|
216
383
|
if (!whatsNew)
|
|
217
|
-
risks.push({ level: 'warning', code: `NO_WHATS_NEW_${locale}`, title:
|
|
384
|
+
risks.push({ level: 'warning', code: `NO_WHATS_NEW_${locale}`, title: R().noWhatsNew(locale), detail: R().noWhatsNewDetail });
|
|
218
385
|
if (!keywords)
|
|
219
|
-
risks.push({ level: 'warning', code: `NO_KEYWORDS_${locale}`, title:
|
|
386
|
+
risks.push({ level: 'warning', code: `NO_KEYWORDS_${locale}`, title: R().noKeywords(locale), detail: R().noKeywordsDetail });
|
|
220
387
|
const screenshots = await safeGet(async () => {
|
|
221
388
|
let readiness = includedScreenshotReadiness(loc.relationships?.placements, placementsById);
|
|
222
389
|
if (readiness === 'unknown') {
|
|
@@ -227,37 +394,37 @@ async function checkAppStoreLocale(loc, placementsById) {
|
|
|
227
394
|
readiness = await checkLegacyScreenshotReadiness(loc.id);
|
|
228
395
|
}
|
|
229
396
|
if (readiness === 'unknown')
|
|
230
|
-
throw new Error(
|
|
397
|
+
throw new Error(R().screenshotStatusUnknown);
|
|
231
398
|
return readiness;
|
|
232
|
-
}, risks, `SCREENSHOTS_${locale}`,
|
|
399
|
+
}, risks, `SCREENSHOTS_${locale}`, R().localeScreenshots(locale));
|
|
233
400
|
if (screenshots === 'missing') {
|
|
234
401
|
risks.push({
|
|
235
402
|
level: 'blocker',
|
|
236
403
|
code: `NO_SCREENSHOTS_${locale}`,
|
|
237
|
-
title:
|
|
238
|
-
detail:
|
|
404
|
+
title: R().noLocaleScreenshots(locale),
|
|
405
|
+
detail: R().noLocaleScreenshotsDetail,
|
|
239
406
|
});
|
|
240
407
|
}
|
|
241
408
|
else if (screenshots === 'not-ready') {
|
|
242
409
|
risks.push({
|
|
243
410
|
level: 'blocker',
|
|
244
411
|
code: `SCREENSHOTS_NOT_READY_${locale}`,
|
|
245
|
-
title:
|
|
246
|
-
detail:
|
|
412
|
+
title: R().screenshotsNotReady(locale),
|
|
413
|
+
detail: R().screenshotsNotReadyDetail,
|
|
247
414
|
});
|
|
248
415
|
}
|
|
249
416
|
return risks;
|
|
250
417
|
}
|
|
251
418
|
async function checkAppStorePolicyRisks(appId, platform, expected) {
|
|
252
419
|
const risks = [];
|
|
253
|
-
const appInfo = await safeGet(() => selectAppInfo(appId, { privacyPlatform: platform }), risks, 'APP_INFO',
|
|
420
|
+
const appInfo = await safeGet(() => selectAppInfo(appId, { privacyPlatform: platform }), risks, 'APP_INFO', R().appInfo);
|
|
254
421
|
if (!appInfo)
|
|
255
422
|
return risks;
|
|
256
423
|
if ('reason' in appInfo) {
|
|
257
424
|
risks.push({
|
|
258
425
|
level: 'warning',
|
|
259
426
|
code: 'API_ERROR_APP_INFO_LINKAGE',
|
|
260
|
-
title:
|
|
427
|
+
title: R().appInfoLinkage,
|
|
261
428
|
detail: appInfo.reason,
|
|
262
429
|
});
|
|
263
430
|
return risks;
|
|
@@ -266,12 +433,12 @@ async function checkAppStorePolicyRisks(appId, platform, expected) {
|
|
|
266
433
|
const privacyRisks = [];
|
|
267
434
|
const ageRatingRisks = [];
|
|
268
435
|
const [hasPrivacy, ageRating] = await Promise.all([
|
|
269
|
-
policy.hasPrivacy ?? safeGet(() => readAppInfoPrivacy(target.id, platform), privacyRisks, 'PRIVACY',
|
|
270
|
-
policy.ageRating ?? safeGet(() => readAppInfoAgeRatingForRelease(target.id), ageRatingRisks, 'AGE_RATING_SOCIAL',
|
|
436
|
+
policy.hasPrivacy ?? safeGet(() => readAppInfoPrivacy(target.id, platform), privacyRisks, 'PRIVACY', R().privacyLocalizations),
|
|
437
|
+
policy.ageRating ?? safeGet(() => readAppInfoAgeRatingForRelease(target.id), ageRatingRisks, 'AGE_RATING_SOCIAL', R().ageRatingSocial),
|
|
271
438
|
]);
|
|
272
439
|
risks.push(...privacyRisks, ...ageRatingRisks);
|
|
273
440
|
if (hasPrivacy === false) {
|
|
274
|
-
risks.push({ level: 'blocker', code: 'NO_PRIVACY', title:
|
|
441
|
+
risks.push({ level: 'blocker', code: 'NO_PRIVACY', title: R().noPrivacy, detail: platform === 'TV_OS' ? R().noPrivacyTvos : R().noPrivacyUrl });
|
|
275
442
|
}
|
|
276
443
|
if (ageRating) {
|
|
277
444
|
const attributes = ageRating.data?.attributes;
|
|
@@ -283,8 +450,8 @@ async function checkAppStorePolicyRisks(appId, platform, expected) {
|
|
|
283
450
|
risks.push({
|
|
284
451
|
level: 'blocker',
|
|
285
452
|
code: 'SOCIAL_MEDIA_ANSWERS_MISSING',
|
|
286
|
-
title:
|
|
287
|
-
detail:
|
|
453
|
+
title: R().socialAnswersMissing,
|
|
454
|
+
detail: R().socialAnswersMissingDetail,
|
|
288
455
|
fixUrl: 'https://developer.apple.com/news/?id=tlur8uvi',
|
|
289
456
|
});
|
|
290
457
|
}
|
|
@@ -292,16 +459,16 @@ async function checkAppStorePolicyRisks(appId, platform, expected) {
|
|
|
292
459
|
risks.push({
|
|
293
460
|
level: 'blocker',
|
|
294
461
|
code: 'SOCIAL_MEDIA_AGE_RESTRICTION_MISMATCH',
|
|
295
|
-
title:
|
|
296
|
-
detail:
|
|
462
|
+
title: R().ageRestrictionMismatch,
|
|
463
|
+
detail: R().ageRestrictionMismatchDetail,
|
|
297
464
|
});
|
|
298
465
|
}
|
|
299
466
|
if (socialMediaAgeRestricted === true && ageAssurance !== true) {
|
|
300
467
|
risks.push({
|
|
301
468
|
level: 'blocker',
|
|
302
469
|
code: 'SOCIAL_MEDIA_AGE_ASSURANCE_MISSING',
|
|
303
|
-
title:
|
|
304
|
-
detail:
|
|
470
|
+
title: R().ageAssuranceMissing,
|
|
471
|
+
detail: R().ageAssuranceMissingDetail,
|
|
305
472
|
fixUrl: 'https://developer.apple.com/help/app-store-connect/reference/app-information/age-ratings-values-and-definitions',
|
|
306
473
|
});
|
|
307
474
|
}
|
|
@@ -311,8 +478,8 @@ async function checkAppStorePolicyRisks(appId, platform, expected) {
|
|
|
311
478
|
risks.push({
|
|
312
479
|
level: 'blocker',
|
|
313
480
|
code: 'SOCIAL_MEDIA_CAPABILITY_MISMATCH',
|
|
314
|
-
title:
|
|
315
|
-
detail:
|
|
481
|
+
title: R().capabilityMismatch,
|
|
482
|
+
detail: R().capabilityMismatchDetail(expected.socialMedia, String(socialMedia)),
|
|
316
483
|
});
|
|
317
484
|
}
|
|
318
485
|
if (expected.socialMediaAgeRestricted !== undefined
|
|
@@ -321,16 +488,16 @@ async function checkAppStorePolicyRisks(appId, platform, expected) {
|
|
|
321
488
|
risks.push({
|
|
322
489
|
level: 'blocker',
|
|
323
490
|
code: 'SOCIAL_MEDIA_AGE_GATE_MISMATCH',
|
|
324
|
-
title:
|
|
325
|
-
detail:
|
|
491
|
+
title: R().ageGateMismatch,
|
|
492
|
+
detail: R().ageGateMismatchDetail(expected.socialMediaAgeRestricted, String(socialMediaAgeRestricted)),
|
|
326
493
|
});
|
|
327
494
|
}
|
|
328
495
|
if (userGeneratedContent && socialMedia === false) {
|
|
329
496
|
risks.push({
|
|
330
497
|
level: 'warning',
|
|
331
498
|
code: 'UGC_WITHOUT_SOCIAL_MEDIA',
|
|
332
|
-
title:
|
|
333
|
-
detail:
|
|
499
|
+
title: R().ugcWithoutSocial,
|
|
500
|
+
detail: R().ugcWithoutSocialDetail,
|
|
334
501
|
});
|
|
335
502
|
}
|
|
336
503
|
}
|
|
@@ -338,29 +505,29 @@ async function checkAppStorePolicyRisks(appId, platform, expected) {
|
|
|
338
505
|
}
|
|
339
506
|
export function formatRisks(risks, platform) {
|
|
340
507
|
if (risks.length === 0)
|
|
341
|
-
return
|
|
508
|
+
return R().noRisks(platform);
|
|
342
509
|
const blockers = risks.filter((r) => r.level === 'blocker');
|
|
343
510
|
const warnings = risks.filter((r) => r.level === 'warning');
|
|
344
|
-
const lines = [
|
|
511
|
+
const lines = [R().header(platform, risks.length)];
|
|
345
512
|
if (blockers.length) {
|
|
346
|
-
lines.push(
|
|
513
|
+
lines.push(R().blockers(blockers.length));
|
|
347
514
|
for (const r of blockers) {
|
|
348
515
|
lines.push(` • [${r.code}] ${r.title}\n ${r.detail}${r.fixUrl ? `\n → ${r.fixUrl}` : ''}`);
|
|
349
516
|
}
|
|
350
517
|
lines.push('');
|
|
351
518
|
}
|
|
352
519
|
if (warnings.length) {
|
|
353
|
-
lines.push(
|
|
520
|
+
lines.push(R().warnings(warnings.length));
|
|
354
521
|
for (const r of warnings) {
|
|
355
522
|
lines.push(` • [${r.code}] ${r.title}\n ${r.detail}`);
|
|
356
523
|
}
|
|
357
524
|
lines.push('');
|
|
358
525
|
}
|
|
359
526
|
if (risks.some(isRiskCheckIncomplete)) {
|
|
360
|
-
lines.push(
|
|
527
|
+
lines.push(R().incomplete);
|
|
361
528
|
}
|
|
362
529
|
else if (blockers.length === 0) {
|
|
363
|
-
lines.push(
|
|
530
|
+
lines.push(R().noBlockers);
|
|
364
531
|
}
|
|
365
532
|
return lines.join('\n');
|
|
366
533
|
}
|
|
@@ -23,7 +23,7 @@ export interface ValidationResult {
|
|
|
23
23
|
export declare const APPSTORE_SPECS: Record<string, ScreenshotSpec>;
|
|
24
24
|
export declare const PLAYSTORE_SPECS: {
|
|
25
25
|
phoneScreenshots: {
|
|
26
|
-
label: string;
|
|
26
|
+
readonly label: string;
|
|
27
27
|
minWidth: number;
|
|
28
28
|
maxWidth: number;
|
|
29
29
|
minHeight: number;
|
|
@@ -33,7 +33,7 @@ export declare const PLAYSTORE_SPECS: {
|
|
|
33
33
|
maxBytes: number;
|
|
34
34
|
};
|
|
35
35
|
sevenInchScreenshots: {
|
|
36
|
-
label: string;
|
|
36
|
+
readonly label: string;
|
|
37
37
|
minWidth: number;
|
|
38
38
|
maxWidth: number;
|
|
39
39
|
minHeight: number;
|
|
@@ -43,7 +43,7 @@ export declare const PLAYSTORE_SPECS: {
|
|
|
43
43
|
maxBytes: number;
|
|
44
44
|
};
|
|
45
45
|
tenInchScreenshots: {
|
|
46
|
-
label: string;
|
|
46
|
+
readonly label: string;
|
|
47
47
|
minWidth: number;
|
|
48
48
|
maxWidth: number;
|
|
49
49
|
minHeight: number;
|
|
@@ -53,7 +53,7 @@ export declare const PLAYSTORE_SPECS: {
|
|
|
53
53
|
maxBytes: number;
|
|
54
54
|
};
|
|
55
55
|
featureGraphic: {
|
|
56
|
-
label: string;
|
|
56
|
+
readonly label: string;
|
|
57
57
|
minWidth: number;
|
|
58
58
|
maxWidth: number;
|
|
59
59
|
minHeight: number;
|