From 4be82d50ac1e3086f10ff0ac09703e4a0ec539db Mon Sep 17 00:00:00 2001 From: Rodolfo Gomez Sirimarco Date: Thu, 14 Sep 2023 10:33:46 -0500 Subject: [PATCH 1/2] Removed camera permission on Android since it is not required --- .../com/reactnative/ivpusic/imagepicker/PickerModule.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/android/src/main/java/com/reactnative/ivpusic/imagepicker/PickerModule.java b/android/src/main/java/com/reactnative/ivpusic/imagepicker/PickerModule.java index 248f06b8a..afe650630 100644 --- a/android/src/main/java/com/reactnative/ivpusic/imagepicker/PickerModule.java +++ b/android/src/main/java/com/reactnative/ivpusic/imagepicker/PickerModule.java @@ -309,7 +309,7 @@ public void openCamera(final ReadableMap options, final Promise promise) { setConfiguration(options); resultCollector.setup(promise, false); - permissionsCheck(activity, promise, Arrays.asList(Manifest.permission.CAMERA, Manifest.permission.WRITE_EXTERNAL_STORAGE), new Callable() { + permissionsCheck(activity, promise, Arrays.asList(Manifest.permission.WRITE_EXTERNAL_STORAGE), new Callable() { @Override public Void call() { initiateCamera(activity); @@ -938,4 +938,4 @@ private static WritableMap getCroppedRectMap(Intent data) { return map; } -} \ No newline at end of file +} From 8f160b5163ac1d8946562d52ff018212eb228d28 Mon Sep 17 00:00:00 2001 From: Rodolfo Gomez Sirimarco Date: Thu, 14 Sep 2023 10:37:56 -0500 Subject: [PATCH 2/2] Readme updated --- README.md | 3 --- 1 file changed, 3 deletions(-) diff --git a/README.md b/README.md index 9ac3df2bf..5f09fe6a7 100644 --- a/README.md +++ b/README.md @@ -280,9 +280,6 @@ android { Reference for more details https://github.com/ivpusic/react-native-image-crop-picker/issues/1406 -- [Optional] If you want to use camera picker in your project, add following to `app/src/main/AndroidManifest.xml` - - `` - - [Optional] If you want to use front camera, also add following to `app/src/main/ AndroidManifest.xml` - ``