You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by er...@apache.org on 2025/09/02 04:41:28 UTC

(cordova-lib) branch master updated: chore: remove deprecated platform data (#958)

This is an automated email from the ASF dual-hosted git repository.

erisu pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/cordova-lib.git


The following commit(s) were added to refs/heads/master by this push:
     new 82dbfa2b chore: remove deprecated platform data (#958)
82dbfa2b is described below

commit 82dbfa2b71ba3be791469d800f29b90fcee9fa9c
Author: エリス <er...@users.noreply.github.com>
AuthorDate: Tue Sep 2 13:41:23 2025 +0900

    chore: remove deprecated platform data (#958)
---
 .../org.test.plugins.childbrowser/plugin.xml       | 20 +------
 .../org.test.plugins.dummyplugin/plugin.xml        | 61 +---------------------
 .../src/blackberry10/index.js                      |  1 -
 .../src/tizen/dummer.js                            |  1 -
 .../src/windows/dummer.js                          |  1 -
 .../src/windows/dummy1.dll                         |  0
 .../src/windows/dummy1.vcxproj                     |  7 ---
 .../src/windows/dummy2.dll                         |  0
 .../src/windows/dummy2.vcxproj                     |  7 ---
 .../src/windows/dummy3.dll                         |  0
 .../src/windows/dummy3.vcxproj                     |  7 ---
 .../src/windows/dummy4.dll                         |  0
 .../src/windows/dummy4.vcxproj                     |  7 ---
 .../src/windows/dummy5.dll                         |  0
 .../src/windows/dummy6.dll                         |  0
 .../src/windows/text_sample1.txt                   |  0
 .../src/windows/text_sample2.txt                   |  0
 .../src/windows/text_sample3.txt                   |  0
 .../src/windows/text_sample4.txt                   |  0
 .../src/wp7/DummyPlugin.cs                         |  1 -
 .../src/wp8/DummyPlugin.cs                         |  1 -
 .../plugman/plugins/pkgjson-test-plugin/plugin.xml | 23 +++++++-
 src/cordova/project_metadata.js                    |  4 +-
 23 files changed, 27 insertions(+), 114 deletions(-)

diff --git a/spec/plugman/plugins/org.test.plugins.childbrowser/plugin.xml b/spec/plugman/plugins/org.test.plugins.childbrowser/plugin.xml
index c758d060..5f9412a8 100644
--- a/spec/plugman/plugins/org.test.plugins.childbrowser/plugin.xml
+++ b/spec/plugman/plugins/org.test.plugins.childbrowser/plugin.xml
@@ -8,7 +8,7 @@
     "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
+        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
@@ -17,7 +17,6 @@
     specific language governing permissions and limitations
     under the License.
 -->
-
 <plugin xmlns="http://cordova.apache.org/ns/plugins/1.0"
     xmlns:android="http://schemas.android.com/apk/res/android"
     id="org.test.plugins.childbrowser"
@@ -104,21 +103,4 @@
         <framework src="music.framework" weak="rabbit" />
         <framework src="Custom.framework" custom="true" />
     </platform>
-
-    <!-- wp8 -->
-    <platform name="wp8">
-        <resource-file src="src\wp7\Images\appbar.back.rest.png" />
-        <config-file target="config.xml" parent="/widget/plugins">
-            <plugin name="org.test.plugins.childbrowser"
-                value="org.test.plugins.childbrowser"/>
-        </config-file>
-
-        <source-file src="src\wp7\ChildBrowserCommand.cs"
-                     target-dir="Plugins\" />
-
-        <!-- modify the project file to include the added files -->
-        <config-file target=".csproj" parent=".">
-        </config-file>
-
-    </platform>
 </plugin>
diff --git a/spec/plugman/plugins/org.test.plugins.dummyplugin/plugin.xml b/spec/plugman/plugins/org.test.plugins.dummyplugin/plugin.xml
index 5804b017..d7ae7052 100644
--- a/spec/plugman/plugins/org.test.plugins.dummyplugin/plugin.xml
+++ b/spec/plugman/plugins/org.test.plugins.dummyplugin/plugin.xml
@@ -17,7 +17,6 @@
     specific language governing permissions and limitations
     under the License.
 -->
-
 <plugin xmlns="http://cordova.apache.org/ns/plugins/1.0"
     xmlns:android="http://schemas.android.com/apk/res/android"
     id="org.test.plugins.dummyplugin"
@@ -27,9 +26,9 @@
     <name>dummyplugin</name>
     <!-- These are going to be required by plugman-registry -->
     <description>my description</description>
-    <author>Jackson Badman</author>
+    <author>Apache Software Foundation</author>
     <keywords>dummy,plugin</keywords>
-    <license>BSD</license>
+    <license>Apache-2.0</license>
     <!-- end plugman-registry requirements -->
 
     <asset src="www/dummyplugin.js" target="dummyplugin.js" />
@@ -72,20 +71,6 @@
                 target-dir="src/com/phonegap/plugins/dummyplugin" />
         <lib-file src="src/android/TestLib.jar" />
     </platform>
-    
-
-    <!-- blackberry10 -->
-    <platform name="blackberry10">
-        <config-file target="www/config.xml" parent="/widget">
-            <feature id="dummyPlugin" required="true" version="1.0.0.0"/>
-        </config-file>
-
-        <source-file src="src/blackberry10/index.js"/>
-        <js-module src="www/dummyplugin.js" name="Dummy">
-            <clobbers target="dummy" />
-        </js-module>
-    </platform>
-
 
     <!-- ios -->
     <platform name="ios">
@@ -110,46 +95,4 @@
         <framework src="src/ios/libsqlite3.dylib" weak="true" />
         <framework src="src/ios/Custom.framework" custom="true" />
     </platform>
-
-    <!-- tizen -->
-    <platform name="tizen">
-        <source-file src="src/tizen/dummer.js"/>
-    </platform>
-
-    <!-- windows -->
-    <platform name="windows">
-        <config-file target="config.xml" parent="/*">
-            <feature id="dummyPlugin" required="true" version="1.0.0.0"/>
-        </config-file>
-
-        <source-file src="src/windows/dummer.js"/>
-
-        <resource-file src="src/windows/text_sample1.txt" target="text_samples/text_sample1.txt" arch="x86" />
-        <resource-file src="src/windows/text_sample2.txt" target="text_samples/text_sample2.txt" versions="&gt;=8.1" />
-        <resource-file src="src/windows/text_sample3.txt" target="text_samples/text_sample3.txt" device-target="phone"/>
-        <resource-file src="src/windows/text_sample4.txt" target="text_samples/text_sample4.txt" device-target="windows" versions="8.0" arch="x64"/>
-
-        <lib-file src="TestSDK1, Version=1.0" arch="x86"/>
-        <lib-file src="TestSDK2, Version=1.0" versions=">=8.1"/>
-        <lib-file src="TestSDK3, Version=1.0" device-target="phone"/>
-        <lib-file src="TestSDK4, Version=1.0" device-target="windows" versions="8.0" arch="x86"/>
-
-        <framework src="src/windows/dummy1.dll" arch="x64"/>
-        <framework src="src/windows/dummy2.dll" versions=">=8.0"/>
-        <framework src="src/windows/dummy3.dll" device-target="windows"/>
-        <framework src="src/windows/dummy4.dll" device-target="phone" versions="8.1" arch="ARM"/>
-        <framework src="src/windows/dummy5.dll" custom="true" target-dir="phoneDir" device-target="phone" />
-        <framework src="src/windows/dummy6.dll" custom="true" target-dir="sharedDir" versions="&gt;=8.1" />
-
-        <framework src="src/windows/dummy1.vcxproj" type="projectReference" arch="x64"/>
-        <framework src="src/windows/dummy2.vcxproj" type="projectReference" versions="<8.1"/>
-        <!-- "target" attribute is an alias for "device-target" (but is deprecated) - test for it here -->
-        <framework src="src/windows/dummy3.vcxproj" type="projectReference" target="win"/>
-        <framework src="src/windows/dummy4.vcxproj" type="projectReference" device-target="all" versions="8.1" arch="x86"/>
-
-        <js-module src="www/dummyplugin.js" name="Dummy">
-            <clobbers target="dummy" />
-        </js-module>
-    </platform>
-
 </plugin>
diff --git a/spec/plugman/plugins/org.test.plugins.dummyplugin/src/blackberry10/index.js b/spec/plugman/plugins/org.test.plugins.dummyplugin/src/blackberry10/index.js
deleted file mode 100644
index cce82130..00000000
--- a/spec/plugman/plugins/org.test.plugins.dummyplugin/src/blackberry10/index.js
+++ /dev/null
@@ -1 +0,0 @@
-//org.test.plugins.dummyplugin/src/blackberry10/index.js
diff --git a/spec/plugman/plugins/org.test.plugins.dummyplugin/src/tizen/dummer.js b/spec/plugman/plugins/org.test.plugins.dummyplugin/src/tizen/dummer.js
deleted file mode 100644
index dea38abf..00000000
--- a/spec/plugman/plugins/org.test.plugins.dummyplugin/src/tizen/dummer.js
+++ /dev/null
@@ -1 +0,0 @@
-//org.test.plugins.dummyplugin/src/tizen/dummer.js
diff --git a/spec/plugman/plugins/org.test.plugins.dummyplugin/src/windows/dummer.js b/spec/plugman/plugins/org.test.plugins.dummyplugin/src/windows/dummer.js
deleted file mode 100644
index ab7dc4a7..00000000
--- a/spec/plugman/plugins/org.test.plugins.dummyplugin/src/windows/dummer.js
+++ /dev/null
@@ -1 +0,0 @@
-//org.test.plugins.dummyplugin/src/windows8/dummer.js
diff --git a/spec/plugman/plugins/org.test.plugins.dummyplugin/src/windows/dummy1.dll b/spec/plugman/plugins/org.test.plugins.dummyplugin/src/windows/dummy1.dll
deleted file mode 100644
index e69de29b..00000000
diff --git a/spec/plugman/plugins/org.test.plugins.dummyplugin/src/windows/dummy1.vcxproj b/spec/plugman/plugins/org.test.plugins.dummyplugin/src/windows/dummy1.vcxproj
deleted file mode 100644
index c4549056..00000000
--- a/spec/plugman/plugins/org.test.plugins.dummyplugin/src/windows/dummy1.vcxproj
+++ /dev/null
@@ -1,7 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project DefaultTargets="Build" ToolsVersion="12.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
-    <PropertyGroup Label="Globals">
-        <ProjectGuid>{ef7dd979-6f12-4bdf-8754-9468ce799c4d}</ProjectGuid>
-        <ProjectName>dummy1</ProjectName>
-    </PropertyGroup>
-</Project>
diff --git a/spec/plugman/plugins/org.test.plugins.dummyplugin/src/windows/dummy2.dll b/spec/plugman/plugins/org.test.plugins.dummyplugin/src/windows/dummy2.dll
deleted file mode 100644
index e69de29b..00000000
diff --git a/spec/plugman/plugins/org.test.plugins.dummyplugin/src/windows/dummy2.vcxproj b/spec/plugman/plugins/org.test.plugins.dummyplugin/src/windows/dummy2.vcxproj
deleted file mode 100644
index 8edd7060..00000000
--- a/spec/plugman/plugins/org.test.plugins.dummyplugin/src/windows/dummy2.vcxproj
+++ /dev/null
@@ -1,7 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project DefaultTargets="Build" ToolsVersion="12.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
-    <PropertyGroup Label="Globals">
-        <ProjectGuid>{6a760eea-8c27-442e-b98b-a487964ded42}</ProjectGuid>
-        <ProjectName>dummy2</ProjectName>
-    </PropertyGroup>
-</Project>
diff --git a/spec/plugman/plugins/org.test.plugins.dummyplugin/src/windows/dummy3.dll b/spec/plugman/plugins/org.test.plugins.dummyplugin/src/windows/dummy3.dll
deleted file mode 100644
index e69de29b..00000000
diff --git a/spec/plugman/plugins/org.test.plugins.dummyplugin/src/windows/dummy3.vcxproj b/spec/plugman/plugins/org.test.plugins.dummyplugin/src/windows/dummy3.vcxproj
deleted file mode 100644
index 600167c5..00000000
--- a/spec/plugman/plugins/org.test.plugins.dummyplugin/src/windows/dummy3.vcxproj
+++ /dev/null
@@ -1,7 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project DefaultTargets="Build" ToolsVersion="12.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
-    <PropertyGroup Label="Globals">
-        <ProjectGuid>{5318c3c8-0921-4870-b4ad-8cce06c88238}</ProjectGuid>
-        <ProjectName>dummy3</ProjectName>
-    </PropertyGroup>
-</Project>
diff --git a/spec/plugman/plugins/org.test.plugins.dummyplugin/src/windows/dummy4.dll b/spec/plugman/plugins/org.test.plugins.dummyplugin/src/windows/dummy4.dll
deleted file mode 100644
index e69de29b..00000000
diff --git a/spec/plugman/plugins/org.test.plugins.dummyplugin/src/windows/dummy4.vcxproj b/spec/plugman/plugins/org.test.plugins.dummyplugin/src/windows/dummy4.vcxproj
deleted file mode 100644
index d7acf042..00000000
--- a/spec/plugman/plugins/org.test.plugins.dummyplugin/src/windows/dummy4.vcxproj
+++ /dev/null
@@ -1,7 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project DefaultTargets="Build" ToolsVersion="12.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
-    <PropertyGroup Label="Globals">
-        <ProjectGuid>{8e430a1b-094b-4c27-8b76-fdd7021dbfe9}</ProjectGuid>
-        <ProjectName>dummy4</ProjectName>
-    </PropertyGroup>
-</Project>
diff --git a/spec/plugman/plugins/org.test.plugins.dummyplugin/src/windows/dummy5.dll b/spec/plugman/plugins/org.test.plugins.dummyplugin/src/windows/dummy5.dll
deleted file mode 100644
index e69de29b..00000000
diff --git a/spec/plugman/plugins/org.test.plugins.dummyplugin/src/windows/dummy6.dll b/spec/plugman/plugins/org.test.plugins.dummyplugin/src/windows/dummy6.dll
deleted file mode 100644
index e69de29b..00000000
diff --git a/spec/plugman/plugins/org.test.plugins.dummyplugin/src/windows/text_sample1.txt b/spec/plugman/plugins/org.test.plugins.dummyplugin/src/windows/text_sample1.txt
deleted file mode 100644
index e69de29b..00000000
diff --git a/spec/plugman/plugins/org.test.plugins.dummyplugin/src/windows/text_sample2.txt b/spec/plugman/plugins/org.test.plugins.dummyplugin/src/windows/text_sample2.txt
deleted file mode 100644
index e69de29b..00000000
diff --git a/spec/plugman/plugins/org.test.plugins.dummyplugin/src/windows/text_sample3.txt b/spec/plugman/plugins/org.test.plugins.dummyplugin/src/windows/text_sample3.txt
deleted file mode 100644
index e69de29b..00000000
diff --git a/spec/plugman/plugins/org.test.plugins.dummyplugin/src/windows/text_sample4.txt b/spec/plugman/plugins/org.test.plugins.dummyplugin/src/windows/text_sample4.txt
deleted file mode 100644
index e69de29b..00000000
diff --git a/spec/plugman/plugins/org.test.plugins.dummyplugin/src/wp7/DummyPlugin.cs b/spec/plugman/plugins/org.test.plugins.dummyplugin/src/wp7/DummyPlugin.cs
deleted file mode 100644
index d962cb8a..00000000
--- a/spec/plugman/plugins/org.test.plugins.dummyplugin/src/wp7/DummyPlugin.cs
+++ /dev/null
@@ -1 +0,0 @@
-./org.test.plugins.dummyplugin/src/wp7/DummyPlugin.cs
diff --git a/spec/plugman/plugins/org.test.plugins.dummyplugin/src/wp8/DummyPlugin.cs b/spec/plugman/plugins/org.test.plugins.dummyplugin/src/wp8/DummyPlugin.cs
deleted file mode 100644
index f6913166..00000000
--- a/spec/plugman/plugins/org.test.plugins.dummyplugin/src/wp8/DummyPlugin.cs
+++ /dev/null
@@ -1 +0,0 @@
-./org.test.plugins.dummyplugin/src/wp8/DummyPlugin.cs
diff --git a/spec/plugman/plugins/pkgjson-test-plugin/plugin.xml b/spec/plugman/plugins/pkgjson-test-plugin/plugin.xml
index 11ba6b9e..9253a47b 100644
--- a/spec/plugman/plugins/pkgjson-test-plugin/plugin.xml
+++ b/spec/plugman/plugins/pkgjson-test-plugin/plugin.xml
@@ -1,4 +1,25 @@
 <?xml version='1.0' encoding='utf-8'?>
-<plugin id="pkgjson-test-plugin" version="0.0.0" xmlns="http://apache.org/cordova/ns/plugins/1.0" xmlns:android="http://schemas.android.com/apk/res/android">
+<!--
+    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.
+-->
+<plugin xmlns="http://apache.org/cordova/ns/plugins/1.0"
+    xmlns:android="http://schemas.android.com/apk/res/android"
+    id="pkgjson-test-plugin"
+    version="0.0.0">
     <name>cordova-lib-test-plugin</name>
 </plugin>
diff --git a/src/cordova/project_metadata.js b/src/cordova/project_metadata.js
index 2f0522dd..1682740d 100644
--- a/src/cordova/project_metadata.js
+++ b/src/cordova/project_metadata.js
@@ -7,7 +7,7 @@
     "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
+        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
@@ -23,7 +23,7 @@ const semver = require('semver');
 
 /** Returns all the platforms that are currently saved into config.xml
  *  @return {Promise<{name: string, version: string, src: string}[]>}
- *      e.g: [ {name: 'android', version: '3.5.0'}, {name: 'wp8', src: 'C:/path/to/platform'}, {name: 'ios', src: 'git://...'} ]
+ *      e.g: [ {name: 'android', version: '3.5.0'}, {name: 'ios', src: 'git://...'} ]
  */
 function getPlatforms (projectRoot) {
     const xml = cordova_util.projectConfig(projectRoot);


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