-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathplugin.xml
48 lines (39 loc) · 1.84 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
<?xml version='1.0' encoding='utf-8'?>
<plugin id="cordova-plugin-speech" version="0.0.3" xmlns="http://apache.org/cordova/ns/plugins/1.0" xmlns:android="http://schemas.android.com/apk/res/android">
<name>Speech</name>
<js-module name="Speech" src="www/Speech.js">
<clobbers target="Speech" />
</js-module>
<!-- android -->
<platform name="android">
<config-file target="res/xml/config.xml" parent="/*">
<feature name="Speech">
<param name="android-package" value="com.pravinkumarp.Speech"/>
</feature>
</config-file>
<config-file target="AndroidManifest.xml" parent="/*">
<uses-permission android:name="android.permission.RECORD_AUDIO" />
</config-file>
<source-file src="src/android/com/pravinkumarp/Speech.java" target-dir="src/com/pravinkumarp" />
<source-file src="src/android/com/pravinkumarp/LanguageDetailsChecker.java" target-dir="src/com/pravinkumarp" />
</platform>
<!-- ios -->
<platform name="ios">
<config-file target="config.xml" parent="/*">
<feature name="Speech">
<param name="ios-package" value="Speech" />
</feature>
</config-file>
<config-file target="*-Info.plist" parent="NSMicrophoneUsageDescription">
<string>Request to use Microphone</string>
</config-file>
<config-file target="*-Info.plist" parent="NSSpeechRecognitionUsageDescription">
<string>Request to use Speech Recognition</string>
</config-file>
<source-file src="src/ios/Speech.swift" />
<framework src="Speech.framework" />
<framework src="AVFoundation.framework" />
<!-- Add in the swift-support plugin by default -->
<dependency id="cordova-plugin-add-swift-support"/>
</platform>
</plugin>