Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(android): support rn version 0.68 #2193

Merged
merged 1 commit into from Aug 16, 2023

Conversation

charlyBerthet
Copy link
Contributor

Motivation

v5.6.0 is no longer building for React-Native 0.68.

After upgrading react-native-image-picker from 5.4.2 to 5.5.0 my app no longer builds because of the following issue: error: cannot find symbol new ImagePickerPackage()

This issue was introduced here:
4584d7b

This pr will fix these bugs :

Test Plan

Build android

My stack

Using react-native 0.68.2
Gradle 7.3.1
buildToolsVersion 33
compileSdkVersion 33
targetSdkVersion 33
minSdkVersion 24
kotlinVersion 1.7.0

Temp workaround

Use patch-package with the following update

diff --git a/node_modules/react-native-image-picker/android/src/main/AndroidManifest.xml b/node_modules/react-native-image-picker/android/src/main/AndroidManifest.xml
index 2c5911e..2209799 100644
--- a/node_modules/react-native-image-picker/android/src/main/AndroidManifest.xml
+++ b/node_modules/react-native-image-picker/android/src/main/AndroidManifest.xml
@@ -1,6 +1,7 @@
 <?xml version="1.0" encoding="utf-8"?>
 <manifest
   xmlns:android="http://schemas.android.com/apk/res/android"
+  package="com.imagepicker"
   >
     <application>
       <provider

Upgrading react-native-image-picker from 5.4.2 to 5.5.0 resulted in my app no longer building because of the following issue: `error: cannot find symbol new ImagePickerPackage()`

This issue was introduced here: 
react-native-image-picker@4584d7b

My stack: 
Using react-native 0.68.2
Gradle 7.3.1
buildToolsVersion 33
compileSdkVersion 33
targetSdkVersion 33
minSdkVersion 24
kotlinVersion 1.7.0
@Johan-dutoit Johan-dutoit merged commit 58aeb06 into react-native-image-picker:main Aug 16, 2023
1 check passed
Johan-dutoit pushed a commit that referenced this pull request Aug 16, 2023
## [5.6.1](v5.6.0...v5.6.1) (2023-08-16)

### Bug Fixes

* **android:** support rn version 0.68 ([#2193](#2193)) ([58aeb06](58aeb06))
@Johan-dutoit
Copy link
Collaborator

🎉 This PR is included in version 5.6.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants