cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ste...@apache.org
Subject cordova-lib git commit: CB-12643 : removed references to wp8
Date Wed, 19 Apr 2017 19:00:27 GMT
Repository: cordova-lib
Updated Branches:
  refs/heads/master 41bc8dafa -> 6f0a5611a


CB-12643 : removed references to wp8

 This closes #539


Project: http://git-wip-us.apache.org/repos/asf/cordova-lib/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-lib/commit/6f0a5611
Tree: http://git-wip-us.apache.org/repos/asf/cordova-lib/tree/6f0a5611
Diff: http://git-wip-us.apache.org/repos/asf/cordova-lib/diff/6f0a5611

Branch: refs/heads/master
Commit: 6f0a5611aadb56cb1bba8beeb3c22b45eeffc974
Parents: 41bc8da
Author: Audrey So <audreyso@apache.org>
Authored: Thu Apr 6 16:12:48 2017 -0700
Committer: Steve Gill <stevengill97@gmail.com>
Committed: Wed Apr 19 11:52:05 2017 -0700

----------------------------------------------------------------------
 .../spec-cordova/metadata/wp8_parser.spec.js    | 258 -------------------
 cordova-lib/spec-cordova/prepare.spec.js        |   2 -
 cordova-lib/spec-plugman/platforms/wp8.spec.js  | 153 -----------
 .../org.test.plugins.dummyplugin/plugin.xml     |  34 ---
 .../org.test.plugins.faultyplugin/plugin.xml    |  14 -
 cordova-lib/src/cordova/platform.js             |   4 -
 cordova-lib/src/platforms/platformsConfig.json  |   9 -
 cordova-lib/src/plugman/platforms/wp8.js        | 118 ---------
 8 files changed, 592 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-lib/blob/6f0a5611/cordova-lib/spec-cordova/metadata/wp8_parser.spec.js
