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

Does not work with latest React Native 0.76.2 #820

Open
jpodpro opened this issue Nov 21, 2024 · 7 comments
Open

Does not work with latest React Native 0.76.2 #820

jpodpro opened this issue Nov 21, 2024 · 7 comments

Comments

@jpodpro
Copy link

jpodpro commented Nov 21, 2024

Using the latest React Native 0.76.2 the Config container is empty and contains none of the defined environment variables.

@martinlAP
Copy link

Hello,

I had the same problem but I was missing a line in the defaultConfig object in the app/build.gradle

resValue "string", "build_config_package", "your_package_name"

This step is described in the documentation under "Advanced android setup"

Hope this helps!

@woodrufs
Copy link

woodrufs commented Dec 3, 2024

On iOS, I am seeing the same issue. Disabling the new architecture resolves it, but that isn't the solution I was hoping for.

@dongbach69
Copy link

@martinlAP for the new version of React Native (0.76.5) the package name already deleted in AndroidManifest.xml file. So when i added the code like you suggest it's still not working.

@dongbach69
Copy link

Hi @jpodpro do you have any solution for it?

@jpodpro
Copy link
Author

jpodpro commented Dec 30, 2024

@dongbach69 Unfortunately not. We have abandoned our use of this package as it is clearly not maintained. The RN package ecosystem appears to have significantly shifted to Expo and as a result we have had to abandon a variety of packages we were using.

@Mando7818
Copy link

Any updates? Thank you

@aslihanturkdonmez
Copy link

I am using react native version 0.76.7.

After adding the following field to the proguard-rules.pro file, I was able to get the output on android:
-keep class com.mypackage.BuildConfig { *; }

Don't forget to change the package name
You can find more information here

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

No branches or pull requests

6 participants