You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by GitBox <gi...@apache.org> on 2017/12/14 01:40:56 UTC

[GitHub] stevengill closed pull request #99: CB-13671: Remove deprecated platforms

stevengill closed pull request #99: CB-13671: Remove deprecated platforms
URL: https://github.com/apache/cordova-plugin-dialogs/pull/99
 
 
   

This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:

As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):

diff --git a/README.md b/README.md
index 675c3c4..aaca95a 100644
--- a/README.md
+++ b/README.md
@@ -82,32 +82,11 @@ function, which is typically less customizable.
 
 ### Supported Platforms
 
-- Amazon Fire OS
 - Android
-- BlackBerry 10
 - Browser
-- Firefox OS
 - iOS
-- Tizen
-- Windows Phone 7 and 8
-- Windows 8
 - Windows
 
-### Windows Phone 7 and 8 Quirks
-
-- There is no built-in browser alert, but you can bind one as follows to call `alert()` in the global scope:
-
-        window.alert = navigator.notification.alert;
-
-- Both `alert` and `confirm` are non-blocking calls, results of which are only available asynchronously.
-
-### Firefox OS Quirks:
-
-Both native-blocking `window.alert()` and non-blocking `navigator.notification.alert()` are available.
-
-### BlackBerry 10 Quirks
-`navigator.notification.alert('text', callback, 'title', 'text')` callback parameter is passed the number 1.
-
 ## navigator.notification.confirm
 
 Displays a customizable confirmation dialog box.
@@ -147,39 +126,21 @@ indexing, so the value is `1`, `2`, `3`, etc.
 
 ### Supported Platforms
 
-- Amazon Fire OS
 - Android
-- BlackBerry 10
 - Browser
-- Firefox OS
 - iOS
-- Tizen
-- Windows Phone 7 and 8
-- Windows 8
 - Windows
 
 ### Android Quirks
 
 - Android supports a maximum of three buttons, and ignores any more than that.
 
-### Windows Phone 7 and 8 Quirks
-
-- There is no built-in browser function for `window.confirm`, but you can bind it by assigning:
-
-        window.confirm = navigator.notification.confirm;
-
-- Calls to `alert` and `confirm` are non-blocking, so the result is only available asynchronously.
-
 ### Windows Quirks
 
 - On Windows8/8.1 it is not possible to add more than three buttons to MessageDialog instance.
 
 - On Windows Phone 8.1 it's not possible to show dialog with more than two buttons.
 
-### Firefox OS Quirks:
-
-Both native-blocking `window.confirm()` and non-blocking `navigator.notification.confirm()` are available.
-
 ## navigator.notification.prompt
 
 Displays a native dialog box that is more customizable than the browser's `prompt` function.
@@ -224,13 +185,9 @@ contains the following properties:
 
 ### Supported Platforms
 
-- Amazon Fire OS
 - Android
 - Browser
-- Firefox OS
 - iOS
-- Windows Phone 7 and 8
-- Windows 8
 - Windows
 
 ### Android Quirks
@@ -243,10 +200,6 @@ contains the following properties:
 
 - On Windows prompt dialog is html-based due to lack of such native api.
 
-### Firefox OS Quirks:
-
-Both native-blocking `window.prompt()` and non-blocking `navigator.notification.prompt()` are available.
-
 ## navigator.notification.beep
 
 The device plays a beep sound.
@@ -262,29 +215,11 @@ The device plays a beep sound.
 
 ### Supported Platforms
 
-- Amazon Fire OS
 - Android
-- BlackBerry 10
 - Browser
 - iOS
-- Tizen
-- Windows Phone 7 and 8
 - Windows 8
 
-### Amazon Fire OS Quirks
-
-- Amazon Fire OS plays the default __Notification Sound__ specified under the __Settings/Display & Sound__ panel.
-
 ### Android Quirks
 
 - Android plays the default __Notification ringtone__ specified under the __Settings/Sound & Display__ panel.
