Márton Matusek
01/11/2024, 2:07 PMNacho Ruiz Martin
01/11/2024, 4:33 PMMárton Matusek
01/11/2024, 4:34 PMNacho Ruiz Martin
01/11/2024, 4:43 PMgradle.properties
(for instance) depending on the target.
The cleanest solution (for me) is to inject some value into the class in which you have a difference depending on the Android flavour. This is easily doable if you are using some DI mechanism. For example, I’m using Koin and I create a custom app module that injects this value.Nacho Ruiz Martin
01/11/2024, 4:48 PMinitCore
is the function that will initialize the DI in the shared module/s.Nacho Ruiz Martin
01/11/2024, 4:48 PMApplication
class.Márton Matusek
01/11/2024, 4:54 PMNacho Ruiz Martin
01/11/2024, 4:55 PMMárton Matusek
01/11/2024, 4:56 PMNacho Ruiz Martin
01/11/2024, 5:02 PMMárton Matusek
01/11/2024, 5:49 PMelectrolobzik
01/11/2024, 6:34 PMMcEna
01/11/2024, 7:02 PMMárton Matusek
01/12/2024, 8:51 AMMárton Matusek
01/12/2024, 8:53 AMNacho Ruiz Martin
01/12/2024, 9:43 AM