package com.hh.arome.helper;

import android.content.Context;
import android.util.Log;

import com.eidlink.idocr.sdk.EidLinkSE;
import com.eidlink.idocr.sdk.EidLinkSEFactory;
import com.eidlink.idocr.sdk.bean.EidlinkInitParams;

public class ReadCardManager {
    public static EidLinkSE eid;
    public static String tag_need_add_picture = "tag_need_add_picture";

    /**
     * 生产环境配置：
     * appid:请填写生产环境分配的appid
     * 生产环境ip：es.eidlink.com
     * 端口：9699
     * https端口：1444
     * envCode：52302
     */
    /**
     * 测试环境配置：
     * appid:请填写测试环境分配的appid
     * 测试环境ip：es-test.eidlink.com
     * tcp端口：9699
     * https端口：1444
     * envCode：26814
     */
    public static String appid = "TESTID20210809203718";
    public static String ip = "es-test.eidlink.com";
    public static int envCode = 26814;
    public static int port = 9699;

    /**
     * SDK初始化
     */
    public static void initEid(final Context context) {
//        if (TextUtils.isEmpty(appid)) {
//            appid = SpUtils.getAppid(context);
//        }
        eid = EidLinkSEFactory.getEidLinkSE(new EidlinkInitParams(context, appid, ip, port, envCode));
        Log.e("TAG","eid:"+eid);

//        eid.setGetDataFromSdk(true);

    }
}
