-
Notifications
You must be signed in to change notification settings - Fork 0
/
plugin.xml
29 lines (29 loc) · 1.33 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
<?xml version='1.0' encoding='utf-8'?>
<plugin id="cordova-download-manager" version="0.0.1" xmlns="http://apache.org/cordova/ns/plugins/1.0"
xmlns:android="http://schemas.android.com/apk/res/android">
<name>DownloadManager</name>
<js-module name="DownloadManager" src="hook/download-manager.js">
<clobbers target="cordova.plugins.DownloadManager"/>
</js-module>
<platform name="android">
<config-file parent="/*" target="res/xml/config.xml">
<feature name="DownloadManager">
<param name="android-package" value="com.dhieu.DownloadManager"/>
<param name="onload" value="true"/>
</feature>
</config-file>
<config-file parent="/*" target="AndroidManifest.xml">
<uses-permission android:name="android.permission.POST_NOTIFICATIONS"/>
</config-file>
<source-file src="src/android/DownloadManager.java" target-dir="src/com/dhieu"/>
</platform>
<platform name="ios">
<config-file target="config.xml" parent="/*">
<feature name="DownloadManager">
<param name="ios-package" value="DownloadManager"/>
</feature>
<preference name="SwiftVersion" value="5"/>
</config-file>
<source-file src="src/ios/DownloadManager.swift"/>
</platform>
</plugin>