diff --git a/core/src/main/java/de/danoeh/antennapod/core/util/Flavors.java b/core/src/main/java/de/danoeh/antennapod/core/util/Flavors.java new file mode 100644 index 000000000..5feb232e7 --- /dev/null +++ b/core/src/main/java/de/danoeh/antennapod/core/util/Flavors.java @@ -0,0 +1,24 @@ +package de.danoeh.antennapod.core.util; + +import de.danoeh.antennapod.core.BuildConfig; + +/** + * Helper class to handle the different build flavors. + */ +public enum Flavors { + FREE, + PLAY, + UNKNOWN; + + public static final Flavors FLAVOR; + + static { + if (BuildConfig.FLAVOR.equals("free")) { + FLAVOR = FREE; + } else if (BuildConfig.FLAVOR.equals("play")) { + FLAVOR = PLAY; + } else { + FLAVOR = UNKNOWN; + } + } +}