-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathplugin.xml
49 lines (41 loc) · 2.18 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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
<?xml version='1.0' encoding='utf-8'?>
<plugin id="cordova-plugin-smartesptouch" version="0.0.7" xmlns="http://apache.org/cordova/ns/plugins/1.0"
xmlns:android="http://schemas.android.com/apk/res/android">
<name>EsptouchForCordova</name>
<js-module name="EsptouchForCordova" src="www/EsptouchForCordova.js">
<clobbers target="cordova.plugins.EsptouchForCordova"/>
</js-module>
<!-- IOS配置 -->
<platform name="ios">
<config-file parent="/*" target="config.xml">
<feature name="EsptouchForCordova">
<param name="ios-package" value="EsptouchForCordova"/>
</feature>
</config-file>
<source-file src="src/ios/EsptouchForCordova.m"/>
</platform>
<!-- Android配置 -->
<platform name="android">
<config-file parent="/*" target="res/xml/config.xml">
<feature name="EsptouchForCordova">
<param name="android-package" value="org.apache.cordova.esptouch.EsptouchForCordova"/>
<param name="onload" value="true" />
</feature>
</config-file>
<config-file parent="/*" target="AndroidManifest.xml"/>
<!-- 权限配置 -->
<config-file target="AndroidManifest.xml" parent="/*">
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
<uses-permission android:name="android.permission.CHANGE_WIFI_MULTICAST_STATE" />
</config-file>
<!-- 第三方库引入-->
<lib-file src="src/android/lib/esptouch_v0.3.7.jar"/>
<!-- Java 类定义-->
<source-file src="src/android/ESPTouchTaskResult.java" target-dir="src/org/apache/cordova/esptouch" />
<source-file src="src/android/ESPTouchTaskCallback.java" target-dir="src/org/apache/cordova/esptouch" />
<source-file src="src/android/ESPTouchTask.java" target-dir="src/org/apache/cordova/esptouch" />
<source-file src="src/android/EsptouchForCordova.java" target-dir="src/org/apache/cordova/esptouch"/>
</platform>
</plugin>