Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 14 additions & 17 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -214,12 +214,11 @@ the AI toolkit in to your own applications.

4. **Set up device permissions**

To enable your users to take advantage of features like voice input and
media attachments, ensure that your app has the necessary permissions:
To enable your users to take advantage of features like voice input and
media attachments, ensure that your app has the necessary permissions:

- **Network access:**
To enable network access on macOS, add the following to your
`*.entitlements` files:
- **Network access:**
To enable network access on macOS, add the following to your `*.entitlements` files:

```xml
<plist version="1.0">
Expand All @@ -231,9 +230,7 @@ the AI toolkit in to your own applications.
</plist>
```

To enable network access on Android, ensure that your `AndroidManifest.xml`
file contains the following:

To enable network access on Android, ensure that your `AndroidManifest.xml` file contains the following:

```xml
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
Expand All @@ -242,17 +239,17 @@ the AI toolkit in to your own applications.
</manifest>
```

- **Microphone access:**
To enable voice input for users, update configs according to the
[permission and setup instructions][record-setup] for `package:record`.
- **Microphone access:**
To enable voice input for users, update configs according to the
[permission and setup instructions][record-setup] for `package:record`.

- **File selection:**
To enable users to select and attach files,
follow the [usage instructions][file-setup] for `package:file_selector`.
- **Image selection:**
- **File selection:**
To enable users to select and attach files,
follow the [usage instructions][file-setup] for `package:file_selector`.
- **Image selection:**

To enable users to take or select a picture from their device, refer to
the [installation instructions][image-setup] for `package:image_picker`.
To enable users to take or select a picture from their device, refer to
the [installation instructions][image-setup] for `package:image_picker`.

[gemini models]: https://ai.google.dev/gemini-api/docs/models/gemini
[`gemini.dart` sample]: https://github.com/flutter/ai/blob/main/example/lib/gemini/gemini.dart
Expand Down