|
1 | | -<manifest xmlns:android="http://schemas.android.com/apk/res/android" |
2 | | - package="com.onesignal.onesignalexample"> |
3 | | - |
4 | | - <!-- The INTERNET permission is required for development. Specifically, |
5 | | - flutter needs it to communicate with the running application |
6 | | - to allow setting breakpoints, to provide hot reload, etc. |
7 | | - --> |
8 | | - <uses-permission android:name="android.permission.INTERNET"/> |
9 | | - |
10 | | - <uses-permission android:name="com.android.vending.BILLING" /> |
11 | | - |
12 | | - <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"/> |
13 | | - |
14 | | - <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/> |
15 | | - |
16 | | - <!-- io.flutter.app.FlutterApplication is an android.app.Application that |
17 | | - calls FlutterMain.startInitialization(this); in its onCreate method. |
18 | | - In most cases you can leave this as-is, but you if you want to provide |
19 | | - additional functionality it is fine to subclass or reimplement |
20 | | - FlutterApplication and put your custom class here. --> |
| 1 | +<manifest xmlns:android="http://schemas.android.com/apk/res/android"> |
21 | 2 | <application |
22 | 3 | android:label="onesignal_example" |
| 4 | + android:name="${applicationName}" |
23 | 5 | android:icon="@mipmap/ic_launcher"> |
24 | 6 | <activity |
25 | 7 | android:name=".MainActivity" |
26 | 8 | android:exported="true" |
27 | 9 | android:launchMode="singleTop" |
| 10 | + android:taskAffinity="" |
28 | 11 | android:theme="@style/LaunchTheme" |
29 | | - android:configChanges="orientation|keyboardHidden|keyboard|screenSize|locale|layoutDirection|fontScale|screenLayout|density" |
| 12 | + android:configChanges="orientation|keyboardHidden|keyboard|screenSize|smallestScreenSize|locale|layoutDirection|fontScale|screenLayout|density|uiMode" |
30 | 13 | android:hardwareAccelerated="true" |
31 | 14 | android:windowSoftInputMode="adjustResize"> |
32 | 15 | <!-- Specifies an Android theme to apply to this Activity as soon as |
33 | 16 | the Android process has started. This theme is visible to the user |
34 | 17 | while the Flutter UI initializes. After that, this theme continues |
35 | 18 | to determine the Window background behind the Flutter UI. --> |
36 | 19 | <meta-data |
37 | | - android:name="io.flutter.embedding.android.NormalTheme" |
38 | | - android:resource="@style/NormalTheme" |
39 | | - /> |
40 | | - <!-- Displays an Android View that continues showing the launch screen |
41 | | - Drawable until Flutter paints its first frame, then this splash |
42 | | - screen fades out. A splash screen is useful to avoid any visual |
43 | | - gap between the end of Android's launch screen and the painting of |
44 | | - Flutter's first frame. --> |
45 | | - <meta-data |
46 | | - android:name="io.flutter.embedding.android.SplashScreenDrawable" |
47 | | - android:resource="@drawable/launch_background" |
48 | | - /> |
| 20 | + android:name="io.flutter.embedding.android.NormalTheme" |
| 21 | + android:resource="@style/NormalTheme" |
| 22 | + /> |
49 | 23 | <intent-filter> |
50 | 24 | <action android:name="android.intent.action.MAIN"/> |
51 | 25 | <category android:name="android.intent.category.LAUNCHER"/> |
|
57 | 31 | android:name="flutterEmbedding" |
58 | 32 | android:value="2" /> |
59 | 33 | </application> |
| 34 | + <!-- Required to query activities that can process text, see: |
| 35 | + https://developer.android.com/training/package-visibility and |
| 36 | + https://developer.android.com/reference/android/content/Intent#ACTION_PROCESS_TEXT. |
| 37 | +
|
| 38 | + In particular, this is used by the Flutter engine in io.flutter.plugin.text.ProcessTextPlugin. --> |
| 39 | + <queries> |
| 40 | + <intent> |
| 41 | + <action android:name="android.intent.action.PROCESS_TEXT"/> |
| 42 | + <data android:mimeType="text/plain"/> |
| 43 | + </intent> |
| 44 | + </queries> |
60 | 45 | </manifest> |
0 commit comments