| | |
| | | package com.hdl.sdk.common;
|
| | |
|
| | | import android.content.Context;
|
| | |
|
| | | import com.hdl.sdk.common.utils.LogUtils;
|
| | |
|
| | | /**
|
| | | * Created by Tong on 2021/9/28.
|
| | | * Modify by panlili on 5/7/22
|
| | | */
|
| | | public class HDLSdk {
|
| | |
|
| | | private Context context;
|
| | | // private Context context;
|
| | |
|
| | | /**
|
| | | * 获取当前版本
|
| | |
| | | return version;
|
| | | }
|
| | |
|
| | | private String version="1.0.7";
|
| | | private String version="1.0.15";
|
| | |
|
| | | private HDLSdk() {
|
| | | }
|
| | |
| | | return SingletonInstance.INSTANCE;
|
| | | }
|
| | |
|
| | | public void init(Context context) {
|
| | | /* public void init(Context context) {
|
| | | this.context = context.getApplicationContext();
|
| | | LogUtils.i("Version:" + version);
|
| | | }
|
| | | }*/
|
| | |
|
| | | public Context getContext() {
|
| | | return context;
|
| | | }
|
| | | // public Context getContext() {
|
| | | // return context;
|
| | | // }
|
| | |
|
| | | /**
|
| | | * 设置打印是否开启
|