AndroidManifest.xml 4.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  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.lib_name" android:value="-- %%INSERT_APP_LIB_NAME%% --"/>
  31. <meta-data android:name="android.app.qt_sources_resource_id" android:resource="@array/qt_sources"/>
  32. <meta-data android:name="android.app.repository" android:value="default"/>
  33. <meta-data android:name="android.app.qt_libs_resource_id" android:resource="@array/qt_libs"/>
  34. <meta-data android:name="android.app.bundled_libs_resource_id" android:resource="@array/bundled_libs"/>
  35. <!-- Deploy Qt libs as part of package -->
  36. <meta-data android:name="android.app.bundle_local_qt_libs" android:value="-- %%BUNDLE_LOCAL_QT_LIBS%% --"/>
  37. <!-- Run with local libs -->
  38. <meta-data android:name="android.app.use_local_qt_libs" android:value="-- %%USE_LOCAL_QT_LIBS%% --"/>
  39. <meta-data android:name="android.app.libs_prefix" android:value="/data/local/tmp/qt/"/>
  40. <meta-data android:name="android.app.load_local_libs_resource_id" android:resource="@array/load_local_libs"/>
  41. <meta-data android:name="android.app.load_local_jars" android:value="-- %%INSERT_LOCAL_JARS%% --"/>
  42. <meta-data android:name="android.app.static_init_classes" android:value="-- %%INSERT_INIT_CLASSES%% --"/>
  43. <!-- Messages maps -->
  44. <meta-data android:value="@string/ministro_not_found_msg" android:name="android.app.ministro_not_found_msg"/>
  45. <meta-data android:value="@string/ministro_needed_msg" android:name="android.app.ministro_needed_msg"/>
  46. <meta-data android:value="@string/fatal_error_msg" android:name="android.app.fatal_error_msg"/>
  47. <meta-data android:value="@string/unsupported_android_version" android:name="android.app.unsupported_android_version"/>
  48. <!-- Messages maps -->
  49. <!-- Background running -->
  50. <!-- Warning: changing this value to true may cause unexpected crashes if the
  51. application still try to draw after
  52. "applicationStateChanged(Qt::ApplicationSuspended)"
  53. signal is sent! -->
  54. <meta-data android:name="android.app.background_running" android:value="false"/>
  55. <!-- Background running -->
  56. <!-- auto screen scale factor -->
  57. <meta-data android:name="android.app.auto_screen_scale_factor" android:value="false"/>
  58. <!-- auto screen scale factor -->
  59. <!-- extract android style -->
  60. <!-- available android:values :
  61. * 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
  62. * full - useful QWidget & Quick Controls 1 apps
  63. * minimal - useful for Quick Controls 2 apps, it is much faster than "full"
  64. * none - useful for apps that don't use any of the above Qt modules
  65. -->
  66. <meta-data android:name="android.app.extract_android_style" android:value="none"/>
  67. <!-- extract android style -->
  68. </activity>
  69. <activity
  70. android:name=".VcmiSDLActivity"
  71. android:configChanges="orientation|uiMode|screenLayout|screenSize|smallestScreenSize|layoutDirection|locale|fontScale|keyboard|keyboardHidden|navigation|mcc|mnc|density"
  72. android:label="@string/app_name"
  73. android:launchMode="singleTop"
  74. android:screenOrientation="sensorLandscape" />
  75. <service
  76. android:name=".ServerService"
  77. android:process="eu.vcmi.vcmi.srv"
  78. android:description="@string/server_name"
  79. android:exported="false"/>
  80. </application>
  81. </manifest>