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
Support another Application() and Activity() #44
Comments
This kind of conflict between base classes required by different libraries is definitely annoying. Unfortunately, I haven't found a nice way of removing the base class requirement from RainbowCake. However, the Localization library you've linked actually allows you to avoid subclassing, by calling into its |
Using delegates was my first idea, but I encountered some errors when I set a new language (activity is recreated) :
I thought maybe by overriding |
I confirm : it seems not to work with Localization Delegate methods. |
Ok my bad, after some hours I figured out : Delegates are OK, I just forgot to override one method I think... Thanks for your time, you helped me to not drop this delegate clue. |
Hi @zsmb13,
After being "stucked" with Dialogs and BottomSheets, I'm stucked with another problem today : deal with other libraries that already overrides
Application
andActivity
.The lib I want to integrate is https://github.com/akexorcist/Localization, which implement its own
LocalizationApplication
andLocalizationActivity
.I suppose it's out of the RainbowCake's scope, but maybe if we cannot integrate it completely we can at least expose modules
rainbow-cake-core-localization
&rainbow-cake-dagger-localization
, as an alternative ? And of course make it for other libraries if needed.You can see my commit here with the current modules, just take it as Proof of concept for modules described above.
If you're not interested, is it ok to you if I publish my fork to Jitpack ?
Open to discuss with pleasure,
Thanks!
The text was updated successfully, but these errors were encountered: