Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.
 
 
 
 
 
 

283 rindas
16 KiB

  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!--
  3. Licensed to the Apache Software Foundation (ASF) under one
  4. or more contributor license agreements. See the NOTICE file
  5. distributed with this work for additional information
  6. regarding copyright ownership. The ASF licenses this file
  7. to you under the Apache License, Version 2.0 (the
  8. "License"); you may not use this file except in compliance
  9. with the License. You may obtain a copy of the License at
  10. http://www.apache.org/licenses/LICENSE-2.0
  11. Unless required by applicable law or agreed to in writing,
  12. software distributed under the License is distributed on an
  13. "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
  14. KIND, either express or implied. See the License for the
  15. specific language governing permissions and limitations
  16. under the License.
  17. -->
  18. <plugin xmlns="http://apache.org/cordova/ns/plugins/1.0"
  19. id="cordova-plugin-ImagePicker"
  20. version="0.1.0">
  21. <name>ImagePicker</name>
  22. <description>Cordova ImagePicker Plugin</description>
  23. <license>Apache 2.0</license>
  24. <keywords>cordova,ImagePicker</keywords>
  25. <repo>https://github.com/giantss/cordova-plugin-ImagePicker.git</repo>
  26. <issue>https://github.com/giantss/cordova-plugin-ImagePicker/issues</issue>
  27. <!--require cordova version -->
  28. <engines>
  29. <engine name="cordova" version=">=4.0.0" />
  30. <engine name="cordova-android" version=">=4.0.0" />
  31. </engines>
  32. <!-- js module-->
  33. <js-module src="www/ImagePicker.js" name="ImagePicker">
  34. <clobbers target="ImagePicker" />
  35. </js-module>
  36. <!-- ios -->
  37. <platform name="ios">
  38. <config-file target="config.xml" parent="/*">
  39. <feature name="ImagePicker">
  40. <param name="ios-package" value="ImagePicker"/>
  41. </feature>
  42. </config-file>
  43. <preference name="CAMERA_USAGE_DESCRIPTION" default=" " />
  44. <config-file target="*-Info.plist" parent="NSCameraUsageDescription">
  45. <string>使用相机</string>
  46. </config-file>
  47. <preference name="PHOTOLIBRARY_USAGE_DESCRIPTION" default=" " />
  48. <config-file target="*-Info.plist" parent="NSPhotoLibraryUsageDescription">
  49. <string>使用相册</string>
  50. </config-file>
  51. <header-file src="src/ios/ImagePickerMain.h"/>
  52. <source-file src="src/ios/ImagePickerMain.m"/>
  53. <header-file src="src/ios/libs/LxGridViewFlowLayout.h" />
  54. <source-file src="src/ios/libs/LxGridViewFlowLayout.m"/>
  55. <header-file src="src/ios/libs/TZTestCell.h" />
  56. <source-file src="src/ios/libs/TZTestCell.m"/>
  57. <header-file src="src/ios/libs/NSBundle+TZImagePicker.h" />
  58. <source-file src="src/ios/libs/NSBundle+TZImagePicker.m"/>
  59. <header-file src="src/ios/libs/TZAssetCell.h" />
  60. <source-file src="src/ios/libs/TZAssetCell.m"/>
  61. <header-file src="src/ios/libs/TZAssetModel.h" />
  62. <source-file src="src/ios/libs/TZAssetModel.m"/>
  63. <header-file src="src/ios/libs/TZGifPhotoPreviewController.h" />
  64. <source-file src="src/ios/libs/TZGifPhotoPreviewController.m"/>
  65. <header-file src="src/ios/libs/TZImageCropManager.h" />
  66. <source-file src="src/ios/libs/TZImageCropManager.m"/>
  67. <header-file src="src/ios/libs/TZImageManager.h" />
  68. <source-file src="src/ios/libs/TZImageManager.m"/>
  69. <header-file src="src/ios/libs/TZImagePickerController.h" />
  70. <source-file src="src/ios/libs/TZImagePickerController.m"/>
  71. <header-file src="src/ios/libs/TZLocationManager.h" />
  72. <source-file src="src/ios/libs/TZLocationManager.m"/>
  73. <header-file src="src/ios/libs/TZPhotoPickerController.h" />
  74. <source-file src="src/ios/libs/TZPhotoPickerController.m"/>
  75. <header-file src="src/ios/libs/TZPhotoPreviewCell.h" />
  76. <source-file src="src/ios/libs/TZPhotoPreviewCell.m"/>
  77. <header-file src="src/ios/libs/TZPhotoPreviewController.h" />
  78. <source-file src="src/ios/libs/TZPhotoPreviewController.m"/>
  79. <header-file src="src/ios/libs/TZProgressView.h" />
  80. <source-file src="src/ios/libs/TZProgressView.m"/>
  81. <header-file src="src/ios/libs/TZVideoPlayerController.h" />
  82. <source-file src="src/ios/libs/TZVideoPlayerController.m"/>
  83. <header-file src="src/ios/libs/UIView+Layout.h" />
  84. <source-file src="src/ios/libs/UIView+Layout.m"/>
  85. <resource-file src="src/ios/libs/TZImagePickerController.bundle" />
  86. </platform>
  87. <!-- android -->
  88. <platform name="android">
  89. <hook type="after_plugin_install" src="hooks/after_plugin_install/hook-add-r-import.js" />
  90. <config-file target="res/xml/config.xml" parent="/*">
  91. <feature name="ImagePicker">
  92. <param name="android-package" value="com.giants.imagepicker.ImagePickerMain"/>
  93. </feature>
  94. </config-file>
  95. <config-file target="AndroidManifest.xml" parent="/manifest/application">
  96. <activity android:name="com.giants.imagepicker.ui.ImageBaseActivity"/>
  97. <activity
  98. android:name="com.giants.imagepicker.ui.ImageGridActivity"
  99. android:configChanges="orientation|screenSize"
  100. android:theme="@style/ImagePickerTheme"/>
  101. <activity
  102. android:name="com.giants.imagepicker.ui.ImageCropActivity"
  103. android:configChanges="orientation|screenSize"
  104. android:hardwareAccelerated="false"
  105. android:theme="@style/ImagePickerTheme"/>
  106. <activity
  107. android:name="com.giants.imagepicker.ui.ImagePreviewActivity"
  108. android:configChanges="orientation|screenSize"
  109. android:theme="@style/ImagePickerThemeFullScreen"/>
  110. <provider
  111. android:authorities="${applicationId}.provider"
  112. android:name="com.giants.imagepicker.ImagePickerProvider"
  113. android:exported="false"
  114. android:grantUriPermissions="true">
  115. <meta-data
  116. android:name="android.support.FILE_PROVIDER_PATHS"
  117. android:resource="@xml/provider_paths"/>
  118. </provider>
  119. </config-file>
  120. <config-file target="AndroidManifest.xml" parent="/manifest">
  121. <!-- 在SDCard中创建与删除文件权限 -->
  122. <uses-permission android:name="android.permission.MOUNT_UNMOUNT_FILESYSTEMS"/>
  123. <!-- 往SDCard写入数据权限 -->
  124. <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
  125. <!-- 从SDCard读取数据权限 -->
  126. <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/>
  127. <!-- 相机权限 -->
  128. <uses-permission android:name="android.permission.CAMERA"/>
  129. </config-file>
  130. <!-- sourceCompatibility 1.7 用来支持 diamond 运算符 -->
  131. <source-file src="src/android/build-extras.gradle" target-dir="../android" />
  132. <source-file src="src/android/module/adapter/ImageFolderAdapter.java" target-dir="src/com/giants/imagepicker/adapter" />
  133. <source-file src="src/android/module/adapter/ImageGridAdapter.java" target-dir="src/com/giants/imagepicker/adapter" />
  134. <source-file src="src/android/module/adapter/ImagePageAdapter.java" target-dir="src/com/giants/imagepicker/adapter" />
  135. <source-file src="src/android/module/adapter/ImageRecyclerAdapter.java" target-dir="src/com/giants/imagepicker/adapter" />
  136. <source-file src="src/android/module/bean/ImageFolder.java" target-dir="src/com/giants/imagepicker/bean" />
  137. <source-file src="src/android/module/bean/ImageItem.java" target-dir="src/com/giants/imagepicker/bean" />
  138. <source-file src="src/android/module/loader/ImageLoader.java" target-dir="src/com/giants/imagepicker/loader" />
  139. <source-file src="src/android/module/ui/ImageBaseActivity.java" target-dir="src/com/giants/imagepicker/ui" />
  140. <source-file src="src/android/module/ui/ImageCropActivity.java" target-dir="src/com/giants/imagepicker/ui" />
  141. <source-file src="src/android/module/ui/ImageGridActivity.java" target-dir="src/com/giants/imagepicker/ui" />
  142. <source-file src="src/android/module/ui/ImagePreviewActivity.java" target-dir="src/com/giants/imagepicker/ui" />
  143. <source-file src="src/android/module/ui/ImagePreviewBaseActivity.java" target-dir="src/com/giants/imagepicker/ui" />
  144. <source-file src="src/android/module/ui/ImagePreviewDelActivity.java" target-dir="src/com/giants/imagepicker/ui" />
  145. <source-file src="src/android/module/util/BitmapUtil.java" target-dir="src/com/giants/imagepicker/util" />
  146. <source-file src="src/android/module/util/ProviderUtil.java" target-dir="src/com/giants/imagepicker/util" />
  147. <source-file src="src/android/module/util/Utils.java" target-dir="src/com/giants/imagepicker/util" />
  148. <source-file src="src/android/module/view/CropImageView.java" target-dir="src/com/giants/imagepicker/view" />
  149. <source-file src="src/android/module/view/FolderPopUpWindow.java" target-dir="src/com/giants/imagepicker/view" />
  150. <source-file src="src/android/module/view/SuperCheckBox.java" target-dir="src/com/giants/imagepicker/view" />
  151. <source-file src="src/android/module/view/SystemBarTintManager.java" target-dir="src/com/giants/imagepicker/view" />
  152. <source-file src="src/android/module/view/ViewPagerFixed.java" target-dir="src/com/giants/imagepicker/view" />
  153. <source-file src="src/android/module/compresshelper/BitmapUtil.java" target-dir="src/com/giants/imagepicker/compresshelper" />
  154. <source-file src="src/android/module/compresshelper/CompressHelper.java" target-dir="src/com/giants/imagepicker/compresshelper" />
  155. <source-file src="src/android/module/compresshelper/FileUtil.java" target-dir="src/com/giants/imagepicker/compresshelper" />
  156. <source-file src="src/android/module/compresshelper/ImageUtil.java" target-dir="src/com/giants/imagepicker/compresshelper" />
  157. <source-file src="src/android/module/compresshelper/StringUtil.java" target-dir="src/com/giants/imagepicker/compresshelper" />
  158. <source-file src="src/android/module/DataHolder.java" target-dir="src/com/giants/imagepicker" />
  159. <source-file src="src/android/module/ImageDataSource.java" target-dir="src/com/giants/imagepicker" />
  160. <source-file src="src/android/module/ImagePicker.java" target-dir="src/com/giants/imagepicker" />
  161. <source-file src="src/android/module/ImagePickerProvider.java" target-dir="src/com/giants/imagepicker" />
  162. <source-file src="src/android/module/GlideImageLoader.java" target-dir="src/com/giants/imagepicker" />
  163. <source-file src="src/android/ImagePickerMain.java" target-dir="src/com/giants/imagepicker" />
  164. <source-file src="src/android/PicassoImageLoader.java" target-dir="src/com/giants/imagepicker" />
  165. <source-file src="src/android/GApp.java" target-dir="src/com/giants/imagepicker" />
  166. <source-file src="src/android/res/anim/bottom_in.xml" target-dir="res/anim"/>
  167. <source-file src="src/android/res/anim/bottom_out.xml" target-dir="res/anim"/>
  168. <source-file src="src/android/res/anim/fade_in.xml" target-dir="res/anim"/>
  169. <source-file src="src/android/res/anim/fade_out.xml" target-dir="res/anim"/>
  170. <source-file src="src/android/res/anim/hide_to_bottom.xml" target-dir="res/anim"/>
  171. <source-file src="src/android/res/anim/left_in.xml" target-dir="res/anim"/>
  172. <source-file src="src/android/res/anim/left_out.xml" target-dir="res/anim"/>
  173. <source-file src="src/android/res/anim/right_in.xml" target-dir="res/anim"/>
  174. <source-file src="src/android/res/anim/right_out.xml" target-dir="res/anim"/>
  175. <source-file src="src/android/res/anim/scale_in.xml" target-dir="res/anim"/>
  176. <source-file src="src/android/res/anim/scale_out.xml" target-dir="res/anim"/>
  177. <source-file src="src/android/res/anim/show_from_bottom.xml" target-dir="res/anim"/>
  178. <source-file src="src/android/res/anim/top_in.xml" target-dir="res/anim"/>
  179. <source-file src="src/android/res/anim/top_out.xml" target-dir="res/anim"/>
  180. <source-file src="src/android/res/drawable/selector_back_press.xml" target-dir="res/drawable"/>
  181. <source-file src="src/android/res/drawable/selector_grid_camera_bg.xml" target-dir="res/drawable"/>
  182. <source-file src="src/android/res/drawable/selector_item_checked.xml" target-dir="res/drawable"/>
  183. <source-file src="src/android/res/drawable/selector_top_ok.xml" target-dir="res/drawable"/>
  184. <source-file src="src/android/res/drawable-xxhdpi/bg_btn_dis.9.png" target-dir="res/drawable-xxhdpi"/>
  185. <source-file src="src/android/res/drawable-xxhdpi/bg_btn_nor.9.png" target-dir="res/drawable-xxhdpi"/>
  186. <source-file src="src/android/res/drawable-xxhdpi/bg_btn_pre.9.png" target-dir="res/drawable-xxhdpi"/>
  187. <source-file src="src/android/res/layout/activity_image_crop.xml" target-dir="res/layout"/>
  188. <source-file src="src/android/res/layout/activity_image_grid.xml" target-dir="res/layout"/>
  189. <source-file src="src/android/res/layout/activity_image_preview.xml" target-dir="res/layout"/>
  190. <source-file src="src/android/res/layout/adapter_camera_item.xml" target-dir="res/layout"/>
  191. <source-file src="src/android/res/layout/adapter_folder_list_item.xml" target-dir="res/layout"/>
  192. <source-file src="src/android/res/layout/adapter_image_list_item.xml" target-dir="res/layout"/>
  193. <source-file src="src/android/res/layout/include_top_bar.xml" target-dir="res/layout"/>
  194. <source-file src="src/android/res/layout/pop_folder.xml" target-dir="res/layout"/>
  195. <source-file src="src/android/res/mipmap-xxhdpi/checkbox_checked.png" target-dir="res/mipmap-xxhdpi"/>
  196. <source-file src="src/android/res/mipmap-xxhdpi/checkbox_normal.png" target-dir="res/mipmap-xxhdpi"/>
  197. <source-file src="src/android/res/mipmap-xxhdpi/default_image.png" target-dir="res/mipmap-xxhdpi"/>
  198. <source-file src="src/android/res/mipmap-xxhdpi/grid_camera.png" target-dir="res/mipmap-xxhdpi"/>
  199. <source-file src="src/android/res/mipmap-xxhdpi/ic_back.png" target-dir="res/mipmap-xxhdpi"/>
  200. <source-file src="src/android/res/mipmap-xxhdpi/ic_del.png" target-dir="res/mipmap-xxhdpi"/>
  201. <source-file src="src/android/res/mipmap-xxhdpi/list_selected.png" target-dir="res/mipmap-xxhdpi"/>
  202. <source-file src="src/android/res/mipmap-xxhdpi/text_indicator.png" target-dir="res/mipmap-xxhdpi"/>
  203. <source-file src="src/android/res/values/attrs.xml" target-dir="res/values"/>
  204. <source-file src="src/android/res/values/styles.xml" target-dir="res/values"/>
  205. <source-file src="src/android/res/values/multi_image_chooser_colors.xml" target-dir="res/values"/>
  206. <source-file src="src/android/res/values/multi_image_chooser_strings.xml" target-dir="res/values"/>
  207. <source-file src="src/android/res/values-en/multi_image_chooser_strings.xml" target-dir="res/values-en"/>
  208. <source-file src="src/android/res/values-pt/multi_image_chooser_strings.xml" target-dir="res/values-pt"/>
  209. <framework src="com.android.support:appcompat-v7:24.1.1" />
  210. <framework src="com.github.chrisbanes.photoview:library:1.2.4" />
  211. <framework src="com.android.support:recyclerview-v7:24.1.1" />
  212. <framework src="com.squareup.picasso:picasso:2.5.2" />
  213. <framework src="com.nostra13.universalimageloader:universal-image-loader:1.9.5" />
  214. <framework src="org.xutils:xutils:3.3.36" />
  215. <framework src="com.github.bumptech.glide:glide:3.7.0"/>
  216. </platform>
  217. </plugin>