79452800

Date: 2025-02-19 21:20:49
Score: 0.5
Natty:
Report link

An alternative approach is to use conditionals in your defaultConfig:

defaultConfig {
    buildConfigField("Boolean", "MY_FLAVOR", "FLAVOR == \"my_flavor\"")
}

will produce some like this:

// Field from default config.
public static final Boolean MY_FLAVOR = FLAVOR == "my_flavor";
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: MikkelT