Commit Graph

261 Commits

Author SHA1 Message Date
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
semantic-release-bot 77c186ebb5 chore(release): 1.2.1 [skip ci]
## [1.2.1](https://github.com/react-native-community/react-native-cameraroll/compare/v1.2.0...v1.2.1) (2019-08-14)

### Bug Fixes

* **lib:** typo in PHFetchOptions ([#78](https://github.com/react-native-community/react-native-cameraroll/issues/78)) ([75e325d](https://github.com/react-native-community/react-native-cameraroll/commit/75e325d))
2019-08-14 20:05:17 +00:00
Bartol Karuza 75e325dcfe
fix(lib): typo in PHFetchOptions (#78) 2019-08-14 22:01:26 +02:00
semantic-release-bot fcc2e10d0e chore(release): 1.2.0 [skip ci]
# [1.2.0](https://github.com/react-native-community/react-native-cameraroll/compare/v1.1.2...v1.2.0) (2019-08-14)

### Bug Fixes

* **lib:** Convert PHAsset to JPEG for uploading ([c958493](https://github.com/react-native-community/react-native-cameraroll/commit/c958493))
* **lib:** fix issue with CameraRoll.saveImageWithTag and new save function with options ([7519cb5](https://github.com/react-native-community/react-native-cameraroll/commit/7519cb5))

### Features

* **lib:** save photos or videos to an album ([dc00a4f](https://github.com/react-native-community/react-native-cameraroll/commit/dc00a4f))
2019-08-14 19:34:56 +00:00
Bartol Karuza 7519cb5fa8 fix(lib): fix issue with CameraRoll.saveImageWithTag and new save function with options 2019-08-14 21:31:43 +02:00
maxaggedon c958493441 fix(lib): Convert PHAsset to JPEG for uploading 2019-08-14 21:05:04 +02:00
SimonErm dc00a4f115 feat(lib): save photos or videos to an album
* add option to specify album in saveToCameraRoll and move the optional type param to options

* check platform before setting default value for group types to prevent exception

* adjust typings

* update invariant message

* format code

* extract new implementation to function to avoid breaking change

* format code

* add missing spaces

* fix(lib): add accidentally removed savedphotos back to the enum to prevent crash

* chore(lib): formatting

* chore(lib): add doc for the new save method
2019-08-14 21:00:20 +02:00
semantic-release-bot 344b3a93a4 chore(release): 1.1.2 [skip ci]
## [1.1.2](https://github.com/react-native-community/react-native-cameraroll/compare/v1.1.1...v1.1.2) (2019-08-14)

### Bug Fixes

* **lib:** Remove unrecognised UTF8 tag from xcworkspace file ([0d5a2da](https://github.com/react-native-community/react-native-cameraroll/commit/0d5a2da))
2019-08-14 17:17:42 +00:00
Kevin Brown 0d5a2dadb3 fix(lib): Remove unrecognised UTF8 tag from xcworkspace file 2019-08-14 19:15:36 +02:00
tomtargosz 7d04a4e1f6 Fix TypeScript error TS1046 2019-08-14 19:14:14 +02:00
Bartol Karuza 25989a86a0
chore(lib): lock lodash version to mitigate security risk (#71)
https://github.com/react-native-community/react-native-cameraroll/network/alert/yarn.lock/lodash/open
2019-08-01 16:28:30 +02:00