Commit Graph

292 Commits

Author SHA1 Message Date
semantic-release-bot cd22a36dd5 chore(release): 4.0.0 [skip ci]
# [4.0.0](https://github.com/react-native-community/react-native-cameraroll/compare/v3.0.1...v4.0.0) (2020-06-24)

### Bug Fixes

* Revert "Convert PHAsset to JPEG for uploading" ([#207](https://github.com/react-native-community/react-native-cameraroll/issues/207)) ([a09af08](https://github.com/react-native-community/react-native-cameraroll/commit/a09af08)), closes [#193](https://github.com/react-native-community/react-native-cameraroll/issues/193)

### BREAKING CHANGES

* this reverts forcing all mime types to jpeg on upload, which is the cause of lost GIF data
2020-06-24 08:25:56 +00:00
Bartol Karuza a09af08f0a
fix: Revert "Convert PHAsset to JPEG for uploading" (#207)
This reverts commit c958493441.

fixes #193

BREAKING CHANGE: this reverts forcing all mime types to jpeg on upload, which is the cause of lost GIF data
2020-06-24 11:21:42 +03:00
semantic-release-bot 9d6aab1aa0 chore(release): 3.0.1 [skip ci]
## [3.0.1](https://github.com/react-native-community/react-native-cameraroll/compare/v3.0.0...v3.0.1) (2020-06-23)

### Bug Fixes

* error during pod install. Tags have v prefix. ([#205](https://github.com/react-native-community/react-native-cameraroll/issues/205)) ([a0a48b6](https://github.com/react-native-community/react-native-cameraroll/commit/a0a48b6))
2020-06-23 05:55:04 +00:00
Steve Greenley a0a48b6fa7
fix: error during pod install. Tags have v prefix. (#205) 2020-06-23 08:49:05 +03:00
semantic-release-bot 4cb20cc8d3 chore(release): 3.0.0 [skip ci]
# [3.0.0](https://github.com/react-native-community/react-native-cameraroll/compare/v2.0.0...v3.0.0) (2020-06-23)

### Features

* Added imageSize and playableDuration to `include` param, deletes isStored ([#187](https://github.com/react-native-community/react-native-cameraroll/issues/187)) ([ec33d32](https://github.com/react-native-community/react-native-cameraroll/commit/ec33d32))

### BREAKING CHANGES

* imageSize and playableDuration are no longer included by default to improve performance
2020-06-23 05:47:49 +00:00
Harry Yu ec33d328af
feat: Added imageSize and playableDuration to `include` param, deletes isStored (#187)
BREAKING CHANGE: imageSize and playableDuration are no longer included by default to improve performance
2020-06-23 08:45:20 +03:00
kiran JD d21584ae4e
chore: Adds docs for Android permissions (#202)
* Adds docs for Android permissions

* Corrected typo's and imporovements

* Include CLI as a case explicitly

* Remove unexpected pasted lines
2020-06-23 08:30:18 +03:00
semantic-release-bot f8b2860a74 chore(release): 2.0.0 [skip ci]
# [2.0.0](https://github.com/react-native-community/react-native-cameraroll/compare/v1.8.1...v2.0.0) (2020-06-16)

### Features

* Added `include` parameter to getPhotos to let users tradeoff performance by omitting metadata ([#178](https://github.com/react-native-community/react-native-cameraroll/issues/178)) ([#200](https://github.com/react-native-community/react-native-cameraroll/issues/200)) ([4da8310](https://github.com/react-native-community/react-native-cameraroll/commit/4da8310))

### BREAKING CHANGES

* meta data is no longer added as default. This applies to `fileName`, `fileSize` and `location`. If you need this metadata use the new `include` parameter. Adding this metadata will slow down the `getPhotos` function, so consider only retrieving this meta data for smaller sets of images as needed, instead of for all images.

* Created getPhotosFast function, fixed inconsistent getPhotos toDate logic

* Fixed wrong param name, added better typechecking

* Added example, renamed allowEmptyFilenames to skipGettingFilenames

* Removed `after` from getPhotosFast docs

* Redid implementation based on a new `include` param

* Updated API to use include parameter

* Fixed flow checking by converting index.ts to Typescript

* Unformatted README.md

* Unformatted README.md

* Unformatted README.md

* Added .prettierignore and ignored README.md for now

* Made example/index.js not checked by Flow

* Updated README.md to include notes in the outputs too

* Made inclusion of fields consistent, addressed other feedback

* Renamed GetPhotosFastParams back to GetPhotosParams

* Updated documentation to reflect nullable types

* Updated typings and documentation for fromTime, toTime

* Updated to fix `hasNextPage` being incorrectly false in some cases

Co-authored-by: Harry Yu <hy.harry.yu@gmail.com>
2020-06-16 10:24:15 +00:00
Bartol Karuza 4da8310892
feat: Added `include` parameter to getPhotos to let users tradeoff performance by omitting metadata (#178) (#200)
BREAKING CHANGE: meta data is no longer added as default. This applies to `fileName`, `fileSize` and `location`. If you need this metadata use the new `include` parameter. Adding this metadata will slow down the `getPhotos` function, so consider only retrieving this meta data for smaller sets of images as needed, instead of for all images.

* Created getPhotosFast function, fixed inconsistent getPhotos toDate logic

* Fixed wrong param name, added better typechecking

* Added example, renamed allowEmptyFilenames to skipGettingFilenames

* Removed `after` from getPhotosFast docs

* Redid implementation based on a new `include` param

* Updated API to use include parameter

* Fixed flow checking by converting index.ts to Typescript

* Unformatted README.md

* Unformatted README.md

* Unformatted README.md

* Added .prettierignore and ignored README.md for now

* Made example/index.js not checked by Flow

* Updated README.md to include notes in the outputs too

* Made inclusion of fields consistent, addressed other feedback

* Renamed GetPhotosFastParams back to GetPhotosParams

* Updated documentation to reflect nullable types

* Updated typings and documentation for fromTime, toTime

* Updated to fix `hasNextPage` being incorrectly false in some cases

Co-authored-by: Harry Yu <hy.harry.yu@gmail.com>
2020-06-16 13:20:51 +03:00
semantic-release-bot 27f277169e chore(release): 1.8.1 [skip ci]
## [1.8.1](https://github.com/react-native-community/react-native-cameraroll/compare/v1.8.0...v1.8.1) (2020-06-16)

### Bug Fixes

* Revert "feat: Added `include` parameter to getPhotos to let users tradeoff performance by omitting metadata ([#178](https://github.com/react-native-community/react-native-cameraroll/issues/178))" ([#199](https://github.com/react-native-community/react-native-cameraroll/issues/199)) ([e65e1f2](https://github.com/react-native-community/react-native-cameraroll/commit/e65e1f2))
2020-06-16 10:08:14 +00:00
Bartol Karuza e65e1f208b
fix: Revert "feat: Added `include` parameter to getPhotos to let users tradeoff performance by omitting metadata (#178)" (#199) 2020-06-16 13:05:12 +03:00
semantic-release-bot c5ea581d22 chore(release): 1.8.0 [skip ci]
# [1.8.0](https://github.com/react-native-community/react-native-cameraroll/compare/v1.7.2...v1.8.0) (2020-06-16)

### Features

* Added `include` parameter to getPhotos to let users tradeoff performance by omitting metadata ([#178](https://github.com/react-native-community/react-native-cameraroll/issues/178)) ([e54a6af](https://github.com/react-native-community/react-native-cameraroll/commit/e54a6af))
2020-06-16 09:12:10 +00:00
Harry Yu e54a6afa8b
feat: Added `include` parameter to getPhotos to let users tradeoff performance by omitting metadata (#178)
* Created getPhotosFast function, fixed inconsistent getPhotos toDate logic

* Fixed wrong param name, added better typechecking

* Added example, renamed allowEmptyFilenames to skipGettingFilenames

* Removed `after` from getPhotosFast docs

* Redid implementation based on a new `include` param

* Updated API to use include parameter

* Fixed flow checking by converting index.ts to Typescript

* Unformatted README.md

* Unformatted README.md

* Unformatted README.md

* Added .prettierignore and ignored README.md for now

* Made example/index.js not checked by Flow

* Updated README.md to include notes in the outputs too

* Made inclusion of fields consistent, addressed other feedback

* Renamed GetPhotosFastParams back to GetPhotosParams

* Updated documentation to reflect nullable types

* Updated typings and documentation for fromTime, toTime

* Updated to fix `hasNextPage` being incorrectly false in some cases
2020-06-16 12:07:25 +03:00
semantic-release-bot b777e2bc57 chore(release): 1.7.2 [skip ci]
## [1.7.2](https://github.com/react-native-community/react-native-cameraroll/compare/v1.7.1...v1.7.2) (2020-05-26)

### Bug Fixes

* Use DCIM folder when album is not provided on Android. ([#185](https://github.com/react-native-community/react-native-cameraroll/issues/185)) ([b5352cb](https://github.com/react-native-community/react-native-cameraroll/commit/b5352cb)), closes [#141](https://github.com/react-native-community/react-native-cameraroll/issues/141)
2020-05-26 10:20:15 +00:00
Antonio Gallo b5352cb8be
fix: Use DCIM folder when album is not provided on Android. (#185)
fixes #141

Co-authored-by: Antonio Gallo <antgallo@amazon.com>
2020-05-26 13:16:54 +03:00
semantic-release-bot 4c448619d3 chore(release): 1.7.1 [skip ci]
## [1.7.1](https://github.com/react-native-community/react-native-cameraroll/compare/v1.7.0...v1.7.1) (2020-05-21)

### Bug Fixes

* deprecate saveToCameraRoll ([#183](https://github.com/react-native-community/react-native-cameraroll/issues/183)) ([aa47532](https://github.com/react-native-community/react-native-cameraroll/commit/aa47532)), closes [#182](https://github.com/react-native-community/react-native-cameraroll/issues/182)
2020-05-21 07:56:11 +00:00
Bartol Karuza aa47532fdb
fix: deprecate saveToCameraRoll (#183)
fixes #182
2020-05-21 10:52:27 +03:00
dependabot[bot] b243aa52d1
chore(deps): bump https-proxy-agent from 2.2.1 to 2.2.4 (#165)
Bumps [https-proxy-agent](https://github.com/TooTallNate/node-https-proxy-agent) from 2.2.1 to 2.2.4.
- [Release notes](https://github.com/TooTallNate/node-https-proxy-agent/releases)
- [Commits](https://github.com/TooTallNate/node-https-proxy-agent/compare/2.2.1...2.2.4)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-05-20 21:07:39 +03:00
Harry Yu 057acd815b
chore: Updated example to build and run on latest React Native (#177)
* Updated example to build and run on latest React Native

* Fixed `yarn test:detox` release builds

* Added missing downloadDependencies CircleCI task
2020-05-20 20:57:46 +03:00
semantic-release-bot 87f1478ca7 chore(release): 1.7.0 [skip ci]
# [1.7.0](https://github.com/react-native-community/react-native-cameraroll/compare/v1.6.3...v1.7.0) (2020-05-20)

### Features

* Added fileSize for getPhotos API ([#180](https://github.com/react-native-community/react-native-cameraroll/issues/180)) ([e7cf866](https://github.com/react-native-community/react-native-cameraroll/commit/e7cf866))
2020-05-20 17:39:22 +00:00
Antonio Gallo e7cf8665d4
feat: Added fileSize for getPhotos API (#180)
Co-authored-by: Antonio Gallo <antgallo@amazon.com>
2020-05-20 20:35:59 +03:00
Bartol Karuza 306bc75027
chore: upgrade build orb (#181) 2020-05-20 19:23:28 +03:00
semantic-release-bot 7745bdf6e8 chore(release): 1.6.3 [skip ci]
## [1.6.3](https://github.com/react-native-community/react-native-cameraroll/compare/v1.6.2...v1.6.3) (2020-05-20)

### Bug Fixes

* Fixed 'Invalid column COUNT(*) as count' on CameraRoll.getAlbums() due to GROUP BY support removed in Android Q. ([#176](https://github.com/react-native-community/react-native-cameraroll/issues/176)) ([563ec15](https://github.com/react-native-community/react-native-cameraroll/commit/563ec15))
2020-05-20 16:03:45 +00:00
Antonio Gallo 563ec15239
fix: Fixed 'Invalid column COUNT(*) as count' on CameraRoll.getAlbums() due to GROUP BY support removed in Android Q. (#176)
Co-authored-by: Antonio Gallo <antgallo@amazon.com>
2020-05-20 18:59:54 +03:00
Evan Bacon b0667e2b6b
Recommend npx pod-install for setup instructions
# Summary

We've been recommending devs use `npx pod-install` since it will attempt to install CocoaPods CLI if it's not available on the computer (cite [React Navigation setup guide](https://reactnavigation.org/docs/getting-started/#installing-dependencies-into-a-bare-react-native-project)). This has proved very useful for Expo users who are now migrating to the bare workflow and want to use community packages in their projects.

## Checklist

- [x] I have tested this on a device and a simulator
- [x] I added the documentation in `README.md`
2020-05-14 12:27:45 -07:00
semantic-release-bot 8ed034e0d8 chore(release): 1.6.2 [skip ci]
## [1.6.2](https://github.com/react-native-community/react-native-cameraroll/compare/v1.6.1...v1.6.2) (2020-05-12)

### Bug Fixes

* Fixed 'Invalid column longitude' in Android 29 SDK  ([#170](https://github.com/react-native-community/react-native-cameraroll/issues/170)) ([39fe65e](https://github.com/react-native-community/react-native-cameraroll/commit/39fe65e))
2020-05-12 15:53:26 +00:00
Slava Koshevoi 39fe65e951
fix: Fixed 'Invalid column longitude' in Android 29 SDK (#170)
* Added checking for android API. Set LONGITUDE and LATITUDE for images if API < 29

* Removed Images.Media.LONGITUDE and Images.Media.LATITUDE from PROJECTION
2020-05-12 18:50:58 +03:00
semantic-release-bot ec4b587aa7 chore(release): 1.6.1 [skip ci]
## [1.6.1](https://github.com/react-native-community/react-native-cameraroll/compare/v1.6.0...v1.6.1) (2020-05-08)

### Bug Fixes

* Error Domain=PHPhotosErrorDomain Code=-1 ([#172](https://github.com/react-native-community/react-native-cameraroll/issues/172)) ([a4be52c](https://github.com/react-native-community/react-native-cameraroll/commit/a4be52c)), closes [#157](https://github.com/react-native-community/react-native-cameraroll/issues/157) [#143](https://github.com/react-native-community/react-native-cameraroll/issues/143)
2020-05-08 19:44:44 +00:00
Conner Owen a4be52cf83
fix: Error Domain=PHPhotosErrorDomain Code=-1 (#172)
fixes #157 
fixes #143 

* Update RNCCameraRollManager.m
2020-05-08 22:41:46 +03:00
semantic-release-bot 7c2986ef13 chore(release): 1.6.0 [skip ci]
# [1.6.0](https://github.com/react-native-community/react-native-cameraroll/compare/v1.5.2...v1.6.0) (2020-04-30)

### Bug Fixes

* Fixed reference to git repository in Podspec file ([#161](https://github.com/react-native-community/react-native-cameraroll/issues/161)) ([b261a98](https://github.com/react-native-community/react-native-cameraroll/commit/b261a98))

### Features

* **android:** Manually obtain location metadata using ExifInterface ([#114](https://github.com/react-native-community/react-native-cameraroll/issues/114)) ([ade785e](https://github.com/react-native-community/react-native-cameraroll/commit/ade785e))
2020-04-30 12:21:51 +00:00
Eni Sinanaj b261a98efe
fix: Fixed reference to git repository in Podspec file (#161)
* Fixed reference to git repository in Podspec file

* Fixed build issue because of unused variable

* Fixed issue with build. Unused variable inputImage
2020-04-30 15:16:19 +03:00
Syed Rahaman ade785e29d
feat(android): Manually obtain location metadata using ExifInterface (#114)
* Manually obtain location metadata using ExifInterface

* import ExifInterface

* remove log statement

* removed unused code and put comments

* change error message text

* code formatting

Co-authored-by: Syed Rahaman <syed.rahaman@kartbites.com>
2020-04-30 15:14:37 +03:00
semantic-release-bot 53e42df323 chore(release): 1.5.2 [skip ci]
## [1.5.2](https://github.com/react-native-community/react-native-cameraroll/compare/v1.5.1...v1.5.2) (2020-03-26)

### Bug Fixes

* getPhotos crash if there is a quote in album name ([#156](https://github.com/react-native-community/react-native-cameraroll/issues/156)) ([f51d387](https://github.com/react-native-community/react-native-cameraroll/commit/f51d387))
2020-03-26 10:13:18 +00:00
dmydry f51d38783e
fix: getPhotos crash if there is a quote in album name (#156) 2020-03-26 12:01:09 +02:00
dependabot[bot] 9fb2f4a75a
chore(deps): bump acorn from 5.7.3 to 5.7.4 (#151)
Bumps [acorn](https://github.com/acornjs/acorn) from 5.7.3 to 5.7.4.
- [Release notes](https://github.com/acornjs/acorn/releases)
- [Commits](https://github.com/acornjs/acorn/compare/5.7.3...5.7.4)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-03-26 12:00:26 +02:00
semantic-release-bot e25de5790b chore(release): 1.5.1 [skip ci]
## [1.5.1](https://github.com/react-native-community/react-native-cameraroll/compare/v1.5.0...v1.5.1) (2020-03-26)

### Bug Fixes

* rollback getExceptionHandler change ([#158](https://github.com/react-native-community/react-native-cameraroll/issues/158)) ([bd23aa1](https://github.com/react-native-community/react-native-cameraroll/commit/bd23aa1)), closes [#149](https://github.com/react-native-community/react-native-cameraroll/issues/149)
2020-03-26 09:58:41 +00:00
Bartol Karuza bd23aa15d8
fix: rollback getExceptionHandler change (#158)
REVERT: fix: Update deprecated functions (#149)
2020-03-26 11:56:13 +02:00
semantic-release-bot b4d1576937 chore(release): 1.5.0 [skip ci]
# [1.5.0](https://github.com/react-native-community/react-native-cameraroll/compare/v1.4.1...v1.5.0) (2020-03-26)

### Bug Fixes

* remove unused import that breaks the build for RN >= 0.60 ([#150](https://github.com/react-native-community/react-native-cameraroll/issues/150)) ([334ab0e](https://github.com/react-native-community/react-native-cameraroll/commit/334ab0e))
* Update deprecated functions ([#149](https://github.com/react-native-community/react-native-cameraroll/issues/149)) ([3e38ab1](https://github.com/react-native-community/react-native-cameraroll/commit/3e38ab1))

### Features

* get album list ([#139](https://github.com/react-native-community/react-native-cameraroll/issues/139)) ([fc1855e](https://github.com/react-native-community/react-native-cameraroll/commit/fc1855e))
2020-03-26 08:32:35 +00:00
Juang, Yi-Lin 3e38ab1419
fix: Update deprecated functions (#149)
Fix warning `[deprecation] GuardedAsyncTask(ReactContext) in GuardedAsyncTask has been deprecated`
2020-03-26 10:20:41 +02:00
Justin Huntington 334ab0e1a6
fix: remove unused import that breaks the build for RN >= 0.60 (#150) 2020-03-26 10:19:45 +02:00
Jesse Katsumata 4190ac9c1e
chore: update and fix lint error (#153)
* chore: update eslint config

* chore: apply prettier

* Run CI
2020-03-26 10:19:13 +02:00
Tuan Luong fc1855e001
feat: get album list (#139) 2020-02-08 11:17:56 +08:00
semantic-release-bot f3fc48d150 chore(release): 1.4.1 [skip ci]
## [1.4.1](https://github.com/react-native-community/react-native-cameraroll/compare/v1.4.0...v1.4.1) (2020-02-08)

### Bug Fixes

* fix IOS MetaData ([#134](https://github.com/react-native-community/react-native-cameraroll/issues/134)) ([e70cff5](https://github.com/react-native-community/react-native-cameraroll/commit/e70cff5))
2020-02-08 02:20:05 +00:00
Jack e70cff5429
fix: fix IOS MetaData (#134)
* changes to fix IOS MetaData

* chore: fix formatting

Co-authored-by: Bartol Karuza <bartol.k@gmail.com>
2020-02-08 10:17:48 +08:00
semantic-release-bot 34444b21b3 chore(release): 1.4.0 [skip ci]
# [1.4.0](https://github.com/react-native-community/react-native-cameraroll/compare/v1.3.1...v1.4.0) (2020-02-05)

### Bug Fixes

* Making Promise return types consistent across iOS and Android, updating types to match. ([#137](https://github.com/react-native-community/react-native-cameraroll/issues/137)) ([b49dc8e](https://github.com/react-native-community/react-native-cameraroll/commit/b49dc8e))

### Features

* Support filter media items between dates ([#140](https://github.com/react-native-community/react-native-cameraroll/issues/140)) ([75b4208](https://github.com/react-native-community/react-native-cameraroll/commit/75b4208))
2020-02-05 09:27:23 +00:00
Kevin Brown b49dc8e631
fix: Making Promise return types consistent across iOS and Android, updating types to match. (#137) 2020-02-05 17:21:59 +08:00
Tuan Luong 75b4208474
feat: Support filter media items between dates (#140)
* Update RNCCameraRollManager.m

* Update CameraRollModule.java

* Update README.md

* Update RNCCameraRollManager.m

* Update CameraRoll.d.ts

* Update RNCCameraRollManager.h

* Update CameraRollModule.java

* Update RNCCameraRollManager.m

* update code
2020-02-05 17:20:54 +08:00
Bartol Karuza 24f141cada Revert "Merge pull request #3 from FrikkieSnyman/use-dcim-for-save (#94)"
This reverts commit 947f1b0dce.
2020-01-20 18:04:36 +08:00
Frikkie Snyman 947f1b0dce Merge pull request #3 from FrikkieSnyman/use-dcim-for-save (#94)
Use DCIM dir for saveToCameraRoll
2020-01-20 17:52:35 +08:00
Bartol Karuza 900c53a3cb
chore: increase the max RN version to 62 (#133)
fixes #127
2020-01-20 17:39:44 +08:00