This repository has been archived by the owner on Apr 4, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 51
/
plugin.xml
165 lines (131 loc) · 6.93 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
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
<?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="countly-sdk-cordova" version="22.09.0">
<name>Countly Cordova SDK</name>
<description>
Countly is an innovative, real-time, open source mobile analytics and push notifications platform. It collects data from mobile devices, and visualizes this information to analyze mobile application usage and end-user behavior. There are two parts of Countly: the server that collects and analyzes data, and mobile SDK that sends this data. Both parts are open source with different licensing terms.
</description>
<author>Countly</author>
<license>MIT</license>
<keywords>Event, Mobile analytical</keywords>
<repo>https://github.com/Countly/countly-sdk-cordova.git</repo>
<issue>https://github.com/Countly/countly-sdk-cordova/issues</issue>
<engines>
<engine name="cordova" version=">=9.0.0"/>
<engine name="cordova-android" version=">=8.0.0"/>
<engine name="cordova-ios" version=">=5.0.0"/>
</engines>
<js-module src="Countly.js" name="Countly">
<clobbers target="window.plugins.Countly" />
</js-module>
<!-- ios -->
<platform name="ios">
<config-file target="config.xml" parent="/*">
<feature name="CountlyCordova">
<param name="ios-package" value="CountlyCordova"/>
<param name="onload" value="true" />
</feature>
</config-file>
<header-file src="src/ios/CountlyCordova.h"/>
<source-file src="src/ios/CountlyCordova.m"/>
<header-file src="src/ios/CountlyNative.h"/>
<source-file src="src/ios/CountlyNative.m"/>
<source-file src="src/ios/CountlyiOS/Countly.m"/>
<header-file src="src/ios/CountlyiOS/Countly.h"/>
<header-file src="src/ios/CountlyiOS/CountlyCommon.h"/>
<source-file src="src/ios/CountlyiOS/CountlyCommon.m"/>
<header-file src="src/ios/CountlyiOS/CountlyConfig.h"/>
<source-file src="src/ios/CountlyiOS/CountlyConfig.m"/>
<header-file src="src/ios/CountlyiOS/CountlyConnectionManager.h"/>
<source-file src="src/ios/CountlyiOS/CountlyConnectionManager.m"/>
<header-file src="src/ios/CountlyiOS/CountlyConsentManager.h"/>
<source-file src="src/ios/CountlyiOS/CountlyConsentManager.m"/>
<header-file src="src/ios/CountlyiOS/CountlyCrashReporter.h"/>
<source-file src="src/ios/CountlyiOS/CountlyCrashReporter.m"/>
<header-file src="src/ios/CountlyiOS/CountlyDeviceInfo.h"/>
<source-file src="src/ios/CountlyiOS/CountlyDeviceInfo.m"/>
<header-file src="src/ios/CountlyiOS/CountlyEvent.h"/>
<source-file src="src/ios/CountlyiOS/CountlyEvent.m"/>
<header-file src="src/ios/CountlyiOS/CountlyFeedbacks.h"/>
<source-file src="src/ios/CountlyiOS/CountlyFeedbacks.m"/>
<header-file src="src/ios/CountlyiOS/CountlyFeedbackWidget.h"/>
<source-file src="src/ios/CountlyiOS/CountlyFeedbackWidget.m"/>
<header-file src="src/ios/CountlyiOS/CountlyLocationManager.h"/>
<source-file src="src/ios/CountlyiOS/CountlyLocationManager.m"/>
<header-file src="src/ios/CountlyiOS/CountlyNotificationService.h"/>
<source-file src="src/ios/CountlyiOS/CountlyNotificationService.m"/>
<header-file src="src/ios/CountlyiOS/CountlyPerformanceMonitoring.h"/>
<source-file src="src/ios/CountlyiOS/CountlyPerformanceMonitoring.m"/>
<header-file src="src/ios/CountlyiOS/CountlyPersistency.h"/>
<source-file src="src/ios/CountlyiOS/CountlyPersistency.m"/>
<header-file src="src/ios/CountlyiOS/CountlyPushNotifications.h"/>
<source-file src="src/ios/CountlyiOS/CountlyPushNotifications.m"/>
<header-file src="src/ios/CountlyiOS/CountlyRemoteConfig.h"/>
<source-file src="src/ios/CountlyiOS/CountlyRemoteConfig.m"/>
<header-file src="src/ios/CountlyiOS/CountlyUserDetails.h"/>
<source-file src="src/ios/CountlyiOS/CountlyUserDetails.m"/>
<header-file src="src/ios/CountlyiOS/CountlyViewTracking.h"/>
<source-file src="src/ios/CountlyiOS/CountlyViewTracking.m"/>
<!-- <source-file src="src/ios/CountlyiOS/CountlyiOS"/> -->
<framework src="CoreTelephony.framework" weak="true" />
<framework src="OpenGLES.framework" weak="true" />
<podspec>
<config>
<source url="https://github.com/CocoaPods/Specs.git"/>
</config>
<pods use-frameworks="true">
</pods>
</podspec>
<!-- Push notification -->
<config-file target="*-Debug.plist" parent="aps-environment">
<string>development</string>
</config-file>
<config-file target="*-Release.plist" parent="aps-environment">
<string>production</string>
</config-file>
<config-file target="*-Info.plist" parent="UIBackgroundModes">
<array>
<string>remote-notification</string>
</array>
</config-file>
<hook type="after_platform_add" src="hooks/createService.js"/>
</platform>
<!-- android -->
<platform name="android">
<config-file target="res/xml/config.xml" parent="/*">
<feature name="CountlyCordova">
<param name="android-package" value="ly.count.android.sdk.CountlyCordova" />
<param name="onload" value="true" />
</feature>
</config-file>
<config-file target="AndroidManifest.xml" parent="/manifest">
<uses-permission android:name="android.permission.INTERNET"/>
</config-file>
<config-file target="AndroidManifest.xml" parent="/manifest/application">
<service android:name="org.openudid.OpenUDID_service" android:exported="true">
<intent-filter>
<action android:name="org.openudid.GETUDID" />
</intent-filter>
</service>
</config-file>
<source-file src="src/android/CountlyCordova.java" target-dir="src/ly/count/android/sdk"/>
<source-file src="src/android/CountlyNative.java" target-dir="src/ly/count/android/sdk"/>
<framework src="ly.count.android:sdk:22.06.2" />
<!-- Push notification -->
<config-file target="AndroidManifest.xml" parent="/manifest/application">
<service android:name="ly.count.android.sdk.CountlyMessagingService" android:exported="true">
<intent-filter>
<action android:name="com.google.firebase.MESSAGING_EVENT" />
</intent-filter>
</service>
</config-file>
<!-- Android Broadcast vulnerability fix-->>
<config-file target="AndroidManifest.xml" parent="/manifest">
<uses-permission android:name="${applicationId}.CountlyPush.BROADCAST_PERMISSION" />
<uses-permission android:name="android.permission.BROADCAST_CLOSE_SYSTEM_DIALOGS" android:maxSdkVersion="30" />
<permission android:name="${applicationId}.CountlyPush.BROADCAST_PERMISSION" android:protectionLevel="signature" />
</config-file>
<!-- if any version higher than 18.0.0 is used then it forces AndroidX -->
<framework src="com.google.firebase:firebase-messaging:18.0.0" />
<source-file src="src/android/CountlyMessagingService.java" target-dir="src/ly/count/android/sdk"/>
</platform>
</plugin>