plugin.xml 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247
  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.3">
  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=">=7.1.0" />
  35. <engine name="cordova-plugman" version=">=4.3.0" />
  36. <engine name="cordova-android" version=">=6.3.0" />
  37. <engine name="cordova-windows" version=">=4.2.0" />
  38. <engine name="android-sdk" version=">=26" />
  39. <engine name="apple-ios" version=">=10.0.0" />
  40. </engines>
  41. <!-- dependencies -->
  42. <dependency id="cordova-plugin-device" />
  43. <dependency id="cordova-plugin-badge" version=">=0.8.5" />
  44. <!-- js -->
  45. <js-module src="www/local-notification.js" name="LocalNotification">
  46. <clobbers target="cordova.plugins.notification.local" />
  47. </js-module>
  48. <!-- ios -->
  49. <platform name="ios">
  50. <config-file target="config.xml" parent="/*">
  51. <feature name="LocalNotification">
  52. <param name="ios-package" value="APPLocalNotification" onload="true" />
  53. <param name="onload" value="true" />
  54. </feature>
  55. </config-file>
  56. <framework src="UserNotifications.framework" />
  57. <framework src="CoreLocation.framework" />
  58. <header-file src="src/ios/APPLocalNotification.h" />
  59. <source-file src="src/ios/APPLocalNotification.m" />
  60. <header-file src="src/ios/APPNotificationCategory.h" />
  61. <source-file src="src/ios/APPNotificationCategory.m" />
  62. <header-file src="src/ios/APPNotificationContent.h" />
  63. <source-file src="src/ios/APPNotificationContent.m" />
  64. <header-file src="src/ios/APPNotificationOptions.h" />
  65. <source-file src="src/ios/APPNotificationOptions.m" />
  66. <header-file src="src/ios/UNUserNotificationCenter+APPLocalNotification.h" />
  67. <source-file src="src/ios/UNUserNotificationCenter+APPLocalNotification.m" />
  68. <header-file src="src/ios/UNNotificationRequest+APPLocalNotification.h" />
  69. <source-file src="src/ios/UNNotificationRequest+APPLocalNotification.m" />
  70. </platform>
  71. <!-- android -->
  72. <platform name="android">
  73. <preference name="ANDROID_SUPPORT_V4_VERSION" default="26.+" />
  74. <framework src="com.android.support:support-v4:$ANDROID_SUPPORT_V4_VERSION" />
  75. <framework src="src/android/build/localnotification.gradle" custom="true" type="gradleReference"/>
  76. <config-file target="res/xml/config.xml" parent="/*">
  77. <feature name="LocalNotification">
  78. <param name="android-package" value="de.appplant.cordova.plugin.localnotification.LocalNotification"/>
  79. </feature>
  80. </config-file>
  81. <config-file target="AndroidManifest.xml" parent="/manifest/application">
  82. <provider
  83. android:name="de.appplant.cordova.plugin.notification.util.AssetProvider"
  84. android:authorities="${applicationId}.provider"
  85. android:exported="false"
  86. android:grantUriPermissions="true" >
  87. <meta-data
  88. android:name="android.support.FILE_PROVIDER_PATHS"
  89. android:resource="@xml/localnotification_provider_paths"/>
  90. </provider>
  91. <receiver
  92. android:name="de.appplant.cordova.plugin.localnotification.TriggerReceiver"
  93. android:exported="false" />
  94. <receiver
  95. android:name="de.appplant.cordova.plugin.localnotification.ClearReceiver"
  96. android:exported="false" />
  97. <service
  98. android:name="de.appplant.cordova.plugin.localnotification.ClickReceiver"
  99. android:exported="false" />
  100. <receiver
  101. android:name="de.appplant.cordova.plugin.localnotification.RestoreReceiver"
  102. android:directBootAware="true"
  103. android:exported="false" >
  104. <intent-filter>
  105. <action android:name="android.intent.action.LOCKED_BOOT_COMPLETED" />
  106. <action android:name="android.intent.action.BOOT_COMPLETED" />
  107. </intent-filter>
  108. </receiver>
  109. </config-file>
  110. <config-file target="AndroidManifest.xml" parent="/manifest">
  111. <uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />
  112. <uses-permission android:name="android.permission.WAKE_LOCK" />
  113. </config-file>
  114. <source-file
  115. src="src/android/xml/localnotification_provider_paths.xml"
  116. target-dir="res/xml" />
  117. <source-file
  118. src="src/android/LocalNotification.java"
  119. target-dir="src/de/appplant/cordova/plugin/localnotification" />
  120. <source-file
  121. src="src/android/TriggerReceiver.java"
  122. target-dir="src/de/appplant/cordova/plugin/localnotification" />
  123. <source-file
  124. src="src/android/ClickReceiver.java"
  125. target-dir="src/de/appplant/cordova/plugin/localnotification" />
  126. <source-file
  127. src="src/android/ClearReceiver.java"
  128. target-dir="src/de/appplant/cordova/plugin/localnotification" />
  129. <source-file
  130. src="src/android/RestoreReceiver.java"
  131. target-dir="src/de/appplant/cordova/plugin/localnotification" />
  132. <source-file
  133. src="src/android/notification/action/Action.java"
  134. target-dir="src/de/appplant/cordova/plugin/notification/action" />
  135. <source-file
  136. src="src/android/notification/action/ActionGroup.java"
  137. target-dir="src/de/appplant/cordova/plugin/notification/action" />
  138. <source-file
  139. src="src/android/notification/receiver/AbstractClearReceiver.java"
  140. target-dir="src/de/appplant/cordova/plugin/notification/receiver" />
  141. <source-file
  142. src="src/android/notification/receiver/AbstractClickReceiver.java"
  143. target-dir="src/de/appplant/cordova/plugin/notification/receiver" />
  144. <source-file
  145. src="src/android/notification/receiver/AbstractRestoreReceiver.java"
  146. target-dir="src/de/appplant/cordova/plugin/notification/receiver" />
  147. <source-file
  148. src="src/android/notification/receiver/AbstractTriggerReceiver.java"
  149. target-dir="src/de/appplant/cordova/plugin/notification/receiver" />
  150. <source-file
  151. src="src/android/notification/trigger/DateTrigger.java"
  152. target-dir="src/de/appplant/cordova/plugin/notification/trigger" />
  153. <source-file
  154. src="src/android/notification/trigger/IntervalTrigger.java"
  155. target-dir="src/de/appplant/cordova/plugin/notification/trigger" />
  156. <source-file
  157. src="src/android/notification/trigger/MatchTrigger.java"
  158. target-dir="src/de/appplant/cordova/plugin/notification/trigger" />
  159. <source-file
  160. src="src/android/notification/util/AssetProvider.java"
  161. target-dir="src/de/appplant/cordova/plugin/notification/util" />
  162. <source-file
  163. src="src/android/notification/util/AssetUtil.java"
  164. target-dir="src/de/appplant/cordova/plugin/notification/util" />
  165. <source-file
  166. src="src/android/notification/Builder.java"
  167. target-dir="src/de/appplant/cordova/plugin/notification" />
  168. <source-file
  169. src="src/android/notification/Manager.java"
  170. target-dir="src/de/appplant/cordova/plugin/notification" />
  171. <source-file
  172. src="src/android/notification/Notification.java"
  173. target-dir="src/de/appplant/cordova/plugin/notification" />
  174. <source-file
  175. src="src/android/notification/Options.java"
  176. target-dir="src/de/appplant/cordova/plugin/notification" />
  177. <source-file
  178. src="src/android/notification/Request.java"
  179. target-dir="src/de/appplant/cordova/plugin/notification" />
  180. </platform>
  181. <!-- windows -->
  182. <platform name="windows">
  183. <framework src="src/windows/lib.UW/x86/LocalNotificationProxy.winmd" target-dir="x86" arch="x86" custom="true"/>
  184. <framework src="src/windows/lib.UW/x64/LocalNotificationProxy.winmd" target-dir="x64" arch="x64" custom="true"/>
  185. <framework src="src/windows/lib.UW/ARM/LocalNotificationProxy.winmd" target-dir="ARM" arch="ARM" custom="true"/>
  186. <framework src="src/windows/lib.UW/x86/Microsoft.Toolkit.Uwp.Notifications.dll" target-dir="x86" arch="x86" custom="true"/>
  187. <framework src="src/windows/lib.UW/x64/Microsoft.Toolkit.Uwp.Notifications.dll" target-dir="x64" arch="x64" custom="true"/>
  188. <framework src="src/windows/lib.UW/ARM/Microsoft.Toolkit.Uwp.Notifications.dll" target-dir="ARM" arch="ARM" custom="true"/>
  189. <js-module src="src/windows/LocalNotificationProxy.js" name="LocalNotification.Proxy" >
  190. <merges target="" />
  191. </js-module>
  192. </platform>
  193. </plugin>