Skip to content

Avoid common App Store and Google Play rejections. Open playbook and pre-submission guard with 117 documented rejection patterns and fixes, privacy manifest and Data safety checks, 95 tracked deadlines (EU AI Act, DSA, COPPA, age laws), and a skill for AI coding agents.

22.2 KB
Raw Blame
{
  "description": "Concrete detection commands per rejection pattern id, for the automatable rules. Consumed by scripts/generate-references.py to emit a How to detect block per rule. Metadata rules point at metadata-audit.py.",
  "recipes": {
    "APPLE-2.1-STAGING-BACKEND": "grep -rn 'localhost\\|127.0.0.1\\|staging\\.\\|ngrok\\|http://' --include='*.swift' --include='*.plist' . | grep -v https",
    "APPLE-2.1-PLACEHOLDER-CONTENT": "grep -rni 'lorem ipsum\\|placeholder\\|TODO\\|FIXME\\|example.com' --include='*.swift' --include='*.strings' .",
    "APPLE-5.1.1-MISSING-USAGE-DESCRIPTION": "for k in NSCameraUsageDescription NSLocationWhenInUseUsageDescription NSPhotoLibraryUsageDescription NSContactsUsageDescription NSMicrophoneUsageDescription; do echo \"$k\"; plutil -extract \"$k\" raw */Info.plist 2>/dev/null || echo '  MISSING or empty'; done",
    "APPLE-5.1.1-NO-ACCOUNT-DELETION": "grep -rn 'createAccount\\|signUp\\|register' --include='*.swift' . && ! grep -rn 'deleteAccount\\|delete_account\\|account deletion' --include='*.swift' .",
    "APPLE-5.1.2-MISSING-ATT": "grep -rn 'AppsFlyer\\|Adjust\\|FBSDK\\|advertisingIdentifier\\|ASIdentifierManager' --include='*.swift' . && ! grep -rn 'ATTrackingManager\\|NSUserTrackingUsageDescription' .",
    "APPLE-3.1.1-EXTERNAL-PAYMENT": "grep -rn 'Stripe\\|PayPalCheckout\\|braintree\\|razorpay' --include='*.swift' --include='pubspec.yaml' --include='package.json' . && ! grep -rnE 'StoreKit|SKProduct|Product.purchase|in_app_purchase|purchases_flutter|flutter_inapp_purchase|react-native-iap|react-native-purchases|expo-iap|cordova-plugin-purchase|@revenuecat/purchases-capacitor' --include='*.swift' --include='pubspec.yaml' --include='package.json' .",
    "APPLE-4.8-SOCIAL-LOGIN-ONLY": "grep -rn 'FacebookLogin\\|GoogleSignIn\\|GIDSignIn' --include='*.swift' . && ! grep -rn 'SignInWithApple\\|ASAuthorizationAppleIDProvider' --include='*.swift' .",
    "APPLE-PRIVACY-MANIFEST-MISSING": "find . -name 'PrivacyInfo.xcprivacy' | grep -q . || echo 'MISSING PrivacyInfo.xcprivacy'; find . -path '*/*.framework/*' -name 'PrivacyInfo.xcprivacy'   # each bundled SDK should ship one",
    "APPLE-EXPORT-COMPLIANCE-MISSING": "grep -rn 'ITSAppUsesNonExemptEncryption' */Info.plist || echo 'MISSING ITSAppUsesNonExemptEncryption, build will stall in Missing Compliance'",
    "APPLE-RESTORE-PURCHASES-MISSING": "grep -rn 'SKProduct\\|Product.purchase\\|StoreKit' --include='*.swift' . && ! grep -rn 'restorePurchases\\|restoreCompletedTransactions\\|AppStore.sync' --include='*.swift' .",
    "APPLE-2.4.5-UNUSED-ENTITLEMENTS": "for e in $(find . -name '*.entitlements'); do echo \"== $e\"; plutil -p \"$e\"; done   # then grep the codebase to confirm each capability is actually used",
    "APPLE-4.0-SIWA-UX": "grep -rn 'ASAuthorizationAppleIDProvider' --include='*.swift' . && grep -rn 'completeProfile\\|askForName\\|nameTextField\\|emailTextField' --include='*.swift' .   # asking for name or email after SIWA is a violation",
    "APPLE-5.1.1-UNNECESSARY-DATA": "grep -rni 'phone\\|gender\\|marital\\|date.of.birth\\|birthdate\\|address' --include='*.swift' . | grep -i 'required\\|validator\\|isRequired'",
    "APPLE-2.1-DEBUG-FEATURES": "grep -rni 'debug menu\\|debugMenu\\|skip login\\|bypass auth\\|DEBUG_BYPASS' --include='*.swift' .",
    "APPLE-2.1-CLOUD-NOT-IN-PRODUCTION": "grep -rn 'CKContainer\\|CloudKit\\|NSUbiquitousKeyValueStore' --include='*.swift' .   # then confirm the CloudKit schema is deployed to production in the CloudKit console",
    "APPLE-2.5.1-PRIVATE-API": "grep -rn 'UIWebView\\|performSelector\\|valueForKey' --include='*.swift' --include='*.m' .   # review any reflection or deprecated framework use",
    "GOOGLE-DATASAFETY-MISMATCH": "grep -rn 'firebase-analytics\\|com.google.android.gms.ads\\|appsflyer\\|adjust\\|com.facebook' --include='*.gradle' --include='*.kts' .   # every SDK that collects or shares data must be declared in Data Safety",
    "GOOGLE-PERM-BACKGROUND-LOCATION": "grep -rn 'ACCESS_BACKGROUND_LOCATION' --include='AndroidManifest.xml' .",
    "GOOGLE-PERM-ALL-FILES": "grep -rn 'MANAGE_EXTERNAL_STORAGE' --include='AndroidManifest.xml' .",
    "GOOGLE-PERM-SMS-CALLLOG": "grep -rnE 'permission.(READ_SMS|SEND_SMS|RECEIVE_SMS|READ_CALL_LOG|WRITE_CALL_LOG)' --include='AndroidManifest.xml' .",
    "GOOGLE-PERM-ACCESSIBILITY-MISUSE": "grep -rn 'BIND_ACCESSIBILITY_SERVICE\\|AccessibilityService' --include='AndroidManifest.xml' --include='*.kt' --include='*.java' .",
    "GOOGLE-TARGET-API": "grep -rnE 'targetSdk(Version)?[ =]+[0-9]+' --include='*.gradle' --include='*.kts' .   # must be 36 or higher from 31 Aug 2026",
    "GOOGLE-PLAY-BILLING": "grep -rn 'Stripe\\|PayPal\\|razorpay' --include='*.kt' --include='*.java' --include='pubspec.yaml' --include='package.json' . && ! grep -rnE 'BillingClient|com.android.billingclient|in_app_purchase|purchases_flutter|flutter_inapp_purchase|react-native-iap|react-native-purchases|expo-iap|cordova-plugin-purchase|@revenuecat/purchases-capacitor' .",
    "ANDROID-DYNAMIC-CODE-LOADING": "grep -rn 'DexClassLoader\\|PathClassLoader\\|loadDex\\|createPackageContext' --include='*.kt' --include='*.java' .",
    "ANDROID-QUERY-ALL-PACKAGES": "grep -rn 'QUERY_ALL_PACKAGES' --include='AndroidManifest.xml' .",
    "ANDROID-OVERLAY-TAPJACKING": "grep -rn 'SYSTEM_ALERT_WINDOW\\|TYPE_APPLICATION_OVERLAY' --include='AndroidManifest.xml' --include='*.kt' --include='*.java' .",
    "BOTH-AI-GENERATED-CONTENT": "grep -rni 'api.openai.com\\|anthropic\\|generativelanguage\\|stable diffusion\\|text-to-image' . && ! grep -rni 'moderation\\|report\\|block user\\|content filter' .",
    "BOTH-LOOTBOX-ODDS": "grep -rni 'lootbox\\|loot box\\|gacha\\|mystery box\\|random reward' .",
    "BOTH-FINGERPRINTING": "grep -rni 'fingerprint\\|deviceFingerprint\\|canvas fingerprint' .",
    "BOTH-METADATA-DECORATION": "python3 scripts/metadata-audit.py ./metadata",
    "APPLE-2.3-CROSS-PLATFORM-REFERENCE": "python3 scripts/metadata-audit.py ./metadata",
    "APPLE-2.3-FUTURE-FUNCTIONALITY": "python3 scripts/metadata-audit.py ./metadata",
    "APPLE-2.3-NEGATIVE-APPLE-SENTIMENT": "python3 scripts/metadata-audit.py ./metadata",
    "BOTH-UNREACHABLE-METADATA-URL": "python3 scripts/metadata-audit.py ./metadata --check-urls",
    "APPLE-3.1.2-MISLEADING-PRICING": "python3 scripts/metadata-audit.py ./metadata",
    "APPLE-2.1-REVIEW-NOTES-INCOMPLETE": "use templates/REVIEW-NOTES-TEMPLATE.md and fill all six sections",
    "APPLE-2.1-MISSING-DEMO-ACCOUNT": "grep -rn 'signIn\\|LoginView\\|OAuth\\|FirebaseAuth' --include='*.swift' .   # then confirm a demo account is in the review notes",
    "APPLE-5.1.1-MISSING-PRIVACY-POLICY": "grep -rn 'privacyPolicy\\|privacy-policy\\|PrivacyPolicy' --include='*.swift' . || echo 'no privacy policy reference found'",
    "APPLE-5.1.1-VAGUE-PURPOSE-STRING": "for k in NSCameraUsageDescription NSLocationWhenInUseUsageDescription NSPhotoLibraryUsageDescription NSContactsUsageDescription; do v=$(plutil -extract \"$k\" raw */Info.plist 2>/dev/null); echo \"$k = $v\"; done   # flag empty or generic values like 'required'",
    "APPLE-4.2-WEB-WRAPPER": "grep -rn 'WKWebView\\|loadRequest\\|Capacitor\\|Cordova' --include='*.swift' . | wc -l   # a high count with little native code is a thin wrapper",
    "APPLE-5.1.2-AI-NO-CONSENT-MODAL": "grep -rni 'api.openai.com\\|anthropic\\|generativelanguage\\|chat/completions' . && ! grep -rni 'consent' .",
    "GOOGLE-MISSING-PRIVACY-POLICY": "grep -rn 'privacyPolicy\\|privacy-policy' . || echo 'set a privacy policy URL in the Play listing'",
    "APPLE-ACCOUNT-DELETION-WEAK": "grep -rn 'deleteAccount\\|delete account' --include='*.swift' . && grep -rn 'mailto:\\|deactivate' --include='*.swift' .   # deletion must truly delete, not mailto or deactivate",
    "ANDROID-ACCOUNT-DELETION-URL": "grep -rn 'createAccount\\|signUp\\|register' --include='*.kt' --include='*.java' . && ! grep -rn 'deleteAccount\\|delete_account' .   # also set a data deletion URL in the Play listing",
    "APPLE-1.2-UGC-24H-ACTION": "grep -rni 'post\\|comment\\|upload\\|feed\\|community' --include='*.swift' . && ! grep -rni 'report\\|block user\\|EULA\\|moderation' --include='*.swift' .",
    "GOOGLE-FAMILIES-AD-SDK": "grep -rn 'com.google.android.gms.ads\\|applovin\\|unity.*ads\\|ironsource' --include='*.gradle' . && grep -rni 'children\\|families\\|kids' --include='AndroidManifest.xml' .",
    "APPLE-GAMBLING-BRAZIL-LICENSE": "grep -rni 'gambling\\|fixed-odds\\|betting' --include='*.swift' .   # then verify the SPA license is provided in App Review Information for Brazil storefront",
    "GOOGLE-PLAY-AGE-SIGNALS-MISUSE": "grep -rn 'com.google.android.play:age-signals\\|AgeSignalsManager\\|AgeSignalsRequest' --include='*.gradle' --include='*.kts' --include='*.kt' --include='*.java' .   # if present, confirm age signals are never passed to ad, marketing, profiling, or analytics SDKs",
    "APPLE-PRIVACY-NUTRITION-LABELS": "grep -rn 'email\\|phoneNumber\\|userName\\|location\\|coordinates' --include='*.swift' . && ! grep -rn 'NSPrivacyCollectedDataTypes\\|privacyNutritionLabels\\|privacy-nutrition-labels' .",
    "ANDROID-USER-DATA-DISCLOSURE": "grep -rnE 'android\\.permission\\.(READ_CONTACTS|WRITE_CONTACTS|READ_SMS|SEND_SMS|RECEIVE_SMS|READ_CALL_LOG|WRITE_CALL_LOG|GET_ACCOUNTS|MANAGE_EXTERNAL_STORAGE)' --include='AndroidManifest.xml' . && ! grep -rnE 'prominent disclosure|user consent|privacy consent|accept policy|[Pp]rominentDisclosure|[Dd]isclosureDialog|[Cc]onsentDialog|showDisclosure|requestConsent' .",
    "ANDROID-ADVERTISING-ID": "grep -rn 'com.google.android.gms.permission.AD_ID\\|AD_ID\\|getAdvertisingIdInfo' --include='AndroidManifest.xml' --include='*.kt' --include='*.java' . && ! grep -rn 'opt-out\\|reset AD_ID\\|advertisingIdConsent\\|delete AD_ID' .",
    "ANDROID-RUNTIME-PERMISSIONS": "grep -rn 'requestPermissions\\|checkSelfPermission\\|shouldShowRequestPermissionRationale' --include='*.kt' --include='*.java' . && ! grep -rn 'permission explanation\\|showPermissionRationale\\|explainPermission' .",
    "ANDROID-HEALTH-PERMISSIONS": "grep -rn 'HealthConnectClient\\|com.google.android.gms.permission.HealthConnect\\|READ_STEPS\\|READ_HEART_RATE' --include='*.kt' --include='*.java' --include='AndroidManifest.xml' . && ! grep -rn 'healthConnectConsent\\|healthPrivacyPolicy\\|Health Connect' .",
    "WEB-GDPR-COMPLIANCE": "grep -rn 'processData\\|personalData\\|submitForm\\|registerWeb\\|webForm' --include='*.js' --include='*.ts' --include='*.html' . && ! grep -rn 'GDPR\\|opt-in\\|privacyConsent\\|deletePersonalData\\|exportData' .",
    "WEB-COOKIE-CONSENT": "grep -rn 'document.cookie\\|setCookie\\|cookieStore\\|js-cookie\\|cookieConsent' --include='*.js' --include='*.ts' --include='*.html' . && ! grep -rn 'cookieBanner\\|cookieConsentBanner\\|acceptCookies\\|cookiePreferences' .",
    "WEB-LOCAL-STORAGE": "grep -rn 'localStorage.setItem\\|localStorage' --include='*.js' --include='*.ts' --include='*.html' . && ! grep -rn 'encryptedStorage\\|encryptToken\\|consentLocalStorage\\|clearLocalStorage' .",
    "WEB-SESSION-STORAGE": "grep -rn 'sessionStorage.setItem\\|sessionStorage' --include='*.js' --include='*.ts' --include='*.html' . && ! grep -rn 'encryptedSession\\|clearSessionStorage' .",
    "WEB-INDEXEDDB": "grep -rn 'indexedDB.open\\|indexedDB\\|createObjectStore' --include='*.js' --include='*.ts' --include='*.html' . && ! grep -rn 'encryptDatabase\\|deleteDatabase\\|consentIndexedDB' .",
    "WEB-TRACKING-TECHNOLOGIES": "grep -rn 'gtag\\|fbq\\|google-analytics\\|trackingPixel\\|analytics.js\\|hotjar' --include='*.js' --include='*.ts' --include='*.html' . && ! grep -rn 'consentTracking\\|disableTracking\\|optOutTracking\\|trackingPreferences' .",
    "BOTH-SECURE-STORAGE": "grep -rn 'UserDefaults.standard.set\\|getSharedPreferences' . | grep -i 'token\\|password\\|credential\\|secret\\|jwt' && ! grep -rn 'Keychain\\|SecItemAdd\\|SecItemUpdate\\|EncryptedSharedPreferences\\|KeyStore\\|SQLCipher' .   # matches guard.sh: fires only when a sensitive keyword is present AND a secure-storage API is absent",
    "ANDROID-INSECURE-BACKUP": "grep -rn 'allowBackup=\"true\"' . && ! grep -rn 'dataExtractionRules\\|fullBackupContent\\|allowBackup=\"false\"' .",
    "BOTH-UNSAFE-DEEPLINK": "grep -rn 'CFBundleURLSchemes\\|android:scheme' . && ! grep -rn 'apple-app-site-association\\|assetlinks.json' .",
    "APPLE-ACCESSIBILITY-VOICEOVER": "python3 scripts/accessibility-audit.py . --rule APPLE-ACCESSIBILITY-VOICEOVER",
    "APPLE-ACCESSIBILITY-DYNAMICTYPE": "python3 scripts/accessibility-audit.py . --rule APPLE-ACCESSIBILITY-DYNAMICTYPE",
    "APPLE-ACCESSIBILITY-REDUCEMOTION": "python3 scripts/accessibility-audit.py . --rule APPLE-ACCESSIBILITY-REDUCEMOTION",
    "APPLE-ACCESSIBILITY-COLORCONTRAST": "python3 scripts/accessibility-audit.py . --rule APPLE-ACCESSIBILITY-COLORCONTRAST",
    "APPLE-ACCESSIBILITY-HAPTICS": "python3 scripts/accessibility-audit.py . --rule APPLE-ACCESSIBILITY-HAPTICS",
    "APPLE-ACCESSIBILITY-KEYBOARD": "python3 scripts/accessibility-audit.py . --rule APPLE-ACCESSIBILITY-KEYBOARD",
    "ANDROID-ACCESSIBILITY-TALKBACK": "python3 scripts/accessibility-audit.py . --rule ANDROID-ACCESSIBILITY-TALKBACK",
    "ANDROID-ACCESSIBILITY-FONTSCALING": "python3 scripts/accessibility-audit.py . --rule ANDROID-ACCESSIBILITY-FONTSCALING",
    "ANDROID-ACCESSIBILITY-HIGHCONTRAST": "python3 scripts/accessibility-audit.py . --rule ANDROID-ACCESSIBILITY-HIGHCONTRAST",
    "ANDROID-ACCESSIBILITY-SCANNER": "python3 scripts/accessibility-audit.py . --rule ANDROID-ACCESSIBILITY-SCANNER",
    "BOTH-SUBSCRIPTION-HARD-CANCEL": "grep -rniE 'subscri(be|ption)|auto.renew|membership' --include='*.swift' --include='*.kt' --include='*.java' --include='*.html' --include='*.md' . 2>/dev/null | grep -iE '(^|[^a-z])call[^a-z].{0,24}cancel|cancel.{0,25}[^a-z]call([^a-z]|$)|mail.{0,25}cancel|(^|[^a-z])write[^a-z].{0,24}cancel|cancel.{0,15}(in.person|by.phone|by.mail)'",
    "BOTH-E-EVIDENCE-COMPLIANCE-MISSING": "grep -rniE 'e-evidence|european production order|european preservation order|emergency data production' . 2>/dev/null",
    "BOTH-WITHDRAWAL-BUTTON-MISSING": "grep -rniE 'withdrawal button|withdrawal function|withdraw from contract|distance contract' . 2>/dev/null",
    "BOTH-GPSR-COMPLIANCE-MISSING": "grep -rniE 'gpsr|general product safety|product safety|manufacturerInfo|safetyWarning' . 2>/dev/null",
    "FLUTTER-PRIVACY-MANIFEST-MISSING": "grep -q 'permission_handler\\|image_picker\\|geolocator\\|firebase_' pubspec.yaml 2>/dev/null && ! find . -name 'PrivacyInfo.xcprivacy' | grep -q .",
    "RN-OTA-UNDECLARED": "grep -rn 'react-native-code-push\\|CodePush\\.\\|expo-updates' --include='*.ts' --include='*.tsx' --include='*.js' . 2>/dev/null",
    "RN-PRIVACY-MANIFEST-MISSING": "grep -qE '\"react-native\"|\"expo\"' package.json 2>/dev/null && grep -rn 'Firebase\\|AsyncStorage\\|expo-file-system' --include='*.ts' --include='*.tsx' . 2>/dev/null && ! find . -name 'PrivacyInfo.xcprivacy' | grep -q .",
    "IONIC-4.2-THIN-WRAPPER": "grep -rlE 'WKWebView|loadRequest|Capacitor|Cordova' --include='*.ts' --include='*.js' --include='*.swift' . 2>/dev/null | wc -l   # then count distinct @capacitor/(status-bar|splash-screen|push-notifications|haptics) markers, fewer than 2 is a thin wrapper",
    "IONIC-UIWEBVIEW-DEPRECATED": "grep -rn 'UIWebView' --include='*.swift' --include='*.m' . 2>/dev/null",
    "IONIC-PRIVACY-MANIFEST-MISSING": "grep -rq '@capacitor/\\|Capacitor\\.' --include='*.ts' . 2>/dev/null && ! find . -name 'PrivacyInfo.xcprivacy' | grep -q .",
    "GOOGLE-PAYMENTS-DONATION-LINK": "grep -rn 'opencollective.com\\|ko-fi.com\\|patreon.com\\|buymeacoffee.com\\|github.com/sponsors\\|liberapay.com\\|paypal.com/donate' --include='*.kt' --include='*.java' --include='*.xml' --include='*.dart' --include='*.ts' --include='*.tsx' --include='*.js' .",
    "GOOGLE-PLAY-CHARGEBACK-LIABILITY": "grep -rq 'BillingClient\\|com.android.billingclient' --include='*.kt' --include='*.java' --include='*.gradle' --include='*.kts' . && ! grep -rqi 'PendingRefundReviewNotification\\|reviewrefund' .",
    "APPLE-2.3.6-SOCIAL-MEDIA-DECLARATION": "grep -rn 'newsFeed\\|NewsFeed\\|followers\\|chatRoom\\|ChatRoom\\|DirectMessage\\|liveStream\\|LiveStream' --include='*.swift' --include='*.m' --include='*.plist' --include='*.entitlements' --include='*.pbxproj' .   # then confirm the social media capability question is answered in App Store Connect",
    "APPLE-4.0-SIWA-RELAY-DOMAIN": "grep -rn 'privaterelay\\.appleid\\.com' . && ! grep -rqn 'private\\.icloud\\.com' .",
    "APPLE-5.1.1-RESCIND-CONSENT-UNHANDLED": "grep -rqn 'DeclaredAgeRange\\|AgeRangeService' . && ! grep -rqn 'RESCIND_CONSENT\\|rescindConsent' .",
    "APPLE-3.1.1-EXTERNAL-LINK-REGION-GATING": "grep -rqn 'ExternalPurchaseLink\\|external-purchase-link\\|openExternalPurchaseLink' . && ! grep -rqn 'Storefront\\|storefront\\|countryCode' .",
    "APPLE-4.5.3-LIVE-ACTIVITY-SPAM": "grep -rn 'ActivityKit\\|Activity\\.request\\|LiveActivity' {S} .   # then review every Live Activity for promotional content",
    "APPLE-ODR-DEPRECATED-27": "grep -rn 'NSBundleResourceRequest\\|OnDemandResources\\|on-demand-resource' --include='*.swift' --include='*.m' --include='*.plist' --include='*.entitlements' --include='*.pbxproj' .",
    "APPLE-ASCAPI-AGERATING-ENDPOINT-REMOVED": "grep -rn 'appStoreVersions/[^ ]*/ageRatingDeclaration\\|relationships/ageRatingDeclaration' --include='*.rb' --include='*.sh' --include='*.py' --include='*.js' --include='*.ts' --include='*.yml' --include='*.yaml' .",
    "APPLE-MACOS-ROSETTA-SUNSET": "grep -rn 'VALID_ARCHS\\|ONLY_ACTIVE_ARCH\\|x86_64' --include='*.pbxproj' --include='*.xcconfig' . && ! grep -rqn 'arm64' --include='*.pbxproj' --include='*.xcconfig' .",
    "GOOGLE-ORG-REGISTRATION-REQUIRED": "grep -rn 'VpnService\\|HealthConnect\\|health\\.connect\\|BankAccount\\|cryptocurrency' {A} .   # then verify the Play Console account type is Organization with a D-U-N-S number",
    "GOOGLE-PLAY-APP-REGISTRATION-MISSING": "grep -rhoE 'applicationId[[:space:]=]+\"[^\"]+\"' --include='*.gradle' --include='*.kts' .   # then confirm each distributed package name is registered in Play Console developer verification",
    "GOOGLE-CONTACTS-PICKER-REQUIRED": "grep -rqn 'READ_CONTACTS' --include='*.kt' --include='*.java' --include='*.xml' --include='*.gradle' --include='*.kts' . && grep -rqE 'targetSdk(Version)?[[:space:]=]+3[7-9]' --include='*.gradle' --include='*.kts' . && ! grep -rqn 'ACTION_PICK\\|ContactPicker' --include='*.kt' --include='*.java' --include='*.xml' --include='*.gradle' --include='*.kts' .",
    "GOOGLE-LOCATION-BUTTON-SCOPE": "grep -rqn 'ACCESS_FINE_LOCATION\\|ACCESS_COARSE_LOCATION' --include='*.kt' --include='*.java' --include='*.xml' --include='*.gradle' --include='*.kts' . && grep -rqE 'targetSdk(Version)?[[:space:]=]+3[7-9]' --include='*.gradle' --include='*.kts' . && ! grep -rqn 'onlyForLocationButton' --include='*.kt' --include='*.java' --include='*.xml' --include='*.gradle' --include='*.kts' .",
    "GOOGLE-FGS-GEOFENCE-REMOVED": "grep -rqn 'FOREGROUND_SERVICE_LOCATION' --include='*.kt' --include='*.java' --include='*.xml' --include='*.gradle' --include='*.kts' . && grep -rqi 'geofenc' --include='*.kt' --include='*.java' --include='*.xml' --include='*.gradle' --include='*.kts' .",
    "ANDROID-LOCAL-NETWORK-PERMISSION": "grep -rqn 'NsdManager\\|MulticastSocket\\|_tcp\\.local\\|mDNS' {A} . && ! grep -rqn 'ACCESS_LOCAL_NETWORK' {A} .",
    "ANDROID-R8-OPTIMIZATION-MISSING": "! grep -rqE '(isMinifyEnabled|minifyEnabled)[[:space:]=]+true' --include='*.gradle' --include='*.kts' .",
    "ANDROID-RESTORE-CREDENTIALS-REQUIRED": "grep -rqn 'signInWith\\|CredentialManager\\|FirebaseAuth\\|LoginActivity' --include='*.kt' --include='*.java' --include='*.xml' --include='*.gradle' --include='*.kts' . && ! grep -rqn 'RestoreCredential' --include='*.kt' --include='*.java' --include='*.xml' --include='*.gradle' --include='*.kts' .",
    "GOOGLE-GENAI-NCII-CONTROLS": "grep -rqn 'generateImage\\|imageGeneration\\|text-to-image\\|faceSwap\\|stable-diffusion' --include='*.kt' --include='*.java' --include='*.xml' --include='*.gradle' --include='*.kts' --include='*.dart' --include='*.ts' . && ! grep -rqi 'moderation\\|safetyClassifier\\|contentFilter' .",
    "GOOGLE-ANON-CHAT-MINOR-BLOCK": "grep -rqi 'random chat\\|anonymous chat\\|chat with strangers\\|Omegle' . && ! grep -rqi 'ageGate\\|minorBlock\\|csae' .",
    "GOOGLE-UNRATED-APP-BANNED": "echo 'manual. open Play Console, App content, Content rating, and confirm the questionnaire is complete and current'",
    "APPLE-ENROLLMENT-VERIFICATION-PENDING": "echo 'manual. open developer.apple.com/account, confirm Membership is Active, every agreement and attachment is accepted, and no migration is pending, at least six weeks before the first submission'",
    "GOOGLE-PLAY-BILLING-V8-REQUIRED": "grep -rnoE 'com\\.android\\.billingclient:billing(-ktx)?:[0-9]+' --include='*.gradle' --include='*.kts' .   # major must be 8 or higher from 31 Aug 2026",
    "GOOGLE-PHOTO-VIDEO-PERMISSIONS-DECLARATION": "grep -rnE 'android\\.permission\\.READ_MEDIA_(IMAGES|VIDEO)' --include='AndroidManifest.xml' . && ! grep -rnE 'PickVisualMedia|ACTION_PICK_IMAGES|PhotoPicker|photo_picker' .",
    "BOTH-US-ASAA-AGE-SIGNALS-MISSING": "grep -rnE 'ageCategory|minorUser|parentalConsent|DeclaredAgeRange|age-signals' . && ! grep -rqE 'verifyParentalConsent|handleAgeCategorySignal|rescindConsent|deleteAgeVerificationData' .",
    "APPLE-MIN-DEPLOYMENT-TARGET-IOS13": "grep -rnE 'IPHONEOS_DEPLOYMENT_TARGET *= *\"?(8|9|10|11|12)[.;]|platform :ios, .(8|9|10|11|12)[.\\x27]' --include='*.pbxproj' --include='*.xcconfig' --include='Podfile' .",
    "APPLE-2.5.5-IPV4-ONLY-NETWORKING": "grep -rnE '(inet_addr|inet_aton|gethostbyname)[[:space:]]*\\(' --include='*.swift' --include='*.m' --include='*.mm' --include='*.c' --include='*.h' .",
    "APPLE-5.1.3-HEALTH-DATA-ICLOUD": "grep -rqE 'HKHealthStore' --include='*.swift' --include='*.m' . && grep -rnE 'CKContainer|CKDatabase|NSUbiquitousKeyValueStore|NSPersistentCloudKitContainer' --include='*.swift' --include='*.m' .",
    "ANDROID-DEBUGGABLE-RELEASE": "grep -rnE \"android:debuggable *= *[\\\"']true\" --include='AndroidManifest.xml' . | grep -vE '/src/(debug|test|androidTest)'",
    "ANDROID-FGS-SPECIAL-USE-UNDECLARED": "grep -rn 'specialUse' --include='AndroidManifest.xml' . && ! grep -rq 'PROPERTY_SPECIAL_USE_FGS_SUBTYPE' --include='AndroidManifest.xml' .",
    "ANDROID-64BIT-ABI-MISSING": "grep -rn 'abiFilters' --include='*.gradle' --include='*.kts' . | grep armeabi-v7a | grep -v arm64-v8a"
  }
}