plugin.xml 8.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <plugin xmlns="http://apache.org/cordova/ns/plugins/1.0"
  3. xmlns:android="http://schemas.android.com/apk/res/android"
  4. id="de.appplant.cordova.plugin.local-notification"
  5. version="0.8.4">
  6. <name>LocalNotification</name>
  7. <description>The plugin supports scheduling local notifications in various ways with a single interface. It also allows you to update, clear or cancel them. There are different interfaces to query for local notifications and a complete set of events to hook into the life cycle of local notifications. To get a deep overview we recommend to read about all the topics in our wiki and try out the Kitchen Sink App</description>
  8. <repo>https://github.com/katzer/cordova-plugin-local-notifications.git</repo>
  9. <keywords>appplant, notification, local notification</keywords>
  10. <license>Apache 2.0</license>
  11. <author>Sebastián Katzer</author>
  12. <!-- cordova -->
  13. <engines>
  14. <engine name="cordova" version=">=3.6.0" />
  15. <!-- TODO next version: Probably I meant cordova-lib -->
  16. <!-- <engine name="cordova-plugman" version=">=4.3.0" /> -->
  17. <engine name="cordova-windows" version=">=4.2.0" />
  18. </engines>
  19. <!-- dependencies -->
  20. <dependency id="cordova-plugin-device" />
  21. <dependency id="cordova-plugin-app-event" />
  22. <!-- info -->
  23. <info>
  24. Your support is needed. If you use the local-notification plugin please support us in order to ensure further development.
  25. https://github.com/katzer/cordova-plugin-local-notifications#supporting
  26. Thank you!
  27. </info>
  28. <!-- js -->
  29. <js-module src="www/local-notification.js" name="LocalNotification">
  30. <clobbers target="cordova.plugins.notification.local" />
  31. <clobbers target="plugin.notification.local" />
  32. </js-module>
  33. <js-module src="www/local-notification-core.js" name="LocalNotification.Core">
  34. <clobbers target="cordova.plugins.notification.local.core" />
  35. <clobbers target="plugin.notification.local.core" />
  36. </js-module>
  37. <js-module src="www/local-notification-util.js" name="LocalNotification.Util">
  38. <merges target="cordova.plugins.notification.local.core" />
  39. <merges target="plugin.notification.local.core" />
  40. </js-module>
  41. <!-- ios -->
  42. <platform name="ios">
  43. <config-file target="config.xml" parent="/*">
  44. <feature name="LocalNotification">
  45. <param name="ios-package" value="APPLocalNotification" onload="true" />
  46. <param name="onload" value="true" />
  47. </feature>
  48. </config-file>
  49. <header-file src="src/ios/APPLocalNotification.h" />
  50. <source-file src="src/ios/APPLocalNotification.m" />
  51. <header-file src="src/ios/APPLocalNotificationOptions.h" />
  52. <source-file src="src/ios/APPLocalNotificationOptions.m" />
  53. <header-file src="src/ios/UIApplication+APPLocalNotification.h" />
  54. <source-file src="src/ios/UIApplication+APPLocalNotification.m" />
  55. <header-file src="src/ios/UILocalNotification+APPLocalNotification.h" />
  56. <source-file src="src/ios/UILocalNotification+APPLocalNotification.m" />
  57. </platform>
  58. <!-- android -->
  59. <platform name="android">
  60. <framework src="com.android.support:support-v4:+" value="gradle" />
  61. <config-file target="res/xml/config.xml" parent="/*">
  62. <feature name="LocalNotification">
  63. <param name="android-package" value="de.appplant.cordova.plugin.localnotification.LocalNotification"/>
  64. </feature>
  65. </config-file>
  66. <config-file target="AndroidManifest.xml" parent="/manifest/application">
  67. <receiver
  68. android:name="de.appplant.cordova.plugin.localnotification.TriggerReceiver"
  69. android:exported="false" />
  70. <receiver
  71. android:name="de.appplant.cordova.plugin.localnotification.ClearReceiver"
  72. android:exported="false" />
  73. <activity
  74. android:name="de.appplant.cordova.plugin.localnotification.ClickActivity"
  75. android:launchMode="singleInstance"
  76. android:theme="@android:style/Theme.NoDisplay"
  77. android:exported="false" />
  78. <receiver
  79. android:name="de.appplant.cordova.plugin.notification.TriggerReceiver"
  80. android:exported="false" />
  81. <receiver
  82. android:name="de.appplant.cordova.plugin.notification.ClearReceiver"
  83. android:exported="false" />
  84. <receiver android:name="de.appplant.cordova.plugin.localnotification.RestoreReceiver" android:exported="false" >
  85. <intent-filter>
  86. <action android:name="android.intent.action.BOOT_COMPLETED" />
  87. </intent-filter>
  88. </receiver>
  89. <activity
  90. android:name="de.appplant.cordova.plugin.notification.ClickActivity"
  91. android:launchMode="singleInstance"
  92. android:theme="@android:style/Theme.NoDisplay"
  93. android:exported="false" />
  94. </config-file>
  95. <config-file target="AndroidManifest.xml" parent="/manifest">
  96. <uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />
  97. <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
  98. </config-file>
  99. <source-file
  100. src="src/android/LocalNotification.java"
  101. target-dir="src/de/appplant/cordova/plugin/localnotification" />
  102. <source-file
  103. src="src/android/TriggerReceiver.java"
  104. target-dir="src/de/appplant/cordova/plugin/localnotification" />
  105. <source-file
  106. src="src/android/ClickActivity.java"
  107. target-dir="src/de/appplant/cordova/plugin/localnotification" />
  108. <source-file
  109. src="src/android/ClearReceiver.java"
  110. target-dir="src/de/appplant/cordova/plugin/localnotification" />
  111. <source-file
  112. src="src/android/RestoreReceiver.java"
  113. target-dir="src/de/appplant/cordova/plugin/localnotification" />
  114. <source-file
  115. src="src/android/notification/AbstractClearReceiver.java"
  116. target-dir="src/de/appplant/cordova/plugin/notification" />
  117. <source-file
  118. src="src/android/notification/AbstractClickActivity.java"
  119. target-dir="src/de/appplant/cordova/plugin/notification" />
  120. <source-file
  121. src="src/android/notification/AbstractRestoreReceiver.java"
  122. target-dir="src/de/appplant/cordova/plugin/notification" />
  123. <source-file
  124. src="src/android/notification/AbstractTriggerReceiver.java"
  125. target-dir="src/de/appplant/cordova/plugin/notification" />
  126. <source-file
  127. src="src/android/notification/AssetUtil.java"
  128. target-dir="src/de/appplant/cordova/plugin/notification" />
  129. <source-file
  130. src="src/android/notification/Builder.java"
  131. target-dir="src/de/appplant/cordova/plugin/notification" />
  132. <source-file
  133. src="src/android/notification/ClearReceiver.java"
  134. target-dir="src/de/appplant/cordova/plugin/notification" />
  135. <source-file
  136. src="src/android/notification/ClickActivity.java"
  137. target-dir="src/de/appplant/cordova/plugin/notification" />
  138. <source-file
  139. src="src/android/notification/Manager.java"
  140. target-dir="src/de/appplant/cordova/plugin/notification" />
  141. <source-file
  142. src="src/android/notification/Notification.java"
  143. target-dir="src/de/appplant/cordova/plugin/notification" />
  144. <source-file
  145. src="src/android/notification/Options.java"
  146. target-dir="src/de/appplant/cordova/plugin/notification" />
  147. <source-file
  148. src="src/android/notification/TriggerReceiver.java"
  149. target-dir="src/de/appplant/cordova/plugin/notification" />
  150. </platform>
  151. <!-- windows -->
  152. <platform name="windows">
  153. <config-file target="config.xml" parent="/*" >
  154. <preference name="WindowsToastCapable" value="true" />
  155. </config-file>
  156. <js-module src="src/windows/LocalNotificationProxy.js" name="LocalNotification.Proxy" >
  157. <merges target="" />
  158. </js-module>
  159. <js-module src="src/windows/LocalNotificationCore.js" name="LocalNotification.Proxy.Core" >
  160. <merges target="" />
  161. </js-module>
  162. <js-module src="src/windows/LocalNotificationUtil.js" name="LocalNotification.Proxy.Util" >
  163. <merges target="" />
  164. </js-module>
  165. </platform>
  166. </plugin>