----------------------------------------------------------------------
diff --git a/cordova-lib/spec-cordova/metadata/wp8_parser.spec.js b/cordova-lib/spec-cordova/metadata/wp8_parser.spec.js
deleted file mode 100644
index 9471874..0000000
--- a/cordova-lib/spec-cordova/metadata/wp8_parser.spec.js
+++ /dev/null
@@ -1,258 +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.
-*/
-
-/* jshint boss:true, sub:true */
-
-var wp8Parser = require('../../src/cordova/metadata/wp8_parser'),
-    util = require('../../src/cordova/util'),
-    path = require('path'),
-    shell = require('shelljs'),
-    fs = require('fs'),
-    et = require('elementtree'),
-    xmlHelpers = require('cordova-common').xmlHelpers,
-    Q = require('q'),
-    child_process = require('child_process'),
-    config = require('../../src/cordova/config'),
-    Parser = require('../../src/cordova/metadata/parser'),
-    ConfigParser = require('cordova-common').ConfigParser,
-    CordovaError = require('cordova-common').CordovaError,
-    HooksRunner = require('../../src/hooks/HooksRunner');
-
-// Create a real config object before mocking out everything.
-var cfg = new ConfigParser(path.join(__dirname, '..', 'test-config.xml'));
-
-var MANIFEST_XML, PROJ_XML, MAINPAGEXAML_XML, XAML_XML;
-MANIFEST_XML = PROJ_XML = XAML_XML = '<foo><App Title="s"><PrimaryToken /><RootNamespace/><SilverlightAppEntry/><XapFilename/><AssemblyName/></App></foo>';
-MAINPAGEXAML_XML = '<phone:PhoneApplicationPage x:Class="io.cordova.hellocordova.MainPage"'
+
-    'FontFamily="{StaticResource PhoneFontFamilyNormal}" FontSize="{StaticResource PhoneFontSizeNormal}"'
+
-    'Foreground="{StaticResource PhoneForegroundBrush}" Background="Black"' +
-    'SupportedOrientations="PortraitOrLandscape" Orientation="VAL"' +
-    'shell:SystemTray.IsVisible="True" d:DesignHeight="768" d:DesignWidth="480" xmlns:my="clr-namespace:WPCordovaClassLib">'
+
-    '<Grid x:Name="LayoutRoot" Background="Transparent" HorizontalAlignment="Stretch">'
+
-        '<Grid.RowDefinitions>' +
-            '<RowDefinition Height="*"/>' +
-        '</Grid.RowDefinitions>' +
-        '<my:CordovaView HorizontalAlignment="Stretch" Margin="0,0,0,0"  x:Name="CordovaView"
VerticalAlignment="Stretch" />' +
-    '</Grid>' +
-    '</phone:PhoneApplicationPage>';
-
-describe('wp8 project parser', function() {
-    var proj = '/some/path';
-    var exists, exec, custom, readdir, config_read;
-    var manifestXml, projXml, mainPageXamlXml;
-    beforeEach(function() {
-        exists = spyOn(fs, 'existsSync').and.returnValue(true);
-        exec = spyOn(child_process, 'exec').and.callFake(function(cmd, opts, cb) {
-            (cb || opts)(0, '', '');
-        });
-        custom = spyOn(config, 'has_custom_path').and.returnValue(false);
-        config_read = spyOn(config, 'read').and.callFake(function() {
-            return custom() ? {
-                lib: {
-                    wp8: {
-                        url: custom()
-                    }
-                }
-            }
-            : ({});
-        });
-        readdir = spyOn(fs, 'readdirSync').and.returnValue(['test.csproj']);
-        projXml = manifestXml = mainPageXamlXml = null;
-        spyOn(xmlHelpers, 'parseElementtreeSync').and.callFake(function(path) {
-            if (/WMAppManifest.xml$/.exec(path)) {
-                return manifestXml = new et.ElementTree(et.XML(MANIFEST_XML));
-            } else if (/csproj$/.exec(path)) {
-                return projXml = new et.ElementTree(et.XML(PROJ_XML));
-            } else if (/MainPage.xaml$/.exec(path)) {
-                return mainPageXamlXml = new et.ElementTree(et.XML(MAINPAGEXAML_XML));
-            } else if (/xaml$/.exec(path)) {
-                return new et.ElementTree(et.XML(XAML_XML));
-            } else {
-                throw new CordovaError('Unexpected parseElementtreeSync: ' + path);
-            }
-        });
-    });
-
-    function wrapper(p, done, post) {
-        p.then(post, function(err) {
-            expect(err).toBeUndefined();
-        }).fin(done);
-    }
-
-    function errorWrapper(p, done, post) {
-        p.then(function() {
-            expect('this call').toBe('fail');
-        }, post).fin(done);
-    }
-
-    describe('constructions', function() {
-        it('should throw if provided directory does not contain a csproj file', function()
{
-            readdir.and.returnValue([]);
-            expect(function() {
-                new wp8Parser(proj);
-            }).toThrow();
-        });
-        it('should create an instance with path, manifest properties', function() {
-            expect(function() {
-                var p = new wp8Parser(proj);
-                expect(p.wp8_proj_dir).toEqual(proj);
-                expect(p.manifest_path).toEqual(path.join(proj, 'Properties', 'WMAppManifest.xml'));
-            }).not.toThrow();
-        });
-        it('should be an instance of Parser', function() {
-            expect(new wp8Parser(proj) instanceof Parser).toBe(true);
-        });
-        it('should call super with the correct arguments', function() {
-            var call = spyOn(Parser, 'call');
-            var p = new wp8Parser(proj);
-            expect(call).toHaveBeenCalledWith(p, 'wp8', proj);
-        });
-    });
-
-    describe('instance', function() {
-        var p, cp, rm, is_cordova, write, read, mv, mkdir, getOrientation;
-        var wp8_proj = path.join(proj, 'platforms', 'wp8');
-        beforeEach(function() {
-            p = new wp8Parser(wp8_proj);
-            cp = spyOn(shell, 'cp');
-            rm = spyOn(shell, 'rm');
-            mv = spyOn(shell, 'mv');
-            mkdir = spyOn(shell, 'mkdir');
-            is_cordova = spyOn(util, 'isCordova').and.returnValue(proj);
-            write = spyOn(fs, 'writeFileSync');
-            read = spyOn(fs, 'readFileSync').and.returnValue('');
-            getOrientation = spyOn(p.helper, 'getOrientation');
-        });
-
-        describe('update_from_config method', function() {
-            beforeEach(function() {
-                cfg.name = function() { return 'testname'; };
-                cfg.content = function() { return 'index.html'; };
-                cfg.packageName = function() { return 'testpkg'; };
-                cfg.version = function() { return 'one point oh'; };
-                readdir.and.returnValue(['test.sln']);
-            });
-
-            it('should write out the app name to wmappmanifest.xml', function() {
-                p.update_from_config(cfg);
-                var appEl = manifestXml.getroot().find('.//App');
-                expect(appEl.attrib.Title).toEqual('testname');
-            });
-            it('should write out the app id to csproj file', function() {
-                p.update_from_config(cfg);
-                var appEl = projXml.getroot().find('.//RootNamespace');
-                expect(appEl.text).toContain('testpkg');
-            });
-            it('should write out the app version to wmappmanifest.xml', function() {
-                p.update_from_config(cfg);
-                var appEl = manifestXml.getroot().find('.//App');
-                expect(appEl.attrib.Version).toEqual('one point oh');
-            });
-            it('should write out the orientation preference value', function() {
-                getOrientation.and.callThrough();
-                p.update_from_config(cfg);
-                expect(mainPageXamlXml.getroot().attrib['SupportedOrientations']).toEqual('portrait');
-                expect(mainPageXamlXml.getroot().attrib['Orientation']).toEqual('portrait');
-            });
-            it('should handle no orientation', function() {
-                getOrientation.and.returnValue('');
-                p.update_from_config(cfg);
-                expect(mainPageXamlXml.getroot().attrib['SupportedOrientations']).toBeUndefined();
-                expect(mainPageXamlXml.getroot().attrib['Orientation']).toBeUndefined();
-            });
-            it('should handle default orientation', function() {
-                getOrientation.and.returnValue(p.helper.ORIENTATION_DEFAULT);
-                p.update_from_config(cfg);
-                expect(mainPageXamlXml.getroot().attrib['SupportedOrientations']).toBeUndefined();
-                expect(mainPageXamlXml.getroot().attrib['Orientation']).toBeUndefined();
-            });
-            it('should handle portrait orientation', function() {
-                getOrientation.and.returnValue(p.helper.ORIENTATION_PORTRAIT);
-                p.update_from_config(cfg);
-                expect(mainPageXamlXml.getroot().attrib['SupportedOrientations']).toEqual('portrait');
-                expect(mainPageXamlXml.getroot().attrib['Orientation']).toEqual('portrait');
-            });
-            it('should handle landscape orientation', function() {
-                getOrientation.and.returnValue(p.helper.ORIENTATION_LANDSCAPE);
-                p.update_from_config(cfg);
-                expect(mainPageXamlXml.getroot().attrib['SupportedOrientations']).toEqual('landscape');
-                expect(mainPageXamlXml.getroot().attrib['Orientation']).toEqual('landscape');
-            });
-            it('should handle custom orientation', function() {
-                getOrientation.and.returnValue('some-custom-orientation');
-                p.update_from_config(cfg);
-                expect(mainPageXamlXml.getroot().attrib['SupportedOrientations']).toBeUndefined();
-                expect(mainPageXamlXml.getroot().attrib['Orientation']).toEqual('some-custom-orientation');
-            });
-        });
-        describe('www_dir method', function() {
-            it('should return www', function() {
-                expect(p.www_dir()).toEqual(path.join(wp8_proj, 'www'));
-            });
-        });
-        describe('config_xml method', function() {
-            it('should return the location of the config.xml', function() {
-                expect(p.config_xml()).toEqual(path.join(wp8_proj, 'config.xml'));
-            });
-        });
-        describe('update_www method', function() {
-            var update_project;
-            beforeEach(function() {
-                update_project = spyOn(p, 'update_project');
-            });
-            it('should rm project-level www and cp in platform agnostic www', function()
{
-                p.update_www();
-                expect(rm).toHaveBeenCalled();
-                expect(cp).toHaveBeenCalled();
-            });
-        });
-        describe('update_project method', function() {
-            var config, www, svn, fire;
-            beforeEach(function() {
-                config = spyOn(p, 'update_from_config');
-                www = spyOn(p, 'update_www');
-                svn = spyOn(util, 'deleteSvnFolders');
-                exists.and.returnValue(false);
-                fire = spyOn(HooksRunner.prototype, 'fire').and.returnValue(Q());
-            });
-            it('should call update_from_config', function(done) {
-                wrapper(p.update_project(), done, function() {
-                    expect(config).toHaveBeenCalled();
-                });
-            });
-            it('should throw if update_from_config throws', function(done) {
-                var err = new Error('uh oh!');
-                config.and.callFake(function() { throw err; });
-                errorWrapper(p.update_project({}), done, function(e) {
-                    expect(e).toEqual(err);
-                });
-            });
-            it('should not call update_www', function(done) {
-                wrapper(p.update_project(), done, function() {
-                    expect(www).not.toHaveBeenCalled();
-                });
-            });
-            it('should call deleteSvnFolders', function(done) {
-                wrapper(p.update_project(), done, function() {
-                    expect(svn).toHaveBeenCalled();
-                });
-            });
-        });
-    });
-});

http://git-wip-us.apache.org/repos/asf/cordova-lib/blob/6f0a5611/cordova-lib/spec-cordova/prepare.spec.js
----------------------------------------------------------------------
diff --git a/cordova-lib/spec-cordova/prepare.spec.js b/cordova-lib/spec-cordova/prepare.spec.js
index 4f75eb1..029841d 100644
--- a/cordova-lib/spec-cordova/prepare.spec.js
+++ b/cordova-lib/spec-cordova/prepare.spec.js
@@ -143,7 +143,6 @@ describe('prepare command', function() {
                            'osx',
                            'android',
                            'ubuntu',
-                           'wp8',
                            'blackberry10',
                            'windows',
                            'webos',
@@ -156,7 +155,6 @@ describe('prepare command', function() {
                            path.join('/','some','path','platforms','osx','www'),
                            path.join('/','some','path','platforms','android','www'),
                            path.join('/','some','path','platforms','ubuntu','www'),
-                           path.join('/','some','path','platforms','wp8','www'),
                            path.join('/','some','path','platforms','blackberry10','www'),
                            path.join('/','some','path','platforms','windows','www'),
                            path.join('/','some','path','platforms','webos','www'),

http://git-wip-us.apache.org/repos/asf/cordova-lib/blob/6f0a5611/cordova-lib/spec-plugman/platforms/wp8.spec.js
----------------------------------------------------------------------
diff --git a/cordova-lib/spec-plugman/platforms/wp8.spec.js b/cordova-lib/spec-plugman/platforms/wp8.spec.js
deleted file mode 100644
index c0dad0c..0000000
--- a/cordova-lib/spec-plugman/platforms/wp8.spec.js
+++ /dev/null
@@ -1,153 +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 wp8 = require('../../src/plugman/platforms/wp8'),
-    common  = require('../../src/plugman/platforms/common'),
-    install = require('../../src/plugman/install'),
-    path    = require('path'),
-    fs      = require('fs'),
-    shell   = require('shelljs'),
-    os      = require('os'),
-    temp    = path.join(os.tmpdir(), 'plugman'),
-    plugins_dir = path.join(temp, 'cordova', 'plugins'),
-    xml_helpers = require('cordova-common').xmlHelpers,
-    dummyplugin = path.join(__dirname, '..', 'plugins', 'org.test.plugins.dummyplugin'),
-    faultyplugin = path.join(__dirname, '..', 'plugins', 'org.test.plugins.faultyplugin'),
-    wp8_project = path.join(__dirname, '..', 'projects', 'wp8');
-
-var PluginInfo = require('cordova-common').PluginInfo;
-
-var dummyPluginInfo = new PluginInfo(dummyplugin);
-var dummy_id = dummyPluginInfo.id;
-var valid_source = dummyPluginInfo.getSourceFiles('wp8');
-
-var faultyPluginInfo = new PluginInfo(faultyplugin);
-var faulty_id = faultyPluginInfo.id;
-var invalid_source = faultyPluginInfo.getSourceFiles('wp8');
-
-shell.mkdir('-p', temp);
-shell.cp('-rf', path.join(wp8_project, '*'), temp);
-var proj_files = wp8.parseProjectFile(temp);
-shell.rm('-rf', temp);
-
-function copyArray(arr) {
-    return Array.prototype.slice.call(arr, 0);
-}
-
-describe('wp8 project handler', function() {
-
-    beforeEach(function() {
-        shell.mkdir('-p', temp);
-        shell.mkdir('-p', plugins_dir);
-    });
-    afterEach(function() {
-        shell.rm('-rf', temp);
-    });
-
-    describe('www_dir method', function() {
-        it('Test 001 : should return cordova-wp8 project www location using www_dir', function()
{
-            expect(wp8.www_dir(path.sep)).toEqual(path.sep + 'www');
-        });
-    });
-    describe('package_name method', function() {
-        it('Test 002 : should return a wp8 project\'s proper package name', function() {
-            expect(wp8.package_name(wp8_project)).toEqual('{F3A8197B-6B16-456D-B5F4-DD4F04AC0BEC}');
-        });
-    });
-
-    describe('parseProjectFile method', function() {
-        it('Test 003 : should throw if project is not an wp8 project', function() {
-            expect(function() {
-                wp8.parseProjectFile(temp);
-            }).toThrow(new Error ('does not appear to be a Windows Phone project (no .csproj
file)'));
-        });
-    });
-
-    describe('installation', function() {
-        beforeEach(function() {
-            shell.mkdir('-p', temp);
-        });
-        afterEach(function() {
-            shell.rm('-rf', temp);
-        });
-        describe('of <source-file> elements', function() {
-            beforeEach(function() {
-                shell.cp('-rf', path.join(wp8_project, '*'), temp);
-            });
-            it('Test 004 : should copy stuff from one location to another by calling common.copyFile',
function() {
-                var source = copyArray(valid_source);
-                var s = spyOn(common, 'copyFile');
-                wp8['source-file'].install(source[0], dummyplugin, temp, dummy_id, null,
proj_files);
-                expect(s).toHaveBeenCalledWith(dummyplugin, 'src/wp8/DummyPlugin.cs', temp,
path.join('Plugins', 'org.test.plugins.dummyplugin', 'DummyPlugin.cs'), false);
-            });
-            it('Test 005 : should throw if source-file src cannot be found', function() {
-                var source = copyArray(invalid_source);
-                expect(function() {
-                    wp8['source-file'].install(source[1], faultyplugin, temp, faulty_id,
null, proj_files);
-                }).toThrow(new Error('"' + path.resolve(faultyplugin, 'src/wp8/NotHere.cs')
+ '" not found!'));
-            });
-            it('Test 006 : should throw if source-file target already exists', function()
{
-                var source = copyArray(valid_source);
-                var target = path.join(temp, 'Plugins', dummy_id, 'DummyPlugin.cs');
-                shell.mkdir('-p', path.dirname(target));
-                fs.writeFileSync(target, 'some bs', 'utf-8');
-                expect(function() {
-                    wp8['source-file'].install(source[0], dummyplugin, temp, dummy_id, null,
proj_files);
-                }).toThrow(new Error ('"' + target + '" already exists!'));
-            });
-        });
-        describe('of <config-changes> elements', function() {
-            beforeEach(function() {
-                shell.cp('-rf', path.join(wp8_project, '*'), temp);
-            });
-            it('Test 007 : should process and pass the after parameter to graftXML', function
(done) {
-                var graftXML = spyOn(xml_helpers, 'graftXML').and.callThrough();
-                return install('wp8', temp, dummyplugin, plugins_dir, {})
-                .then(function() {
-                    expect(graftXML).toHaveBeenCalledWith(jasmine.any(Object), jasmine.any(Array),
'/Deployment/App', 'Tokens');
-                    expect(graftXML).toHaveBeenCalledWith(jasmine.any(Object), jasmine.any(Array),
'/Deployment/App/Extensions', 'Extension');
-                    expect(graftXML).toHaveBeenCalledWith(jasmine.any(Object), jasmine.any(Array),
'/Deployment/App/Extensions', 'FileTypeAssociation;Extension');
-                    done();
-                });
-            });
-        });
-    });
-
-    describe('uninstallation', function() {
-        beforeEach(function() {
-            shell.mkdir('-p', temp);
-            shell.mkdir('-p', plugins_dir);
-            shell.cp('-rf', path.join(wp8_project, '*'), temp);
-        });
-        afterEach(function() {
-            shell.rm('-rf', temp);
-        });
-        describe('of <source-file> elements', function() {
-            it('Test 009 : should remove stuff by calling common.removeFile', function(done)
{
-                var s = spyOn(common, 'removeFile');
-                install('wp8', temp, dummyplugin, plugins_dir, {})
-                .then(function() {
-                    var source = copyArray(valid_source);
-                    wp8['source-file'].uninstall(source[0], temp, dummy_id, null, proj_files);
-                    expect(s).toHaveBeenCalledWith(temp, path.join('Plugins', 'org.test.plugins.dummyplugin',
'DummyPlugin.cs'));
-                    done();
-                });
-            });
-        });
-    });
-});

http://git-wip-us.apache.org/repos/asf/cordova-lib/blob/6f0a5611/cordova-lib/spec-plugman/plugins/org.test.plugins.dummyplugin/plugin.xml
----------------------------------------------------------------------
diff --git a/cordova-lib/spec-plugman/plugins/org.test.plugins.dummyplugin/plugin.xml b/cordova-lib/spec-plugman/plugins/org.test.plugins.dummyplugin/plugin.xml
index 5cd13cd..4b27715 100644
--- a/cordova-lib/spec-plugman/plugins/org.test.plugins.dummyplugin/plugin.xml
+++ b/cordova-lib/spec-plugman/plugins/org.test.plugins.dummyplugin/plugin.xml
@@ -111,40 +111,6 @@
         <framework src="src/ios/Custom.framework" custom="true" />
     </platform>
 
-    <!-- wp8 -->
-    <platform name="wp8">
-        <config-file target="config.xml" parent="/*">
-            <feature id="dummyPlugin" required="true" version="1.0.0.0"/>
-        </config-file>
-
-        <config-file target="Properties/WMAppManifest.xml" parent="/Deployment/App" after="Tokens">
-            <Extensions />
-        </config-file>
-
-        <config-file target="Properties/WMAppManifest.xml" parent="/Deployment/App/Extensions"
after="Extension">
-            <Extension ExtensionName="DummyExtension1" ConsumerID="{5B04B775-356B-4AA0-AAF8-6491FFEA5661}"
TaskID="_default" ExtraFile="Extensions\\Extras.xml" />
-            <Extension ExtensionName="DummyExtension2" ConsumerID="{5B04B775-356B-4AA0-AAF8-6491FFEA5661}"
TaskID="_default" ExtraFile="Extensions\\Extras.xml" />
-        </config-file>
-
-        <config-file target="Properties/WMAppManifest.xml" parent="/Deployment/App/Extensions"
after="FileTypeAssociation;Extension">
-            <FileTypeAssociation TaskID="_default" Name="DummyFileType1" NavUriFragment="fileToken=%s">
-                <SupportedFileTypes>
-                    <FileType ContentType="application/dummy1">.dummy1</FileType>
-                </SupportedFileTypes>
-            </FileTypeAssociation>
-            <FileTypeAssociation TaskID="_default" Name="DummyFileType2" NavUriFragment="fileToken=%s">
-                <SupportedFileTypes>
-                    <FileType ContentType="application/dummy2">.dummy2</FileType>
-                </SupportedFileTypes>
-            </FileTypeAssociation>
-        </config-file>
-
-        <source-file src="src/wp8/DummyPlugin.cs"/>
-        <js-module src="www/dummyplugin.js" name="Dummy">
-            <clobbers target="dummy" />
-        </js-module>
-    </platform>
-
     <!-- tizen -->
     <platform name="tizen">
         <source-file src="src/tizen/dummer.js"/>

http://git-wip-us.apache.org/repos/asf/cordova-lib/blob/6f0a5611/cordova-lib/spec-plugman/plugins/org.test.plugins.faultyplugin/plugin.xml
----------------------------------------------------------------------
diff --git a/cordova-lib/spec-plugman/plugins/org.test.plugins.faultyplugin/plugin.xml b/cordova-lib/spec-plugman/plugins/org.test.plugins.faultyplugin/plugin.xml
index 36a7d6a..4e2128f 100644
--- a/cordova-lib/spec-plugman/plugins/org.test.plugins.faultyplugin/plugin.xml
+++ b/cordova-lib/spec-plugman/plugins/org.test.plugins.faultyplugin/plugin.xml
@@ -91,20 +91,6 @@
         <lib-file src="src/blackberry10/simulator/echoJnext.so" target-dir="ext-qnx/com.cordova.echo/simulator"
/>
     </platform>
 
-    <!-- wp8 -->
-    <platform name="wp8">
-        <config-file target="config.xml" parent="/*">
-            <feature name="org.test.plugins.faultyplugin">
-                <param name="wp-package" value="org.test.plugins.faultyplugin"/>
-            </feature>
-        </config-file>
-
-        <source-file src="src/wp8/org.test.plugins.faultyplugin.cs" />
-
-        <!-- this doesn't exist -->
-        <source-file src="src/wp8/NotHere.cs" />
-    </platform>
-
     <!-- windows -->
     <platform name="windows">
         <config-file target="config.xml" parent="/*">

http://git-wip-us.apache.org/repos/asf/cordova-lib/blob/6f0a5611/cordova-lib/src/cordova/platform.js
----------------------------------------------------------------------
diff --git a/cordova-lib/src/cordova/platform.js b/cordova-lib/src/cordova/platform.js
index fb11625..1c5892f 100644
--- a/cordova-lib/src/cordova/platform.js
+++ b/cordova-lib/src/cordova/platform.js
@@ -106,9 +106,6 @@ function addHelper(cmd, hooksRunner, projectRoot, targets, opts) {
                     platform = null;
                 }
 
-                if(platform === 'wp8') {
-                    events.emit('warn', 'wp8 has been deprecated. Please use windows instead.');
-                }
                 if(fs.existsSync(path.join(projectRoot,'package.json'))) {
                     pkgJson = cordova_util.requireNoCache(path.join(projectRoot, 'package.json'));
                 }
@@ -356,7 +353,6 @@ function downloadPlatform(projectRoot, platform, version, opts) {
             return lazy_load.git_clone(git_url, branchToCheckout).fail(function(err) {
                 // If it looks like a url, but cannot be cloned, try handling it differently.
                 // it's because it's a tarball of the form:
-                //     - wp8@https://git-wip-us.apache.org/repos/asf?p=cordova-wp8.git;a=snapshot;h=3.7.0;sf=tgz
                 //     - https://api.github.com/repos/msopenTech/cordova-browser/tarball/my-branch
                 events.emit('verbose', err.message);
                 events.emit('verbose', 'Cloning failed. Let\'s try handling it as a tarball');

http://git-wip-us.apache.org/repos/asf/cordova-lib/blob/6f0a5611/cordova-lib/src/platforms/platformsConfig.json
----------------------------------------------------------------------
diff --git a/cordova-lib/src/platforms/platformsConfig.json b/cordova-lib/src/platforms/platformsConfig.json
index 18a4159..2ac25be 100644
--- a/cordova-lib/src/platforms/platformsConfig.json
+++ b/cordova-lib/src/platforms/platformsConfig.json
@@ -33,15 +33,6 @@
         "version": "~4.3.4",
         "deprecated": false
     },
-    "wp8": {
-        "hostos": ["win32"],
-        "parser_file": "../cordova/metadata/wp8_parser",
-        "handler_file": "../plugman/platforms/wp8",
-        "url": "https://git-wip-us.apache.org/repos/asf?p=cordova-wp8.git",
-        "version": "~3.8.2",
-        "altplatform": "wp",
-        "deprecated": true
-    },
     "blackberry10": {
         "parser_file": "../cordova/metadata/blackberry10_parser",
         "handler_file": "../plugman/platforms/blackberry10",

http://git-wip-us.apache.org/repos/asf/cordova-lib/blob/6f0a5611/cordova-lib/src/plugman/platforms/wp8.js
----------------------------------------------------------------------
diff --git a/cordova-lib/src/plugman/platforms/wp8.js b/cordova-lib/src/plugman/platforms/wp8.js
deleted file mode 100644
index 782b2cd..0000000
--- a/cordova-lib/src/plugman/platforms/wp8.js
+++ /dev/null
@@ -1,118 +0,0 @@
-/*
- *
- * Copyright 2013 Jesse MacFadyen
- *
- * 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.
- *
-*/
-
-/* jshint laxcomma:true, sub:true */
-
-var common = require('./common'),
-    path = require('path'),
-    glob = require('glob'),
-    csproj = require('../../util/windows/csproj'),
-    events = require('cordova-common').events,
-    xml_helpers = require('cordova-common').xmlHelpers;
-
-module.exports = {
-    www_dir:function(project_dir) {
-        return path.join(project_dir, 'www');
-    },
-    package_name:function(project_dir) {
-        return xml_helpers.parseElementtreeSync(path.join(project_dir, 'Properties', 'WMAppManifest.xml')).find('App').attrib.ProductID;
-    },
-    parseProjectFile:function(project_dir) {
-        var project_files = glob.sync('*.csproj', {
-            cwd:project_dir
-        });
-        if (project_files.length === 0) {
-            throw new Error('does not appear to be a Windows Phone project (no .csproj file)');
-        }
-        return new csproj(path.join(project_dir, project_files[0]));
-    },
-    'source-file':{
-        install:function(obj, plugin_dir, project_dir, plugin_id, options, project_file)
{
-            var dest = path.join('Plugins', plugin_id, obj.targetDir ? obj.targetDir : '',
path.basename(obj.src));
-
-            common.copyNewFile(plugin_dir, obj.src, project_dir, dest);
-            // add reference to this file to csproj.
-            project_file.addSourceFile(dest);
-        },
-        uninstall:function(obj, project_dir, plugin_id, options, project_file) {
-            var dest = path.join('Plugins', plugin_id, obj.targetDir ? obj.targetDir : '',
path.basename(obj.src));
-            common.removeFile(project_dir, dest);
-            // remove reference to this file from csproj.
-            project_file.removeSourceFile(dest);
-        }
-    },
-    'header-file': {
-        install:function(obj, plugin_dir, project_dir, plugin_id, options) {
-            events.emit('verbose', 'header-file.install is not supported for wp8');
-        },
-        uninstall:function(obj, project_dir, plugin_id, options) {
-            events.emit('verbose', 'header-file.uninstall is not supported for wp8');
-        }
-    },
-    'resource-file':{
-        install:function(obj, plugin_dir, project_dir, plugin_id, options, project_file)
{
-            events.emit('verbose', 'resource-file.install is not supported for wp8');
-        },
-        uninstall:function(obj, project_dir, plugin_id, options, project_file) {
-            events.emit('verbose', 'resource-file.uninstall is not supported for wp8');
-        }
-    },
-    'framework':{
-        install:function(obj, plugin_dir, project_dir, plugin_id, options, project_file)
{
-            events.emit('verbose', 'wp8 framework install :: ' + plugin_id  );
-
-            var src = obj.src;
-            var dest = src; // if !isCustom, we will just add a reference to the file in
place
-            var isCustom = obj.custom;
-
-            if(isCustom) {
-                dest = path.join('plugins', plugin_id, path.basename(src));
-                common.copyFile(plugin_dir, src, project_dir, dest);
-            }
-
-            project_file.addReference(dest);
-
-        },
-        uninstall:function(obj, project_dir, plugin_id, options, project_file) {
-            events.emit('verbose', 'wp8 framework uninstall :: ' + plugin_id  );
-
-            var src = obj.src;
-            var isCustom = obj.custom;
-
-            if(isCustom) {
-                var dest = path.join('plugins', plugin_id);
-                common.removeFile(project_dir, dest);
-            }
-
-            project_file.removeReference(src);
-        }
-    },
-    'lib-file': {
-        install:function(obj, plugin_dir, project_dir, plugin_id, options, project_file)
{
-            events.emit('verbose', 'wp8 lib-file install :: ' + plugin_id);
-            var inc  = obj.Include;
-            project_file.addSDKRef(inc);
-        },
-        uninstall:function(obj, project_dir, plugin_id, options, project_file) {
-            events.emit('verbose', 'wp8 lib-file uninstall :: ' + plugin_id);
-            var inc = obj.Include;
-            project_file.removeSDKRef(inc);
-        }
-    }
-};


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


Mime
View raw message