-
-### Windows Phone 7 and 8 Quirks
-
-- Relies on a generic beep file from the Cordova distribution.
-
-### Tizen Quirks
-
-- Tizen implements beeps by playing an audio file via the media API.
-
-- 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`.
diff --git a/package.json b/package.json
index efaca98..36ea9ba 100644
--- a/package.json
+++ b/package.json
@@ -1,21 +1,14 @@
 {
   "name": "cordova-plugin-dialogs",
-  "version": "1.3.5-dev",
+  "version": "2.0.0-dev",
   "description": "Cordova Notification Plugin",
   "types": "./types/index.d.ts",
   "cordova": {
     "id": "cordova-plugin-dialogs",
     "platforms": [
-      "firefoxos",
       "android",
       "browser",
-      "amazon-fireos",
-      "ubuntu",
       "ios",
-      "blackberry10",
-      "wp7",
-      "wp8",
-      "windows8",
       "windows"
     ]
   },
@@ -30,16 +23,9 @@
     "cordova",
     "notification",
     "ecosystem:cordova",
-    "cordova-firefoxos",
     "cordova-android",
     "cordova-browser",
-    "cordova-amazon-fireos",
-    "cordova-ubuntu",
     "cordova-ios",
-    "cordova-blackberry10",
-    "cordova-wp7",
-    "cordova-wp8",
-    "cordova-windows8",
     "cordova-windows"
   ],
   "scripts": {
diff --git a/plugin.xml b/plugin.xml
index 8c1a99e..eda9667 100644
--- a/plugin.xml
+++ b/plugin.xml
@@ -20,7 +20,7 @@
 
 <plugin xmlns="http://apache.org/cordova/ns/plugins/1.0"
            id="cordova-plugin-dialogs"
-      version="1.3.5-dev">
+      version="2.0.0-dev">
 
     <name>Notification</name>
     <description>Cordova Notification Plugin</description>
@@ -33,26 +33,6 @@
         <merges target="navigator.notification" />
     </js-module>
 
-    <!-- firefoxos -->
-    <platform name="firefoxos">
-        <config-file target="config.xml" parent="/*">
-            <feature name="Notification">
-                <param name="firefoxos-package" value="Notification" />
-            </feature>
-        </config-file>
-
-        <asset src="www/firefoxos/notification.css" target="css/notification.css" />
-        <asset src="www/firefoxos/danger-press.png" target="img/danger-press.png" />
-        <asset src="www/firefoxos/danger.png" target="img/danger.png" />
-        <asset src="www/firefoxos/default.png" target="img/default.png" />
-        <asset src="www/firefoxos/gradient.png" target="img/gradient.png" />
-        <asset src="www/firefoxos/pattern.png" target="img/pattern.png" />
-        <asset src="www/firefoxos/recommend.png" target="img/recommend.png" />
-        <js-module src="src/firefoxos/notification.js" name="dialogs-impl">
-          <runs />
-        </js-module>
-    </platform>
-
     <!-- android -->
     <platform name="android">
         <config-file target="res/xml/config.xml" parent="/*">
@@ -78,31 +58,7 @@
 
     </platform>
 
-     <!-- amazon-fireos -->
-    <platform name="amazon-fireos">
-        <config-file target="res/xml/config.xml" parent="/*">
-            <feature name="Notification">
-                <param name="android-package" value="org.apache.cordova.dialogs.Notification"/>
-            </feature>
-        </config-file>
-
-        <source-file src="src/android/Notification.java" target-dir="src/org/apache/cordova/dialogs" />
-
-        <!-- android specific notification apis -->
-        <js-module src="www/android/notification.js" name="notification_android">
-            <merges target="navigator.notification" />
-        </js-module>
-
-    </platform>
-
-    <!-- ubuntu -->
-    <platform name="ubuntu">
-        <header-file src="src/ubuntu/notification.h" />
-        <source-file src="src/ubuntu/notification.cpp" />
-        <resource-file src="src/ubuntu/notification.qml" />
-    </platform>
-
-    <!-- ios -->
+     <!-- ios -->
     <platform name="ios">
         <config-file target="config.xml" parent="/*">
             <feature name="Notification">
@@ -115,53 +71,6 @@
         <framework src="AudioToolbox.framework" weak="true" />
     </platform>
 
-    <!-- blackberry10 -->
-    <platform name="blackberry10">
-        <source-file src="src/blackberry10/index.js" target-dir="Notification" />
-        <config-file target="www/config.xml" parent="/widget">
-            <feature name="Notification" value="Notification"/>
-        </config-file>
-        <js-module src="www/blackberry10/beep.js" name="beep">
-            <clobbers target="window.navigator.notification.beep" />
-        </js-module>
-        <source-file src="www/blackberry10/notification-beep.wav" />
-    </platform>
-
-    <!-- wp7 -->
-    <platform name="wp7">
-        <config-file target="config.xml" parent="/*">
-            <feature name="Notification">
-                <param name="wp-package" value="Notification"/>
-            </feature>
-        </config-file>
-
-        <source-file src="src/wp/Notification.cs" />
-        <source-file src="src/wp/NotificationBox.xaml.cs" />
-        <source-file src="src/wp/NotificationBox.xaml" />
-        <source-file src="src/wp/notification-beep.wav" />
-    </platform>
-
-    <!-- wp8 -->
-    <platform name="wp8">
-        <config-file target="config.xml" parent="/*">
-            <feature name="Notification">
-                <param name="wp-package" value="Notification"/>
-            </feature>
-        </config-file>
-
-        <source-file src="src/wp/Notification.cs" />
-        <source-file src="src/wp/NotificationBox.xaml.cs" />
-        <source-file src="src/wp/NotificationBox.xaml" />
-        <source-file src="src/wp/notification-beep.wav" />
-    </platform>
-
-    <!-- windows8 -->
-    <platform name="windows8">
-        <js-module src="src/windows/NotificationProxy.js" name="NotificationProxy">
-            <runs />
-        </js-module>
-    </platform>
-
     <!-- windows -->
     <platform name="windows">
         <js-module src="src/windows/NotificationProxy.js" name="NotificationProxy">
diff --git a/src/blackberry10/index.js b/src/blackberry10/index.js
deleted file mode 100644
index 0f7fa2f..0000000
--- a/src/blackberry10/index.js
+++ /dev/null
@@ -1,89 +0,0 @@
-/*
-* Copyright 2013 Research In Motion Limited.
-*
-* Licensed under the Apache License, Version 2.0 (the "License");
-* you may not use this file except in compliance with the License.
-* You may obtain a copy of the License at
-*
-* http://www.apache.org/licenses/LICENSE-2.0
-*
-* Unless required by applicable law or agreed to in writing, software
-* distributed under the License is distributed on an "AS IS" BASIS,
-* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-* See the License for the specific language governing permissions and
-* limitations under the License.
-*/
-
-/* global qnx, PluginResult */
-
-function showDialog (args, dialogType, result) {
-    // Unpack and map the args
-    var msg = JSON.parse(decodeURIComponent(args[0]));
-    var title = JSON.parse(decodeURIComponent(args[1]));
-    var btnLabel = JSON.parse(decodeURIComponent(args[2]));
-
-    if (!Array.isArray(btnLabel)) {
-        // Converts to array for (string) and (string,string, ...) cases
-        btnLabel = btnLabel.split(',');
-    }
-
-    if (msg && typeof msg === 'string') {
-        msg = msg.replace(/^"|"$/g, '').replace(/\\"/g, '"');
-    } else {
-        result.error('message is undefined');
-        return;
-    }
-
-    var messageObj = {
-        title: title,
-        htmlmessage: msg,
-        dialogType: dialogType,
-        optionalButtons: btnLabel
-    };
-
-    // TODO replace with getOverlayWebview() when available in webplatform
-    qnx.webplatform.getWebViews()[2].dialog.show(messageObj, function (data) {
-        if (typeof data === 'number') {
-            // Confirm dialog call back needs to be called with one-based indexing [1,2,3 etc]
-            result.callbackOk(++data, false);
-        } else {
-            // Prompt dialog callback expects object
-            result.callbackOk({
-                buttonIndex: data.ok ? 1 : 0,
-                input1: (data.oktext) ? decodeURIComponent(data.oktext) : ''
-            }, false);
-        }
-    });
-
-    result.noResult(true);
-}
-
-module.exports = {
-    alert: function (success, fail, args, env) {
-        var result = new PluginResult(args, env);
-
-        if (Object.keys(args).length < 3) {
-            result.error('Notification action - alert arguments not found.');
-        } else {
-            showDialog(args, 'CustomAsk', result);
-        }
-    },
-    confirm: function (success, fail, args, env) {
-        var result = new PluginResult(args, env);
-
-        if (Object.keys(args).length < 3) {
-            result.error('Notification action - confirm arguments not found.');
-        } else {
-            showDialog(args, 'CustomAsk', result);
-        }
-    },
-    prompt: function (success, fail, args, env) {
-        var result = new PluginResult(args, env);
-
-        if (Object.keys(args).length < 3) {
-            result.error('Notification action - prompt arguments not found.');
-        } else {
-            showDialog(args, 'JavaScriptPrompt', result);
-        }
-    }
-};
diff --git a/src/firefoxos/notification.js b/src/firefoxos/notification.js
deleted file mode 100644
index 604cd85..0000000
--- a/src/firefoxos/notification.js
+++ /dev/null
@@ -1,151 +0,0 @@
-/*
- *
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements.  See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership.  The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License.  You may obtain a copy of the License at
- *
- *   http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied.  See the License for the
- * specific language governing permissions and limitations
- * under the License.
- *
-*/
-
-var modulemapper = require('cordova/modulemapper');
-
-var origOpenFunc = modulemapper.getOriginalSymbol(window, 'window.open');
-
-function _empty () {}
-
-function modal (message, callback, title, buttonLabels, domObjects) {
-    var mainWindow = window;
-    var modalWindow = origOpenFunc();
-    var modalDocument = modalWindow.document;
-
-    modalDocument.write(
-        '<html><head>' +
-        '<link rel="stylesheet" type="text/css" href="/css/index.css" />' +
-        '<link rel="stylesheet" type="text/css" href="/css/notification.css" />' +
-        '</head><body></body></html>');
-
-    var box = modalDocument.createElement('form');
-    box.setAttribute('role', 'dialog');
-    // prepare and append empty section
-    var section = modalDocument.createElement('section');
-    box.appendChild(section);
-    // add title
-    var boxtitle = modalDocument.createElement('h1');
-    boxtitle.appendChild(modalDocument.createTextNode(title));
-    section.appendChild(boxtitle);
-    // add message
-    var boxMessage = modalDocument.createElement('p');
-    boxMessage.appendChild(modalDocument.createTextNode(message));
-    section.appendChild(boxMessage);
-    // inject what's needed
-    if (domObjects) {
-        section.appendChild(domObjects);
-    }
-    // add buttons and assign callbackButton on click
-    var menu = modalDocument.createElement('menu');
-    box.appendChild(menu);
-    for (var index = 0; index < buttonLabels.length; index++) {
-        // TODO: last button listens to the cancel key
-        addButton(buttonLabels[index], (index + 1), (index === 0));
-    }
-    modalDocument.body.appendChild(box);
-
-    function addButton (label, index, recommended) {
-        var thisButtonCallback = makeCallbackButton(index + 1);
-        var button = modalDocument.createElement('button');
-        button.appendChild(modalDocument.createTextNode(label));
-        button.addEventListener('click', thisButtonCallback, false);
-        if (recommended) {
-          // TODO: default one listens to Enter key
-            button.classList.add('recommend');
-        }
-        menu.appendChild(button);
-    }
-
-    // TODO: onUnload listens to the cancel key
-    function onUnload () {
-        var result = 0;
-        if (modalDocument.getElementById('prompt-input')) {
-            result = {
-                input1: '',
-                buttonIndex: 0
-            };
-        }
-        mainWindow.setTimeout(function () {
-            callback(result);
-        }, 10);
-    }
-    modalWindow.addEventListener('unload', onUnload, false);
-
-    // call callback and destroy modal
-    function makeCallbackButton (labelIndex) {
-        return function () {
-            if (modalWindow) {
-                modalWindow.removeEventListener('unload', onUnload, false);
-                modalWindow.close();
-            }
-          // checking if prompt
-            var promptInput = modalDocument.getElementById('prompt-input');
-            var response;
-            if (promptInput) {
-                response = {
-                    input1: promptInput.value,
-                    buttonIndex: labelIndex
-                };
-            }
-            response = response || labelIndex;
-            callback(response);
-        };
-    }
-}
-
-var Notification = {
-    vibrate: function (milliseconds) {
-        navigator.vibrate(milliseconds);
-    },
-    alert: function (successCallback, errorCallback, args) {
-        var message = args[0];
-        var title = args[1];
-        var _buttonLabels = [args[2]];
-        var _callback = (successCallback || _empty);
-        modal(message, _callback, title, _buttonLabels);
-    },
-    confirm: function (successCallback, errorCallback, args) {
-        var message = args[0];
-        var title = args[1];
-        var buttonLabels = args[2];
-        var _callback = (successCallback || _empty);
-        modal(message, _callback, title, buttonLabels);
-    },
-    prompt: function (successCallback, errorCallback, args) {
-        var message = args[0];
-        var title = args[1];
-        var buttonLabels = args[2];
-        var defaultText = args[3];
-        var inputParagraph = document.createElement('p');
-        inputParagraph.classList.add('input');
-        var inputElement = document.createElement('input');
-        inputElement.setAttribute('type', 'text');
-        inputElement.id = 'prompt-input';
-        if (defaultText) {
-            inputElement.setAttribute('placeholder', defaultText);
-        }
-        inputParagraph.appendChild(inputElement);
-        modal(message, successCallback, title, buttonLabels, inputParagraph);
-    }
-};
-
-module.exports = Notification;
-require('cordova/exec/proxy').add('Notification', Notification);
diff --git a/src/ubuntu/notification.cpp b/src/ubuntu/notification.cpp
deleted file mode 100644
index d0adf89..0000000
--- a/src/ubuntu/notification.cpp
+++ /dev/null
@@ -1,85 +0,0 @@
-/*
- *
- *  Licensed under the Apache License, Version 2.0 (the "License");
- *  you may not use this file except in compliance with the License.
- *  You may obtain a copy of the License at
- *
- *      http://www.apache.org/licenses/LICENSE-2.0
- *
- *  Unless required by applicable law or agreed to in writing, software
- *  distributed under the License is distributed on an "AS IS" BASIS,
- *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- *  See the License for the specific language governing permissions and
- *  limitations under the License.
- */
-
-#include "notification.h"
-
-#include <QApplication>
-
-void Dialogs::beep(int scId, int ecId, int times) {
-    Q_UNUSED(scId)
-    Q_UNUSED(ecId)
-    Q_UNUSED(times)
-
-    _player.setVolume(100);
-    _player.setMedia(QUrl::fromLocalFile("/usr/share/sounds/ubuntu/stereo/bell.ogg"));
-    _player.play();
-}
-
-void Dialogs::alert(int scId, int ecId, const QString &message, const QString &title, const QString &buttonLabel) {
-    QStringList list;
-    list.append(buttonLabel);
-
-    confirm(scId, ecId, message, title, list);
-}
-
-void Dialogs::confirm(int scId, int ecId, const QString &message, const QString &title, const QStringList &buttonLabels) {
-    Q_UNUSED(ecId);
-
-    if (_alertCallback) {
-        qCritical() << "can't open second dialog";
-        return;
-    }
-    _alertCallback = scId;
-
-    QString s1, s2, s3;
-    if (buttonLabels.size() > 0)
-        s1 = buttonLabels[0];
-    if (buttonLabels.size() > 1)
-        s2 = buttonLabels[1];
-    if (buttonLabels.size() > 2)
-        s3 = buttonLabels[2];
-
-    QString path = m_cordova->get_app_dir() + "/../qml/notification.qml";
-    QString qml = QString("PopupUtils.open(%1, root, { root: root, cordova: cordova, title: %2, text: %3, promptVisible: false, button1Text: %4, button2Text: %5, button3Text: %6 })")
-        .arg(CordovaInternal::format(path)).arg(CordovaInternal::format(title)).arg(CordovaInternal::format(message))
-        .arg(CordovaInternal::format(s1)).arg(CordovaInternal::format(s2)).arg(CordovaInternal::format(s3));
-
-    m_cordova->execQML(qml);
-}
-
-void Dialogs::prompt(int scId, int ecId, const QString &message, const QString &title, const QStringList &buttonLabels, const QString &defaultText) {
-    Q_UNUSED(ecId);
-
-    if (_alertCallback) {
-        qCritical() << "can't open second dialog";
-        return;
-    }
-    _alertCallback = scId;
-
-    QString s1, s2, s3;
-    if (buttonLabels.size() > 0)
-        s1 = buttonLabels[0];
-    if (buttonLabels.size() > 1)
-        s2 = buttonLabels[1];
-    if (buttonLabels.size() > 2)
-        s3 = buttonLabels[2];
-    QString path = m_cordova->get_app_dir() + "/../qml/notification.qml";
-    QString qml = QString("PopupUtils.open(%1, root, { root: root, cordova: cordova, title: %2, text: %3, promptVisible: true, defaultPromptText: %7, button1Text: %4, button2Text: %5, button3Text: %6 })")
-        .arg(CordovaInternal::format(path)).arg(CordovaInternal::format(title)).arg(CordovaInternal::format(message))
-        .arg(CordovaInternal::format(s1)).arg(CordovaInternal::format(s2))
-        .arg(CordovaInternal::format(s3)).arg(CordovaInternal::format(defaultText));
-
-    m_cordova->execQML(qml);
-}
diff --git a/src/ubuntu/notification.h b/src/ubuntu/notification.h
deleted file mode 100644
index 5343073..0000000
--- a/src/ubuntu/notification.h
+++ /dev/null
@@ -1,64 +0,0 @@
-/*
- *
- *  Licensed under the Apache License, Version 2.0 (the "License");
- *  you may not use this file except in compliance with the License.
- *  You may obtain a copy of the License at
- *
- *      http://www.apache.org/licenses/LICENSE-2.0
- *
- *  Unless required by applicable law or agreed to in writing, software
- *  distributed under the License is distributed on an "AS IS" BASIS,
- *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- *  See the License for the specific language governing permissions and
- *  limitations under the License.
- */
-
-#ifndef NOTIFICATION_H
-#define NOTIFICATION_H
-
-#include <QtQuick>
-#include <QMediaPlayer>
-#include <cplugin.h>
-#include <cordova.h>
-
-class Dialogs: public CPlugin {
-    Q_OBJECT
-public:
-    explicit Dialogs(Cordova *cordova): CPlugin(cordova), _alertCallback(0) {
-    }
-
-    virtual const QString fullName() override {
-        return Dialogs::fullID();
-    }
-
-    virtual const QString shortName() override {
-        return "Notification";
-    }
-
-    static const QString fullID() {
-        return "Notification";
-    }
-public slots:
-    void beep(int scId, int ecId, int times);
-    void alert(int scId, int ecId, const QString &message, const QString &title, const QString &buttonLabel);
-    void confirm(int scId, int ecId, const QString &message, const QString &title, const QStringList &buttonLabels);
-    void prompt(int scId, int ecId, const QString &message, const QString &title, const QStringList &buttonLabels, const QString &defaultText);
-
-    void notificationDialogButtonPressed(int buttonId, const QString &text, bool prompt) {
-        if (prompt) {
-            QVariantMap res;
-            res.insert("buttonIndex", buttonId);
-            res.insert("input1", text);
-            this->cb(_alertCallback, res);
-        } else {
-            this->cb(_alertCallback, buttonId);
-        }
-        _alertCallback = 0;
-    }
-
-private:
-    int _alertCallback;
-    QMediaPlayer _player;
-};
-
-#endif
diff --git a/src/ubuntu/notification.qml b/src/ubuntu/notification.qml
deleted file mode 100644
index 5fdc7d3..0000000
--- a/src/ubuntu/notification.qml
+++ /dev/null
@@ -1,65 +0,0 @@
-/*
- *
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements.  See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership.  The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License.  You may obtain a copy of the License at
- *
- *   http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied.  See the License for the
- * specific language governing permissions and limitations
- * under the License.
- *
-*/
-
-import QtQuick 2.0
-import Ubuntu.Components.Popups 0.1
-import Ubuntu.Components 0.1
-
-Dialog {
-    id: dialogue
-    property string button1Text
-    property string button2Text
-    property string button3Text
-    property bool promptVisible
-    property string defaultPromptText
-
-    TextField {
-        id: prompt
-        text: defaultPromptText
-        visible: promptVisible
-        focus: true
-    }
-    Button {
-        text: button1Text
-        color: "orange"
-        onClicked: {
-            root.exec("Notification", "notificationDialogButtonPressed", [1, prompt.text, promptVisible]);
-            PopupUtils.close(dialogue)
-        }
-    }
-    Button {
-        text: button2Text
-        visible: button2Text.length > 0
-        color: "orange"
-        onClicked: {
-            root.exec("Notification", "notificationDialogButtonPressed", [2, prompt.text, promptVisible]);
-            PopupUtils.close(dialogue)
-        }
-    }
-    Button {
-        text: button3Text
-        visible: button3Text.length > 0
-        onClicked: {
-            root.exec("Notification", "notificationDialogButtonPressed", [3, prompt.text, promptVisible]);
-            PopupUtils.close(dialogue)
-        }
-    }
-}
diff --git a/src/wp/Notification.cs b/src/wp/Notification.cs
deleted file mode 100644
index b621684..0000000
--- a/src/wp/Notification.cs
+++ /dev/null
@@ -1,482 +0,0 @@
-?/*  
-	Licensed under the Apache License, Version 2.0 (the "License");
-	you may not use this file except in compliance with the License.
-	You may obtain a copy of the License at
-	
-	http://www.apache.org/licenses/LICENSE-2.0
-	
-	Unless required by applicable law or agreed to in writing, software
-	distributed under the License is distributed on an "AS IS" BASIS,
-	WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-	See the License for the specific language governing permissions and
-	limitations under the License.
-*/
-
-using System;
-using System.Windows;
-using System.Windows.Controls;
-using Microsoft.Devices;
-using System.Runtime.Serialization;
-using System.Threading;
-using System.Windows.Resources;
-using Microsoft.Phone.Controls;
-using Microsoft.Xna.Framework.Audio;
-using WPCordovaClassLib.Cordova.UI;
-using System.Diagnostics;
-
-
-namespace WPCordovaClassLib.Cordova.Commands
-{
-    public class Notification : BaseCommand
-    {
-        static ProgressBar progressBar = null;
-        const int DEFAULT_DURATION = 5;
-
-        private NotificationBox notifyBox;
-
-        private class NotifBoxData
-        {
-            public NotificationBox previous {get;set;}
-            public string callbackId { get; set; }
-        }
-
-        private PhoneApplicationPage Page
-        {
-            get
-            {
-                PhoneApplicationPage page = null;
-                PhoneApplicationFrame frame = Application.Current.RootVisual as PhoneApplicationFrame;
-                if (frame != null)
-                {
-                    page = frame.Content as PhoneApplicationPage;
-                }
-                return page;
-            }
-        }
-
-        // blink api - doesn't look like there is an equivalent api we can use...
-
-        [DataContract]
-        public class AlertOptions
-        {
-            [OnDeserializing]
-            public void OnDeserializing(StreamingContext context)
-            {
-                // set defaults
-                this.message = "message";
-                this.title = "Alert";
-                this.buttonLabel = "ok";
-            }
-
-            /// <summary>
-            /// message to display in the alert box
-            /// </summary>
-            [DataMember]
-            public string message;
-
-            /// <summary>
-            /// title displayed on the alert window
-            /// </summary>
-            [DataMember]
-            public string title;
-
-            /// <summary>
-            /// text to display on the button
-            /// </summary>
-            [DataMember]
-            public string buttonLabel;
-        }
-
-        [DataContract]
-        public class PromptResult
-        {
-            [DataMember]
-            public int buttonIndex;
-
-            [DataMember]
-            public string input1;
-
-            public PromptResult(int index, string text)
-            {
-                this.buttonIndex = index;
-                this.input1 = text;
-            }
-        }
-
-        public void alert(string options)
-        {
-            string[] args = JSON.JsonHelper.Deserialize<string[]>(options);
-            AlertOptions alertOpts = new AlertOptions();
-            alertOpts.message = args[0];
-            alertOpts.title = args[1];
-            alertOpts.buttonLabel = args[2];
-            string aliasCurrentCommandCallbackId = args[3];
-
-            Deployment.Current.Dispatcher.BeginInvoke(() =>
-            {
-                PhoneApplicationPage page = Page;
-                if (page != null)
-                {
-                    Grid grid = page.FindName("LayoutRoot") as Grid;
-                    if (grid != null)
-                    {
-                        var previous = notifyBox;
-                        notifyBox = new NotificationBox();
-                        notifyBox.Tag = new NotifBoxData { previous = previous, callbackId = aliasCurrentCommandCallbackId };
-                        notifyBox.PageTitle.Text = alertOpts.title;
-                        notifyBox.SubTitle.Text = alertOpts.message;
-                        Button btnOK = new Button();
-                        btnOK.Content = alertOpts.buttonLabel;
-                        btnOK.Click += new RoutedEventHandler(btnOK_Click);
-                        btnOK.Tag = 1;
-                        notifyBox.ButtonPanel.Children.Add(btnOK);
-                        grid.Children.Add(notifyBox);
-
-                        if (previous == null)
-                        {
-                            page.BackKeyPress += page_BackKeyPress;
-                        }
-                    }
-                }
-                else
-                {
-                    DispatchCommandResult(new PluginResult(PluginResult.Status.INSTANTIATION_EXCEPTION));
-                }
-            });
-        }
-
-        public void prompt(string options)
-        {
-            string[] args = JSON.JsonHelper.Deserialize<string[]>(options);
-            string message = args[0];
-            string title = args[1];
-            string buttonLabelsArray = args[2];
-            string[] buttonLabels = JSON.JsonHelper.Deserialize<string[]>(buttonLabelsArray);
-            string defaultText = args[3];
-            string aliasCurrentCommandCallbackId = args[4];
-
-            Deployment.Current.Dispatcher.BeginInvoke(() =>
-            {
-                PhoneApplicationPage page = Page;
-                if (page != null)
-                {
-                    Grid grid = page.FindName("LayoutRoot") as Grid;
-                    if (grid != null)
-                    {
-                        var previous = notifyBox;
-                        notifyBox = new NotificationBox();
-                        notifyBox.Tag = new NotifBoxData { previous = previous, callbackId = aliasCurrentCommandCallbackId };
-                        notifyBox.PageTitle.Text = title;
-                        notifyBox.SubTitle.Text = message;
-
-                        //TextBox textBox = new TextBox();
-                        //textBox.Text = defaultText;
-                        //textBox.AcceptsReturn = true;
-                        //notifyBox.ContentScroller.Content = textBox;
-
-                        notifyBox.InputText.Text = defaultText;
-                        notifyBox.InputText.Visibility = Visibility.Visible;
-
-                        for (int i = 0; i < buttonLabels.Length; ++i)
-                        {
-                            Button button = new Button();
-                            button.Content = buttonLabels[i];
-                            button.Tag = i + 1;
-                            button.Click += promptBoxbutton_Click;
-                            notifyBox.ButtonPanel.Orientation = Orientation.Vertical;
-                            notifyBox.ButtonPanel.Children.Add(button);
-                        }
-
-                        grid.Children.Add(notifyBox);
-                        if (previous != null)
-                        {
-                            page.BackKeyPress += page_BackKeyPress;
-                        }
-                    }
-                }
-                else
-                {
-                    DispatchCommandResult(new PluginResult(PluginResult.Status.INSTANTIATION_EXCEPTION));
-                }
-            });
-        }
-
-        public void confirm(string options)
-        {
-            string[] args = JSON.JsonHelper.Deserialize<string[]>(options);
-            AlertOptions alertOpts = new AlertOptions();
-            alertOpts.message = args[0];
-            alertOpts.title = args[1];
-            alertOpts.buttonLabel = args[2];
-            string aliasCurrentCommandCallbackId = args[3];
-
-            Deployment.Current.Dispatcher.BeginInvoke(() =>
-            {
-                PhoneApplicationPage page = Page;
-                if (page != null)
-                {
-                    Grid grid = page.FindName("LayoutRoot") as Grid;
-                    if (grid != null)
-                    {
-                        var previous = notifyBox;
-                        notifyBox = new NotificationBox();
-                        notifyBox.Tag = new NotifBoxData { previous = previous, callbackId = aliasCurrentCommandCallbackId };
-                        notifyBox.PageTitle.Text = alertOpts.title;
-                        notifyBox.SubTitle.Text = alertOpts.message;
-
-                        string[] labels = JSON.JsonHelper.Deserialize<string[]>(alertOpts.buttonLabel);
-
-                        if (labels == null)
-                        {
-                            labels = alertOpts.buttonLabel.Split(',');
-                        }
-
-                        for (int n = 0; n < labels.Length; n++)
-                        {
-                            Button btn = new Button();
-                            btn.Content = labels[n];
-                            btn.Tag = n;
-                            btn.Click += new RoutedEventHandler(btnOK_Click);
-                            notifyBox.ButtonPanel.Children.Add(btn);
-                        }
-
-                        grid.Children.Add(notifyBox);
-                        if (previous == null)
-                        {
-                            page.BackKeyPress += page_BackKeyPress;
-                        }
-                    }
-                }
-                else
-                {
-                    DispatchCommandResult(new PluginResult(PluginResult.Status.INSTANTIATION_EXCEPTION));
-                }
-            });
-        }
-
-        void promptBoxbutton_Click(object sender, RoutedEventArgs e)
-        {
-            Button button = sender as Button;
-            FrameworkElement promptBox = null;
-            int buttonIndex = 0;
-            string callbackId = string.Empty;
-            string text = string.Empty;
-            if (button != null)
-            {
-                buttonIndex = (int)button.Tag;
-                promptBox = button.Parent as FrameworkElement;
-                while ((promptBox = promptBox.Parent as FrameworkElement) != null &&
-                       !(promptBox is NotificationBox)) ;
-            }
-
-            if (promptBox != null)
-            {
-                NotificationBox box = promptBox as NotificationBox;
-
-                text = box.InputText.Text;
-
-                PhoneApplicationPage page = Page;
-                if (page != null)
-                {
-                    Grid grid = page.FindName("LayoutRoot") as Grid;
-                    if (grid != null)
-                    {
-                        grid.Children.Remove(promptBox);
-                    }
-
-                    NotifBoxData data = promptBox.Tag as NotifBoxData;
-                    promptBox = data.previous as NotificationBox;
-                    callbackId = data.callbackId as string;
-
-                    if (promptBox == null)
-                    {
-                        page.BackKeyPress -= page_BackKeyPress;
-                    }
-                }
-            }
-            DispatchCommandResult(new PluginResult(PluginResult.Status.OK, new PromptResult(buttonIndex, text)), callbackId);
-        }
-
-        void page_BackKeyPress(object sender, System.ComponentModel.CancelEventArgs e)
-        {
-            PhoneApplicationPage page = sender as PhoneApplicationPage;
-            string callbackId = "";
-            if (page != null && notifyBox != null)
-            {
-                Grid grid = page.FindName("LayoutRoot") as Grid;
-                if (grid != null)
-                {
-                    grid.Children.Remove(notifyBox);
-                    NotifBoxData notifBoxData = notifyBox.Tag as NotifBoxData;
-                    notifyBox = notifBoxData.previous as NotificationBox;
-                    callbackId = notifBoxData.callbackId as string;
-                }
-                if (notifyBox == null)
-                {
-                    page.BackKeyPress -= page_BackKeyPress;
-                }
-                e.Cancel = true;
-            }
-
-            DispatchCommandResult(new PluginResult(PluginResult.Status.OK, 0), callbackId);
-        }
-
-        void btnOK_Click(object sender, RoutedEventArgs e)
-        {
-            Button btn = sender as Button;
-            FrameworkElement notifBoxParent = null;
-            int retVal = 0;
-            string callbackId = "";
-            if (btn != null)
-            {
-                retVal = (int)btn.Tag + 1;
-
-                notifBoxParent = btn.Parent as FrameworkElement;
-                while ((notifBoxParent = notifBoxParent.Parent as FrameworkElement) != null &&
-                       !(notifBoxParent is NotificationBox)) ;
-            }
-            if (notifBoxParent != null)
-            {
-                PhoneApplicationPage page = Page;
-                if (page != null)
-                {
-                    Grid grid = page.FindName("LayoutRoot") as Grid;
-                    if (grid != null)
-                    {
-                        grid.Children.Remove(notifBoxParent);
-                    }
-
-                    NotifBoxData notifBoxData = notifBoxParent.Tag as NotifBoxData;
-                    notifyBox = notifBoxData.previous as NotificationBox;
-                    callbackId = notifBoxData.callbackId as string;
-
-                    if (notifyBox == null)
-                    {
-                        page.BackKeyPress -= page_BackKeyPress;
-                    }
-                }
-
-            }
-            DispatchCommandResult(new PluginResult(PluginResult.Status.OK, retVal), callbackId);
-        }
-
-
-
-        public void beep(string options)
-        {
-            string[] args = JSON.JsonHelper.Deserialize<string[]>(options);
-            int times = int.Parse(args[0]);
-
-            string resourcePath = BaseCommand.GetBaseURL() + "Plugins/cordova-plugin-dialogs/notification-beep.wav";
-
-            StreamResourceInfo sri = Application.GetResourceStream(new Uri(resourcePath, UriKind.Relative));
-
-            if (sri != null)
-            {
-                SoundEffect effect = SoundEffect.FromStream(sri.Stream);
-                SoundEffectInstance inst = effect.CreateInstance();
-                ThreadPool.QueueUserWorkItem((o) =>
-                {
-                    // cannot interact with UI !!
-                    do
-                    {
-                        inst.Play();
-                        Thread.Sleep(effect.Duration + TimeSpan.FromMilliseconds(100));
-                    }
-                    while (--times > 0);
-
-                });
-
-            }
-
-            // TODO: may need a listener to trigger DispatchCommandResult after the alarm has finished executing...
-            DispatchCommandResult();
-        }
-
-        // Display an indeterminate progress indicator
-        public void activityStart(string unused)
-        {
-
-            Deployment.Current.Dispatcher.BeginInvoke(() =>
-            {
-                PhoneApplicationFrame frame = Application.Current.RootVisual as PhoneApplicationFrame;
-
-                if (frame != null)
-                {
-                    PhoneApplicationPage page = frame.Content as PhoneApplicationPage;
-
-                    if (page != null)
-                    {
-                        var temp = page.FindName("LayoutRoot");
-                        Grid grid = temp as Grid;
-                        if (grid != null)
-                        {
-                            if (progressBar != null)
-                            {
-                                grid.Children.Remove(progressBar);
-                            }
-                            progressBar = new ProgressBar();
-                            progressBar.IsIndeterminate = true;
-                            progressBar.IsEnabled = true;
-
-                            grid.Children.Add(progressBar);
-                        }
-                    }
-                }
-            });
-        }
-
-
-        // Remove our indeterminate progress indicator
-        public void activityStop(string unused)
-        {
-            Deployment.Current.Dispatcher.BeginInvoke(() =>
-            {
-                if (progressBar != null)
-                {
-                    progressBar.IsEnabled = false;
-                    PhoneApplicationFrame frame = Application.Current.RootVisual as PhoneApplicationFrame;
-                    if (frame != null)
-                    {
-                        PhoneApplicationPage page = frame.Content as PhoneApplicationPage;
-                        if (page != null)
-                        {
-                            Grid grid = page.FindName("LayoutRoot") as Grid;
-                            if (grid != null)
-                            {
-                                grid.Children.Remove(progressBar);
-                            }
-                        }
-                    }
-                    progressBar = null;
-                }
-            });
-        }
-
-        public void vibrate(string vibrateDuration)
-        {
-
-            int msecs = 200; // set default
-
-            try
-            {
-                string[] args = JSON.JsonHelper.Deserialize<string[]>(vibrateDuration);
-
-                msecs = int.Parse(args[0]);
-                if (msecs < 1)
-                {
-                    msecs = 1;
-                }
-            }
-            catch (FormatException)
-            {
-
-            }
-
-            VibrateController.Default.Start(TimeSpan.FromMilliseconds(msecs));
-
-            // TODO: may need to add listener to trigger DispatchCommandResult when the vibration ends...
-            DispatchCommandResult();
-        }
-    }
-}
diff --git a/src/wp/NotificationBox.xaml b/src/wp/NotificationBox.xaml
deleted file mode 100644
index 2d564fb..0000000
--- a/src/wp/NotificationBox.xaml
+++ /dev/null
@@ -1,79 +0,0 @@
-?<!--
- Licensed to the Apache Software Foundation (ASF) under one
- or more contributor license agreements.  See the NOTICE file
- distributed with this work for additional information
- regarding copyright ownership.  The ASF licenses this file
- to you under the Apache License, Version 2.0 (the
- "License"); you may not use this file except in compliance
- with the License.  You may obtain a copy of the License at
-
-   http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing,
- software distributed under the License is distributed on an
- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- KIND, either express or implied.  See the License for the
- specific language governing permissions and limitations
- under the License. 
--->
-<UserControl x:Class="WPCordovaClassLib.Cordova.UI.NotificationBox"
-    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
-    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
-    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
-    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
-    mc:Ignorable="d"
-    FontFamily="{StaticResource PhoneFontFamilyNormal}"
-    FontSize="{StaticResource PhoneFontSizeNormal}"
-    Foreground="{StaticResource PhoneForegroundBrush}"
-    d:DesignHeight="800" d:DesignWidth="480" VerticalAlignment="Stretch">
-
-   <!--TitlePanel contains the name of the application and page title-->
-    <Grid x:Name="LayoutRoot"
-          Background="{StaticResource PhoneSemitransparentBrush}">
-        <Grid.RowDefinitions>
-            <RowDefinition Height="*"></RowDefinition>
-        </Grid.RowDefinitions>
-
-        <Grid x:Name="TitlePanel" 
-            Grid.Row="0"
-            VerticalAlignment="Top"
-            Background="{StaticResource PhoneSemitransparentBrush}">
-            <Grid.RowDefinitions>
-                <RowDefinition Height="Auto"></RowDefinition>
-                <RowDefinition Height="*"></RowDefinition>
-                <RowDefinition Height="Auto"></RowDefinition>
-            </Grid.RowDefinitions>
-
-            <TextBlock x:Name="PageTitle" 
-                       Text="Title" 
-                       Margin="10,10" 
-                       Grid.Row="0"
-                       Style="{StaticResource PhoneTextTitle2Style}"/>
-            
-            <ScrollViewer x:Name="ContentScroller"
-                          Grid.Row="1"
-                          MinHeight="120"
-                          Margin="10,10">
-                <StackPanel Orientation="Vertical">
-                    <TextBlock x:Name="SubTitle" 
-                               Text="Subtitle" 
-                               Width="Auto"
-                               TextWrapping="Wrap"
-                               Style="{StaticResource PhoneTextTitle3Style}"/>
-                    <TextBox x:Name="InputText" 
-                             Visibility="Collapsed"/>
-                </StackPanel>
-            </ScrollViewer>
-
-            <ScrollViewer HorizontalScrollBarVisibility="Auto" 
-                          Grid.Row="2"
-                          VerticalScrollBarVisibility="Disabled">       
-                <StackPanel x:Name="ButtonPanel"
-                            Margin="10,10"
-                            Orientation="Horizontal"/>
-            </ScrollViewer>
-
-    </Grid>
-    </Grid>
-
-</UserControl>
diff --git a/src/wp/NotificationBox.xaml.cs b/src/wp/NotificationBox.xaml.cs
deleted file mode 100644
index 50b2f2a..0000000
--- a/src/wp/NotificationBox.xaml.cs
+++ /dev/null
@@ -1,41 +0,0 @@
-?/*
- Licensed to the Apache Software Foundation (ASF) under one
- or more contributor license agreements.  See the NOTICE file
- distributed with this work for additional information
- regarding copyright ownership.  The ASF licenses this file
- to you under the Apache License, Version 2.0 (the
- "License"); you may not use this file except in compliance
- with the License.  You may obtain a copy of the License at
-
-   http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing,
- software distributed under the License is distributed on an
- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- KIND, either express or implied.  See the License for the
- specific language governing permissions and limitations
- under the License. 
-*/
-
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Net;
-using System.Windows;
-using System.Windows.Controls;
-using System.Windows.Documents;
-using System.Windows.Input;
-using System.Windows.Media;
-using System.Windows.Media.Animation;
-using System.Windows.Shapes;
-
-namespace WPCordovaClassLib.Cordova.UI
-{
-    public partial class NotificationBox : UserControl
-    {
-        public NotificationBox()
-        {
-            InitializeComponent();
-        }
-    }
-}
diff --git a/src/wp/notification-beep.wav b/src/wp/notification-beep.wav
deleted file mode 100644
index d0ad085..0000000
Binary files a/src/wp/notification-beep.wav and /dev/null differ
diff --git a/www/blackberry10/beep.js b/www/blackberry10/beep.js
deleted file mode 100644
index da36d64..0000000
--- a/www/blackberry10/beep.js
+++ /dev/null
@@ -1,46 +0,0 @@
-/*
- *
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements.  See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership.  The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License.  You may obtain a copy of the License at
- *
- *   http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied.  See the License for the
- * specific language governing permissions and limitations
- * under the License.
- *
-*/
-
-module.exports = function (quantity) {
-    var count = 0;
-    var beepObj;
-
-    function callback () {
-        if (--count > 0) {
-            play();
-        } else {
-            beepObj.removeEventListener('ended', callback);
-            beepObj = null;
-        }
-    }
-
-    function play () {
-        // create new object every time due to strage playback behaviour
-        beepObj = new Audio('local:///chrome/plugin/cordova-plugin-dialogs/notification-beep.wav'); // eslint-disable-line no-undef
-        beepObj.addEventListener('ended', callback);
-        beepObj.play();
-    }
-
-    count += quantity || 1;
-    if (count > 0) {
-        play();
-    }
-};
diff --git a/www/blackberry10/notification-beep.wav b/www/blackberry10/notification-beep.wav
deleted file mode 100644
index d0ad085..0000000
Binary files a/www/blackberry10/notification-beep.wav and /dev/null differ
diff --git a/www/firefoxos/danger-press.png b/www/firefoxos/danger-press.png
deleted file mode 100644
index d7529b5..0000000
Binary files a/www/firefoxos/danger-press.png and /dev/null differ
diff --git a/www/firefoxos/danger.png b/www/firefoxos/danger.png
deleted file mode 100644
index 400e3ae..0000000
Binary files a/www/firefoxos/danger.png and /dev/null differ
diff --git a/www/firefoxos/default.png b/www/firefoxos/default.png
deleted file mode 100644
index 2ff298a..0000000
Binary files a/www/firefoxos/default.png and /dev/null differ
diff --git a/www/firefoxos/gradient.png b/www/firefoxos/gradient.png
deleted file mode 100644
index b288545..0000000
Binary files a/www/firefoxos/gradient.png and /dev/null differ
diff --git a/www/firefoxos/notification.css b/www/firefoxos/notification.css
deleted file mode 100644
index 34d92b8..0000000
--- a/www/firefoxos/notification.css
+++ /dev/null
@@ -1,248 +0,0 @@
-/*
- *
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements.  See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership.  The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License.  You may obtain a copy of the License at
- *
- *   http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied.  See the License for the
- * specific language governing permissions and limitations
- * under the License.
- *
-*/
-
-/* Main dialog setup */
-form[role="dialog"] {
-  background:
-    url(../img/pattern.png) repeat left top,
-    url(../img/gradient.png) no-repeat left top / 100% 100%;
-  overflow: hidden;
-  position: absolute;
-  z-index: 100;
-  top: 0;
-  left: 0;
-  right: 0;
-  bottom: 0;
-  padding: 1.5rem 0 7rem;
-  font-family: "MozTT", Sans-serif;
-  font-size: 0;
-  /* Using font-size: 0; we avoid the unwanted visual space (about 3px)
-  created by white-spaces and break lines in the code betewen inline-block elements */
-  color: #fff;
-  text-align: left;
-}
-
-form[role="dialog"]:before {
-  content: "";
-  display: inline-block;
-  vertical-align: middle;
-  width: 0.1rem;
-  height: 100%;
-  margin-left: -0.1rem;
-}
-
-form[role="dialog"] > section {
-  font-weight: lighter;
-  font-size: 1.8rem;
-  color: #FAFAFA;
-  padding: 0 1.5rem;
-  -moz-box-sizing: padding-box;
-  width: 100%;
-  display: inline-block;
-  overflow-y: scroll;
-  max-height: 100%;
-  vertical-align: middle;
-  white-space: normal;
-}
-
-form[role="dialog"] h1 {
-  font-weight: normal;
-  font-size: 1.6rem;
-  line-height: 1.5em;
-  color: #fff;
-  margin: 0;
-  padding: 0 1.5rem 1rem;
-  border-bottom: 0.1rem solid #686868;
-}
-
-/* Menu & buttons setup */
-form[role="dialog"] menu {
-  margin: 0;
-  padding: 1.5rem;
-  padding-bottom: 0.5rem;
-  border-top: solid 0.1rem rgba(255, 255, 255, 0.1);
-  background: #2d2d2d url(../img/pattern.png) repeat left top;
-  display: block;
-  overflow: hidden;
-  position: absolute;
-  left: 0;
-  right: 0;
-  bottom: 0;
-  text-align: center;
-}
-
-form[role="dialog"] menu button::-moz-focus-inner {
-  border: none;
-  outline: none;
-}
-form[role="dialog"] menu button {
-  width: 100%;
-  height: 2.4rem;
-  margin: 0 0 1rem;
-  padding: 0 1.5rem;
-  -moz-box-sizing: border-box;
-  display: inline-block;
-  vertical-align: middle;
-  text-overflow: ellipsis;
-  white-space: nowrap;
-  overflow: hidden;
-  background: #fafafa url(../img/default.png) repeat-x left bottom/ auto 100%;
-  border: 0.1rem solid #a6a6a6;
-  border-radius: 0.3rem;
-  font: 500 1.2rem/2.4rem 'MozTT', Sans-serif;
-  color: #333;
-  text-align: center;
-  text-shadow: 0.1rem 0.1rem 0 rgba(255,255,255,0.3);
-  text-decoration: none;
-  outline: none;
-}
-
-/* Press (default & recommend) */
-form[role="dialog"] menu button:active,
-form[role="dialog"] menu button.recommend:active,
-a.recommend[role="button"]:active  {
-  border-color: #008aaa;
-  color: #333;
-}
-
-/* Recommend */
-form[role="dialog"] menu button.recommend {
-  background-image: url(../img/recommend.png);
-  background-color: #00caf2;
-  border-color: #008eab;
-}
-
-/* Danger */
-form[role="dialog"] menu button.danger,
-a.danger[role="button"] {
-  background-image: url(../img/danger.png);
-  background-color: #b70404;
-  color: #fff;
-  text-shadow: none;
-  border-color: #820000;
-}
-
-/* Danger Press */
-form[role="dialog"] menu button.danger:active {
-  background-image: url(../img/danger-press.png);
-  background-color: #890707;
-}
-
-/* Disabled */
-form[role="dialog"] > menu > button[disabled] {
-  background: #5f5f5f;
-  color: #4d4d4d;
-  text-shadow: none;
-  border-color: #4d4d4d;
-  pointer-events: none;
-}
-
-
-form[role="dialog"] menu button:nth-child(even) {
-  margin-left: 1rem;
-}
-
-form[role="dialog"] menu button,
-form[role="dialog"] menu button:nth-child(odd) {
-  margin: 0 0 1rem 0;
-}
-
-form[role="dialog"] menu button {
-  width: calc((100% - 1rem) / 2);
-}
-
-form[role="dialog"] menu button.full {
-  width: 100%;
-}
-
-/* Specific component code */
-form[role="dialog"] p {
-  word-wrap: break-word;
-  margin: 1rem 0 0;
-  padding: 0 1.5rem 1rem;
-  line-height: 3rem;
-}
-
-form[role="dialog"] p img {
-  float: left;
-  margin-right: 2rem;
-}
-
-form[role="dialog"] p strong {
-  font-weight: lighter;
-}
-
-form[role="dialog"] p small {
-  font-size: 1.4rem;
-  font-weight: normal;
-  color: #cbcbcb;
-  display: block;
-}
-
-form[role="dialog"] dl {
-  border-top: 0.1rem solid #686868;
-  margin: 1rem 0 0;
-  overflow: hidden;
-  padding-top: 1rem;
-  font-size: 1.6rem;
-  line-height: 2.2rem;
-}
-
-form[role="dialog"] dl > dt {
-  clear: both;
-  float: left;
-  width: 7rem;
-  padding-left: 1.5rem;
-  font-weight: 500;
-  text-align: left;
-}
-
-form[role="dialog"] dl > dd {
-  padding-right: 1.5rem;
-  font-weight: 300;
-  text-overflow: ellipsis;
-  vertical-align: top;
-  overflow: hidden;
-}
-
-/* input areas */
-input[type="text"],
-input[type="password"],
-input[type="email"],
-input[type="tel"],
-input[type="search"],
-input[type="url"],
-input[type="number"],
-textarea {
-  -moz-box-sizing: border-box;
-  display: block;
-  overflow: hidden;
-  width: 100%;
-  height: 3rem;
-  resize: none;
-  padding: 0 1rem;
-  font-size: 1.6rem;
-  line-height: 3rem;
-  border: 0.1rem solid #ccc;
-  border-radius: 0.3rem;
-  box-shadow: none; /* override the box-shadow from the system (performance issue) */
-  background: #fff url(input_areas/images/ui/shadow.png) repeat-x;
-}
diff --git a/www/firefoxos/pattern.png b/www/firefoxos/pattern.png
deleted file mode 100644
index af03f56..0000000
Binary files a/www/firefoxos/pattern.png and /dev/null differ
diff --git a/www/firefoxos/recommend.png b/www/firefoxos/recommend.png
deleted file mode 100644
index 42aed39..0000000
Binary files a/www/firefoxos/recommend.png and /dev/null differ


 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org