forked from JaneaSystems/nodejs-mobile-cordova
-
-
Notifications
You must be signed in to change notification settings - Fork 8
/
plugin.xml
99 lines (76 loc) · 4.53 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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
<?xml version="1.0" encoding="UTF-8"?>
<plugin xmlns="http://apache.org/cordova/ns/plugins/1.0"
id="@red-mobile/nodejs-mobile-cordova"
version="3.4.1">
<name>Node.js Mobile</name>
<description>Node.js for Mobile Apps Cordova Plugin</description>
<license>MIT</license>
<keywords>cordova,mobile,nodejs,node.js</keywords>
<engines>
<engine name="cordova-android" version=">=6.2.1"/>
<engine name="cordova-ios" version=">=4.4.0"/>
</engines>
<js-module src="www/nodejs_apis.js" name="nodejs">
<clobbers target="nodejs" />
</js-module>
<js-module src="www/nodejs_events.js" name="nodejs_events">
<clobbers target="nodejs_events" />
</js-module>
<!-- ios -->
<platform name="ios">
<hook type="before_plugin_install" src="install/hooks/ios/before-plugin-install.js" />
<hook type="after_plugin_install" src="install/hooks/ios/after-plugin-install.js" />
<hook type="before_plugin_uninstall" src="install/hooks/ios/before-plugin-uninstall.js" />
<hook type="after_platform_add" src="install/hooks/ios/fix-xcframework-path.js" />
<hook type="after_platform_add" src="install/hooks/ios/after-plugin-install.js" />
<hook type="after_plugin_add" src="install/hooks/ios/fix-xcframework-path.js" />
<hook type="after_plugin_install" src="install/hooks/ios/fix-xcframework-path.js" />
<hook type="after_prepare" src="install/hooks/ios/fix-xcframework-path.js" />
<hook type="after_prepare" src="install/hooks/both/after-prepare-patch-npm-packages.js" />
<hook type="after_prepare" src="install/hooks/both/after-prepare-native-modules-preference.js" />
<config-file target="config.xml" parent="/*">
<feature name="NodeJS">
<param name="ios-package" value="CDVNodeJS" />
<param name="onload" value= "true" />
</feature>
</config-file>
<header-file src="src/ios/CDVNodeJS.hh" />
<source-file src="src/ios/CDVNodeJS.mm" />
<header-file src="src/common/cordova-bridge/cordova-bridge.h" />
<source-file src="src/common/cordova-bridge/cordova-bridge.cpp" compiler-flags="-I$(SRCROOT)/$(PRODUCT_NAME)/Plugins/@red-mobile/nodejs-mobile-cordova/include/node/ -std=c++17"/>
<header-file src="src/ios/NodeJSRunner.hh" />
<source-file src="src/ios/NodeJSRunner.mm" />
<header-file src="libs/ios/nodemobile/include"/>
<asset src="install/nodejs-mobile-cordova-assets" target="nodejs-mobile-cordova-assets" />
<framework src="libs/ios/nodemobile/NodeMobile.xcframework" custom="true" embed="true" />
<framework src="libs/ios/nodemobile/NodeMobile.xcframework" />
</platform>
<!-- android -->
<platform name="android">
<hook type="before_plugin_install" src="install/hooks/android/before-plugin-install.js" />
<hook type="after_prepare" src="install/hooks/android/after-prepare-build-node-assets-lists.js" />
<hook type="after_prepare" src="install/hooks/both/after-prepare-patch-npm-packages.js" />
<hook type="after_prepare" src="install/hooks/android/after-prepare-create-macOS-builder-helper.js" />
<hook type="after_prepare" src="install/hooks/both/after-prepare-native-modules-preference.js" />
<config-file target="res/xml/config.xml" parent="/*">
<feature name="NodeJS">
<param name="android-package" value="com.janeasystems.cdvnodejsmobile.NodeJS" />
</feature>
</config-file>
<config-file target="AndroidManifest.xml" parent="/manifest">
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.WRITE_INTERNAL_STORAGE" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
</config-file>
<source-file src="src/android/java/com/janeasystems/cdvnodejsmobile/NodeJS.java" target-dir="src/com/janeasystems/cdvnodejsmobile/" />
<source-file src="src/common/cordova-bridge/cordova-bridge.h" target-dir="libs/cdvnodejsmobile/" />
<source-file src="src/common/cordova-bridge/cordova-bridge.cpp" target-dir="libs/cdvnodejsmobile/" />
<source-file src="src/android/jni/native-lib.cpp" target-dir="libs/cdvnodejsmobile/" />
<source-file src="libs/android/libnode/" target-dir="libs/cdvnodejsmobile/" />
<source-file src="install/nodejs-mobile-cordova-assets/" target-dir="assets/" />
<framework src="src/android/build.gradle" custom="true" type="gradleReference" />
<framework src="org.zeroturnaround:zt-zip:1.14" />
<framework src="commons-io:commons-io:2.8.0" />
<source-file src="src/android/CMakeLists.txt" target-dir="libs/cdvnodejsmobile/"/>
</platform>
</plugin>