plugin.xml 6.33 KB
Newer Older
李晓兵's avatar
李晓兵 committed
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
<?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-image-picker"
  version="1.0.8">

	<name>ImagePicker</name>

	<description>
		This plugin allows selection of multiple images from the camera roll / gallery in a phonegap app
	</description>

	<license>MIT</license>

	<engines>
		<engine name="cordova" version=">=3.0.0" />
	</engines>

	<js-module src="www/imagepicker.js" name="ImagePicker">
		<clobbers target="plugins.imagePicker" />
	</js-module>

	<!-- ios -->
	<platform name="ios">
		<config-file target="config.xml" parent="/*">
			<feature name="ImagePicker">
				<param name="ios-package" value="SOSPicker"/>
			</feature>
		</config-file>

		<header-file src="src/ios/SOSPicker.h" />
		<source-file src="src/ios/SOSPicker.m" />

		<header-file src="src/ios/ELCImagePicker/ELCAlbumPickerController.h" />
		<source-file src="src/ios/ELCImagePicker/ELCAlbumPickerController.m" />

		<header-file src="src/ios/ELCImagePicker/ELCAsset.h" />
		<source-file src="src/ios/ELCImagePicker/ELCAsset.m" />

		<header-file src="src/ios/ELCImagePicker/ELCAssetCell.h" />
		<source-file src="src/ios/ELCImagePicker/ELCAssetCell.m" />

		<header-file src="src/ios/ELCImagePicker/ELCAssetPickerFilterDelegate.h" />
		<header-file src="src/ios/ELCImagePicker/ELCAssetSelectionDelegate.h" />

		<header-file src="src/ios/ELCImagePicker/ELCAssetTablePicker.h" />
		<source-file src="src/ios/ELCImagePicker/ELCAssetTablePicker.m" />

		<header-file src="src/ios/ELCImagePicker/ELCImagePickerController.h" />
		<source-file src="src/ios/ELCImagePicker/ELCImagePickerController.m" />

		<resource-file src="src/ios/ELCImagePicker/Resources/ELCAlbumPickerController.xib" />
		<resource-file src="src/ios/ELCImagePicker/Resources/ELCAssetPicker.xib" />
		<resource-file src="src/ios/ELCImagePicker/Resources/ELCAssetTablePicker.xib" />
		<resource-file src="src/ios/ELCImagePicker/Resources/Overlay.png" />
		<resource-file src="src/ios/ELCImagePicker/Resources/Overlay@2x.png" />

    <config-file parent="NSPhotoLibraryUsageDescription" target="*-Info.plist">
      <string>我们将在照片模块访问您的相册</string>
    </config-file>
    <config-file parent="NSPhotoLibraryAddUsageDescription" target="*-Info.plist">
      <string>我们将在照片模块访问您的相册</string>
    </config-file>
	</platform>

	<!-- android -->
	<platform name="android">
		<config-file target="res/xml/config.xml" parent="/*">
			<feature name="ImagePicker">
				<param name="android-package" value="com.synconset.ImagePicker"/>
			</feature>
		</config-file>

		<config-file target="AndroidManifest.xml" parent="/manifest/application">
		    <activity android:label="@string/multi_app_name" android:name="com.synconset.MultiImageChooserActivity" android:theme="@android:style/Theme.Holo.Light">
            </activity>
		</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/com/synconset/ImagePicker/ImagePicker.java" target-dir="src/com/synconset" />
		<source-file src="src/android/com/synconset/ImagePicker/FakeR.java" target-dir="src/com/synconset" />

		<source-file src="src/android/Library/src/ImageFetcher.java" target-dir="src/com/synconset"/>
		<source-file src="src/android/Library/src/MultiImageChooserActivity.java" target-dir="src/com/synconset"/>

        <source-file src="src/android/Library/res/anim/image_pop_in.xml" target-dir="res/anim"/>
		<source-file src="src/android/Library/res/drawable/grid_background.xml" target-dir="res/drawable"/>
		<source-file src="src/android/Library/res/drawable-hdpi/image_bg.9.png" target-dir="res/drawable-hdpi"/>
		<source-file src="src/android/Library/res/drawable-hdpi/loading_icon.png" target-dir="res/drawable-hdpi"/>
		<source-file src="src/android/Library/res/drawable-mdpi/ic_action_discard_dark.png" target-dir="res/drawable-mdpi"/>
		<source-file src="src/android/Library/res/drawable-mdpi/ic_action_discard_light.png" target-dir="res/drawable-mdpi"/>
		<source-file src="src/android/Library/res/drawable-mdpi/ic_action_done_dark.png" target-dir="res/drawable-mdpi"/>
		<source-file src="src/android/Library/res/drawable-mdpi/ic_action_done_light.png" target-dir="res/drawable-mdpi"/>
		<source-file src="src/android/Library/res/drawable-mdpi/ic_launcher.png" target-dir="res/drawable-mdpi"/>
		<source-file src="src/android/Library/res/drawable-xhdpi/ic_action_discard_dark.png" target-dir="res/drawable-xhdpi"/>
		<source-file src="src/android/Library/res/drawable-xhdpi/ic_action_discard_light.png" target-dir="res/drawable-xhdpi"/>
		<source-file src="src/android/Library/res/drawable-xhdpi/ic_action_done_dark.png" target-dir="res/drawable-xhdpi"/>
		<source-file src="src/android/Library/res/drawable-xhdpi/ic_action_done_light.png" target-dir="res/drawable-xhdpi"/>
		<source-file src="src/android/Library/res/drawable-xhdpi/ic_launcher.png" target-dir="res/drawable-xhdpi"/>
		<source-file src="src/android/Library/res/layout/actionbar_custom_view_done_discard.xml" target-dir="res/layout"/>
		<source-file src="src/android/Library/res/layout/actionbar_discard_button.xml" target-dir="res/layout"/>
		<source-file src="src/android/Library/res/layout/actionbar_done_button.xml" target-dir="res/layout"/>
		<source-file src="src/android/Library/res/layout/multiselectorgrid.xml" target-dir="res/layout"/>
		<source-file src="src/android/Library/res/values/multiimagechooser_strings_en.xml" target-dir="res/values"/>
		<source-file src="src/android/Library/res/values/themes.xml" target-dir="res/values"/>

		<source-file src="src/android/Library/res/values-de/multiimagechooser_strings_de.xml" target-dir="res/values-de"/>
		<source-file src="src/android/Library/res/values-es/multiimagechooser_strings_es.xml" target-dir="res/values-es"/>
		<source-file src="src/android/Library/res/values-fr/multiimagechooser_strings_fr.xml" target-dir="res/values-fr"/>
		<source-file src="src/android/Library/res/values-hu/multiimagechooser_strings_hu.xml" target-dir="res/values-hu"/>
		<source-file src="src/android/Library/res/values-ja/multiimagechooser_strings_ja.xml" target-dir="res/values-ja"/>
		<source-file src="src/android/Library/res/values-ko/multiimagechooser_strings_ko.xml" target-dir="res/values-ko"/>
	</platform>
</plugin>