Skip to content

Commit 7f43abf

Browse files
authored
Merge pull request apache#99 from surajpindoria/removePlatforms
CB-13671: Remove deprecated platforms
2 parents 5a03f7f + 87c1665 commit 7f43abf

21 files changed

+3
-1523
lines changed

README.md

Lines changed: 0 additions & 65 deletions
Original file line numberDiff line numberDiff line change
@@ -82,32 +82,11 @@ function, which is typically less customizable.
8282

8383
### Supported Platforms
8484

85-
- Amazon Fire OS
8685
- Android
87-
- BlackBerry 10
8886
- Browser
89-
- Firefox OS
9087
- iOS
91-
- Tizen
92-
- Windows Phone 7 and 8
93-
- Windows 8
9488
- Windows
9589

96-
### Windows Phone 7 and 8 Quirks
97-
98-
- There is no built-in browser alert, but you can bind one as follows to call `alert()` in the global scope:
99-
100-
window.alert = navigator.notification.alert;
101-
102-
- Both `alert` and `confirm` are non-blocking calls, results of which are only available asynchronously.
103-
104-
### Firefox OS Quirks:
105-
106-
Both native-blocking `window.alert()` and non-blocking `navigator.notification.alert()` are available.
107-
108-
### BlackBerry 10 Quirks
109-
`navigator.notification.alert('text', callback, 'title', 'text')` callback parameter is passed the number 1.
110-
11190
## navigator.notification.confirm
11291

11392
Displays a customizable confirmation dialog box.
@@ -147,39 +126,21 @@ indexing, so the value is `1`, `2`, `3`, etc.
147126

148127
### Supported Platforms
149128

150-
- Amazon Fire OS
151129
- Android
152-
- BlackBerry 10
153130
- Browser
154-
- Firefox OS
155131
- iOS
156-
- Tizen
157-
- Windows Phone 7 and 8
158-
- Windows 8
159132
- Windows
160133

161134
### Android Quirks
162135

163136
- Android supports a maximum of three buttons, and ignores any more than that.
164137

165-
### Windows Phone 7 and 8 Quirks
166-
167-
- There is no built-in browser function for `window.confirm`, but you can bind it by assigning:
168-
169-
window.confirm = navigator.notification.confirm;
170-
171-
- Calls to `alert` and `confirm` are non-blocking, so the result is only available asynchronously.
172-
173138
### Windows Quirks
174139

175140
- On Windows8/8.1 it is not possible to add more than three buttons to MessageDialog instance.
176141

177142
- On Windows Phone 8.1 it's not possible to show dialog with more than two buttons.
178143

179-
### Firefox OS Quirks:
180-
181-
Both native-blocking `window.confirm()` and non-blocking `navigator.notification.confirm()` are available.
182-
183144
## navigator.notification.prompt
184145

185146
Displays a native dialog box that is more customizable than the browser's `prompt` function.
@@ -224,13 +185,9 @@ contains the following properties:
224185

225186
### Supported Platforms
226187

227-
- Amazon Fire OS
228188
- Android
229189
- Browser
230-
- Firefox OS
231190
- iOS
232-
- Windows Phone 7 and 8
233-
- Windows 8
234191
- Windows
235192

236193
### Android Quirks
@@ -243,10 +200,6 @@ contains the following properties:
243200

244201
- On Windows prompt dialog is html-based due to lack of such native api.
245202

246-
### Firefox OS Quirks:
247-
248-
Both native-blocking `window.prompt()` and non-blocking `navigator.notification.prompt()` are available.
249-
250203
## navigator.notification.beep
251204

252205
The device plays a beep sound.
@@ -262,29 +215,11 @@ The device plays a beep sound.
262215

263216
### Supported Platforms
264217

265-
- Amazon Fire OS
266218
- Android
267-
- BlackBerry 10
268219
- Browser
269220
- iOS
270-
- Tizen
271-
- Windows Phone 7 and 8
272221
- Windows 8
273222

274-
### Amazon Fire OS Quirks
275-
276-
- Amazon Fire OS plays the default __Notification Sound__ specified under the __Settings/Display & Sound__ panel.
277-
278223
### Android Quirks
279224

280225
- Android plays the default __Notification ringtone__ specified under the __Settings/Sound & Display__ panel.
281-
282-
### Windows Phone 7 and 8 Quirks
283-
284-
- Relies on a generic beep file from the Cordova distribution.
285-
286-
### Tizen Quirks
287-
288-
- Tizen implements beeps by playing an audio file via the media API.
289-
290-
- The beep file must be short, must be located in a `sounds` subdirectory of the application's root directory, and must be named `beep.wav`.

