plugin.xml 10.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!--
  3. * Apache 2.0 License
  4. *
  5. * Copyright (c) Sebastian Katzer 2017
  6. *
  7. * This file contains Original Code and/or Modifications of Original Code
  8. * as defined in and that are subject to the Apache License
  9. * Version 2.0 (the 'License'). You may not use this file except in
  10. * compliance with the License. Please obtain a copy of the License at
  11. * http://opensource.org/licenses/Apache-2.0/ and read it before using this
  12. * file.
  13. *
  14. * The Original Code and all software distributed under the License are
  15. * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  16. * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  17. * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  18. * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  19. * Please see the License for the specific language governing rights and
  20. * limitations under the License.
  21. -->
  22. <plugin xmlns="http://apache.org/cordova/ns/plugins/1.0"
  23. xmlns:android="http://schemas.android.com/apk/res/android"
  24. id="cordova-plugin-local-notification"
  25. version="0.9.0-beta.0">
  26. <name>LocalNotification</name>
  27. <description>Schedules and queries for local notifications</description>
  28. <repo>https://github.com/katzer/cordova-plugin-local-notifications.git</repo>
  29. <keywords>appplant, notification, local notification, user notification</keywords>
  30. <license>Apache 2.0</license>
  31. <author>Sebastián Katzer</author>
  32. <!-- cordova -->
  33. <engines>
  34. <engine name="cordova" version=">=3.6.0" />
  35. <engine name="cordova-plugman" version=">=4.3.0" />
  36. <engine name="cordova-windows" version=">=4.2.0" />
  37. <engine name="cordova-android" version=">=6.0.0" />
  38. <engine name="apple-ios" version=">=10.0.0" />
  39. </engines>
  40. <!-- dependencies -->
  41. <dependency id="cordova-plugin-device" />
  42. <dependency id="cordova-plugin-badge" version=">=0.8.5" />
  43. <!-- js -->
  44. <js-module src="www/local-notification.js" name="LocalNotification">
  45. <clobbers target="cordova.plugins.notification.local" />
  46. </js-module>
  47. <js-module src="www/local-notification-core.js" name="LocalNotification.Core">
  48. <clobbers target="cordova.plugins.notification.local.core" />
  49. <clobbers target="plugin.notification.local.core" />
  50. </js-module>
  51. <js-module src="www/local-notification-util.js" name="LocalNotification.Util">
  52. <merges target="cordova.plugins.notification.local.core" />
  53. <merges target="plugin.notification.local.core" />
  54. </js-module>
  55. <!-- ios -->
  56. <platform name="ios">
  57. <config-file target="config.xml" parent="/*">
  58. <feature name="LocalNotification">
  59. <param name="ios-package" value="APPLocalNotification" onload="true" />
  60. <param name="onload" value="true" />
  61. </feature>
  62. </config-file>
  63. <framework src="UserNotifications.framework" />
  64. <framework src="CoreLocation.framework" />
  65. <header-file src="src/ios/APPLocalNotification.h" />
  66. <source-file src="src/ios/APPLocalNotification.m" />
  67. <header-file src="src/ios/APPNotificationContent.h" />
  68. <source-file src="src/ios/APPNotificationContent.m" />
  69. <header-file src="src/ios/APPNotificationOptions.h" />
  70. <source-file src="src/ios/APPNotificationOptions.m" />
  71. <header-file src="src/ios/UNUserNotificationCenter+APPLocalNotification.h" />
  72. <source-file src="src/ios/UNUserNotificationCenter+APPLocalNotification.m" />
  73. <header-file src="src/ios/UNNotificationRequest+APPLocalNotification.h" />
  74. <source-file src="src/ios/UNNotificationRequest+APPLocalNotification.m" />
  75. </platform>
  76. <!-- android -->
  77. <platform name="android">
  78. <framework src="com.android.support:support-v4:26.+" />
  79. <framework src="src/android/build/localnotification.gradle" custom="true" type="gradleReference"/>
  80. <config-file target="res/xml/config.xml" parent="/*">
  81. <feature name="LocalNotification">
  82. <param name="android-package" value="de.appplant.cordova.plugin.localnotification.LocalNotification"/>
  83. </feature>
  84. </config-file>
  85. <config-file target="AndroidManifest.xml" parent="/manifest/application">
  86. <provider
  87. android:name="de.appplant.cordova.plugin.notification.util.AssetProvider"
  88. android:authorities="${applicationId}.provider"
  89. android:exported="false"
  90. android:grantUriPermissions="true" >
  91. <meta-data
  92. android:name="android.support.FILE_PROVIDER_PATHS"
  93. android:resource="@xml/localnotification_provider_paths"/>
  94. </provider>
  95. <receiver
  96. android:name="de.appplant.cordova.plugin.localnotification.TriggerReceiver"
  97. android:exported="false" />
  98. <receiver
  99. android:name="de.appplant.cordova.plugin.localnotification.ClearReceiver"
  100. android:exported="false" />
  101. <activity
  102. android:name="de.appplant.cordova.plugin.localnotification.ClickReceiver"
  103. android:launchMode="singleInstance"
  104. android:theme="@android:style/Theme.Translucent"
  105. android:exported="false" />
  106. <!--
  107. <receiver android:name="de.appplant.cordova.plugin.localnotification.RestoreReceiver" android:exported="false" >
  108. <intent-filter>
  109. <action android:name="android.intent.action.BOOT_COMPLETED" />
  110. </intent-filter>
  111. </receiver>
  112. -->
  113. </config-file>
  114. <config-file target="AndroidManifest.xml" parent="/manifest">
  115. <!-- <uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" /> -->
  116. <uses-permission android:name="android.permission.WAKE_LOCK" />
  117. </config-file>
  118. <source-file
  119. src="src/android/xml/localnotification_provider_paths.xml"
  120. target-dir="res/xml" />
  121. <source-file
  122. src="src/android/LocalNotification.java"
  123. target-dir="src/de/appplant/cordova/plugin/localnotification" />
  124. <source-file
  125. src="src/android/TriggerReceiver.java"
  126. target-dir="src/de/appplant/cordova/plugin/localnotification" />
  127. <source-file
  128. src="src/android/ClickReceiver.java"
  129. target-dir="src/de/appplant/cordova/plugin/localnotification" />
  130. <source-file
  131. src="src/android/ClearReceiver.java"
  132. target-dir="src/de/appplant/cordova/plugin/localnotification" />
  133. <!--
  134. <source-file
  135. src="src/android/RestoreReceiver.java"
  136. target-dir="src/de/appplant/cordova/plugin/localnotification" />
  137. -->
  138. <source-file
  139. src="src/android/notification/action/Action.java"
  140. target-dir="src/de/appplant/cordova/plugin/notification/action" />
  141. <source-file
  142. src="src/android/notification/action/ActionGroup.java"
  143. target-dir="src/de/appplant/cordova/plugin/notification/action" />
  144. <source-file
  145. src="src/android/notification/receiver/AbstractClearReceiver.java"
  146. target-dir="src/de/appplant/cordova/plugin/notification/receiver" />
  147. <source-file
  148. src="src/android/notification/receiver/AbstractClickReceiver.java"
  149. target-dir="src/de/appplant/cordova/plugin/notification/receiver" />
  150. <!--
  151. <source-file
  152. src="src/android/notification/receiver/AbstractRestoreReceiver.java"
  153. target-dir="src/de/appplant/cordova/plugin/notification/receiver" />
  154. -->
  155. <source-file
  156. src="src/android/notification/receiver/AbstractTriggerReceiver.java"
  157. target-dir="src/de/appplant/cordova/plugin/notification/receiver" />
  158. <source-file
  159. src="src/android/notification/trigger/DateTrigger.java"
  160. target-dir="src/de/appplant/cordova/plugin/notification/trigger" />
  161. <source-file
  162. src="src/android/notification/trigger/IntervalTrigger.java"
  163. target-dir="src/de/appplant/cordova/plugin/notification/trigger" />
  164. <source-file
  165. src="src/android/notification/trigger/MatchTrigger.java"
  166. target-dir="src/de/appplant/cordova/plugin/notification/trigger" />
  167. <source-file
  168. src="src/android/notification/util/AssetProvider.java"
  169. target-dir="src/de/appplant/cordova/plugin/notification/util" />
  170. <source-file
  171. src="src/android/notification/util/AssetUtil.java"
  172. target-dir="src/de/appplant/cordova/plugin/notification/util" />
  173. <source-file
  174. src="src/android/notification/Builder.java"
  175. target-dir="src/de/appplant/cordova/plugin/notification" />
  176. <source-file
  177. src="src/android/notification/Manager.java"
  178. target-dir="src/de/appplant/cordova/plugin/notification" />
  179. <source-file
  180. src="src/android/notification/Notification.java"
  181. target-dir="src/de/appplant/cordova/plugin/notification" />
  182. <source-file
  183. src="src/android/notification/Options.java"
  184. target-dir="src/de/appplant/cordova/plugin/notification" />
  185. <source-file
  186. src="src/android/notification/Request.java"
  187. target-dir="src/de/appplant/cordova/plugin/notification" />
  188. </platform>
  189. <!-- windows -->
  190. <platform name="windows">
  191. <framework src="src/windows/lib.UW/x86/LocalNotificationProxy.winmd" target-dir="x86" arch="x86" custom="true"/>
  192. <framework src="src/windows/lib.UW/x64/LocalNotificationProxy.winmd" target-dir="x64" arch="x64" custom="true"/>
  193. <framework src="src/windows/lib.UW/ARM/LocalNotificationProxy.winmd" target-dir="ARM" arch="ARM" custom="true"/>
  194. <js-module src="src/windows/LocalNotificationProxy.js" name="LocalNotification.Proxy" >
  195. <merges target="" />
  196. </js-module>
  197. </platform>
  198. </plugin>