plugin.xml 10 KB

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