You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by ja...@apache.org on 2019/05/27 15:59:45 UTC
[cordova-mobile-spec] 01/01: fix and cleanup cordova-plugin-echo
This is an automated email from the ASF dual-hosted git repository.
janpio pushed a commit to branch janpio-fix2
in repository https://gitbox.apache.org/repos/asf/cordova-mobile-spec.git
commit 5df997b1f342a367e1fc09d10cc2fb4daefe5381
Author: Jan Piotrowski <pi...@gmail.com>
AuthorDate: Mon May 27 17:59:33 2019 +0200
fix and cleanup cordova-plugin-echo
---
cordova-plugin-echo/README.md | 32 +++++++++++++++++++++++--
cordova-plugin-echo/docs/echo.md | 50 ----------------------------------------
cordova-plugin-echo/package.json | 14 +++++++++++
cordova-plugin-echo/plugin.xml | 12 +---------
4 files changed, 45 insertions(+), 63 deletions(-)
diff --git a/cordova-plugin-echo/README.md b/cordova-plugin-echo/README.md
index f3032f7..753c5fd 100644
--- a/cordova-plugin-echo/README.md
+++ b/cordova-plugin-echo/README.md
@@ -19,7 +19,35 @@
#
-->
-cordova-plugin-echo
-------------------------
+# cordova-plugin-echo
This is a plugin implementation of the Echo function to test the bridge. It is currently used by Mobile Spec to test and benchmark the bridge.
+
+## Echo
+
+> The `echo` object provides an interface for testing the bridge. It
+> sends any data received back across the bridge unmodifed. This
+> allows the bridge modes to be tested and benchmarked.
+
+### Methods
+
+- cordova.echo.echo
+- cordova.echo.echoAsync
+- cordova.echo.echoArrayBuffer
+- cordova.echo.echoMultiPart
+
+#### cordova.echo.echo
+
+Echos string data in the same thread.
+
+#### cordova.echo.echoAsync
+
+Echos string data in a new UI thread.
+
+#### cordova.echo.echoArrayBuffer
+
+Echos base64 encoded data in the same thread.
+
+#### cordova.echo.echoMultiPart
+
+Echos a multipart message in the same thread.
diff --git a/cordova-plugin-echo/docs/echo.md b/cordova-plugin-echo/docs/echo.md
deleted file mode 100644
index 7927f44..0000000
--- a/cordova-plugin-echo/docs/echo.md
+++ /dev/null
@@ -1,50 +0,0 @@
----
- license: 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.
----
-
-Echo
-=========
-
-> The `echo` object provides an interface for testing the bridge. It
-> sends any data received back across the bridge unmodifed. This
-> allows the bridge modes to be tested and benchmarked.
-
-Methods
--------
-
-- cordova.echo.echo
-- cordova.echo.echoAsync
-- cordova.echo.echoArrayBuffer
-- cordova.echo.echoMultiPart
-
-### cordova.echo.echo
-
-Echos string data in the same thread.
-
-### cordova.echo.echoAsync
-
-Echos string data in a new UI thread.
-
-### cordova.echo.echoArrayBuffer
-
-Echos base64 encoded data in the same thread.
-
-### cordova.echo.echoMultiPart
-
-Echos a multipart message in the same thread.
-
diff --git a/cordova-plugin-echo/package.json b/cordova-plugin-echo/package.json
new file mode 100644
index 0000000..2ce8fda
--- /dev/null
+++ b/cordova-plugin-echo/package.json
@@ -0,0 +1,14 @@
+{
+ "name": "cordova-plugin-echo",
+ "version": "0.1.0",
+ "description": "",
+ "cordova": {
+ "id": "cordova-plugin-echo",
+ "platforms": []
+ },
+ "keywords": [
+ "ecosystem:cordova"
+ ],
+ "author": "",
+ "license": "Apache 2.0"
+}
diff --git a/cordova-plugin-echo/plugin.xml b/cordova-plugin-echo/plugin.xml
index 3d4a385..7c5d32c 100644
--- a/cordova-plugin-echo/plugin.xml
+++ b/cordova-plugin-echo/plugin.xml
@@ -20,7 +20,7 @@
-->
<plugin xmlns="http://cordova.apache.org/ns/plugins/1.0"
- id="org.apache.cordova.test.echo"
+ id="cordova-plugin-echo"
version="0.1.0">
<name>Echo</name>
@@ -41,16 +41,6 @@
<source-file src="src/android/Echo.java" target-dir="src/org/apache/cordova/test" />
</platform>
- <!-- amazon-fireos -->
- <platform name="amazon-fireos">
- <config-file target="res/xml/config.xml" parent="/*">
- <feature name="Echo" >
- <param name="android-package" value="org.apache.cordova.test.Echo"/>
- </feature>
- </config-file>
-
- <source-file src="src/android/Echo.java" target-dir="src/org/apache/cordova/test" />
- </platform>
<!-- ios -->
<platform name="ios">
<config-file target="config.xml" parent="/*">
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org