Commit Graph

271 Commits

Author SHA1 Message Date
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
Bartol Karuza cc28db489b
chore(github): add new local PR template (#132)
fixes #131
2020-01-20 17:18:16 +08:00
semantic-release-bot 3ace12431d chore(release): 1.3.1 [skip ci]
## [1.3.1](https://github.com/react-native-community/react-native-cameraroll/compare/v1.3.0...v1.3.1) (2020-01-20)

### Bug Fixes

* **lib:** Fix for pagination on Android. ([#130](https://github.com/react-native-community/react-native-cameraroll/issues/130)) ([33dfb99](https://github.com/react-native-community/react-native-cameraroll/commit/33dfb99)), closes [#47](https://github.com/react-native-community/react-native-cameraroll/issues/47) [#118](https://github.com/react-native-community/react-native-cameraroll/issues/118)
2020-01-20 09:09:54 +00:00
dependabot[bot] 65ea70f9c1 chore(deps): bump mixin-deep from 1.3.1 to 1.3.2 (#105)
Bumps [mixin-deep](https://github.com/jonschlinkert/mixin-deep) from 1.3.1 to 1.3.2.
- [Release notes](https://github.com/jonschlinkert/mixin-deep/releases)
- [Commits](https://github.com/jonschlinkert/mixin-deep/compare/1.3.1...1.3.2)

Signed-off-by: dependabot[bot] <support@github.com>
2020-01-20 16:55:57 +08:00
Thomas Schaaf 3df3c5777f chore(example): Show correct date in example code (#129) 2020-01-20 16:55:23 +08:00
Jesse Katsumata 829d5a6b67 chore: add lean core badge to readme (#122) 2020-01-20 16:54:05 +08:00
Kevin Brown 33dfb99d35 fix(lib): Fix for pagination on Android. (#130)
fixes #47 
fixes #118
2020-01-20 16:52:42 +08:00
Zach Ramos 03bc028efe fix(lib) build error in RNCCameraRollManager.m (#109)
After upgrading to 1.3.0 that includes #87, my builds started to fail on the step to link react-native-cameraroll with the following message:
`Undefined symbol: _OBJC_Class_$_RCTImageLoader`.

I'm not sure what @tomtargosz's environment is like that allowed this to work, but it does not seem to work in 0.61.x with autolinked (cocoapods) dependencies. It looks like the recommendation made in that file is incorrect. 

The correct way to fix this, which I see in [react-native-image-crop-picker](https://github.com/ivpusic/react-native-image-crop-picker/blob/master/ios/src/ImageCropPicker.m#L394) and in [several](https://github.com/facebook/react-native/blob/master/Libraries/Image/RCTImageEditingManager.mm#L60) [internal](https://github.com/facebook/react-native/blob/master/Libraries/Image/RCTImageView.m#L324) [react files](@implementation RCTImageViewManager), is to use `[self.bridge moduleForName:@"ImageLoader" lazilyLoadIfNecessary:YES]`.
2019-11-14 18:22:32 +01:00
dependabot[bot] 11476ebe14
chore(deps): bump eslint-utils from 1.3.1 to 1.4.3 (#102) 2019-11-07 14:57:43 +00:00
dependabot[bot] 448b5708db
chore(deps): bump fstream from 1.0.11 to 1.0.12 (#104) 2019-11-07 14:44:08 +00:00
dependabot[bot] 9a62356ca6
chore(deps): bump handlebars from 4.1.0 to 4.5.1 (#103) 2019-11-07 14:12:38 +00:00
dependabot[bot] 2adb9ee27e
chore(deps): bump js-yaml from 3.12.1 to 3.13.1 (#101) 2019-11-07 14:12:18 +00:00
semantic-release-bot bd55652654 chore(release): 1.3.0 [skip ci]
# [1.3.0](https://github.com/react-native-community/react-native-cameraroll/compare/v1.2.1...v1.3.0) (2019-11-07)

### Bug Fixes

* **example:** remove flow parsing from example ([452fd7b](https://github.com/react-native-community/react-native-cameraroll/commit/452fd7b))
* **lib:** Android 10 screenshot sorted incorrectly ([#98](https://github.com/react-native-community/react-native-cameraroll/issues/98)) ([902abd4](https://github.com/react-native-community/react-native-cameraroll/commit/902abd4)), closes [#97](https://github.com/react-native-community/react-native-cameraroll/issues/97)
* **lib:** Fix warning for deprecated RCTBridge interface for RCTImageLoader ([#87](https://github.com/react-native-community/react-native-cameraroll/issues/87)) ([c0a132d](https://github.com/react-native-community/react-native-cameraroll/commit/c0a132d))

### Features

* **lib:** Moved deletePhotos to use new PHAsset API and added an implementation for Android ([#69](https://github.com/react-native-community/react-native-cameraroll/issues/69)) ([7850dd5](https://github.com/react-native-community/react-native-cameraroll/commit/7850dd5))
2019-11-07 13:27:30 +00:00
Bartol Karuza 452fd7bf04 fix(example): remove flow parsing from example 2019-11-07 14:24:54 +01:00
Seph Soliman 902abd4f70 fix(lib): Android 10 screenshot sorted incorrectly (#98)
Fixes #97
2019-11-07 14:17:11 +01:00
Tom Targosz c0a132daec fix(lib): Fix warning for deprecated RCTBridge interface for RCTImageLoader (#87) 2019-11-07 14:14:12 +01:00
Kevin Brown 7850dd538f feat(lib): Moved deletePhotos to use new PHAsset API and added an implementation for Android (#69)
* deletePhotos works in iOS

* Deletion works on Android.

* Removing unnecessary commented out code.

* Updated typescript typings.

* Made readme more accurate based on being able to retrieve failure from the iOS API.

* Let formatter run, also now rejecting the promise when there's any error on deletion on Android.
2019-11-07 14:13:24 +01:00
77xi 384103860f chore(docs): Update README.md for autolink (#85) 2019-11-07 14:11:53 +01:00
Bartol Karuza 8c3a108dab chore(example): fix example for usage by rn tester 2019-09-22 14:34:14 +02:00
Bartol Karuza e4b651c810 chore(example): remove dev dependencies from example 2019-09-22 13:38:56 +02:00
Bartol Karuza 4469030e6e
chore(docs): add meta info for the react-native-website (#81) 2019-09-03 17:21:38 +02:00
Bartol Karuza a1c3acff9a chore(docs): update the line about what save actually does differently from saveToCameraRoll 2019-08-14 22:11:55 +02:00