-
Notifications
You must be signed in to change notification settings - Fork 1
/
plugin.xml
96 lines (78 loc) · 4.13 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
<?xml version='1.0' encoding='utf-8'?>
<!--
Copyright 2022 Wultra s.r.o.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http:www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions
and limitations under the License.
-->
<plugin id="cordova-plugin-malwarelytics" version="5.2.2-dev" xmlns="http://apache.org/cordova/ns/plugins/1.0" xmlns:android="http://schemas.android.com/apk/res/android">
<name>MalwarelyticsPlugin</name>
<description>Cordova plugin for Malwarelytics</description>
<author>Wultra</author>
<license>Apache 2.0</license>
<keywords>cordova,android,malwarelytics</keywords>
<js-module name="MalwarelyticsPlugin" src="www/MalwarelyticsPlugin.js">
<clobbers target="window.plugins.malwarelytics" />
</js-module>
<engines>
<engine name="cordova" version=">=12.0.0"/>
<engine name="cordova-android" version=">=12.0.0" />
<engine name="cordova-ios" version=">=7.0.0" />
</engines>
<!-- ANDROID -->
<platform name="android" kotlin="1.8.20">
<!-- Cleanup Kotlin source on uninstall -->
<hook type="before_plugin_uninstall" src="hooks/android/on-uninstall.js" />
<!-- Hook for generating credentials class and gradle files -->
<hook type="before_prepare" src="hooks/android/integrate-malwarelytics.js" />
<hook type="before_build" src="hooks/android/integrate-malwarelytics.js" />
<!-- Base Configuration -->
<config-file parent="/*" target="res/xml/config.xml">
<feature name="MalwarelyticsPlugin">
<param name="android-package" value="com.wultra.android.cordova.malwarelytics.plugin.MalwarelyticsPlugin" />
</feature>
</config-file>
<!-- Code Files -->
<config-file parent="/*" target="AndroidManifest.xml" />
<source-file src="src/android/MalwarelyticsPlugin.kt" target-dir="app/src/main/kotlin/com/wultra/android/cordova/malwarelytics/plugin" />
<framework src="src/android/build.gradle" custom="true" type="gradleReference" />
</platform>
<!-- iOS -->
<platform name="ios">
<!-- Configuration file -->
<config-file target="config.xml" parent="/*">
<feature name="MalwarelyticsPlugin">
<param name="ios-package" value="MalwarelyticsPlugin" />
</feature>
<preference name="deployment-target" value="12.0" />
<preference name="UseSwiftLanguageVersion" value="5" />
</config-file>
<!-- Cleanup on uninstall -->
<hook type="before_plugin_uninstall" src="hooks/android/on-uninstall.js" />
<!-- Hooks for generating credentials class and jfrog credentials -->
<hook type="after_prepare" src="hooks/apple/integrate-malwarelytics.js" />
<hook type="before_platform_add" src="hooks/apple/patch-netrc.js" />
<hook type="before_plugin_install" src="hooks/apple/patch-netrc.js" />
<hook type="before_build" src="hooks/apple/patch-netrc.js" />
<!-- Adding app presence queries to Info.plist -->
<hook type="before_compile" src="hooks/apple/add-app-presence-queries.js" />
<!-- Source Files -->
<source-file src="src/ios/MalwarelyticsPlugin.swift" target-dir="MalwarelyticsPlugin"/>
<source-file src="src/ios/MalwarelyticsPluginConfiguration.swift" target-dir="MalwarelyticsPlugin"/>
<dependency id="cordova-plugin-add-swift-support" />
<podspec>
<config>
<source url="https://github.com/CocoaPods/Specs.git"/>
</config>
<pods use-frameworks="true">
<pod name="AppProtection" options=":git => 'https://github.com/wultra/malwarelytics-apple-release.git', :tag => '2.1.1'" />
</pods>
</podspec>
</platform>
</plugin>