1
+ <manifest xmlns : android =" http://schemas.android.com/apk/res/android" >
2
+
3
+ <!-- Tell Google Play Store that your app uses Bluetooth LE
4
+ Set android:required="true" if bluetooth is necessary -->
5
+ <uses-feature android : name =" android.hardware.bluetooth_le" android : required =" false" />
6
+
7
+ <!-- New Bluetooth permissions in Android 12
8
+ https://developer.android.com/about/versions/12/features/bluetooth-permissions -->
9
+ <uses-permission android : name =" android.permission.BLUETOOTH_SCAN"
10
+ android : usesPermissionFlags =" neverForLocation" />
11
+ <uses-permission android : name =" android.permission.BLUETOOTH_CONNECT" />
12
+
13
+ <!-- legacy for Android 11 or lower -->
14
+ <uses-permission android : name =" android.permission.BLUETOOTH" android : maxSdkVersion =" 30" />
15
+ <uses-permission android : name =" android.permission.BLUETOOTH_ADMIN" android : maxSdkVersion =" 30" />
16
+ <uses-permission android : name =" android.permission.ACCESS_FINE_LOCATION"
17
+ android : maxSdkVersion =" 30" />
18
+
19
+ <!-- legacy for Android 9 or lower -->
20
+ <uses-permission android : name =" android.permission.ACCESS_COARSE_LOCATION"
21
+ android : maxSdkVersion =" 28" />
22
+
23
+ <application
24
+ android : label =" esp_ble_flutter"
25
+ android : name =" ${applicationName}"
26
+ android : icon =" @mipmap/ic_launcher" >
27
+ <activity
28
+ android : name =" .MainActivity"
29
+ android : exported =" true"
30
+ android : launchMode =" singleTop"
31
+ android : taskAffinity =" "
32
+ android : theme =" @style/LaunchTheme"
33
+ android : configChanges =" orientation|keyboardHidden|keyboard|screenSize|smallestScreenSize|locale|layoutDirection|fontScale|screenLayout|density|uiMode"
34
+ android : hardwareAccelerated =" true"
35
+ android : windowSoftInputMode =" adjustResize" >
36
+ <!-- Specifies an Android theme to apply to this Activity as soon as
37
+ the Android process has started. This theme is visible to the user
38
+ while the Flutter UI initializes. After that, this theme continues
39
+ to determine the Window background behind the Flutter UI. -->
40
+ <meta-data
41
+ android : name =" io.flutter.embedding.android.NormalTheme"
42
+ android : resource =" @style/NormalTheme"
43
+ />
44
+ <intent-filter >
45
+ <action android : name =" android.intent.action.MAIN" />
46
+ <category android : name =" android.intent.category.LAUNCHER" />
47
+ </intent-filter >
48
+ </activity >
49
+ <!-- Don't delete the meta-data below.
50
+ This is used by the Flutter tool to generate GeneratedPluginRegistrant.java -->
51
+ <meta-data
52
+ android : name =" flutterEmbedding"
53
+ android : value =" 2" />
54
+ </application >
55
+ <!-- Required to query activities that can process text, see:
56
+ https://developer.android.com/training/package-visibility and
57
+ https://developer.android.com/reference/android/content/Intent#ACTION_PROCESS_TEXT.
58
+
59
+ In particular, this is used by the Flutter engine in io.flutter.plugin.text.ProcessTextPlugin. -->
60
+ <queries >
61
+ <intent >
62
+ <action android : name =" android.intent.action.PROCESS_TEXT" />
63
+ <data android : mimeType =" text/plain" />
64
+ </intent >
65
+ </queries >
66
+ </manifest >
0 commit comments