@SuppressWarnings("ConstantConditions")
    public static boolean isProductionBuild() {
        return !(BuildConfig.BUILD_TYPE.equals("debug") || BuildConfig.BUILD_TYPE.equals("nightly"));
    }
@return true, if BUILD_TYPE is not a nightly or debug build (e. g.: release, rc, legacy)
main/src/main/java/cgeo/geocaching/utils/BranchDetectionHelper.java