Hi,
This is a very old thread : 2013 - facing the same problem and see no
effective solution on various forums as yet.
The app I am working on has multiple flavors (city-wise flavors - with
modification in activities).
When a new flavor is implemented - few activities for the new program vary
from those existing in the main (or "common" ) folder.
Currently the activity which was common to all previous implementations
needs to be copied (thereby creating duplicate versions of same file) to
respective flavor's src folders OR lot of "common folders" (all
combinations of flavors) need to be created.
When number of flavors exceeds 15 - code maintainability takes a hit.
Do not wish to have logic of flavor detection and choosing activities in
java file.
1. Has the override logic been implemented / any plans around it?
2. Any simpler way of implementing override mechanism in the current set up?
cheers,
Raj
On Tuesday, 19 March 2013 00:06:28 UTC+5:30, John Isturiz wrote:
>
> I am trying to set up my project so that when build my free and paid apks
> with gradle, the paid version overrides a class containing constants.
>
> However when I try to build them, I get this:
>
> "{path to my class.java}: *error: duplicate class:* {class name}"
>
> I have the default class and respective contents under src/ and then what
> I want to override it with under src/flavor/java/ (previously tried just
> src/flavor/).
>
> What is the proper way to have various classes and avoid duplicate class
> error?
>
--
You received this message because you are subscribed to the Google Groups
"adt-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.