Commit Graph

25 Commits

Author SHA1 Message Date
AntoineDoubovetzky be99bac398 chore(android): add gradle 2018-06-13 19:37:51 +02:00
Yuki Matsushita 13cdedc64a fix error: ImageResizer is not public 2017-10-17 08:02:27 -07:00
Kesha Antonov 8e6b1fdbbb Update Android build tools (#110) 2017-10-15 23:18:35 +02:00
Alexander Sergeev cefb679432 Fix crash OutOfMemoryError. (#103) 2017-09-17 15:51:45 +02:00
Sibelius Seraphini e24f2e8da1 Fix compatibility with RN 0.47 (#93) 2017-08-02 18:11:46 +02:00
Marco Cimmino 544dd9d473 Unify returned value between Android and iOS implementation, (#83)
previously Android implementation worked differently and to the returned
absolute path a 'file:' is prepended.

This different behaviour may causes issues/bugs when handling the response from an
unified code base point of view and also the returned uri on the Android native code
is not generated properly using native functions to do so.

This patch fixes this incoherence, but also extends the returned value to add:
absolute path, file name, file size and the uri.
Refactored Android code to make it easier to read and more robust to
case sensitive file names.
2017-07-18 23:05:26 +02:00
Abe Botros aef2a9c7d8 Minor Android fixes for empty/failed return paths (#67)
- Throw exception instead of returning null sourceImage, which avoids
  returning pseudo-empty "file:" string to Javascript on failure
- Use constant strings for checking path prefixes
- Cleanup of conditional statements for checking path prefixes
- Additional try-catch statements, contributing more-fine-grained
  error messages

Other
- Updated .gitignore to latest React Native template
- Updated Android gradle scripts
- Updated package.json's in root and in example to point to
  correct react/react-native versions, and to use local code
  for this library directly in the example app
2017-02-10 11:21:55 +01:00
Chris Fogelklou 8a485bf0a9 Add support for base64 formatted Uri strings on Android. (#47) 2016-09-22 08:18:06 +02:00
Andrew Shini ab1a39bf54 Always rotate the image with the proper up orientation on Android (#42) 2016-09-04 10:20:00 +02:00
Florian Rival edad5c3064 refactor(android): Refactor various part of ImageResizer 2016-08-21 20:36:41 +02:00
Florian Rival 442627bd37 refactor(android): Remove useless arguments, fix typo and style 2016-08-21 20:07:05 +02:00
npomfret 83bb4bbd21 reduced memory footprint by using inSampleSize 2016-08-18 12:02:57 +01:00
zhi f24bd5e425 Fix memory leaks and don't rotate unless necessary on Android (#25)
* fixed memory leakes

* rotate only if necessary
2016-08-03 16:02:59 +02:00
Kristoffer K 3b8d1c1940 Output path fix + orientation fix (#20)
* rotateImage function rewrite

* fix recycle

* output path fix

* only pass bitmap to functions

* Orientation fix
2016-07-17 21:43:11 +02:00
superAndrew af9f77d965 Add outputPath to options (#16)
* Add outputPath for android

* Add outputPath for ios

* Update readme

* Move outputPath to the end

* Update readme
2016-06-30 19:07:42 +02:00
Florian Rival b664dfe510 Fix portrait image resizing on Android 2016-06-14 12:22:49 +02:00
timzaak 8781e80507 fix android build fail 2016-05-16 15:25:47 +08:00
timzaak 5f0bb88cef fix things @Almouro has mentioned, thanks @Almouro 2016-05-14 11:18:48 +08:00
timzaak 99563c8b32 change build.gradle, make it easey to run 2016-05-12 11:29:04 +08:00
timzaak cdde0a4d0a reslove #7 2016-05-11 22:34:42 +08:00
Florian Rival f3a1cab919 Fix exception when trying to resize a file that can't be open on Android 2015-12-10 17:50:12 +01:00
Florian Rival 5d187494a3 Catch OutOfMemory exceptions on Android 2015-12-10 17:34:12 +01:00
Florian Rival 6f5ff49c68 Fix resizing on Android 2015-12-07 10:46:40 +01:00
Florian Rival e9b1dec7b0 Add optional rotation argument on Android 2015-12-06 18:03:33 +01:00
Florian Rival 0d4db6341f Initial commit 2015-12-02 22:02:19 +01:00