-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathplugin.xml
More file actions
72 lines (71 loc) · 4.23 KB
/
plugin.xml
File metadata and controls
72 lines (71 loc) · 4.23 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
71
72
<?xml version='1.0' encoding='utf-8'?>
<plugin id="TMXProfilingPlugin" version="1.0"
xmlns="http://apache.org/cordova/ns/plugins/1.0"
xmlns:android="http://schemas.android.com/apk/res/android">
<name>cordova-plugin-tmxprofilingplugin</name>
<js-module name="TMXProfilingPlugin" src="www/TMXProfilingPlugin.js">
<clobbers target="cordova.plugins.TMXProfilingPlugin" />
</js-module>
<platform name="android">
<config-file target="config.xml" parent="/*">
<feature name="TMXProfilingPlugin">
<param name="android-package" value="com.threatmetrix.cordova.plugin.TMXProfilingPlugin"/>
</feature>
</config-file>
<!-- Internet, Location Permissions and WiFi -->
<config-file target="app/src/main/AndroidManifest.xml" parent="/*">
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
<uses-permission android:name="android.permission.CHANGE_WIFI_STATE" />
</config-file>
<!-- Add queries for WebView packages -->
<config-file target="app/src/main/AndroidManifest.xml" parent="/*">
<queries>
<package android:name="com.google.android.webview" />
<package android:name="com.android.webview" />
</queries>
</config-file>
<!--<config-file target="app/src/main/AndroidManifest.xml" parent="/manifest">
<uses-permission android:name="android.permission.QUERY_ALL_PACKAGES" />
</config-file> -->
<!-- Permission for Advertising ID when targeting API 33 -->
<config-file target="app/src/main/AndroidManifest.xml" parent="/*">
<uses-permission android:name="com.google.android.gms.permission.AD_ID" />
</config-file>
<source-file src="src/android/TMXProfilingPlugin.java" target-dir="src/com/threatmetrix/cordova/plugin" />
<resource-file src="src/android/libs/TMXProfiling-7.2-32.aar" target="libs/TMXProfiling-7.2-32.aar" />
<resource-file src="src/android/libs/TMXProfilingConnections-7.2-32.aar" target="libs/TMXProfilingConnections-7.2-32.aar" />
<!--<resource-file src="src/android/libs/TMXDeviceSecurityHealth-7.2-32.aar" target="libs/TMXDeviceSecurityHealth-7.2-32.aar" /> -->
<framework src="src/android/build.gradle" custom="true" type="gradleReference" />
</platform>
<platform name="ios">
<hook type="before_plugin_install" src="hooks/install_prerequisites.js" />
<hook type="after_plugin_add" src="hooks/add_swift_support.js" />
<!-- Usage description of the Location permission request -->
<preference name="LOCATION_WHENINUSE_USAGE_DESCRIPTION" default=" " />
<config-file target="*-Info.plist" parent="NSLocationWhenInUseUsageDescription">
<string>$LOCATION_WHENINUSE_USAGE_DESCRIPTION</string>
</config-file>
<config-file target="config.xml" parent="/*">
<feature name="TMXProfilingPlugin">
<param name="ios-package" value="TMXProfilingPlugin" />
<param name="onload" value="true" />
</feature>
</config-file>
<config-file target="*.entitlements" parent="com.apple.developer.networking.wifi-info">
<true/>
</config-file>
<config-file target="**/Entitlements-Debug.plist" parent="com.apple.developer.networking.wifi-info">
<true/>
</config-file>
<config-file target="**/Entitlements-Release.plist" parent="com.apple.developer.networking.wifi-info">
<true/>
</config-file>
<source-file src="src/ios/TMXProfilingPlugin.swift" />
<framework src="src/ios/frameworks/TMXProfiling.xcframework" custom="true" embed="true" />
<framework src="src/ios/frameworks/TMXProfilingConnections.xcframework" custom="true" embed="true" />
<source-file src="src/ios/frameworks/TMXProfilingConnections.xcframework/ios-arm64/TMXProfilingConnections.framework" framework="true" />
</platform>
</plugin>