AndroidManifest.xml 4.9 KB

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