-
Notifications
You must be signed in to change notification settings - Fork 53
/
Copy pathplugin.xml
76 lines (76 loc) · 4.53 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
<?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="@spoonconsulting/cordova-plugin-background-upload" version="4.1.2">
<name>Cordova Background Upload Plugin</name>
<description>Background Upload plugin for Cordova</description>
<license>ISC</license>
<keywords>cordova,background,file,download,workmanager</keywords>
<js-module src="www/FileTransferManager.js" name="FileTransferManager">
<clobbers target="FileTransferManager" />
</js-module>
<engines>
<engine name="cordova" version=">=8.0.0" />
<engine name="cordova-android" version=">=8.0.0" />
</engines>
<dependency id="cordova-plugin-file" version="8.1.0"/>
<platform name="android">
<framework src="androidx.work:work-runtime:2.8.0" />
<framework src="com.squareup.okhttp3:okhttp:4.9.3" />
<framework src="androidx.room:room-runtime:2.5.0" />
<framework src="src/android/config.gradle" custom="true" type="gradleReference"/>
<config-file target="res/xml/config.xml" parent="/*">
<feature name="FileTransferBackground">
<param name="android-package" value="com.spoon.backgroundfileupload.FileTransferBackground" />
</feature>
<feature name="UploadEvent">
<param name="android-package" value="com.spoon.backgroundfileupload.UploadEvent" />
</feature>
<feature name="PendingUpload">
<param name="android-package" value="com.spoon.backgroundfileupload.PendingUpload" />
</feature>
</config-file>
<config-file target="AndroidManifest.xml" parent="/manifest">
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
<uses-permission android:name="android.permission.POST_NOTIFICATIONS"/>
</config-file>
<config-file target="AndroidManifest.xml" parent="/manifest/application">
<meta-data android:name="DATABASE" android:value="cordova-plugin-background-upload.db" />
<meta-data android:name="VERSION" android:value="1" />
<meta-data android:name="QUERY_LOG" android:value="false" />
<meta-data android:name="DOMAIN_PACKAGE_NAME" android:value="com.spoon.backgroundfileupload" />
</config-file>
<source-file src="src/android/FileTransferBackground.java" target-dir="src/com/spoon/backgroundfileupload" />
<source-file src="src/android/UploadTask.java" target-dir="src/com/spoon/backgroundfileupload" />
<source-file src="src/android/AckDatabase.java" target-dir="src/com/spoon/backgroundfileupload" />
<source-file src="src/android/UploadEventDao.java" target-dir="src/com/spoon/backgroundfileupload" />
<source-file src="src/android/UploadEvent.java" target-dir="src/com/spoon/backgroundfileupload" />
<source-file src="src/android/ProgressRequestBody.java" target-dir="src/com/spoon/backgroundfileupload" />
<source-file src="src/android/UploadForegroundNotification.java" target-dir="src/com/spoon/backgroundfileupload" />
<source-file src="src/android/UploadNotification.java" target-dir="src/com/spoon/backgroundfileupload" />
<resource-file src="src/android/res/ic_upload.png" target="res/drawable/ic_upload.png" />
</platform>
<platform name="ios">
<podspec>
<config>
<source url="https://cdn.cocoapods.org/"/>
</config>
<pods use-frameworks="true">
<pod name="AFNetworking" spec="~> 4.0.1" />
</pods>
</podspec>
<config-file target="config.xml" parent="/*">
<feature name="FileTransferBackground">
<param name="ios-package" value="FileTransferBackground" />
</feature>
</config-file>
<header-file src="src/ios/FileTransferBackground.h" />
<source-file src="src/ios/FileTransferBackground.m" />
<header-file src="src/ios/UploadEvent.h" />
<source-file src="src/ios/UploadEvent.m" />
<header-file src="src/ios/FileUploader.h" />
<source-file src="src/ios/FileUploader.m" />
</platform>
</plugin>