AndroidManifest.xml 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. <manifest xmlns:android="http://schemas.android.com/apk/res/android">
  2. <!-- 相机权限 -->
  3. <uses-feature android:name="android.hardware.camera" android:required="false" />
  4. <uses-feature android:name="android.hardware.camera.autofocus" android:required="false" />
  5. <uses-permission android:name="android.permission.CAMERA" />
  6. <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" android:maxSdkVersion="28" />
  7. <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" android:maxSdkVersion="32" />
  8. <uses-permission android:name="android.permission.READ_MEDIA_IMAGES" />
  9. <application
  10. android:label="舌面诊"
  11. android:name="${applicationName}"
  12. android:icon="@mipmap/ic_launcher">
  13. <activity
  14. android:name=".MainActivity"
  15. android:exported="true"
  16. android:launchMode="singleTop"
  17. android:taskAffinity=""
  18. android:theme="@style/LaunchTheme"
  19. android:configChanges="orientation|keyboardHidden|keyboard|screenSize|smallestScreenSize|locale|layoutDirection|fontScale|screenLayout|density|uiMode"
  20. android:hardwareAccelerated="true"
  21. android:windowSoftInputMode="adjustResize">
  22. <!-- Specifies an Android theme to apply to this Activity as soon as
  23. the Android process has started. This theme is visible to the user
  24. while the Flutter UI initializes. After that, this theme continues
  25. to determine the Window background behind the Flutter UI. -->
  26. <meta-data
  27. android:name="io.flutter.embedding.android.NormalTheme"
  28. android:resource="@style/NormalTheme"
  29. />
  30. <intent-filter>
  31. <action android:name="android.intent.action.MAIN"/>
  32. <category android:name="android.intent.category.LAUNCHER"/>
  33. </intent-filter>
  34. </activity>
  35. <!-- Don't delete the meta-data below.
  36. This is used by the Flutter tool to generate GeneratedPluginRegistrant.java -->
  37. <meta-data
  38. android:name="flutterEmbedding"
  39. android:value="2" />
  40. </application>
  41. <!-- Required to query activities that can process text, see:
  42. https://developer.android.com/training/package-visibility and
  43. https://developer.android.com/reference/android/content/Intent#ACTION_PROCESS_TEXT.
  44. In particular, this is used by the Flutter engine in io.flutter.plugin.text.ProcessTextPlugin. -->
  45. <queries>
  46. <intent>
  47. <action android:name="android.intent.action.PROCESS_TEXT"/>
  48. <data android:mimeType="text/plain"/>
  49. </intent>
  50. </queries>
  51. </manifest>