-
-
Notifications
You must be signed in to change notification settings - Fork 978
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
Add AGP8 support by adding buildConfig = true to buildFeatures #2571
Comments
Hey! 👋 The issue doesn't seem to contain a minimal reproduction. Could you provide a snack or a link to a GitHub repository under your username that reproduces the problem? |
Can't do a repro sorry, I'm not into the RN game that much. Just reporting a problem here as well as I can with a possible fix |
Can you please take a look at this? I know there's no repro here but it should be straightforward anyway |
RN Thread about this: react-native-community/discussions-and-proposals#671 |
In my opinion it doesn't need a repro, it's a build simple feature with full description what is missing. |
Created a PR, probably need some help since I don't usually do this. #2599 |
## Description Add support for AGP8 by adding the buildConfig Flag indicating that this library uses custom buildconfig fields and needs it's BuildConfig class generated. Fixes #2571 ## Test plan Tested that build works correctly
Would a patch version with this be possible? |
Yes 😃 |
FAILURE: Build failed with an exception.
BUILD FAILED in 6s |
Description
Upgrading to Android Gradle Plugin 8.1 and trying not to use the global flag
android.defaults.buildfeatures.buildconfig=true
which leads to slower builds than defining this only in needed modules
I'm getting the error:
Fix: please add the flag
Other projects do something like this:
to build.gradle for AGP >= 8.1
Steps to reproduce
Snack or a link to a repository
none
Gesture Handler version
2.12.1
React Native version
0.72.2
Platforms
Android
JavaScript runtime
None
Workflow
None
Architecture
None
Build type
None
Device
None
Device model
No response
Acknowledgements
Yes
The text was updated successfully, but these errors were encountered: