runcloud 0.2.167 → 0.2.168

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.
@@ -30,6 +30,7 @@ const JUDGMENT_IDS = new Set([
30
30
  'background_mode_justification',
31
31
  'push_notification_setup',
32
32
  'deep_link_config',
33
+ 'rating_prompt',
33
34
  ]);
34
35
  const LIVE_STORE_IDS = new Set([
35
36
  'apple_privacy_policy',
@@ -210,6 +211,8 @@ function evaluateLocalItem(root, appJson, item) {
210
211
  return evaluatePermissionDescriptions(root, appJson, item);
211
212
  case 'privacy_manifest':
212
213
  return evaluatePrivacyManifest(root, appJson, item);
214
+ case 'rating_prompt':
215
+ return evaluateRatingPrompt(root, item);
213
216
  default:
214
217
  if (STORE_REMINDER_IDS.has(item.id)) {
215
218
  return makeItem(item, 'info', 'Complete this declaration in Google Play Console.', 'Play Console questionnaire');
@@ -259,6 +262,12 @@ function evaluateRestorePurchases(root, item) {
259
262
  return makeItem(item, 'pass', 'Restore purchases flow appears in source.', evidence(restore));
260
263
  return makeItem(item, 'fail', 'IAP APIs found but no restore purchases flow was found.', evidence(iap));
261
264
  }
265
+ function evaluateRatingPrompt(root, item) {
266
+ const asks = scan(root, /expo-store-review|react-native-in-app-review|requestReview|SKStoreReviewController/);
267
+ if (asks.length)
268
+ return null;
269
+ return makeItem(item, 'warning', 'The app never asks people for a rating.', 'scan: no store rating prompt found');
270
+ }
262
271
  const TRACKING_SDK = /["'](?:@react-native-firebase\/analytics|react-native-fbsdk(?:-next)?|expo-facebook|react-native-appsflyer|@amplitude\/[\w.-]+|@segment\/[\w.-]+)(?:\/[^"']*)?["']/;
263
272
  function evaluateTrackingWithoutAtt(root, item) {
264
273
  const tracking = scan(root, TRACKING_SDK);
package/dist/version.js CHANGED
@@ -1 +1 @@
1
- export const CLI_VERSION = '0.2.167';
1
+ export const CLI_VERSION = '0.2.168';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "runcloud",
3
- "version": "0.2.167",
3
+ "version": "0.2.168",
4
4
  "description": "Create and control run.cloud remote mobile simulators and cloud sandboxes",
5
5
  "license": "Apache-2.0",
6
6
  "keywords": [
Binary file
Binary file