-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathplugin.xml
More file actions
70 lines (52 loc) · 2.92 KB
/
plugin.xml
File metadata and controls
70 lines (52 loc) · 2.92 KB
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
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<plugin id="com.outsystems.plugins.firebaseperformance" version="2.0.0" xmlns="http://apache.org/cordova/ns/plugins/1.0" xmlns:android="http://schemas.android.com/apk/res/android">
<name>OSFirebasePerformance</name>
<description>Plugin to support firebase performance monitoring</description>
<author>OutSystems Inc</author>
<js-module name="OSFirebasePerformance" src="www/OSFirebasePerformance.js">
<clobbers target="cordova.plugins.OSFirebasePerformance"/>
</js-module>
<dependency id="cordova-outsystems-firebase-core" url="https://github.com/OutSystems/cordova-outsystems-firebase-core.git#2.0.0"/>
<preference name="PERFORMANCE_MONITORING_ENABLED" default="true" />
<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="OSFirebasePerformance">
<param name="android-package" value="com.outsystems.plugins.firebaseperformance.OSFirebasePerformance"/>
<param name="onload" value="$PERFORMANCE_MONITORING_ENABLED" />
</feature>
</config-file>
<config-file parent="/*" target="AndroidManifest.xml">
<uses-permission android:name="android.permission.INTERNET" />
</config-file>
<config-file target="AndroidManifest.xml" parent="/manifest/application">
<meta-data android:name="firebase_performance_collection_enabled" android:value="$PERFORMANCE_MONITORING_ENABLED" />
</config-file>
<source-file src="src/android/com/outsystems/plugins/firebaseperformance/OSFirebasePerformance.java" target-dir="src/com/outsystems/plugins/firebaseperformance"/>
<framework src="com.google.firebase:firebase-perf:20.0.6" />
<framework src="src/android/build.gradle" custom="true" type="gradleReference" />
</platform>
<platform name="ios">
<preference name="IOS_FIREBASE_PERFORMANCE_VERSION" default="~> 8.6.0"/>
<config-file parent="/*" target="config.xml">
<feature name="OSFirebasePerformance">
<param name="ios-package" value="OSFirebasePerformance"/>
<param name="onload" value="$PERFORMANCE_MONITORING_ENABLED" />
</feature>
</config-file>
<config-file target="*-Info.plist" parent="FIREBASE_PERFORMANCE_COLLECTION_ENABLED">
<string>$PERFORMANCE_MONITORING_ENABLED</string>
</config-file>
<dependency id="cordova-plugin-add-swift-support" url="https://github.com/OutSystems/cordova-plugin-add-swift-support.git#2.0.3-OS1"/>
<source-file src="src/ios/OSFirebasePerformance.swift"/>
<source-file src="src/ios/FirebasePerformancePlugin.swift"/>
<podspec>
<config>
<source url="https://cdn.cocoapods.org/" />
</config>
<pods>
<pod name="Firebase/Performance" spec="$IOS_FIREBASE_PERFORMANCE_VERSION" />
</pods>
</podspec>
</platform>
</plugin>