Skip to content

armgit / cindy

Public Imported from GitHub
0

Consider it done. The open-source AI agent that works out of the box · 想到,就能做到。开源、开箱即用的 AI Agent。

revert(mobile): 恢复 Android 麦克风权限声明(重新应用 #610)

Lizia79eaac735a3
diff --git a/apps/mobile/app.json b/apps/mobile/app.json
index 8da337e303..ec24a7504b 100644
--- a/apps/mobile/app.json
+++ b/apps/mobile/app.json
@@ -126,7 +126,7 @@
{
"photosPermission": "Cindy needs photo library access to attach images to remote sessions.",
"cameraPermission": "Cindy needs camera access to attach photos to remote sessions.",
- "microphonePermission": false
+ "microphonePermission": "Cindy needs microphone access for voice input in remote sessions."
}
],
[
diff --git a/apps/mobile/src/__tests__/nativeAppConfig.test.ts b/apps/mobile/src/__tests__/nativeAppConfig.test.ts
index fadcfd2e64..8abf3a5a90 100644
--- a/apps/mobile/src/__tests__/nativeAppConfig.test.ts
+++ b/apps/mobile/src/__tests__/nativeAppConfig.test.ts
@@ -447,6 +447,10 @@ describe('mobile native app config', () => {
const audioPlugin = appJson.expo.plugins.find(
(plugin: unknown) => Array.isArray(plugin) && plugin[0] === 'expo-audio',
);
+ const imagePickerPlugin = appJson.expo.plugins.find(
+ (plugin: unknown) =>
+ Array.isArray(plugin) && plugin[0] === 'expo-image-picker',
+ );
expect(audioPlugin).toEqual([
'expo-audio',
@@ -457,6 +461,13 @@ describe('mobile native app config', () => {
enableBackgroundRecording: false,
},
]);
+ expect(imagePickerPlugin).toEqual([
+ 'expo-image-picker',
+ expect.objectContaining({
+ microphonePermission:
+ 'Cindy needs microphone access for voice input in remote sessions.',
+ }),
+ ]);
const foregroundOnlyPluginIndex = appJson.expo.plugins.indexOf(
'./plugins/with-foreground-only-audio',
);