dagger: File name too long when nesting subcomponents
I’m going through the final steps to fully convert our app to Dagger 2, tying the hierarchy of subcomponents together. We have a deep hierarchy of sub components. This means the subcomponent names are too long:
error while writing DaggerDevRegisterAppComponent.DevLoggedInComponentImpl.DevRootActivityComponentImpl.SellerFlow_MobileComponentImpl.HomeScreen_MobileComponentImpl.TenderPath_ComponentImpl.AbstractGiftCardBalancePath_ComponentImpl.GiftCardBalanceInputScreen_ComponentImpl:
./DaggerDevRegisterAppComponent$DevLoggedInComponentImpl$DevRootActivityComponentImpl$SellerFlow_MobileComponentImpl$HomeScreen_MobileComponentImpl$TenderPath_ComponentImpl$AbstractGiftCardBalancePath_ComponentImpl$GiftCardBalanceInputScreen_ComponentImpl.class (File name too long)
About this issue
- Original URL
- State: closed
- Created 8 years ago
- Comments: 17
Commits related to this issue
- Compact classnames for subcomponent implementations, fixes #421. Fix for https://github.com/google/dagger/issues/421. Instead of including more and more levels of container names until we achieve un... — committed to rjrjr/dagger by rjrjr 7 years ago
- Compact classnames for subcomponent implementations, fixes #421. Fix for https://github.com/google/dagger/issues/421. Instead of including more and more levels of container names until we achieve un... — committed to rjrjr/dagger by rjrjr 7 years ago
- Compact classnames for subcomponent implementations, fixes #421. Fix for https://github.com/google/dagger/issues/421. Instead of including more and more levels of container names until we achieve un... — committed to rjrjr/dagger by rjrjr 7 years ago
- Compact classnames for subcomponent implementations, fixes #421. Fix for https://github.com/google/dagger/issues/421. Instead of including more and more levels of container names until we achieve un... — committed to rjrjr/dagger by rjrjr 7 years ago
- Compact classnames for subcomponent implementations Instead of including more and more levels of container names until we achieve uniqueness, we try two strategies: use simple names everywhere, or el... — committed to google/dagger by rjrjr 7 years ago
- Compact classnames for subcomponent implementations Instead of including more and more levels of container names until we achieve uniqueness, we try two strategies: use simple names everywhere, or el... — committed to google/dagger by rjrjr 7 years ago
- Compact classnames for subcomponent implementations Instead of including more and more levels of container names until we achieve uniqueness, we try two strategies: use simple names everywhere, or el... — committed to google/dagger by rjrjr 7 years ago
Why are you making fun of me? )c:
On Wednesday, August 3, 2016, Gregory Kick notifications@github.com wrote:
Sorry, @py. Let me invite you to join in making fun of @pyricau.
Just saw this. I don’t have any bandwidth at the moment. I’ll pass the word around, maybe someone in my team will get pissed and just do it.
A few things here…
@link
s back to the component would soften the blow.A quick strawman for something that might help would be to use initialisms to try to shorten some of these names. Here’s an example if we just did it for any enclosing classes:
DaggerDevRegisterAppComponent.DevLoggedInComponentImpl.DevRootActivityComponentImpl.SF_MobileComponentImpl.HS_MobileComponentImpl.TP_ComponentImpl.AGCBP_ComponentImpl.GCBIS_ComponentImpl
This was not mentioned properly in the Github release notes - https://github.com/google/dagger/releases/tag/dagger-2.11-rc2