AndroidManifest.xml 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <manifest xmlns:android="http://schemas.android.com/apk/res/android"
  3. package="">
  4. <uses-permission android:name="android.permission.INTERNET" />
  5. <uses-permission android:name="android.permission.VIBRATE" />
  6. <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
  7. <!-- Touchscreen support -->
  8. <uses-feature android:name="android.hardware.touchscreen" android:required="false" />
  9. <!-- Game controller support -->
  10. <uses-feature android:name="android.hardware.bluetooth" android:required="false" />
  11. <uses-feature android:name="android.hardware.gamepad" android:required="false" />
  12. <uses-feature android:name="android.hardware.usb.host" android:required="false" />
  13. <!-- External mouse input events -->
  14. <uses-feature android:name="android.hardware.type.pc" android:required="false" />
  15. <supports-screens
  16. android:largeScreens="true"
  17. android:xlargeScreens="true" />
  18. <application
  19. android:name="org.qtproject.qt5.android.bindings.QtApplication"
  20. android:hardwareAccelerated="true"
  21. android:hasFragileUserData="true"
  22. android:allowBackup="false"
  23. android:installLocation="auto"
  24. android:icon="@mipmap/ic_launcher"
  25. android:label="${applicationLabel}"
  26. android:testOnly="false"
  27. android:supportsRtl="true"
  28. android:usesCleartextTraffic="false">
  29. <activity
  30. android:name=".ActivityLauncher"
  31. android:configChanges="orientation|uiMode|screenLayout|screenSize|smallestScreenSize|layoutDirection|locale|fontScale|keyboard|keyboardHidden|navigation|mcc|mnc|density"
  32. android:exported="true"
  33. android:screenOrientation="sensorLandscape">
  34. <intent-filter>
  35. <action android:name="android.intent.action.MAIN"/>
  36. <category android:name="android.intent.category.LAUNCHER"/>
  37. </intent-filter>
  38. <meta-data android:name="android.app.shortcuts" android:resource="@xml/shortcuts${applicationVariant}" />
  39. <meta-data android:name="android.app.lib_name" android:value="-- %%INSERT_APP_LIB_NAME%% --"/>
  40. <meta-data android:name="android.app.qt_sources_resource_id" android:resource="@array/qt_sources"/>
  41. <meta-data android:name="android.app.repository" android:value="default"/>
  42. <meta-data android:name="android.app.qt_libs_resource_id" android:resource="@array/qt_libs"/>
  43. <meta-data android:name="android.app.bundled_libs_resource_id" android:resource="@array/bundled_libs"/>
  44. <!-- Deploy Qt libs as part of package -->
  45. <meta-data android:name="android.app.bundle_local_qt_libs" android:value="-- %%BUNDLE_LOCAL_QT_LIBS%% --"/>
  46. <!-- Run with local libs -->
  47. <meta-data android:name="android.app.use_local_qt_libs" android:value="-- %%USE_LOCAL_QT_LIBS%% --"/>
  48. <meta-data android:name="android.app.libs_prefix" android:value="/data/local/tmp/qt/"/>
  49. <meta-data android:name="android.app.load_local_libs_resource_id" android:resource="@array/load_local_libs"/>
  50. <meta-data android:name="android.app.load_local_jars" android:value="-- %%INSERT_LOCAL_JARS%% --"/>
  51. <meta-data android:name="android.app.static_init_classes" android:value="-- %%INSERT_INIT_CLASSES%% --"/>
  52. <!-- Messages maps -->
  53. <meta-data android:value="@string/ministro_not_found_msg" android:name="android.app.ministro_not_found_msg"/>
  54. <meta-data android:value="@string/ministro_needed_msg" android:name="android.app.ministro_needed_msg"/>
  55. <meta-data android:value="@string/fatal_error_msg" android:name="android.app.fatal_error_msg"/>
  56. <meta-data android:value="@string/unsupported_android_version" android:name="android.app.unsupported_android_version"/>
  57. <!-- Messages maps -->
  58. <!-- Background running -->
  59. <!-- Warning: changing this value to true may cause unexpected crashes if the
  60. application still try to draw after
  61. "applicationStateChanged(Qt::ApplicationSuspended)"
  62. signal is sent! -->
  63. <meta-data android:name="android.app.background_running" android:value="false"/>
  64. <!-- Background running -->
  65. <!-- auto screen scale factor -->
  66. <meta-data android:name="android.app.auto_screen_scale_factor" android:value="false"/>
  67. <!-- auto screen scale factor -->
  68. <!-- extract android style -->
  69. <!-- available android:values :
  70. * default - In most cases this will be the same as "full", but it can also be something else if needed, e.g., for compatibility reasons
  71. * full - useful QWidget & Quick Controls 1 apps
  72. * minimal - useful for Quick Controls 2 apps, it is much faster than "full"
  73. * none - useful for apps that don't use any of the above Qt modules
  74. -->
  75. <meta-data android:name="android.app.extract_android_style" android:value="none"/>
  76. <!-- extract android style -->
  77. </activity>
  78. <activity
  79. android:name=".VcmiSDLActivity"
  80. android:configChanges="orientation|uiMode|screenLayout|screenSize|smallestScreenSize|layoutDirection|locale|fontScale|keyboard|keyboardHidden|navigation|mcc|mnc|density"
  81. android:label="@string/app_name"
  82. android:launchMode="singleTop"
  83. android:screenOrientation="fullSensor" />
  84. <service
  85. android:name=".ServerService"
  86. android:process="eu.vcmi.vcmi.srv"
  87. android:description="@string/server_name"
  88. android:exported="false"/>
  89. </application>
  90. </manifest>