plugin.xml 3.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <plugin
  3. xmlns="http://apache.org/cordova/ns/plugins/1.0"
  4. xmlns:android="http://schemas.android.com/apk/res/android"
  5. id="cordova-plugin-calendar"
  6. version="4.5.5">
  7. <name>Calendar</name>
  8. <description>
  9. This plugin allows you to manipulate the native calendar.
  10. </description>
  11. <author>Eddy Verbruggen</author>
  12. <license>MIT</license>
  13. <keywords>Calendar, Agenda, Event</keywords>
  14. <repo>https://github.com/EddyVerbruggen/Calendar-PhoneGap-Plugin.git</repo>
  15. <issue>https://github.com/EddyVerbruggen/Calendar-PhoneGap-Plugin/issues</issue>
  16. <engines>
  17. <engine name="cordova" version=">=3.0.0"/>
  18. </engines>
  19. <js-module src="www/Calendar.js" name="Calendar">
  20. <clobbers target="Calendar"/>
  21. </js-module>
  22. <!-- <js-module src="test/tests.js" name="tests">
  23. </js-module> -->
  24. <!-- ios -->
  25. <platform name="ios">
  26. <config-file target="config.xml" parent="/*">
  27. <feature name="Calendar">
  28. <param name="ios-package" value="Calendar"/>
  29. </feature>
  30. </config-file>
  31. <!-- Localization of the interactive Calendar widget -->
  32. <config-file target="*-Info.plist" parent="CFBundleLocalizations">
  33. <array>
  34. <string>en</string>
  35. <string>de</string>
  36. <string>nl</string>
  37. <string>fr</string>
  38. <string>it</string>
  39. </array>
  40. </config-file>
  41. <!-- Usage description of the Calendar for iOS 6+, mandatory since iOS 10 -->
  42. <preference name="CALENDAR_USAGE_DESCRIPTION" default=" " />
  43. <config-file target="*-Info.plist" parent="NSCalendarsUsageDescription">
  44. <string>$CALENDAR_USAGE_DESCRIPTION</string>
  45. </config-file>
  46. <header-file src="src/ios/Calendar.h"/>
  47. <source-file src="src/ios/Calendar.m"/>
  48. <framework src="EventKit.framework"/>
  49. <framework src="EventKitUI.framework"/>
  50. </platform>
  51. <!-- android -->
  52. <platform name="android">
  53. <config-file target="res/xml/config.xml" parent="/*">
  54. <feature name="Calendar">
  55. <param name="android-package" value="nl.xservices.plugins.Calendar"/>
  56. </feature>
  57. </config-file>
  58. <config-file target="AndroidManifest.xml" parent="/manifest">
  59. <uses-permission android:name="android.permission.READ_CALENDAR"/>
  60. <uses-permission android:name="android.permission.WRITE_CALENDAR"/>
  61. </config-file>
  62. <source-file src="src/android/nl/xservices/plugins/Calendar.java" target-dir="src/nl/xservices/plugins"/>
  63. <source-file src="src/android/nl/xservices/plugins/accessor/AbstractCalendarAccessor.java"
  64. target-dir="src/nl/xservices/plugins/accessor"/>
  65. <source-file src="src/android/nl/xservices/plugins/accessor/CalendarProviderAccessor.java"
  66. target-dir="src/nl/xservices/plugins/accessor"/>
  67. <source-file src="src/android/nl/xservices/plugins/accessor/LegacyCalendarAccessor.java"
  68. target-dir="src/nl/xservices/plugins/accessor"/>
  69. <dependency id="cordova-plugin-compat" version="^1.0.0" />
  70. </platform>
  71. </plugin>