Commit Graph

308 Commits

Author SHA1 Message Date
Chris Bobbe daa6a9faeb
chore: Support React Native v0.63. (#264)
Co-authored-by: Jesse Katsumata <niconico.clarinet@gmail.com>
2021-03-21 12:55:20 +09:00
semantic-release-bot 5fe8de181d chore(release): 4.0.3 [skip ci]
## [4.0.3](https://github.com/react-native-community/react-native-cameraroll/compare/v4.0.2...v4.0.3) (2021-03-21)

### Bug Fixes

* (Android) Fixed issue where timestamp was "0" ([#277](https://github.com/react-native-community/react-native-cameraroll/issues/277)) ([a5befe3](https://github.com/react-native-community/react-native-cameraroll/commit/a5befe3))
2021-03-21 03:43:46 +00:00
Hanno J. Gödecke a5befe328c
fix: (Android) Fixed issue where timestamp was "0" (#277) 2021-03-21 12:34:01 +09:00
semantic-release-bot 7fa9b7c062 chore(release): 4.0.2 [skip ci]
## [4.0.2](https://github.com/react-native-community/react-native-cameraroll/compare/v4.0.1...v4.0.2) (2021-01-27)

### Bug Fixes

* RuntimeException on faulty video files ([#241](https://github.com/react-native-community/react-native-cameraroll/issues/241)) ([a83ad4c](https://github.com/react-native-community/react-native-cameraroll/commit/a83ad4c)), closes [#239](https://github.com/react-native-community/react-native-cameraroll/issues/239)
* updated react dependency in podspec to enable build in Xcode 12 (for iOS >= 12) ([#260](https://github.com/react-native-community/react-native-cameraroll/issues/260)) ([4f16a5a](https://github.com/react-native-community/react-native-cameraroll/commit/4f16a5a))
2021-01-27 03:11:28 +00:00
dependabot[bot] cd573c3b5b
chore(deps): bump npm-user-validate from 1.0.0 to 1.0.1 (#247) 2021-01-27 03:00:38 +00:00
Soumitra Mishra 54ba2e9bac
chore: updated readme for scoped storage changes (#280)
to make this project work on android 10 we will need to add android:requestLegacyExternalStorage="true" on application tag.

added that to readme so that people don't waste hours searching for it.
2021-01-27 02:15:49 +00:00
dependabot[bot] e7ffc0bba1
chore(deps): bump bin-links from 1.1.2 to 1.1.8 (#228)
Bumps [bin-links](https://github.com/npm/bin-links) from 1.1.2 to 1.1.8.
- [Release notes](https://github.com/npm/bin-links/releases)
- [Changelog](https://github.com/npm/bin-links/blob/v1.1.8/CHANGELOG.md)
- [Commits](https://github.com/npm/bin-links/compare/v1.1.2...v1.1.8)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-01-16 14:23:20 +09:00
dependabot[bot] 48f553fa97
chore(deps): bump handlebars from 4.5.1 to 4.7.6 (#229)
Bumps [handlebars](https://github.com/wycats/handlebars.js) from 4.5.1 to 4.7.6.
- [Release notes](https://github.com/wycats/handlebars.js/releases)
- [Changelog](https://github.com/handlebars-lang/handlebars.js/blob/master/release-notes.md)
- [Commits](https://github.com/wycats/handlebars.js/compare/v4.5.1...v4.7.6)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-01-16 14:22:58 +09:00
dependabot[bot] f3a9420afd
chore(deps): bump ini from 1.3.5 to 1.3.7 (#267)
Bumps [ini](https://github.com/isaacs/ini) from 1.3.5 to 1.3.7.
- [Release notes](https://github.com/isaacs/ini/releases)
- [Commits](https://github.com/isaacs/ini/compare/v1.3.5...v1.3.7)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-01-16 14:22:15 +09:00
Alexis Bronchart 4f16a5a9c4
fix: updated react dependency in podspec to enable build in Xcode 12 (for iOS >= 12) (#260) 2021-01-16 14:21:14 +09:00
Mik a83ad4c14e
fix: RuntimeException on faulty video files (#241)
fixes #239
2020-10-07 03:30:21 +00:00
semantic-release-bot 39cc3b0fbc chore(release): 4.0.1 [skip ci]
## [4.0.1](https://github.com/react-native-community/react-native-cameraroll/compare/v4.0.0...v4.0.1) (2020-09-29)

### Bug Fixes

* fix for crash on putImageSize due to photoDescriptor being null. ([#240](https://github.com/react-native-community/react-native-cameraroll/issues/240)) ([b6038a7](https://github.com/react-native-community/react-native-cameraroll/commit/b6038a7)), closes [#226](https://github.com/react-native-community/react-native-cameraroll/issues/226) [#239](https://github.com/react-native-community/react-native-cameraroll/issues/239)
* Xcode 12 compatibility ([#234](https://github.com/react-native-community/react-native-cameraroll/issues/234)) ([24fa8aa](https://github.com/react-native-community/react-native-cameraroll/commit/24fa8aa))
2020-09-29 12:06:44 +00:00
zxcpoiu 98bfdbf49c
chore: readme usage use recommended `save()` (#231) 2020-09-29 14:55:10 +03:00
Radek Czemerys 24fa8aaa12
fix: Xcode 12 compatibility (#234) 2020-09-29 14:54:00 +03:00
gavan b6038a7f0f
fix: fix for crash on putImageSize due to photoDescriptor being null. (#240)
fixes #226 #239
2020-09-29 14:52:33 +03:00
César Guadarrama Cantú c99c28c9a4
Remove unnecessary publish job requirement (#209)
* Remove unnecessary publish job requirement

* Add rn/android_build requirement before publish

* Fix publish requirements
2020-08-24 09:04:35 -05:00
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