package com.xiaoyudesign.rnupdate;


public enum UpdateConstant {

    // 常量
    UpdateDir("_update", "更新包存放目录，在 filesDir 下")
    ,PPK_ZIP_NAME("/ppk-update.zip", "更新包 PPK 存放目录：在 filesDir/{UpdateDir}/{versionCode} 下")
    ,BundlePath("/index.bundlejs", "更新包 PPK PPK解压后存放目录：在 filesDir/{UpdateDir}/{versionCode} 下")

    // 事件
    ,EventDownloadStatus("downloadStatus", "下载状态回调")
    ,EventDownloadProgress("downloadProgress", "下载进度回调")

    ;

    private final String  value;
    private final String desc;

    UpdateConstant(String value, String desc) {
        this.value = value;
        this.desc = desc;
    }

    public String getValue() {
        return value;
    }

    public String getDesc() {
        return desc;
    }

}