package.json

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,14 @@
11
{
22
"name": "cordova-plugin-dialogs",
3-
"version": "1.3.5-dev",
3+
"version": "2.0.0-dev",
44
"description": "Cordova Notification Plugin",
55
"types": "./types/index.d.ts",
66
"cordova": {
77
"id": "cordova-plugin-dialogs",
88
"platforms": [
9-
"firefoxos",
109
"android",
1110
"browser",
12-
"amazon-fireos",
13-
"ubuntu",
1411
"ios",
15-
"blackberry10",
16-
"wp7",
17-
"wp8",
18-
"windows8",
1912
"windows"
2013
]
2114
},
@@ -30,16 +23,9 @@
3023
"cordova",
3124
"notification",
3225
"ecosystem:cordova",
33-
"cordova-firefoxos",
3426
"cordova-android",
3527
"cordova-browser",
36-
"cordova-amazon-fireos",
37-
"cordova-ubuntu",
3828
"cordova-ios",
39-
"cordova-blackberry10",
40-
"cordova-wp7",
41-
"cordova-wp8",
42-
"cordova-windows8",
4329
"cordova-windows"
4430
],
4531
"scripts": {

plugin.xml

Lines changed: 2 additions & 93 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020

2121
<plugin xmlns="http://apache.org/cordova/ns/plugins/1.0"
2222
id="cordova-plugin-dialogs"
23-
version="1.3.5-dev">
23+
version="2.0.0-dev">
2424

2525
<name>Notification</name>
2626
<description>Cordova Notification Plugin</description>
@@ -33,26 +33,6 @@
3333
<merges target="navigator.notification" />
3434
</js-module>
3535

36-
<!-- firefoxos -->
37-
<platform name="firefoxos">
38-
<config-file target="config.xml" parent="/*">
39-
<feature name="Notification">
40-
<param name="firefoxos-package" value="Notification" />
41-
</feature>
42-
</config-file>
43-
44-
<asset src="www/firefoxos/notification.css" target="css/notification.css" />
45-
<asset src="www/firefoxos/danger-press.png" target="img/danger-press.png" />
46-
<asset src="www/firefoxos/danger.png" target="img/danger.png" />
47-
<asset src="www/firefoxos/default.png" target="img/default.png" />
48-
<asset src="www/firefoxos/gradient.png" target="img/gradient.png" />
49-
<asset src="www/firefoxos/pattern.png" target="img/pattern.png" />
50-
<asset src="www/firefoxos/recommend.png" target="img/recommend.png" />
51-
<js-module src="src/firefoxos/notification.js" name="dialogs-impl">
52-
<runs />
53-
</js-module>
54-
</platform>
55-
5636
<!-- android -->
5737
<platform name="android">
5838
<config-file target="res/xml/config.xml" parent="/*">
@@ -78,31 +58,7 @@
7858

7959
</platform>
8060

81-
<!-- amazon-fireos -->
82-
<platform name="amazon-fireos">
83-
<config-file target="res/xml/config.xml" parent="/*">
84-
<feature name="Notification">
85-
<param name="android-package" value="org.apache.cordova.dialogs.Notification"/>
86-
</feature>
87-
</config-file>
88-
89-
<source-file src="src/android/Notification.java" target-dir="src/org/apache/cordova/dialogs" />
90-
91-
<!-- android specific notification apis -->
92-
<js-module src="www/android/notification.js" name="notification_android">
93-
<merges target="navigator.notification" />
94-
</js-module>
95-
96-
</platform>
97-
98-
<!-- ubuntu -->
99-
<platform name="ubuntu">
100-
<header-file src="src/ubuntu/notification.h" />
101-
<source-file src="src/ubuntu/notification.cpp" />
102-
<resource-file src="src/ubuntu/notification.qml" />
103-
</platform>
104-
105-
<!-- ios -->
61+
<!-- ios -->
10662
<platform name="ios">
10763
<config-file target="config.xml" parent="/*">
10864
<feature name="Notification">
@@ -115,53 +71,6 @@
11571
<framework src="AudioToolbox.framework" weak="true" />
11672
</platform>
11773

118-
<!-- blackberry10 -->
119-
<platform name="blackberry10">
120-
<source-file src="src/blackberry10/index.js" target-dir="Notification" />
121-
<config-file target="www/config.xml" parent="/widget">
122-
<feature name="Notification" value="Notification"/>
123-
</config-file>
124-
<js-module src="www/blackberry10/beep.js" name="beep">
125-
<clobbers target="window.navigator.notification.beep" />
126-
</js-module>
127-
<source-file src="www/blackberry10/notification-beep.wav" />
128-
</platform>
129-
130-
<!-- wp7 -->
131-
<platform name="wp7">
132-
<config-file target="config.xml" parent="/*">
133-
<feature name="Notification">
134-
<param name="wp-package" value="Notification"/>
135-
</feature>
136-
</config-file>
137-
138-
<source-file src="src/wp/Notification.cs" />
139-
<source-file src="src/wp/NotificationBox.xaml.cs" />
140-
<source-file src="src/wp/NotificationBox.xaml" />
141-
<source-file src="src/wp/notification-beep.wav" />
142-
</platform>
143-
144-
<!-- wp8 -->
145-
<platform name="wp8">
146-
<config-file target="config.xml" parent="/*">
147-
<feature name="Notification">
148-
<param name="wp-package" value="Notification"/>
149-
</feature>
150-
</config-file>
151-
152-
<source-file src="src/wp/Notification.cs" />
153-
<source-file src="src/wp/NotificationBox.xaml.cs" />
154-
<source-file src="src/wp/NotificationBox.xaml" />
155-
<source-file src="src/wp/notification-beep.wav" />
156-
</platform>
157-
158-
<!-- windows8 -->
159-
<platform name="windows8">
160-
<js-module src="src/windows/NotificationProxy.js" name="NotificationProxy">
161-
<runs />
162-
</js-module>
163-
</platform>
164-
16574
<!-- windows -->
16675
<platform name="windows">
16776
<js-module src="src/windows/NotificationProxy.js" name="NotificationProxy">

src/blackberry10/index.js

Lines changed: 0 additions & 89 deletions
This file was deleted.

0 commit comments

Comments
 (0)