package cgeo.geocaching.utils;

import cgeo.geocaching.BuildConfig;

public class BranchDetectionHelper {

    // should contain the version name of the last feature release
    public static final String FEATURE_VERSION_NAME = "2022.02.13";

    // should contain version names of active bugfix releases since last feature release, oldest first
    // empty the part within curly brackets when creating a new release branch from master
    public static final String[] BUGFIX_VERSION_NAME = new String[]{"2022.02.16", "2022.03.09", "2022.03.10"};

    private BranchDetectionHelper() {
        // utility class
    }

    /**
     * @return true, if BUILD_TYPE is not a nightly or debug build (e. g.: release, rc, legacy)
     */
    @SuppressWarnings("ConstantConditions") // BUILD_TYPE is detected as constant but can change depending on the build configuration
    public static boolean isProductionBuild() {
        return !(BuildConfig.BUILD_TYPE.equals("debug") || BuildConfig.BUILD_TYPE.equals("nightly"));
    }
}

@@ -232,12 +232,15 @@
 22.0
-2.13
+5.01-RC
 %22;%0A%0A
@@ -505,48 +505,8 @@
 g%5B%5D%7B
-%222022.02.16%22, %222022.03.09%22, %222022.03.10%22
 %7D;%0A%0A

prepare version number for next beta