File tree Expand file tree Collapse file tree 6 files changed +33
-5
lines changed Expand file tree Collapse file tree 6 files changed +33
-5
lines changed Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ EmblaCore is available via [pub.dev](https://pub.dev/packages/embla_core).
20
20
Add this to the dependencies list in your ` pubspec.yaml ` file:
21
21
22
22
``` yaml
23
- embla_core : " >=1.0.2 "
23
+ embla_core : " >=1.0.3 "
24
24
` ` `
25
25
26
26
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:
44
44
<uses-permission android : name =" android.permission.RECORD_AUDIO" />
45
45
```
46
46
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 )
49
49
package, for instance.
50
50
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
+
51
59
## Documentation
52
60
53
61
Extensive ` dartdoc ` documentation is [ available here] ( https://embla.is/embla_core ) .
Original file line number Diff line number Diff line change 5
5
to allow setting breakpoints, to provide hot reload, etc.
6
6
-->
7
7
<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
+
8
15
</manifest >
Original file line number Diff line number Diff line change 1
1
<manifest xmlns : android =" http://schemas.android.com/apk/res/android"
2
2
package =" com.example.example" >
3
3
<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
+
4
10
<application
5
11
android : label =" example"
6
12
android : name =" ${applicationName}"
Original file line number Diff line number Diff line change 5
5
to allow setting breakpoints, to provide hot reload, etc.
6
6
-->
7
7
<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
+
8
15
</manifest >
Original file line number Diff line number Diff line change @@ -63,7 +63,7 @@ packages:
63
63
path: ".."
64
64
relative: true
65
65
source: path
66
- version: "1.0.4 +1"
66
+ version: "1.0.3 +1"
67
67
fake_async:
68
68
dependency: transitive
69
69
description:
Original file line number Diff line number Diff line change 22
22
import 'package:flutter/foundation.dart' show kDebugMode;
23
23
24
24
const String kEmblaCoreName = 'EmblaCore' ;
25
- const String kEmblaCoreVersion = '1.0.4 ' ;
25
+ const String kEmblaCoreVersion = '1.0.3 ' ;
26
26
27
27
// Speech recognition settings
28
28
const String kDefaultSpeechToTextLanguage = 'is-IS' ;
You can’t perform that action at this time.
0 commit comments