forked from danwilson/google-analytics-plugin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
plugin.xml
executable file
·122 lines (109 loc) · 5.34 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
<?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="cordova-plugin-google-analytics" version="1.9.1">
<engines>
<engine name="cordova" version=">=3.0.0" />
</engines>
<name>Google Universal Analytics Plugin</name>
<description>Simple tracking (screens/events) for Google Analytics SDK 3.14 (iOS), SDK 4.0 (Android), Browsers and WP8</description>
<author>Daniel C. Wilson</author>
<license>MIT License</license>
<js-module src="www/analytics.js" name="UniversalAnalytics">
<!-- 'analytics' is deprecated, but supported to ease the transition -->
<clobbers target="analytics" />
<clobbers target="ga" />
</js-module>
<platform name="browser">
<js-module src="browser/UniversalAnalyticsProxy.js" name="UniversalAnalyticsProxy">
<runs />
</js-module>
</platform>
<platform name="ios">
<config-file target="config.xml" parent="/*">
<feature name="UniversalAnalytics">
<param name="ios-package" value="UniversalAnalyticsPlugin" />
</feature>
</config-file>
<header-file src="ios/UniversalAnalyticsPlugin.h" />
<source-file src="ios/UniversalAnalyticsPlugin.m" />
<podspec>
<config>
<source url="https://cdn.cocoapods.org/"/>
</config>
<pods use-frameworks="true">
<!-- Updated the lastest pod spec version for GoogleAnalytics to support iOS architecture arm64 -->
<pod name="GoogleAnalytics" spec="3.20.0"/>
<!-- Commented this line, as it needed when we enable IDFA collection. tracker.allowIDFACollection = YES; -->
<!-- <pod name="GoogleIDFASupport" spec="3.14.0" /> -->
</pods>
</podspec>
<pods use-frameworks="true">
<!-- Updated the lastest pod spec version for GoogleAnalytics to support iOS architecture arm64 -->
<pod name="GoogleAnalytics" spec="3.20.0"/>
<!-- Commented this line, as it needed when we enable IDFA collection. tracker.allowIDFACollection = YES; -->
<!-- <pod name="GoogleIDFASupport" spec="3.14.0" /> -->
</pods>
</platform>
<platform name="android">
<framework src="com.google.android.gms:play-services-analytics:$GMS_VERSION" />
<preference name="GMS_VERSION" default="11.0.1"/>
<config-file target="res/xml/config.xml" parent="/*">
<feature name="UniversalAnalytics">
<param name="android-package" value="com.danielcwilson.plugins.analytics.UniversalAnalyticsPlugin" />
</feature>
</config-file>
<config-file target="AndroidManifest.xml" parent="/*">
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
</config-file>
<!-- Add support for devices without Google Play Services installed. -->
<config-file target="AndroidManifest.xml" parent="/manifest/application">
<receiver android:name="com.google.android.gms.analytics.AnalyticsReceiver" android:enabled="true">
<intent-filter>
<action android:name="com.google.android.gms.analytics.ANALYTICS_DISPATCH" />
</intent-filter>
</receiver>
<service android:name="com.google.android.gms.analytics.AnalyticsService" android:enabled="true" android:exported="false"/>
<receiver android:name="com.google.android.gms.analytics.CampaignTrackingReceiver" android:enabled="true" android:exported="true">
<intent-filter>
<action android:name="com.android.vending.INSTALL_REFERRER" />
</intent-filter>
</receiver>
<service android:name="com.google.android.gms.analytics.CampaignTrackingService" android:enabled="true" android:exported="false"/>
</config-file>
<source-file src="android/UniversalAnalyticsPlugin.java" target-dir="src/com/danielcwilson/plugins/analytics" />
</platform>
<platform name="wp8">
<config-file target="config.xml" parent="/*">
<feature name="UniversalAnalytics">
<param name="wp-package" value="UniversalAnalyticsPlugin" />
</feature>
</config-file>
<config-file target="Properties/WMAppManifest.xml" parent="/Deployment/App/Capabilities">
<Capability Name="ID_CAP_NETWORKING" />
</config-file>
<source-file src="wp8/UniversalAnalytics.cs" />
<source-file src="wp8/PhoneHelpers.cs" />
<source-file src="wp8/PhoneNameResolver.cs" />
<source-file src="wp8/PlatformInfoProvider.WP.cs" />
</platform>
<!-- windows -->
<platform name="windows">
<js-module src="windows/GoogleAnalyticsProxy.js" name="UniversalAnalyticsPlugin">
<runs />
</js-module>
<config-file target="package.windows10.appxmanifest" parent="/Package/Capabilities" versions=">=10.0" device-target="win">
<Capability Name="internetClient" />
</config-file>
<config-file target="package.windows.appxmanifest" parent="/Package/Capabilities" versions=">=8.1.0" device-target="win">
<Capability Name="internetClient" />
</config-file>
<config-file target="package.phone.appxmanifest" parent="/Package/Capabilities" versions=">=8.1.0" device-target="phone">
<Capability Name="internetClientServer" />
</config-file>
<info>
You need to install Windows SDK for Google Analytics™ (UWP.SDKforGoogleAnalytics.Native) via nuget package manager
and set target to either x86 or x64!
</info>
</platform>
</plugin>