miaoda-expo-devkit 0.1.1-beta.56 → 0.1.1-beta.57

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.
@@ -85,6 +85,7 @@ var KNOWN_CONFIG_PLUGIN_PACKAGES = /* @__PURE__ */ new Set([
85
85
  "expo-sharing",
86
86
  "expo-splash-screen",
87
87
  "expo-sqlite",
88
+ "expo-status-bar",
88
89
  "expo-system-ui",
89
90
  "expo-task-manager",
90
91
  "expo-tracking-transparency",
@@ -83,6 +83,7 @@ var KNOWN_CONFIG_PLUGIN_PACKAGES = /* @__PURE__ */ new Set([
83
83
  "expo-sharing",
84
84
  "expo-splash-screen",
85
85
  "expo-sqlite",
86
+ "expo-status-bar",
86
87
  "expo-system-ui",
87
88
  "expo-task-manager",
88
89
  "expo-tracking-transparency",
@@ -91,6 +92,39 @@ var KNOWN_CONFIG_PLUGIN_PACKAGES = /* @__PURE__ */ new Set([
91
92
  "expo-web-browser",
92
93
  "expo-widgets"
93
94
  ]);
95
+ var PACKAGES_WITHOUT_CONFIG_PLUGIN = /* @__PURE__ */ new Set([
96
+ "expo-age-range",
97
+ "expo-app-integrity",
98
+ "expo-application",
99
+ "expo-auth-session",
100
+ "expo-battery",
101
+ "expo-blur",
102
+ "expo-checkbox",
103
+ "expo-clipboard",
104
+ "expo-constants",
105
+ "expo-crypto",
106
+ "expo-device",
107
+ "expo-gl",
108
+ "expo-glass-effect",
109
+ "expo-haptics",
110
+ "expo-image-loader",
111
+ "expo-image-manipulator",
112
+ "expo-intent-launcher",
113
+ "expo-keep-awake",
114
+ "expo-linear-gradient",
115
+ "expo-linking",
116
+ "expo-live-photo",
117
+ "expo-mesh-gradient",
118
+ "expo-network",
119
+ "expo-print",
120
+ "expo-screen-capture",
121
+ "expo-sms",
122
+ "expo-speech",
123
+ "expo-store-review",
124
+ "expo-symbols",
125
+ "expo-ui",
126
+ "expo-video-thumbnails"
127
+ ]);
94
128
  var pluginsCache = /* @__PURE__ */ new Map();
95
129
  var depsCache = /* @__PURE__ */ new Map();
96
130
  function getPluginsFromAppJson(projectRoot) {
@@ -133,7 +167,8 @@ var noUnusedExpoPluginRule = {
133
167
  },
134
168
  schema: [],
135
169
  messages: {
136
- notInstalled: "'{{packageName}}' is declared in app.json \u2192 expo.plugins but is not installed in package.json."
170
+ notInstalled: "'{{packageName}}' is declared in app.json \u2192 expo.plugins but is not installed in package.json.",
171
+ noConfigPlugin: "'{{packageName}}' does not ship a config plugin (no app.plugin.js). Remove it from app.json \u2192 expo.plugins."
137
172
  }
138
173
  },
139
174
  create(context) {
@@ -144,6 +179,10 @@ var noUnusedExpoPluginRule = {
144
179
  return {
145
180
  Program(node) {
146
181
  for (const pkg of declaredPlugins) {
182
+ if (PACKAGES_WITHOUT_CONFIG_PLUGIN.has(pkg)) {
183
+ context.report({ node, messageId: "noConfigPlugin", data: { packageName: pkg } });
184
+ continue;
185
+ }
147
186
  if (!KNOWN_CONFIG_PLUGIN_PACKAGES.has(pkg)) continue;
148
187
  if (installedDeps.has(pkg)) continue;
149
188
  context.report({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "miaoda-expo-devkit",
3
- "version": "0.1.1-beta.56",
3
+ "version": "0.1.1-beta.57",
4
4
  "description": "Expo 应用开发工具集:Sentry DSN 替换 stub、错误/网络捕获、Metro 符号化",
5
5
  "license": "MIT",
6
6
  "main": "./dist/index.js",