buildConfigField
seems to bug gradle parser causing flavor to not be detected
#2815
Labels
needs review
Issue is ready to be reviewed by a maintainer
Build/Submit details page URL
No response
Summary
I've been having this issue after trying to get flavors to work in our bare project. Nothing made sense since I was just doing normal gradle stuff AND following the docs, so I decided to investigate, essentially in parseGradleCommand neither
flavorDimensions
norproductFlavors
are being foundI tried to debug the parser and... well, I discovered that I don't want to debug a parser right now. However I've noticed that my keys are being parsed, but they're in the wrong place:
Managed or bare?
Bare
Environment
expo-env-info 1.2.2 environment info:
System:
OS: macOS 15.0
Shell: 5.9 - /bin/zsh
Binaries:
Node: 20.18.0 - ~/.asdf/installs/nodejs/20.18.0/bin/node
Yarn: 4.3.1 - ~/.asdf/installs/nodejs/20.18.0/bin/yarn
npm: 10.8.2 - ~/.asdf/plugins/nodejs/shims/npm
Managers:
CocoaPods: 1.16.2 - /Users/gabrielrohden/.asdf/shims/pod
SDKs:
iOS SDK:
Platforms: DriverKit 24.2, iOS 18.2, macOS 15.2, tvOS 18.2, visionOS 2.2, watchOS 11.2
Android SDK:
API Levels: 28, 30, 33, 34, 35
Build Tools: 34.0.0, 35.0.0, 36.0.0
System Images: android-34 | Google APIs ARM 64 v8a, android-34 | Google Play ARM 64 v8a, android-34 | Google Play Intel x86_64 Atom, android-35 | Google Play ARM 64 v8a, android-35 | Pre-Release 16 KB Page Size Google Play ARM 64 v8a
IDEs:
Xcode: 16.2/16C5032a - /usr/bin/xcodebuild
npmPackages:
expo: ^52.0.0 => 52.0.23
react: 18.3.1 => 18.3.1
react-dom: ^18.3.1 => 18.3.1
react-native: 0.76.5 => 0.76.5
npmGlobalPackages:
eas-cli: 14.4.0
Expo Workflow: bare
Error output
Reproducible demo or steps to reproduce from a blank project
I didn't setup any runtime/test of this cli codebase, but I think that this file might help to pinpoint where the parser is failing
The text was updated successfully, but these errors were encountered: