-
Notifications
You must be signed in to change notification settings - Fork 182
/
plugin.xml
executable file
·150 lines (114 loc) · 7.02 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
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
<?xml version="1.0" encoding="UTF-8"?>
<plugin xmlns="http://www.phonegap.com/ns/plugins/1.0"
xmlns:android="http://schemas.android.com/apk/res/android"
id="com.wikitude.phonegap.wikitudeplugin"
version="9.9.0">
<name>Augmented Reality - Wikitude SDK Plugin</name>
<author>Wikitude GmbH</author>
<keywords>AR,augmented reality,Wikitude,image recognition,cloud recognition</keywords>
<description>
The Wikitude PhoneGap Plugin enables developers to embed an augmented reality view into their Cordova project. You can create a fully featured app with advanced augmented reality features, including image recognition, object recognition purely using HTML, CSS and JavaScript.
</description>
<repo>https://github.com/Wikitude/wikitude-phonegap.git</repo>
<license>(c) 2016-2019 Wikitude GmbH - see License.md for details of the license</license>
<engines>
<engine name="cordova" version=">=3.0.0" />
<engine name="cordova-android" version=">=6.3.0"/>
</engines>
<!-- copy WikitudePlugin wrapper file into www-folder -->
<js-module src="www/WikitudePlugin.js" name="WikitudePlugin">
<clobbers target="WikitudePlugin" />
</js-module>
<!-- android -->
<platform name="android">
<!-- declare implementation of WikitudePlugin -->
<source-file src="src/android/WikitudePlugin.java" target-dir="src/com/wikitude/phonegap" />
<!-- copy wikitude sdk -->
<lib-file src="src/android/wikitudesdk.aar"/>
<!-- copy build extras, necessary for wikitude.aar -->
<framework src="src/android/build-extras.gradle" custom="true" type="gradleReference" />
<!-- add permissions and requirements -->
<config-file target="AndroidManifest.xml" parent="/manifest">
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
<uses-permission android:name="android.permission.ACCESS_LOCATION_EXTRA_COMMANDS" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
<uses-permission android:name="android.permission.ACCESS_GPS" />
<uses-permission android:name="android.permission.CAMERA" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-feature android:glEsVersion="0x00020000" android:required="true" />
<uses-feature android:name="android.hardware.camera" android:required="true" />
<uses-feature android:name="android.hardware.location" android:required="true" />
<uses-feature android:name="android.hardware.sensor.accelerometer" android:required="true" />
<uses-feature android:name="android.hardware.sensor.compass" android:required="true" />
</config-file>
<!-- adds MediaPlayerActivity, required for startVideo feature-->
<config-file target="AndroidManifest.xml" parent="/manifest/application">
<activity android:name="com.wikitude.tools.activities.MediaPlayerActivity" android:screenOrientation="landscape">
<intent-filter>
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
</activity>
<meta-data android:name="com.google.ar.core" android:value="optional" />
</config-file>
<!-- adds WikitudePlugin in project's config.xml -->
<config-file target="res/xml/config.xml" parent="/*">
<feature name="WikitudePlugin">
<param name="android-package" value="com.wikitude.phonegap.WikitudePlugin"/>
</feature>
</config-file>
<!-- visible after installation -->
<info>
Have fun using world's first augmented reality plugin for Cordova. Visit https://www.wikitude.com/external/doc/documentation/latest/phonegap/ for detailed documentation for the plugin.
Make sure that you enter your Wikitude SDK trial license key in `WikitudePlugin.js` line 12. If you havent bought a license please visit http://www.wikitude.com/store.
If you want to contribute to the open source project, please visit us at GitHub, http://github.com/Wikitude
</info>
</platform>
<!-- iOS -->
<platform name="ios">
<!-- WikitudePlugin Source -->
<header-file src="src/ios/WTWikitudePlugin.h" />
<source-file src="src/ios/WTWikitudePlugin.m" />
<header-file src="src/ios/WTARViewController.h" />
<source-file src="src/ios/WTARViewController.m" />
<framework src="src/ios/WikitudeSDK.xcframework" custom="true" embed="true" />
<!-- Additional WikitudePlugin libraries and frameworks -->
<framework src="Accelerate.framework" />
<framework src="AssetsLibrary.framework" />
<framework src="AVFoundation.framework" />
<framework src="AVKit.framework" />
<framework src="CFNetwork.framework" />
<framework src="CoreGraphics.framework" />
<framework src="CoreLocation.framework" />
<framework src="CoreMedia.framework" />
<framework src="CoreMotion.framework" />
<framework src="CoreText.framework" />
<framework src="CoreVideo.framework" />
<framework src="Foundation.framework" />
<framework src="MediaPlayer.framework" />
<framework src="OpenGLES.framework" />
<framework src="Photos.framework" />
<framework src="QuartzCore.framework" />
<framework src="SafariServices.framework" />
<framework src="Security.framework" />
<framework src="SystemConfiguration.framework" />
<framework src="UIKit.framework" />
<framework src="libc++.dylib" />
<framework src="libz.dylib" />
<!-- Adopts project's config.xml to include the WikitudePlugin and domain white-lists -->
<config-file target="config.xml" parent="/*">
<feature name="WikitudePlugin">
<param name="ios-package" value="WTWikitudePlugin"/>
</feature>
</config-file>
<!-- visible after installation -->
<info>
Have fun using world's first augmented reality plugin for Cordova. Visit https://www.wikitude.com/external/doc/documentation/latest/phonegap/ for detailed documentation for the plugin.
Make sure that you enter your Wikitude SDK trial license key in `WikitudePlugin.js` line 12. If you havent bought a license please visit http://www.wikitude.com/store.
If you want to contribute to the open source project, please visit us at GitHub, http://github.com/Wikitude
</info>
</platform>
</plugin>