Skip to content

Commit c9f284c

Browse files
committed
Bump version back to 1.0.3, updated docs
1 parent 5e67e26 commit c9f284c

File tree

6 files changed

+33
-5
lines changed

6 files changed

+33
-5
lines changed

README.md

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ EmblaCore is available via [pub.dev](https://pub.dev/packages/embla_core).
2020
Add this to the dependencies list in your `pubspec.yaml` file:
2121

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

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

51+
You should run the following code early in your app before starting an Embla session:
52+
53+
```dart
54+
EmblaSession.prepare();
55+
```
56+
57+
This preloads audio files into memory and configures the audio session appropriately.
58+
5159
## Documentation
5260

5361
Extensive `dartdoc` documentation is [available here](https://embla.is/embla_core).

example/android/app/src/debug/AndroidManifest.xml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,11 @@
55
to allow setting breakpoints, to provide hot reload, etc.
66
-->
77
<uses-permission android:name="android.permission.INTERNET"/>
8+
<uses-permission android:name="android.permission.RECORD_AUDIO" />
9+
<uses-permission android:name="android.permission.BLUETOOTH"/>
10+
<uses-permission android:name="android.permission.MODIFY_AUDIO_SETTINGS" />
11+
<uses-permission android:name="android.permission.BLUETOOTH_CONNECT" />
12+
<uses-permission android:name="android.permission.BROADCAST_STICKY" />
13+
<uses-permission android:name="android.permission.READ_PHONE_STATE" />
14+
815
</manifest>

example/android/app/src/main/AndroidManifest.xml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
22
package="com.example.example">
33
<uses-permission android:name="android.permission.RECORD_AUDIO" />
4+
<uses-permission android:name="android.permission.BLUETOOTH"/>
5+
<uses-permission android:name="android.permission.MODIFY_AUDIO_SETTINGS" />
6+
<uses-permission android:name="android.permission.BLUETOOTH_CONNECT" />
7+
<uses-permission android:name="android.permission.BROADCAST_STICKY" />
8+
<uses-permission android:name="android.permission.READ_PHONE_STATE" />
9+
410
<application
511
android:label="example"
612
android:name="${applicationName}"

example/android/app/src/profile/AndroidManifest.xml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,11 @@
55
to allow setting breakpoints, to provide hot reload, etc.
66
-->
77
<uses-permission android:name="android.permission.INTERNET"/>
8+
<uses-permission android:name="android.permission.BLUETOOTH"/>
9+
<uses-permission android:name="android.permission.MODIFY_AUDIO_SETTINGS" />
10+
<uses-permission android:name="android.permission.BLUETOOTH_CONNECT" />
11+
<uses-permission android:name="android.permission.RECORD_AUDIO" />
12+
<uses-permission android:name="android.permission.BROADCAST_STICKY" />
13+
<uses-permission android:name="android.permission.READ_PHONE_STATE" />
14+
815
</manifest>

example/pubspec.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ packages:
6363
path: ".."
6464
relative: true
6565
source: path
66-
version: "1.0.4+1"
66+
version: "1.0.3+1"
6767
fake_async:
6868
dependency: transitive
6969
description:

lib/src/common.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
import 'package:flutter/foundation.dart' show kDebugMode;
2323

2424
const String kEmblaCoreName = 'EmblaCore';
25-
const String kEmblaCoreVersion = '1.0.4';
25+
const String kEmblaCoreVersion = '1.0.3';
2626

2727
// Speech recognition settings
2828
const String kDefaultSpeechToTextLanguage = 'is-IS';

0 commit comments

Comments
 (0)