| | |
| | | import android.app.Application; |
| | | import android.content.Context; |
| | | import android.os.Environment; |
| | | import android.os.SystemClock; |
| | | import android.text.TextUtils; |
| | | |
| | | |
| | |
| | | import com.hdl.photovoltaic.HDLApp; |
| | | import com.hdl.photovoltaic.R; |
| | | import com.hdl.photovoltaic.config.AppConfigManage; |
| | | import com.hdl.photovoltaic.config.UserConfigManage; |
| | | import com.hdl.photovoltaic.enums.LowerTagType; |
| | | import com.hdl.photovoltaic.other.HdlLogLogic; |
| | | import com.hdl.photovoltaic.other.HdlThreadLogic; |
| | |
| | | UniMPOpenConfiguration uniMPOpenConfiguration = new UniMPOpenConfiguration(); |
| | | uniMPOpenConfiguration.path = path; |
| | | uniMPOpenConfiguration.extraData = jsonObject; |
| | | uniMPOpenConfiguration.splashClass = MySplashView.class; |
| | | if (UserConfigManage.getInstance().getUniBottomSafeDistanceBackgroundColor() == 0) { |
| | | uniMPOpenConfiguration.splashClass = CSplashView.class; |
| | | } else { |
| | | uniMPOpenConfiguration.splashClass = BSplashView.class; |
| | | } |
| | | uniMP = DCUniMPSDK.getInstance().openUniMP(mContext, uniAppId, uniMPOpenConfiguration); |
| | | } |
| | | // //android14有些设备有问题,需要等待 |
| | |
| | | if (mUniMPCaches.containsKey(uniAppId)) { |
| | | if (mUniMPCaches.get(uniAppId) != null) { |
| | | mUniMPCaches.get(uniAppId).sendUniMPEvent(topic, data); |
| | | HdlLogLogic.print("Android---通知---uni---主题:" + topic + "---发送数据:" + new Gson().toJson(data)); |
| | | // HdlLogLogic.print("Android---通知---uni---主题:" + topic + "---发送数据:" + new Gson().toJson(data)); |
| | | } else { |
| | | HdlLogLogic.print("Android---通知---uni---失败---小程序对象为空:" + uniAppId); |
| | | // HdlLogLogic.print("Android---通知---uni---失败---小程序对象为空:" + uniAppId); |
| | | } |
| | | } else { |
| | | HdlLogLogic.print("Android---通知---uni--->失败---¬小程序对象为空:" + uniAppId); |
| | | // HdlLogLogic.print("Android---通知---uni--->失败---¬小程序对象为空:" + uniAppId); |
| | | } |
| | | |
| | | } |