71 Commits

Author SHA1 Message Date
Andrew Shini
4059492e57 Fix space in file name (#666)
* Improve getMimeType to handle files with spaces in file name

* Check for null
2018-04-03 18:25:34 +02:00
khrizt
b5520cc7cb Flag to disable color setters fro Ucrop (#662)
* Disabled cropper color assigning from code in Module

* Disable cropper color setters with a variable flag

* Update README
2018-03-27 11:53:43 +02:00
Nikola Ravic
ba4d84ede6 Added option to set free style crop for android. (#620)
As uCrop (on which this lib relies for Android) supports this feature I thought it would be very nice feature to have this.
2018-02-22 11:14:39 +01:00
Sergei Butko
56d1c69fc8 Added an flag to the gallery intent to prevent two instances of it (#582) 2018-01-22 10:17:14 +01:00
Ivan Pusic
b01a3504d9 upgrade android to support latest version 2017-12-07 01:54:25 +01:00
Ivan Magda
5633a99c4a Return cropped image rectangle (#458)
* android: Update ucrop version #457

Use latest uCrop version.

* Return cropped image rectangle #457

* Update README.md #457

Update Android installation instructions.
2017-12-07 01:47:38 +01:00
Jason Gaare
b59db6bffa Add creation and modification date to response (#530)
* added creationDate and modificationDate to response object

added modificationDate to Android response

* Update Compression.m (#529)

Addition of passthrough preset option

Update README to include dates in response
2017-12-05 01:48:06 +01:00
Ricardo Fuhrmann
b34b43654f [Android] Add option to set the cropper toolbar title (#521)
* Add option to set the cropper toolbar title

I needed to change the toolbar title but didn't know any other way so I thought about adding this functionality. Currently, as my knowledge is limited to java, this is currently only available for Android.

Example usage:

```
ImagePicker.openCropper({
    path: 'image.png',
    width: 800,
    height: 800,
    cropperToolbarTitle: 'Please, crop your photo',
})
```
If no title is provided, the default one from the library will be used.

* Update docs
2017-11-26 02:11:13 +01:00
Ivan Pusic
c44ce340e0 (android) remove dependency on support-annotations 2017-10-24 12:05:47 +02:00
Ivan Pusic
b47232befa (android) Android 8 support 2017-10-21 22:13:09 +02:00
Ivan Pusic
079e87ddae (android) update buildToolsVersion 2017-09-27 20:45:08 +02:00
Ivan Pusic
d3da5de487 extract exif data from image 2017-09-27 20:26:09 +02:00
Nadjib KHELIFATI
204f20bf89 Create another file for compressed picture with different name (#418)
* Create another file for compressed picture

For fix bug replace original image

* Update Compression.java
2017-08-23 16:19:42 +02:00
Nadjib KHELIFATI
54934f5e00 Use new version of id.zelory compressor package (#420)
Fix save file path issue of this package in this new version 2.1.0
2017-08-23 15:29:57 +02:00
Ivan Pusic
d0c481ec74 cleanup error codes 2017-08-10 00:03:50 +02:00
Ivan Pusic
6f24955b80 0.47 backward compatibile android support 2017-08-09 13:55:55 +02:00
Hizoul
c240c37dfa Fix Compilation Error in React Native 0.47.0
createJSModules was removedin React Native 0.47.0 and results in the attached Build Error.
removing `@Override` fixes build (didn't remove function because I don't know if it should be kept for downard compatability?)

```
node_modules/react-native-image-crop-picker/android/src/main/java/com/reactnative/ivpusic/imagepicker/PickerPackage.java:18: error: method does not override or implement a method from a supertype
    @Override
    ^
Note: /home/mmb/git/climbz2/climbz-reactnative/node_modules/react-native-image-crop-picker/android/src/main/java/com/reactnative/ivpusic/imagepicker/PickerModule.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
1 error
:react-native-image-crop-picker:compileReleaseJavaWithJavac FAILED
```
2017-08-01 19:35:30 +02:00
deathemperor
63e6f71db1 fixed a bug when using openCamera with [multiple: true]
related issue: https://github.com/ivpusic/react-native-image-crop-picker/issues/353
2017-07-20 11:41:49 +07:00
Ivan Pusic
b8ae847074 (android) upgrade to latest package versions 2017-06-24 00:41:29 +02:00
GNarek
1f27482988 Update PickerModule.java
As type of activeWidgetColor is int and type of DEFAULT_TINT is String it's causing error like: int cannot be dereferenced
2017-06-08 15:56:05 +04:00
Sahil Prajapati
a640c51567 Replace cropperTintColor with cropperActiveWidgetColor 2017-05-31 15:37:29 +05:30
Sahil Prajapati
da90c3363d Add options to control statusbar, toolbar and active widget color 2017-05-31 15:30:42 +05:30
André Vargas
81be2bd3b5 #283 (android) Create DIRECTORY_PICTURES if it doesn't exist 2017-04-06 14:19:50 -03:00
Olli Jaakkola
3d12a4510d (android) Add 'hideBottomControls' & 'enableRotationGesture' -options 2017-04-03 23:24:05 +03:00
Olli Jaakkola
f7dc45c45d Add possibility to hide crop guidelines 2017-04-03 14:10:23 +03:00
Andrew Shini
228bcaaea0 Add mediaType for Android 2017-03-13 22:42:05 +10:00
Ivan Pusic
2b04e10b4f (android) more efficient bitmap decoding 2017-03-07 10:00:20 +01:00
Andrew Shini
76680cf32b Fix resolving external storage paths 2017-03-07 13:20:55 +10:00
Ivan Pusic
c483a3f2f0 (android) fix resolving external storage paths 2017-03-06 11:14:02 +01:00
Andrew Shini
ab61ed3cae Fix multiple mime types 2017-02-24 19:23:28 +10:00
Jesse Harlin
20dadc178b Synchronized to notifyProblem in ResultCollector 2017-02-15 19:43:22 -06:00
Ivan Pusic
007068555e (ios/android) cropping only improvements 2017-02-08 12:28:48 +01:00
Maxime Mezrahi
af3ed8a4d1 openCropper method added 2017-02-07 15:00:39 -05:00
Ivan Pusic
4de3fa4fd3 (Android) If compression settings are not provided, skip compression 2017-01-07 14:56:14 +01:00
Ivan Pusic
c03895ca8e [FEATURE ios/android] Configurable compression 2016-12-29 16:41:41 +01:00
Eduardo Sganzerla
611de3dbd8 Update PickerModule.java 2016-12-16 12:05:55 -02:00
Eduardo Sganzerla
b586cec00d add support to uCrop setCircleDimmedLayer()
set the setCircleDimmedLayer to "cropCircleOverlay" option on react-native.
2016-12-16 12:01:21 -02:00
Ivan Pusic
b3494ad5be (Android) Add default write permission to manifest 2016-12-06 18:31:33 +01:00
Ivan Pusic
36f5816af9 (Android) Ask for required permissions 2016-12-06 01:20:37 +01:00
Ivan Pusic
65f3eccd42 (Android) Permissions cleanup 2016-12-06 00:57:59 +01:00
Sean Holbert
77dc7f2c5a Allow user to specify brand color for cropper
- Default colors for the cropper are less aggressive (not UCrop's orange)
- If cropperTintColor is passed in, this overrides status bar, toolbard, and widget UX items.
2016-11-17 17:28:48 -08:00
Ivan Pusic
b51f9160f1 (Android) Use lower request codes 2016-11-09 12:28:59 +01:00
Ivan Pusic
8c770b9f14 (Android) Fixing Camera on Android SDK 24+ 2016-11-06 20:55:02 +01:00
GJS
b8d1b12d8c add if (mPickerPromise == null) to croppingResult just like other result calling:imagePickerResult 2016-11-05 17:19:10 +08:00
kylejones
d29285a4d6 Setting ActivityEventListener requestCodes to large ints to prevent collisions with other modules 2016-10-14 18:56:36 -05:00
Ivan Pusic
d6c023fbed (Android) Asking user for camera/storage permissions 2016-10-13 20:47:28 +02:00
nickythorne
6bc5b2d9c8 Changed permission check to use react native request permission and added permission listener to handle async permission requests. 2016-10-13 11:43:41 +01:00
Ivan Pusic
be66ad165c (Android) remove useSupportLibrary 2016-09-16 13:36:23 +02:00
Ivan Pusic
adb6542e63 using the same error code format for ios/android 2016-09-12 23:02:58 +02:00
Ivan Pusic
394a1c2698 (Android) add useSupportLibrary 2016-09-11 21:46:17 +02:00