This repository has been archived by the owner on Sep 27, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 170
/
plugin.xml
70 lines (57 loc) · 2.32 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
<?xml version="1.0" encoding="UTF-8"?>
<plugin xmlns="http://www.phonegap.com/ns/plugins/1.0"
xmlns:android="http://schemas.android.com/apk/res/android"
id="cordova-plugin-crop"
version="0.3.1">
<name>CropPlugin</name>
<description>
Crop an image in a Cordova app
</description>
<license>MIT</license>
<engines>
<engine name="cordova-android" version=">=4.0.0" />
<engine name="cordova-ios" version=">=3.5.0" />
</engines>
<js-module src="www/crop.js" name="CropPlugin">
<clobbers target="plugins.crop" />
</js-module>
<!-- ios -->
<platform name="ios">
<config-file target="config.xml" parent="/*">
<feature name="CropPlugin">
<param name="ios-package" value="CTCrop"/>
</feature>
</config-file>
<header-file src="src/ios/CTCrop.h" />
<source-file src="src/ios/CTCrop.m" />
<header-file src="src/ios/Lib/PECropRectView.h" />
<source-file src="src/ios/Lib/PECropRectView.m" />
<header-file src="src/ios/Lib/PECropView.h" />
<source-file src="src/ios/Lib/PECropView.m" />
<header-file src="src/ios/Lib/PECropViewController.h" />
<source-file src="src/ios/Lib/PECropViewController.m" />
<header-file src="src/ios/Lib/PEResizeControl.h" />
<source-file src="src/ios/Lib/PEResizeControl.m" />
<header-file src="src/ios/Lib/UIImage+PECrop.h" />
<source-file src="src/ios/Lib/UIImage+PECrop.m" />
<resource-file src="src/ios/Lib/PEPhotoCropEditor.bundle" />
<framework src="QuartzCore.framework" />
<framework src="AVFoundation.framework" />
</platform>
<!-- android -->
<platform name="android">
<config-file target="res/xml/config.xml" parent="/*">
<feature name="CropPlugin">
<param name="android-package" value="com.jeduan.crop.CropPlugin"/>
</feature>
</config-file>
<framework src="com.soundcloud.android:android-crop:1.0.0@aar" />
<config-file target="AndroidManifest.xml" parent="/manifest/application">
<activity android:name="com.soundcloud.android.crop.CropImageActivity" />
</config-file>
<config-file target="AndroidManifest.xml" parent="/manifest">
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
</config-file>
<source-file src="src/android/CropPlugin.java" target-dir="src/com/jeduan/crop" />
</platform>
</plugin>