-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathplugin.xml
73 lines (60 loc) · 2.68 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
<?xml version="1.0" encoding="UTF-8"?>
<plugin id="cordova-plugin-fabric-firebase" version="1.0.0" xmlns="http://www.phonegap.com/ns/plugins/1.0">
<name>cordova-plugin-fabric-firebase</name>
<description>Cordova plugin to integrate Fabric.io along with Firebase Cordova plugin</description>
<license>MIT</license>
<keywords>cordova,fabric,craslytics,answers,events,device,ios,android</keywords>
<preference name="FABRIC_API_KEY" />
<preference name="FABRIC_API_SECRET" />
<hook type="after_plugin_install" src="hooks/after_plugin_add.js" />
<hook type="after_platform_add" src="hooks/after_plugin_add.js" />
<hook type="before_plugin_uninstall" src="hooks/before_plugin_rm.js" />
<!-- android -->
<platform name="android">
<config-file parent="/*" target="res/xml/config.xml">
<feature name="FabricPlugin">
<param name="android-package" value="com.sarriaroman.fabric.FabricPlugin"/>
<param name="onload" value="true" />
</feature>
</config-file>
<config-file target="AndroidManifest.xml" parent="/*">
<uses-permission android:name="android.permission.INTERNET" />
</config-file>
<config-file target="AndroidManifest.xml" parent="application">
<meta-data android:name="io.fabric.ApiKey" android:value="$FABRIC_API_KEY"/>
</config-file>
<source-file src="src/android/FabricPlugin.java" target-dir="src/com/sarriaroman/fabric"/>
<framework src="src/android/build-extras.gradle" custom="true" type="gradleReference" />
</platform>
<!-- ios -->
<platform name="ios">
<config-file parent="/*" target="config.xml">
<feature name="FabricPlugin">
<param name="ios-package" value="FabricPlugin"/>
<param name="onload" value="true" />
</feature>
</config-file>
<config-file target="*-Info.plist" parent="Fabric">
<dict>
<key>APIKey</key>
<string>$FABRIC_API_KEY</string>
<key>Kits</key>
<array>
<dict>
<key>KitInfo</key>
<dict/>
<key>KitName</key>
<string>Crashlytics</string>
</dict>
<dict>
<key>KitInfo</key>
<dict/>
<key>KitName</key>
<string>Answers</string>
</dict>
</array>
</dict>
</config-file>
<source-file src="src/ios/FabricPlugin.m"/>
</platform>
</plugin>