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