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 "fix(mobile): restore Android microphone permission (#610)"

Lizicdcde2fc2818
diff --git a/apps/mobile/app.json b/apps/mobile/app.json
index ee048a7f45..283c9192cc 100644
--- a/apps/mobile/app.json
+++ b/apps/mobile/app.json
@@ -125,7 +125,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": "Cindy needs microphone access for voice input in remote sessions."
+ "microphonePermission": false
}
],
[
diff --git a/apps/mobile/src/__tests__/nativeAppConfig.test.ts b/apps/mobile/src/__tests__/nativeAppConfig.test.ts
index be7ed3e437..0293edb08b 100644
--- a/apps/mobile/src/__tests__/nativeAppConfig.test.ts
+++ b/apps/mobile/src/__tests__/nativeAppConfig.test.ts
@@ -430,10 +430,6 @@ 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',
@@ -444,13 +440,6 @@ 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',
);