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).
2020Add 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
2626and 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 )
4949package, 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
5361Extensive ` dartdoc ` documentation is [ available here] ( https://embla.is/embla_core ) .
Original file line number Diff line number Diff line change 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 >
Original file line number Diff line number Diff line change 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}"
Original file line number Diff line number Diff line change 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 >
Original file line number Diff line number Diff 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:
Original file line number Diff line number Diff line change 2222import 'package:flutter/foundation.dart' show kDebugMode;
2323
2424const String kEmblaCoreName = 'EmblaCore' ;
25- const String kEmblaCoreVersion = '1.0.4 ' ;
25+ const String kEmblaCoreVersion = '1.0.3 ' ;
2626
2727// Speech recognition settings
2828const String kDefaultSpeechToTextLanguage = 'is-IS' ;
You can’t perform that action at this time.
0 commit comments