You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

90 lines
4.9KB

  1. <manifest xmlns:android="http://schemas.android.com/apk/res/android"
  2. xmlns:tools="http://schemas.android.com/tools"
  3. package="vn.azteam.farmdemo">
  4. <!-- io.flutter.app.FlutterApplication is an android.app.Application that
  5. calls FlutterMain.startInitialization(this); in its onCreate method.
  6. In most cases you can leave this as-is, but you if you want to provide
  7. additional functionality it is fine to subclass or reimplement
  8. FlutterApplication and put your custom class here. -->
  9. <uses-permission android:name="android.permission.INTERNET"/>
  10. <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
  11. <uses-permission android:name="android.permission.CAMERA" />
  12. <uses-permission android:name="android.permission.VIBRATE"/>
  13. <uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED"/>
  14. <uses-permission android:name="android.permission.POST_NOTIFICATIONS"/>
  15. <application
  16. android:name=".Application"
  17. android:label="Aztrace - Nhật ký canh tác"
  18. android:icon="@mipmap/ic_launcher"
  19. android:requestLegacyExternalStorage="true">
  20. <meta-data
  21. android:name="com.google.firebase.messaging.default_notification_icon"
  22. android:resource="@mipmap/ic_stat_smartfarm" />
  23. <meta-data
  24. android:name="com.google.firebase.messaging.default_notification_channel_id"
  25. android:value="high_importance_channel" />
  26. <!-- <activity
  27. android:name="de.mintware.barcode_scan.BarcodeScannerActivity"
  28. android:exported="true"
  29. android:label="" /> -->
  30. <activity
  31. android:name=".MainActivity"
  32. android:exported="true"
  33. android:launchMode="singleTop"
  34. android:theme="@style/LaunchTheme"
  35. android:configChanges="orientation|keyboardHidden|keyboard|screenSize|smallestScreenSize|locale|layoutDirection|fontScale|screenLayout|density|uiMode"
  36. android:hardwareAccelerated="true"
  37. android:windowSoftInputMode="adjustResize">
  38. <!-- Specifies an Android theme to apply to this Activity as soon as
  39. the Android process has started. This theme is visible to the user
  40. while the Flutter UI initializes. After that, this theme continues
  41. to determine the Window background behind the Flutter UI. -->
  42. <meta-data
  43. android:name="io.flutter.embedding.android.NormalTheme"
  44. android:resource="@style/NormalTheme"
  45. />
  46. <!-- Displays an Android View that continues showing the launch screen
  47. Drawable until Flutter paints its first frame, then this splash
  48. screen fades out. A splash screen is useful to avoid any visual
  49. gap between the end of Android's launch screen and the painting of
  50. Flutter's first frame. -->
  51. <meta-data
  52. android:name="io.flutter.embedding.android.SplashScreenDrawable"
  53. android:resource="@drawable/launch_background"
  54. />
  55. <intent-filter>
  56. <action android:name="android.intent.action.MAIN"/>
  57. <category android:name="android.intent.category.LAUNCHER"/>
  58. </intent-filter>
  59. <intent-filter>
  60. <action android:name="FLUTTER_NOTIFICATION_CLICK" />
  61. <category android:name="android.intent.category.DEFAULT" />
  62. </intent-filter>
  63. </activity>
  64. <!-- Don't delete the meta-data below.
  65. This is used by the Flutter tool to generate GeneratedPluginRegistrant.java -->
  66. <meta-data
  67. android:name="flutterEmbedding"
  68. android:value="2" />
  69. <provider
  70. android:name="androidx.core.content.FileProvider"
  71. android:authorities="vn.azteam.farmdemo.fileprovider"
  72. android:exported="false"
  73. android:grantUriPermissions="true">
  74. <meta-data
  75. android:name="android.support.FILE_PROVIDER_PATHS"
  76. android:resource="@xml/provider_paths"
  77. tools:replace="android:resource" />
  78. </provider>
  79. <receiver android:exported="false" android:name="com.dexterous.flutterlocalnotifications.ScheduledNotificationReceiver" />
  80. <receiver android:exported="false" android:name="com.dexterous.flutterlocalnotifications.ScheduledNotificationBootReceiver">
  81. <intent-filter>
  82. <action android:name="android.intent.action.BOOT_COMPLETED"/>
  83. <action android:name="android.intent.action.MY_PACKAGE_REPLACED"/>
  84. <action android:name="android.intent.action.QUICKBOOT_POWERON" />
  85. <action android:name="com.htc.intent.action.QUICKBOOT_POWERON"/>
  86. </intent-filter>
  87. </receiver>
  88. </application>
  89. </manifest>