plugin.xml 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!--
  3. Copyright (c) 2020, Mesmotronic Limited
  4. All rights reserved.
  5. Redistribution and use in source and binary forms, with or without modification,
  6. are permitted provided that the following conditions are met:
  7. * Redistributions of source code must retain the above copyright notice, this
  8. list of conditions and the following disclaimer.
  9. * Redistributions in binary form must reproduce the above copyright notice, this
  10. list of conditions and the following disclaimer in the documentation and/or
  11. other materials provided with the distribution.
  12. * Neither the name of the organization nor the names of its
  13. contributors may be used to endorse or promote products derived from
  14. this software without specific prior written permission.
  15. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
  16. ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
  17. WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
  18. DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR
  19. ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
  20. (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
  21. LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
  22. ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  23. (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
  24. SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  25. -->
  26. <plugin
  27. xmlns="http://apache.org/cordova/ns/plugins/1.0"
  28. xmlns:android="http://schemas.android.com/apk/res/android"
  29. id="cordova-plugin-fullscreen"
  30. version="1.3.0"
  31. >
  32. <name>cordova-plugin-fullscreen</name>
  33. <description>Plugin for Cordova (or PhoneGap) 3.0+ to enable true full screen on Android devices using lean and immersive modes</description>
  34. <keywords>cordova,android,fullscreen,lean,immersive,statusbar</keywords>
  35. <repo>https://github.com/mesmotronic/cordova-fullscreen-plugin.git</repo>
  36. <license>BSD</license>
  37. <engines>
  38. <engine name="cordova" version=">=3.0.0" />
  39. </engines>
  40. <js-module
  41. src="www/AndroidFullScreen.js"
  42. name="AndroidFullScreen"
  43. >
  44. <clobbers target="AndroidFullScreen" />
  45. </js-module>
  46. <!-- android -->
  47. <platform name="android">
  48. <config-file target="res/xml/config.xml" parent="/*">
  49. <feature name="AndroidFullScreen">
  50. <param
  51. name="android-package"
  52. value="com.mesmotronic.plugins.FullScreenPlugin"
  53. />
  54. </feature>
  55. </config-file>
  56. <!-- Adds support for screen ratios wider than 16:9 -->
  57. <config-file target="AndroidManifest.xml" parent="/manifest/application">
  58. <meta-data android:name="android.max_aspect" android:value="2.16" />
  59. </config-file>
  60. <source-file
  61. src="src/android/com/mesmotronic/plugins/FullScreenPlugin.java"
  62. target-dir="src/com/mesmotronic/plugins"
  63. />
  64. </platform>
  65. </plugin>