UNPKG

3.05 kBXMLView Raw
1<?xml version="1.0" encoding="UTF-8"?>
2<!--
3 Licensed to the Apache Software Foundation (ASF) under one
4 or more contributor license agreements. See the NOTICE file
5 distributed with this work for additional information
6 regarding copyright ownership. The ASF licenses this file
7 to you under the Apache License, Version 2.0 (the
8 "License"); you may not use this file except in compliance
9 with the License. You may obtain a copy of the License at
10
11 http://www.apache.org/licenses/LICENSE-2.0
12
13 Unless required by applicable law or agreed to in writing,
14 software distributed under the License is distributed on an
15 "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16 KIND, either express or implied. See the License for the
17 specific language governing permissions and limitations
18 under the License.
19-->
20
21<plugin xmlns="http://apache.org/cordova/ns/plugins/1.0"
22 id="cordova-plugin-dialogs"
23 version="2.0.2">
24
25 <name>Notification</name>
26 <description>Cordova Notification Plugin</description>
27 <license>Apache 2.0</license>
28 <keywords>cordova,notification</keywords>
29 <repo>https://github.com/apache/cordova-plugin-dialogs</repo>
30 <issue>https://github.com/apache/cordova-plugin-dialogs/issues</issue>
31
32 <js-module src="www/notification.js" name="notification">
33 <merges target="navigator.notification" />
34 </js-module>
35
36 <!-- android -->
37 <platform name="android">
38 <config-file target="res/xml/config.xml" parent="/*">
39 <feature name="Notification">
40 <param name="android-package" value="org.apache.cordova.dialogs.Notification"/>
41 </feature>
42 </config-file>
43
44 <source-file src="src/android/Notification.java" target-dir="src/org/apache/cordova/dialogs" />
45
46 <!-- android specific notification apis -->
47 <js-module src="www/android/notification.js" name="notification_android">
48 <merges target="navigator.notification" />
49 </js-module>
50
51 </platform>
52
53 <!-- browser -->
54 <platform name="browser">
55 <js-module src="www/browser/notification.js" name="notification_browser">
56 <merges target="navigator.notification" />
57 </js-module>
58
59 </platform>
60
61 <!-- ios -->
62 <platform name="ios">
63 <config-file target="config.xml" parent="/*">
64 <feature name="Notification">
65 <param name="ios-package" value="CDVNotification"/>
66 </feature>
67 </config-file>
68 <header-file src="src/ios/CDVNotification.h" />
69 <source-file src="src/ios/CDVNotification.m" />
70 <resource-file src="src/ios/CDVNotification.bundle" />
71 <framework src="AudioToolbox.framework" weak="true" />
72 </platform>
73
74 <!-- windows -->
75 <platform name="windows">
76 <js-module src="src/windows/NotificationProxy.js" name="NotificationProxy">
77 <runs />
78 </js-module>
79
80 <asset src="www/windows/notification.css" target="css/notification.css" />
81 </platform>
82</plugin>