runcloud 0.2.170 → 0.2.171

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.
@@ -22,6 +22,14 @@ const CONFIG_RULES = {
22
22
  orientation: { path: ['expo', 'orientation'], absent: 'info' },
23
23
  ios_supports_tablet: { path: ['expo', 'ios', 'supportsTablet'], absent: 'info' },
24
24
  };
25
+ const READS_APP_CONFIG = new Set([...Object.keys(CONFIG_RULES), 'ios_encryption', 'plugin_permission_missing', 'permission_descriptions', 'privacy_manifest']);
26
+ const DYNAMIC_CONFIGS = ['ts', 'mts', 'cts', 'mjs', 'cjs', 'js'].map((ext) => `app.config.${ext}`);
27
+ export function dynamicExpoConfig(root) {
28
+ return DYNAMIC_CONFIGS.find((name) => existsSync(path.join(root, name)));
29
+ }
30
+ export function uncheckedUnder(dynamicConfig, finding) {
31
+ return `Not checked: ${dynamicConfig} can set this, and it only runs when the app builds. From app.json alone: ${finding}`;
32
+ }
25
33
  const JUDGMENT_IDS = new Set([
26
34
  'apple_sign_in_order',
27
35
  'permission_string_quality',
@@ -108,7 +116,8 @@ const SKIP_DIRS = new Set([
108
116
  export function evaluateCompliance(manifest, projectDir, options = {}) {
109
117
  const root = path.resolve(projectDir);
110
118
  const appJson = asReleased(readJson(path.join(root, 'app.json')), options.iosBundleId);
111
- const targetPlatforms = targetPlatformsFromAppJson(appJson);
119
+ const dynamicConfig = dynamicExpoConfig(root);
120
+ const targetPlatforms = dynamicConfig ? ['ios', 'android'] : targetPlatformsFromAppJson(appJson);
112
121
  const items = [];
113
122
  const unresolved = [];
114
123
  for (const item of activeItems(manifest)) {
@@ -117,6 +126,10 @@ export function evaluateCompliance(manifest, projectDir, options = {}) {
117
126
  continue;
118
127
  }
119
128
  const evaluated = evaluateLocalItem(root, appJson, item);
129
+ if (evaluated && dynamicConfig && READS_APP_CONFIG.has(item.id) && (evaluated.status === 'fail' || evaluated.status === 'warning')) {
130
+ items.push(makeItem(item, 'info', uncheckedUnder(dynamicConfig, evaluated.message ?? `${item.label} is not set.`), evaluated.evidence));
131
+ continue;
132
+ }
120
133
  if (evaluated) {
121
134
  items.push(evaluated);
122
135
  continue;
package/dist/version.js CHANGED
@@ -1 +1 @@
1
- export const CLI_VERSION = '0.2.170';
1
+ export const CLI_VERSION = '0.2.171';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "runcloud",
3
- "version": "0.2.170",
3
+ "version": "0.2.171",
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