forked from chemerisuk/cordova-plugin-firebase-analytics
-
Notifications
You must be signed in to change notification settings - Fork 20
/
plugin.xml
125 lines (96 loc) · 7.23 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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
<plugin xmlns="http://apache.org/cordova/ns/plugins/1.0"
xmlns:android="http://schemas.android.com/apk/res/android"
id="cordova-plugin-firebase-analytics"
version="5.0.0-OS16">
<name>FirebaseAnalyticsPlugin</name>
<description>Cordova plugin for Firebase Analytics</description>
<license>MIT</license>
<keywords>cordova</keywords>
<repo>https://github.com/chemerisuk/cordova-plugin-firebase-analytics</repo>
<issue>https://github.com/chemerisuk/cordova-plugin-firebase-analytics/issues</issue>
<js-module src="www/FirebaseAnalytics.js" name="FirebaseAnalytics">
<merges target="cordova.plugins.firebase.analytics" />
</js-module>
<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>
<preference name="AUTOMATIC_SCREEN_REPORTING_ENABLED" default="true" />
<preference name="USER_TRACKING_DESCRIPTION_IOS" default="$(PRODUCT_NAME) needs your attention." />
<dependency id="cordova-outsystems-firebase-core" url="https://github.com/OutSystems/cordova-outsystems-firebase-core.git#2.0.0"/>
<platform name="ios">
<preference name="IOS_FIREBASE_ANALYTICS_VERSION" default="10.23.0"/>
<hook type="after_prepare" src="hooks/ios/iOSCopyPreferences.js" />
<config-file target="config.xml" parent="/*">
<feature name="FirebaseAnalytics">
<param name="ios-package" value="FirebaseAnalyticsPlugin" />
<param name="onload" value="true" />
</feature>
</config-file>
<dependency id="cordova-plugin-add-swift-support" url="https://github.com/OutSystems/cordova-plugin-add-swift-support.git#2.0.3-OS1"/>
<!--
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="FirebaseAutomaticScreenReportingEnabled">
<string>$AUTOMATIC_SCREEN_REPORTING_ENABLED</string>
</config-file>
<config-file target="*-Info.plist" parent="NSUserTrackingUsageDescription">
<string>$USER_TRACKING_DESCRIPTION_IOS</string>
</config-file>
<header-file src="src/ios/FirebaseAnalyticsPlugin.h" />
<source-file src="src/ios/FirebaseAnalyticsPlugin.m" />
<source-file src="src/ios/Common/Extensions/StringConvertable.swift" target-dir="Common/Extensions" />
<source-file src="src/ios/Common/OSFANLDefaultValues.swift" target-dir="Common" />
<source-file src="src/ios/Common/OSFANLError.swift" target-dir="Common" />
<source-file src="src/ios/Common/OSFANLInputDataFieldKey.swift" target-dir="Common" />
<source-file src="src/ios/Common/OSFANLConsentHelper.swift" target-dir="Common" />
<source-file src="src/ios/InputTransformer/OSFANLInputTransformable.swift" target-dir="InputTransformer" />
<source-file src="src/ios/InputTransformer/OSFANLInputTransformableModel.swift" target-dir="InputTransformer" />
<source-file src="src/ios/InputTransformer/OSFANLInputTransformer.swift" target-dir="InputTransformer" />
<source-file src="src/ios/Manager/OSFANLManageable.swift" target-dir="Manager" />
<source-file src="src/ios/Manager/OSFANLManager.swift" target-dir="Manager" />
<source-file src="src/ios/Manager/OSFANLManager+EventValidationRules.swift" target-dir="Manager" />
<source-file src="src/ios/Manager/OSFANLManagerFactory.swift" target-dir="Manager" />
<source-file src="src/ios/Manager/OSFANLOutputModel.swift" target-dir="Manager" />
<source-file src="src/ios/Validator/OSFANLEventValidator.swift" target-dir="Validator" />
<podspec>
<config>
<source url="https://cdn.cocoapods.org/"/>
</config>
<pods use-frameworks="true">
<pod name="FirebaseAnalytics" spec="$IOS_FIREBASE_ANALYTICS_VERSION" />
</pods>
</podspec>
</platform>
<platform name="android">
<hook type="after_prepare" src="hooks/android/androidCopyPreferences.js" />
<config-file target="res/xml/config.xml" parent="/*">
<feature name="FirebaseAnalytics">
<param name="android-package" value="com.outsystems.plugins.firebase.analytics.FirebaseAnalyticsPlugin" />
<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="google_analytics_automatic_screen_reporting_enabled" android:value="$AUTOMATIC_SCREEN_REPORTING_ENABLED" />
</config-file>
<dependency id="cordova-support-android-plugin" version="~1.0.0"/>
<framework src="build.gradle" custom="true" type="gradleReference" />
<source-file src="src/android/com/outsystems/firebase/analytics/FirebaseAnalyticsPlugin.java" target-dir="src/com/outsystems/plugins/firebase/analytics/" />
<source-file src="src/android/com/outsystems/firebase/analytics/model/OSFANLBundle+putAny.kt" target-dir="app/src/main/kotlin/com/outsystems/firebase/analytics/model/" />
<source-file src="src/android/com/outsystems/firebase/analytics/model/OSFANLJSONArray+extension.kt" target-dir="app/src/main/kotlin/com/outsystems/firebase/analytics/model/" />
<source-file src="src/android/com/outsystems/firebase/analytics/model/OSFANLDefaultValues.kt" target-dir="app/src/main/kotlin/com/outsystems/firebase/analytics/model/" />
<source-file src="src/android/com/outsystems/firebase/analytics/model/OSFANLConsentModels.kt" target-dir="app/src/main/kotlin/com/outsystems/firebase/analytics/model/" />
<source-file src="src/android/com/outsystems/firebase/analytics/model/OSFANLError.kt" target-dir="app/src/main/kotlin/com/outsystems/firebase/analytics/model/" />
<source-file src="src/android/com/outsystems/firebase/analytics/model/OSFANLEventOutputModel.kt" target-dir="app/src/main/kotlin/com/outsystems/firebase/analytics/model/" />
<source-file src="src/android/com/outsystems/firebase/analytics/model/OSFANLInputDataFieldKey.kt" target-dir="app/src/main/kotlin/com/outsystems/firebase/analytics/model/" />
<source-file src="src/android/com/outsystems/firebase/analytics/validator/OSFANLEventItemsValidator.kt" target-dir="app/src/main/kotlin/com/outsystems/firebase/analytics/validator/" />
<source-file src="src/android/com/outsystems/firebase/analytics/validator/OSFANLEventParameterValidator.kt" target-dir="app/src/main/kotlin/com/outsystems/firebase/analytics/validator/" />
<source-file src="src/android/com/outsystems/firebase/analytics/validator/OSFANLMinimumRequired.kt" target-dir="app/src/main/kotlin/com/outsystems/firebase/analytics/validator/" />
<source-file src="src/android/com/outsystems/firebase/analytics/OSFANLManager.kt" target-dir="app/src/main/kotlin/com/outsystems/firebase/analytics/" />
</platform>
</plugin>