Skip to content

Commit

Permalink
Bump version back to 1.0.3, updated docs
Browse files Browse the repository at this point in the history
  • Loading branch information
sveinbjornt committed Sep 7, 2023
1 parent 5e67e26 commit c9f284c
Show file tree
Hide file tree
Showing 6 changed files with 33 additions and 5 deletions.
14 changes: 11 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ EmblaCore is available via [pub.dev](https://pub.dev/packages/embla_core).
Add this to the dependencies list in your `pubspec.yaml` file:

```yaml
embla_core: ">=1.0.2"
embla_core: ">=1.0.3"
```
and then run the following command from the project root:
Expand All @@ -44,10 +44,18 @@ Android apps must have the following in their `AndroidManifest.xml` file:
<uses-permission android:name="android.permission.RECORD_AUDIO" />
```

The app must also request permission to record audio from the user. This can be
done using the [permission_handler](https://pub.dev/packages/permission_handler)
The app must also explicitly request permission to record audio from the user. This can
be done using the [permission_handler](https://pub.dev/packages/permission_handler)
package, for instance.

You should run the following code early in your app before starting an Embla session:

```dart
EmblaSession.prepare();
```

This preloads audio files into memory and configures the audio session appropriately.

## Documentation

Extensive `dartdoc` documentation is [available here](https://embla.is/embla_core).
Expand Down
7 changes: 7 additions & 0 deletions example/android/app/src/debug/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,11 @@
to allow setting breakpoints, to provide hot reload, etc.
-->
<uses-permission android:name="android.permission.INTERNET"/>
<uses-permission android:name="android.permission.RECORD_AUDIO" />
<uses-permission android:name="android.permission.BLUETOOTH"/>
<uses-permission android:name="android.permission.MODIFY_AUDIO_SETTINGS" />
<uses-permission android:name="android.permission.BLUETOOTH_CONNECT" />
<uses-permission android:name="android.permission.BROADCAST_STICKY" />
<uses-permission android:name="android.permission.READ_PHONE_STATE" />

</manifest>
6 changes: 6 additions & 0 deletions example/android/app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.example.example">
<uses-permission android:name="android.permission.RECORD_AUDIO" />
<uses-permission android:name="android.permission.BLUETOOTH"/>
<uses-permission android:name="android.permission.MODIFY_AUDIO_SETTINGS" />
<uses-permission android:name="android.permission.BLUETOOTH_CONNECT" />
<uses-permission android:name="android.permission.BROADCAST_STICKY" />
<uses-permission android:name="android.permission.READ_PHONE_STATE" />

<application
android:label="example"
android:name="${applicationName}"
Expand Down
7 changes: 7 additions & 0 deletions example/android/app/src/profile/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,11 @@
to allow setting breakpoints, to provide hot reload, etc.
-->
<uses-permission android:name="android.permission.INTERNET"/>
<uses-permission android:name="android.permission.BLUETOOTH"/>
<uses-permission android:name="android.permission.MODIFY_AUDIO_SETTINGS" />
<uses-permission android:name="android.permission.BLUETOOTH_CONNECT" />
<uses-permission android:name="android.permission.RECORD_AUDIO" />
<uses-permission android:name="android.permission.BROADCAST_STICKY" />
<uses-permission android:name="android.permission.READ_PHONE_STATE" />

</manifest>
2 changes: 1 addition & 1 deletion example/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ packages:
path: ".."
relative: true
source: path
version: "1.0.4+1"
version: "1.0.3+1"
fake_async:
dependency: transitive
description:
Expand Down
2 changes: 1 addition & 1 deletion lib/src/common.dart
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
import 'package:flutter/foundation.dart' show kDebugMode;

const String kEmblaCoreName = 'EmblaCore';
const String kEmblaCoreVersion = '1.0.4';
const String kEmblaCoreVersion = '1.0.3';

// Speech recognition settings
const String kDefaultSpeechToTextLanguage = 'is-IS';
Expand Down

0 comments on commit c9f284c

Please sign in to comment.