|
1 | 1 | <manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
2 | 2 | package="com.example.task_management">
|
3 |
| - <!-- io.flutter.app.FlutterApplication is an android.app.Application that |
4 |
| - calls FlutterMain.startInitialization(this); in its onCreate method. |
5 |
| - In most cases you can leave this as-is, but you if you want to provide |
6 |
| - additional functionality it is fine to subclass or reimplement |
7 |
| - FlutterApplication and put your custom class here. --> |
8 |
| - <uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED"/> |
9 |
| - <uses-permission android:name="android.permission.VIBRATE" /> |
| 3 | + |
| 4 | + <!-- Permissions --> |
| 5 | + <uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED"/> |
| 6 | + <uses-permission android:name="android.permission.VIBRATE"/> |
| 7 | + |
10 | 8 | <application
|
11 |
| - android:name="io.flutter.app.FlutterApplication" |
| 9 | + android:name="${applicationName}" |
12 | 10 | android:label="task_management"
|
13 | 11 | android:icon="@mipmap/ic_launcher">
|
14 |
| - <receiver android:name="com.dexterous.flutterlocalnotifications.ScheduledNotificationBootReceiver"> |
15 |
| - <intent-filter> |
16 |
| - <action android:name="android.intent.action.BOOT_COMPLETED"></action> |
17 |
| - </intent-filter> |
18 |
| -</receiver> |
19 |
| -<receiver android:name="com.dexterous.flutterlocalnotifications.ScheduledNotificationReceiver" /> |
| 12 | + |
| 13 | + <!-- Receiver for Scheduled Notifications After Boot --> |
| 14 | + <receiver |
| 15 | + android:name="com.dexterous.flutterlocalnotifications.ScheduledNotificationBootReceiver" |
| 16 | + android:exported="true"> |
| 17 | + <intent-filter> |
| 18 | + <action android:name="android.intent.action.BOOT_COMPLETED"/> |
| 19 | + </intent-filter> |
| 20 | + </receiver> |
| 21 | + |
| 22 | + <!-- Receiver for Scheduled Notifications --> |
| 23 | + <receiver |
| 24 | + android:name="com.dexterous.flutterlocalnotifications.ScheduledNotificationReceiver" |
| 25 | + android:exported="true"/> |
| 26 | + |
| 27 | + <!-- Main Activity --> |
20 | 28 | <activity
|
21 | 29 | android:name=".MainActivity"
|
22 | 30 | android:launchMode="singleTop"
|
| 31 | + android:exported="true" |
23 | 32 | android:theme="@style/LaunchTheme"
|
24 | 33 | android:configChanges="orientation|keyboardHidden|keyboard|screenSize|smallestScreenSize|locale|layoutDirection|fontScale|screenLayout|density|uiMode"
|
25 | 34 | android:hardwareAccelerated="true"
|
26 | 35 | android:windowSoftInputMode="adjustResize">
|
27 |
| - <!-- Specifies an Android theme to apply to this Activity as soon as |
28 |
| - the Android process has started. This theme is visible to the user |
29 |
| - while the Flutter UI initializes. After that, this theme continues |
30 |
| - to determine the Window background behind the Flutter UI. --> |
| 36 | + |
| 37 | + <!-- Normal Theme Metadata --> |
| 38 | + <meta-data |
| 39 | + android:name="io.flutter.embedding.android.NormalTheme" |
| 40 | + android:resource="@style/NormalTheme"/> |
| 41 | + |
| 42 | + <!-- Splash Screen Metadata --> |
31 | 43 | <meta-data
|
32 |
| - android:name="io.flutter.embedding.android.NormalTheme" |
33 |
| - android:resource="@style/NormalTheme" |
34 |
| - /> |
35 |
| - <!-- Displays an Android View that continues showing the launch screen |
36 |
| - Drawable until Flutter paints its first frame, then this splash |
37 |
| - screen fades out. A splash screen is useful to avoid any visual |
38 |
| - gap between the end of Android's launch screen and the painting of |
39 |
| - Flutter's first frame. --> |
| 44 | + android:name="io.flutter.embedding.android.SplashScreenDrawable" |
| 45 | + android:resource="@drawable/launch_background"/> |
| 46 | + |
| 47 | + <!-- Flutter Embedding Version --> |
40 | 48 | <meta-data
|
41 |
| - android:name="io.flutter.embedding.android.SplashScreenDrawable" |
42 |
| - android:resource="@drawable/launch_background" |
43 |
| - /> |
| 49 | + android:name="flutterEmbedding" |
| 50 | + android:value="2"/> |
| 51 | + |
| 52 | + <!-- Intent Filter for Main Activity --> |
44 | 53 | <intent-filter>
|
45 | 54 | <action android:name="android.intent.action.MAIN"/>
|
46 | 55 | <category android:name="android.intent.category.LAUNCHER"/>
|
47 | 56 | </intent-filter>
|
48 | 57 | </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 | 58 | </application>
|
55 | 59 | </manifest>
|
0 commit comments