package com.dayu.baselibrary.utils; /** * author: zuo * Date: 2024-09-27 * Time: 10:18 * 备注:机型相关公共方法 */ public class ModelUtils { /** * 默认的调用方式(安卓原生) */ public final static int defaultType = 0; /** * 华智融海的SDK */ public final static int HuaZhiRongHaiType = 1; public final static int ShangMiType = 2; //判断是哪个机型 public static int getModelType() { int type; // try { // Class.forName("com.pos.device.config.DevConfig"); // type = ModelUtils.HuaZhiRongHaiType; // return type; // } catch (ClassNotFoundException e) { type = ModelUtils.ShangMiType; return type; // } } }