package net.heartshield.control;

import android.Manifest;

/**
 * @author David Madl (git@abanbytes.eu)
 * @date 2017-09-16
 */
public class ReleaseConfig {
    /** whether we need audio permissions for recording a parallel ECG */
    public static final boolean RECORD_ECG = true;

    /** log stats about how long averaging the camera image takes */
    public static final boolean CAMERA2_DEBUG_PERFORMANCE = true;

    /** whether to compute ImageSummary on frames before locking */
    public static final boolean CAMERA2_SUMMARIZE = true;

    public static final String[] PERMISSIONS;

    static {
        // could use the build config for these.
        //boolean isDebugBuild = BuildConfig.BUILD_TYPE.equals("debug");

        if(RECORD_ECG) {
            PERMISSIONS = new String[]{
                    Manifest.permission.CAMERA,
                    Manifest.permission.RECORD_AUDIO
            };
        } else {
            PERMISSIONS = new String[]{
                    Manifest.permission.CAMERA
            };
        }
    }
}
