forked from jeduan/cordova-plugin-crop
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathplugin.xml
91 lines (75 loc) · 3.22 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
<?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.1.0">
<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>
<!-- @SK: Use v.1.0.1 -->
<framework src="com.soundcloud.android:android-crop:1.0.1@aar" />
<config-file target="AndroidManifest.xml" parent="/manifest/application">
<activity android:name="com.soundcloud.android.crop.CropImageActivity" android:theme="@style/CustomCropTheme" />
<!-- android:label="@string/multi_app_name" -->
</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" />
</config-file>
<source-file src="src/android/CropPlugin.java" target-dir="src/com/jeduan/crop" />
<!-- @SK: Set the theme here, since it clashes with existing res/values/themes.xml -->
<config-file target="res/values/themes.xml" parent="/*">
<style name="CustomCropTheme" parent="android:Theme.DeviceDefault">
<item name="cropImageStyle">@style/Widget.CropImageView</item>
</style>
<style name="Widget.CropImageView" parent="android:Widget">
<item name="showThirds">true</item>
<item name="showCircle">false</item>
<item name="showHandles">always</item>
<item name="highlightColor">#00B7E5</item>
</style>
</config-file>
<!--
<source-file src="src/android/Library/res/values/themes.xml" target-dir="res/values"/>
-->
</platform>
</plugin>