-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathplugin.xml
85 lines (73 loc) · 3.79 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
<?xml version="1.0" encoding="UTF-8"?>
<plugin xmlns="http://apache.org/cordova/ns/plugins/1.0"
xmlns:android="http://schemas.android.com/apk/res/android"
id="com.telerik.feedback"
version="2.0.3">
<name>Telerik AppFeedback</name>
<description>This plugin allows the app to include Telerik AppFeedback functionality on device shake.</description>
<license>Commercial</license>
<keywords>cordova,device</keywords>
<url>http://docs.telerik.com/platform/appfeedback</url>
<engines>
<engine name="cordova-ios" version=">=3" />
<engine name="cordova-android" version=">=3.6.0" />
</engines>
<js-module src="www/feedback.js" name="feedback">
<clobbers target="feedback" />
</js-module>
<js-module src="www/shake.js" name="shake">
<clobbers target="Shake" />
</js-module>
<preference name="API_KEY" default="YourKeyHere"/>
<preference name="ENABLE_SHAKE" default="true" />
<preference name="API_URL" default="https://platform.telerik.com/feedback/api/v1" />
<platform name="ios">
<config-file target="config.xml" parent="/*">
<feature name="AppFeedback">
<param name="ios-package" value="TLRKFeedback"/>
</feature>
</config-file>
<header-file src="src/ios/TLRKFeedback.h" />
<source-file src="src/ios/TLRKFeedback.m" />
<framework src="src/ios/TelerikAppFeedback.framework" weak="false" custom="true"/>
<framework src="libsqlite3.dylib" />
<framework src="Foundation.framework" weak="true" />
<config-file target="*-Info.plist" parent="apiKey">
<string>$API_KEY</string>
</config-file>
<config-file target="*-Info.plist" parent="apiUrl">
<string>$API_URL</string>
</config-file>
<config-file target="*-Info.plist" parent="enableShake">
<string>$ENABLE_SHAKE</string>
</config-file>
</platform>
<platform name="android">
<config-file target="res/xml/config.xml" parent="/*">
<feature name="AppFeedback">
<param name="android-package" value="com.telerik.feedback.AppFeedback" />
</feature>
</config-file>
<config-file target="AndroidManifest.xml" parent="application">
<activity android:label="@string/title_activity_send_feedback" android:name="com.telerik.widget.feedback.SendFeedbackActivity" android:theme="@style/AppCompatTheme">
</activity>
<activity android:label="@string/title_activity_view_feedback" android:name="com.telerik.widget.feedback.ViewFeedbackActivity" android:theme="@style/AppCompatTheme">
</activity>
<activity android:label="@string/title_activity_view_feedback" android:name="com.telerik.widget.feedback.ViewFeedbackItemActivity" android:theme="@style/AppCompatTheme">
</activity>
<activity android:label="@string/title_activity_edit_details" android:name="com.telerik.widget.feedback.EditDetailsActivity" android:theme="@style/AppCompatTheme">
</activity>
</config-file>
<source-file src="src/android/res/values/feedback.xml" target-dir="res/values" />
<config-file target="res/values/strings.xml" parent="/*">
<string name="apiKey">$API_KEY</string>
<string name="apiUrl">$API_URL</string>
<string name="enableShake">$ENABLE_SHAKE</string>
</config-file>
<config-file target="AndroidManifest.xml" parent="/*">
<uses-permission android:name="android.permission.INTERNET" />
</config-file>
<source-file src="src/android/com/telerik/feedback/AppFeedback.java" target-dir="src/com/telerik/feedback" />
<framework src="src/android/FeedbackLib" custom="true" />
</platform>
</plugin>