// Path: src/com/github/nukc/plugin/model/Options.java
// public class Options {
//     public List<String> channels = new ArrayList<>(0);
//     public String keyStorePath;
//     public String keyStorePassword;
//     public String keyAlias;
//     public String keyPassword;
//     public String zipalignPath;
//     public String buildType;
//     public String signer;
// }


import com.github.nukc.plugin.model.Options;
import com.intellij.openapi.diagnostic.Logger;
import com.intellij.openapi.util.text.StringUtil;
import java.io.IOException;
import java.io.InputStream;
package com.github.nukc.plugin.helper;



/**
 * Created by Nukc.
 */
public class CommandHelper {
    private static final Logger log = Logger.getInstance(CommandHelper.class);

    public static String exec(String command) {
        try {
            Process process = Runtime.getRuntime().exec(command);
            InputStream errorStream = process.getErrorStream();
            byte[] buffer = new byte[1024];
            int readBytes;
            StringBuilder stringBuilder = new StringBuilder();
            while ((readBytes = errorStream.read(buffer)) > 0) {
                stringBuilder.append(new String(buffer, 0, readBytes));
            }
            return stringBuilder.toString();
        } catch (IOException e) {
            e.printStackTrace();
        }

        return null;
    }

// Path: src/com/github/nukc/plugin/model/Options.java
// public class Options {
//     public List<String> channels = new ArrayList<>(0);
//     public String keyStorePath;
//     public String keyStorePassword;
//     public String keyAlias;
//     public String keyPassword;
//     public String zipalignPath;
//     public String buildType;
//     public String signer;
// }


// Path: src/com/github/nukc/plugin/helper/CommandHelper.java
import com.github.nukc.plugin.model.Options;
import com.intellij.openapi.diagnostic.Logger;
import com.intellij.openapi.util.text.StringUtil;
import java.io.IOException;
import java.io.InputStream;

package com.github.nukc.plugin.helper;



/**
 * Created by Nukc.
 */
public class CommandHelper {
    private static final Logger log = Logger.getInstance(CommandHelper.class);

    public static String exec(String command) {
        try {
            Process process = Runtime.getRuntime().exec(command);
            InputStream errorStream = process.getErrorStream();
            byte[] buffer = new byte[1024];
            int readBytes;
            StringBuilder stringBuilder = new StringBuilder();
            while ((readBytes = errorStream.read(buffer)) > 0) {
                stringBuilder.append(new String(buffer, 0, readBytes));
            }
            return stringBuilder.toString();
        } catch (IOException e) {
            e.printStackTrace();
        }

        return null;
    }

    public static void execSigner(Options options, String apkPath) {