forked from chemerisuk/cordova-plugin-firebase-crash
-
Notifications
You must be signed in to change notification settings - Fork 3
/
plugin.xml
88 lines (67 loc) · 3.55 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
<plugin xmlns="http://apache.org/cordova/ns/plugins/1.0"
xmlns:android="http://schemas.android.com/apk/res/android"
id="cordova-plugin-firebase-crash"
version="3.0.0-OS11">
<name>cordova-plugin-firebase-crash</name>
<description>Cordova plugin for Firebase Crashlytics</description>
<license>MIT</license>
<keywords>cordova</keywords>
<repo>https://github.com/chemerisuk/cordova-plugin-firebase-crash</repo>
<issue>https://github.com/chemerisuk/cordova-plugin-firebase-crash/issues</issue>
<engines>
<engine name="cordova" version=">=7.1.0"/>
<engine name="cordova-android" version=">=8.1.0"/>
<engine name="cordova-ios" version=">=5.1.1"/>
</engines>
<dependency id="cordova-outsystems-firebase-core" url="https://github.com/OutSystems/cordova-outsystems-firebase-core.git#2.0.0"/>
<js-module src="www/FirebaseCrash.js" name="FirebaseCrash">
<merges target="cordova.plugins.firebase.crashlytics" />
</js-module>
<preference name="FIREBASE_CRASHLYTICS_COLLECTION_ENABLED" default="true" />
<platform name="ios">
<preference name="IOS_FIREBASE_CRASHLYTICS_VERSION" default="10.23.0"/>
<hook type="after_plugin_install" src="hooks/ios/after_plugin_install.js" />
<hook type="before_plugin_uninstall" src="hooks/ios/before_plugin_uninstall.js" />
<config-file parent="/*" target="config.xml">
<feature name="FirebaseCrash">
<param name="ios-package" value="FirebaseCrashPlugin" />
<param name="onload" value="true" />
</feature>
</config-file>
<!--
use a bit hacky method to set boolean value as a string:
https://developer.apple.com/documentation/foundation/nsstring/1409420-boolvalue?preferredLanguage=occ
-->
<config-file target="*-Info.plist" parent="FirebaseCrashlyticsCollectionEnabled">
<string>$FIREBASE_CRASHLYTICS_COLLECTION_ENABLED</string>
</config-file>
<header-file src="src/ios/FirebaseCrashPlugin.h" />
<source-file src="src/ios/FirebaseCrashPlugin.m" />
<podspec>
<config>
<source url="https://cdn.cocoapods.org/"/>
</config>
<pods use-frameworks="true">
<pod name="FirebaseCrashlytics" spec="$IOS_FIREBASE_CRASHLYTICS_VERSION" />
</pods>
</podspec>
</platform>
<platform name="android">
<hook type="before_plugin_install" src="hooks/android/build_gradle_add_dependency.js" />
<config-file parent="/*" target="res/xml/config.xml">
<feature name="FirebaseCrash">
<param name="android-package" value="by.chemerisuk.cordova.firebase.FirebaseCrashPlugin" />
<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="/manifest/application">
<meta-data android:name="firebase_crashlytics_collection_enabled" android:value="$FIREBASE_CRASHLYTICS_COLLECTION_ENABLED" />
</config-file>
<source-file src="src/android/FirebaseCrashPlugin.java" target-dir="src/by/chemerisuk/cordova/firebase/" />
<dependency id="cordova-support-android-plugin" version="~1.0.0"/>
<framework src="src/android/build.gradle" custom="true" type="gradleReference" />
</platform>
</plugin>