-
Notifications
You must be signed in to change notification settings - Fork 108
/
plugin.xml
275 lines (218 loc) · 16.2 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
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
<?xml version="1.0" encoding="UTF-8"?>
<!--
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you 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 xmlns="http://apache.org/cordova/ns/plugins/1.0"
id="cordova-plugin-imagepicker"
version="1.2.2">
<name>ImagePicker</name>
<description>Cordova ImagePicker Plugin</description>
<license>Apache 2.0</license>
<keywords>cordova,ImagePicker</keywords>
<repo>https://github.com/giantss/cordova-plugin-ImagePicker.git</repo>
<issue>https://github.com/giantss/cordova-plugin-ImagePicker/issues</issue>
<!--require cordova version -->
<engines>
<engine name="cordova" version=">=6.0.0" />
<engine name="cordova-android" version=">=6.0.0" />
<engine name="cordova-ios" version=">=4.0.0" />
</engines>
<!-- js module-->
<js-module src="www/ImagePicker.js" name="ImagePicker">
<clobbers target="ImagePicker" />
</js-module>
<!-- ios -->
<platform name="ios">
<config-file target="config.xml" parent="/*">
<feature name="ImagePicker">
<param name="ios-package" value="ImagePicker"/>
</feature>
</config-file>
<preference name="CAMERA_USAGE_DESCRIPTION" default="拍照上传需要使用相机" />
<config-file target="*-Info.plist" parent="NSCameraUsageDescription">
<string>$CAMERA_USAGE_DESCRIPTION</string>
</config-file>
<preference name="PHOTOLIBRARY_USAGE_DESCRIPTION" default="选图上传需要访问相册" />
<config-file target="*-Info.plist" parent="NSPhotoLibraryUsageDescription">
<string>$PHOTOLIBRARY_USAGE_DESCRIPTION</string>
</config-file>
<header-file src="src/ios/ImagePickerMain.h"/>
<source-file src="src/ios/ImagePickerMain.m"/>
<header-file src="src/ios/UIImage+Luban_iOS_Extension_h.h"/>
<source-file src="src/ios/UIImage+Luban_iOS_Extension_h.m"/>
<header-file src="src/ios/libs/LxGridViewFlowLayout.h" />
<source-file src="src/ios/libs/LxGridViewFlowLayout.m"/>
<header-file src="src/ios/libs/TZTestCell.h" />
<source-file src="src/ios/libs/TZTestCell.m"/>
<header-file src="src/ios/libs/NSBundle+TZImagePicker.h" />
<source-file src="src/ios/libs/NSBundle+TZImagePicker.m"/>
<header-file src="src/ios/libs/TZAssetCell.h" />
<source-file src="src/ios/libs/TZAssetCell.m"/>
<header-file src="src/ios/libs/TZAssetModel.h" />
<source-file src="src/ios/libs/TZAssetModel.m"/>
<header-file src="src/ios/libs/TZGifPhotoPreviewController.h" />
<source-file src="src/ios/libs/TZGifPhotoPreviewController.m"/>
<header-file src="src/ios/libs/TZImageCropManager.h" />
<source-file src="src/ios/libs/TZImageCropManager.m"/>
<header-file src="src/ios/libs/TZImageManager.h" />
<source-file src="src/ios/libs/TZImageManager.m"/>
<header-file src="src/ios/libs/TZImagePickerController.h" />
<source-file src="src/ios/libs/TZImagePickerController.m"/>
<header-file src="src/ios/libs/TZLocationManager.h" />
<source-file src="src/ios/libs/TZLocationManager.m"/>
<header-file src="src/ios/libs/TZPhotoPickerController.h" />
<source-file src="src/ios/libs/TZPhotoPickerController.m"/>
<header-file src="src/ios/libs/TZPhotoPreviewCell.h" />
<source-file src="src/ios/libs/TZPhotoPreviewCell.m"/>
<header-file src="src/ios/libs/TZImageRequestOperation.h" />
<source-file src="src/ios/libs/TZImageRequestOperation.m"/>
<header-file src="src/ios/libs/TZPhotoPreviewController.h" />
<source-file src="src/ios/libs/TZPhotoPreviewController.m"/>
<header-file src="src/ios/libs/TZProgressView.h" />
<source-file src="src/ios/libs/TZProgressView.m"/>
<header-file src="src/ios/libs/TZVideoPlayerController.h" />
<source-file src="src/ios/libs/TZVideoPlayerController.m"/>
<header-file src="src/ios/libs/UIView+Layout.h" />
<source-file src="src/ios/libs/UIView+Layout.m"/>
<resource-file src="src/ios/libs/TZImagePickerController.bundle" />
</platform>
<!-- android -->
<platform name="android">
<config-file target="res/xml/config.xml" parent="/*">
<feature name="ImagePicker">
<param name="android-package" value="com.giants.imagepicker.ImagePickerMain"/>
</feature>
</config-file>
<!--edit-config 修改 AndroidManifest.xml 添加 android:largeHeap="true" 目前有 bug,改成使用 hook-->
<!--Cordova-Android 6.0-->
<!--<edit-config file="AndroidManifest.xml" mode="merge" target="/manifest/application">
<application android:largeHeap="true" />
</edit-config>-->
<!--Cordova-Android 7.0-->
<!--<edit-config file="app/src/main/AndroidManifest.xml" mode="merge" target="/manifest/application">
<application android:largeHeap="true" />
</edit-config>-->
<hook type="after_prepare" src="hooks/after_prepare/010-update-android-manifest.js" />
<config-file target="AndroidManifest.xml" parent="/manifest/application">
<activity
android:name="com.lzy.imagepicker.ui.ImageGridActivity"
android:configChanges="orientation|screenSize"
android:theme="@style/Theme.AppCompat.Light.NoActionBar"/>
<activity
android:name="com.lzy.imagepicker.ui.ImageCropActivity"
android:configChanges="orientation|screenSize"
android:hardwareAccelerated="false"
android:theme="@style/Theme.AppCompat.Light.NoActionBar"/>
<activity
android:name="com.lzy.imagepicker.ui.ImagePreviewActivity"
android:configChanges="orientation|screenSize"
android:theme="@style/Theme.AppCompat.Light.NoActionBar"/>
<provider
android:authorities="${applicationId}.imagepicker.provider"
android:name="com.lzy.imagepicker.ImagePickerProvider"
android:exported="false"
android:grantUriPermissions="true">
<meta-data
android:name="android.support.FILE_PROVIDER_PATHS"
android:resource="@xml/imagepicker_provider_paths"/>
</provider>
</config-file>
<config-file target="AndroidManifest.xml" parent="/manifest">
<!-- 在SDCard中创建与删除文件权限 -->
<uses-permission android:name="android.permission.MOUNT_UNMOUNT_FILESYSTEMS"/>
<!-- 往SDCard写入数据权限 -->
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
<!-- 从SDCard读取数据权限 -->
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/>
<!-- 相机权限 -->
<uses-permission android:name="android.permission.CAMERA"/>
</config-file>
<!-- 第三方库 和 sourceCompatibility 1.7 用来支持 diamond 运算符 -->
<framework src="src/android/imagepicker.gradle" custom="true" type="gradleReference"/>
<source-file src="src/android/module/adapter/ImageFolderAdapter.java" target-dir="src/com/lzy/imagepicker/adapter" />
<source-file src="src/android/module/adapter/ImagePageAdapter.java" target-dir="src/com/lzy/imagepicker/adapter" />
<source-file src="src/android/module/adapter/ImageRecyclerAdapter.java" target-dir="src/com/lzy/imagepicker/adapter" />
<source-file src="src/android/module/bean/ImageFolder.java" target-dir="src/com/lzy/imagepicker/bean" />
<source-file src="src/android/module/bean/ImageItem.java" target-dir="src/com/lzy/imagepicker/bean" />
<source-file src="src/android/module/loader/ImageLoader.java" target-dir="src/com/lzy/imagepicker/loader" />
<source-file src="src/android/module/ui/ImageBaseActivity.java" target-dir="src/com/lzy/imagepicker/ui" />
<source-file src="src/android/module/ui/ImageCropActivity.java" target-dir="src/com/lzy/imagepicker/ui" />
<source-file src="src/android/module/ui/ImageGridActivity.java" target-dir="src/com/lzy/imagepicker/ui" />
<source-file src="src/android/module/ui/ImagePreviewActivity.java" target-dir="src/com/lzy/imagepicker/ui" />
<source-file src="src/android/module/ui/ImagePreviewBaseActivity.java" target-dir="src/com/lzy/imagepicker/ui" />
<source-file src="src/android/module/ui/ImagePreviewDelActivity.java" target-dir="src/com/lzy/imagepicker/ui" />
<source-file src="src/android/module/util/BitmapUtil.java" target-dir="src/com/lzy/imagepicker/util" />
<source-file src="src/android/module/util/InnerToaster.java" target-dir="src/com/lzy/imagepicker/util" />
<source-file src="src/android/module/util/ProviderUtil.java" target-dir="src/com/lzy/imagepicker/util" />
<source-file src="src/android/module/util/Utils.java" target-dir="src/com/lzy/imagepicker/util" />
<source-file src="src/android/module/util/NavigationBarChangeListener.java" target-dir="src/com/lzy/imagepicker/util" />
<source-file src="src/android/module/view/CropImageView.java" target-dir="src/com/lzy/imagepicker/view" />
<source-file src="src/android/module/view/FolderPopUpWindow.java" target-dir="src/com/lzy/imagepicker/view" />
<source-file src="src/android/module/view/GridSpacingItemDecoration.java" target-dir="src/com/lzy/imagepicker/view" />
<source-file src="src/android/module/view/SuperCheckBox.java" target-dir="src/com/lzy/imagepicker/view" />
<source-file src="src/android/module/view/SystemBarTintManager.java" target-dir="src/com/lzy/imagepicker/view" />
<source-file src="src/android/module/view/ViewPagerFixed.java" target-dir="src/com/lzy/imagepicker/view" />
<source-file src="src/android/module/DataHolder.java" target-dir="src/com/lzy/imagepicker" />
<source-file src="src/android/module/ImageDataSource.java" target-dir="src/com/lzy/imagepicker" />
<source-file src="src/android/module/ImagePicker.java" target-dir="src/com/lzy/imagepicker" />
<source-file src="src/android/module/ImagePickerProvider.java" target-dir="src/com/lzy/imagepicker" />
<source-file src="src/android/imageloader/GlideImageLoader.java" target-dir="src/com/giants/imagepicker/imageloader" />
<source-file src="src/android/ImagePickerMain.java" target-dir="src/com/giants/imagepicker" />
<source-file src="src/android/res/xml/imagepicker_provider_paths.xml" target-dir="res/xml"/>
<resource-file src="src/android/res/anim/fade_in.xml" target="res/anim/fade_in.xml"/>
<resource-file src="src/android/res/anim/fade_out.xml" target="res/anim/fade_out.xml"/>
<resource-file src="src/android/res/anim/hide_to_bottom.xml" target="res/anim/hide_to_bottom.xml"/>
<resource-file src="src/android/res/anim/show_from_bottom.xml" target="res/anim/show_from_bottom.xml"/>
<resource-file src="src/android/res/anim/top_in.xml" target="res/anim/top_in.xml"/>
<resource-file src="src/android/res/anim/top_out.xml" target="res/anim/top_out.xml"/>
<resource-file src="src/android/res/drawable/bg_btn_dis.xml" target="res/drawable/bg_btn_dis.xml"/>
<resource-file src="src/android/res/drawable/bg_btn_nor.xml" target="res/drawable/bg_btn_nor.xml"/>
<resource-file src="src/android/res/drawable/bg_btn_pre.xml" target="res/drawable/bg_btn_pre.xml"/>
<resource-file src="src/android/res/drawable/bg_folder_item.xml" target="res/drawable/bg_folder_item.xml"/>
<resource-file src="src/android/res/drawable/bg_image_folder.xml" target="res/drawable/bg_image_folder.xml"/>
<resource-file src="src/android/res/drawable/ic_arrow_back.xml" target="res/drawable/ic_arrow_back.xml"/>
<resource-file src="src/android/res/drawable/ic_cover_shade.xml" target="res/drawable/ic_cover_shade.xml"/>
<resource-file src="src/android/res/drawable/ic_default_image.xml" target="res/drawable/ic_default_image.xml"/>
<resource-file src="src/android/res/drawable/ic_vector_check.xml" target="res/drawable/ic_vector_check.xml"/>
<resource-file src="src/android/res/drawable/ic_vector_delete.xml" target="res/drawable/ic_vector_delete.xml"/>
<resource-file src="src/android/res/drawable/radio_item_checked.xml" target="res/drawable/radio_item_checked.xml"/>
<resource-file src="src/android/res/drawable/selector_back_press.xml" target="res/drawable/selector_back_press.xml"/>
<resource-file src="src/android/res/drawable/selector_grid_camera_bg.xml" target="res/drawable/selector_grid_camera_bg.xml"/>
<resource-file src="src/android/res/drawable/selector_item_checked.xml" target="res/drawable/selector_item_checked.xml"/>
<resource-file src="src/android/res/drawable/selector_top_ok.xml" target="res/drawable/selector_top_ok.xml"/>
<resource-file src="src/android/res/drawable-v21/bg_folder_item.xml" target="res/drawable-v21/bg_folder_item.xml"/>
<resource-file src="src/android/res/layout/activity_image_crop.xml" target="res/layout/activity_image_crop.xml"/>
<resource-file src="src/android/res/layout/activity_image_grid.xml" target="res/layout/activity_image_grid.xml"/>
<resource-file src="src/android/res/layout/activity_image_preview.xml" target="res/layout/activity_image_preview.xml"/>
<resource-file src="src/android/res/layout/adapter_camera_item.xml" target="res/layout/adapter_camera_item.xml"/>
<resource-file src="src/android/res/layout/adapter_folder_list_item.xml" target="res/layout/adapter_folder_list_item.xml"/>
<resource-file src="src/android/res/layout/adapter_image_list_item.xml" target="res/layout/adapter_image_list_item.xml"/>
<resource-file src="src/android/res/layout/include_top_bar.xml" target="res/layout/include_top_bar.xml"/>
<resource-file src="src/android/res/layout/ip_dialog_loading.xml" target="res/layout/ip_dialog_loading.xml"/>
<resource-file src="src/android/res/layout/pop_folder.xml" target="res/layout/pop_folder.xml"/>
<resource-file src="src/android/res/mipmap-xxhdpi/checkbox_checked.png" target="res/mipmap-xxhdpi/checkbox_checked.png"/>
<resource-file src="src/android/res/mipmap-xxhdpi/checkbox_normal.png" target="res/mipmap-xxhdpi/checkbox_normal.png"/>
<resource-file src="src/android/res/mipmap-xxhdpi/radio_checked.png" target="res/mipmap-xxhdpi/radio_checked.png"/>
<resource-file src="src/android/res/mipmap-xxhdpi/radio_normal.png" target="res/mipmap-xxhdpi/radio_normal.png"/>
<resource-file src="src/android/res/mipmap-xxhdpi/grid_camera.png" target="res/mipmap-xxhdpi/grid_camera.png"/>
<resource-file src="src/android/res/mipmap-xxhdpi/text_indicator.png" target="res/mipmap-xxhdpi/text_indicator.png"/>
<resource-file src="src/android/res/values/attrs.xml" target="res/values/attrs.xml"/>
<resource-file src="src/android/res/values/multi_image_chooser_colors.xml" target="res/values/multi_image_chooser_colors.xml"/>
<resource-file src="src/android/res/values/multi_image_chooser_strings.xml" target="res/values/multi_image_chooser_strings.xml"/>
<resource-file src="src/android/res/values-en/multi_image_chooser_strings.xml" target="res/values-en/multi_image_chooser_strings.xml"/>
<resource-file src="src/android/res/values-pt/multi_image_chooser_strings.xml" target="res/values-pt/multi_image_chooser_strings.xml"/>
</platform>
</plugin>