paramedic-plugin/plugin.xml (33 lines of code) (raw):

<?xml version="1.0" encoding="UTF-8"?> <!-- 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="cordova-plugin-paramedic" version="1.2.1-dev"> <name>Paramedic</name> <description>Cordova Paramedic Plugin</description> <license>Apache 2.0</license> <js-module src="socket.io.min.js" name="socket.io.min" /> <js-module src="JasmineParamedicProxy.js" name="JasmineParamedicProxy" /> <js-module src="paramedic.js" name="paramedic"> <runs/> </js-module> <platform name="ios"> <config-file target="config.xml" parent="/*"> <preference name="scheme" value="app" /> <preference name="hostname" value="localhost" /> <access origin="http://127.0.0.1:*/*" /> <allow-navigation href="http://127.0.0.1:*/*" /> <allow-intent href="http://127.0.0.1:*/*" /> </config-file> </platform> <platform name="android"> <config-file target="config.xml" parent="/*"> <!-- <preference name="AndroidInsecureFileModeEnabled" value="true" /> --> <!-- the logging server is http so force the webview to also be http --> <preference name="scheme" value="http" /> <!-- <preference name="localhost" value="apptest.cordova.apache.org" /> --> </config-file> <edit-config file="AndroidManifest.xml" target="/manifest/application" mode="overwrite"> <!-- Cleartext Traffic should be avoided. Currently the way paramedic proxy the results, cleartext is needed, even when the scheme is set to http. --> <application android:requestLegacyExternalStorage="true" android:usesCleartextTraffic="true" /> </edit-config> </platform> </plugin>