-
Notifications
You must be signed in to change notification settings - Fork 2
/
plugin.xml
28 lines (28 loc) · 1.29 KB
/
plugin.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<?xml version='1.0' encoding='utf-8'?>
<plugin id="cordova-plugin-native-http" version="0.1.0" xmlns="http://apache.org/cordova/ns/plugins/1.0"
xmlns:android="http://schemas.android.com/apk/res/android">
<name>CordovaHttp</name>
<js-module name="NativeHttp" src="www/NativeHttp.js">
<clobbers target="cordova.plugins.NativeHttp"/>
</js-module>
<platform name="android">
<config-file parent="/*" target="res/xml/config.xml">
<feature name="NativeHttp">
<param name="android-package" value="ca.zyra.cordova.NativeHttp.NativeHttp"/>
</feature>
</config-file>
<config-file parent="/*" target="AndroidManifest.xml"/>
<source-file src="src/android/NativeHttp.java" target-dir="src/ca/zyra/cordova/NativeHttp"/>
<framework src="com.squareup.okhttp3:okhttp:3.8.0"/>
<framework src="com.google.code.gson:gson:2.8.0"/>
</platform>
<platform name="ios">
<config-file parent="/*" target="config.xml">
<feature name="NativeHttp">
<param name="ios-package" value="NativeHttp"/>
</feature>
</config-file>
<source-file src="src/ios/NativeHttp.m"/>
<framework src="AFNetworking" type="podspec" spec="~> 3.1.0"/>
</platform>
</plugin>