AndroidManifest.xml 4.7 KB

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