| | |
| | | import android.app.AlertDialog; |
| | | |
| | | import com.secondworld.sdk.GameAppProxy; |
| | | import com.secondworld.sdk.MySdkMgr; |
| | | import com.secondworld.sdk.PlatformDiff; |
| | | import com.secondworld.sdk.PlatformSdkMgr; |
| | | import com.secondworld.sdk.UnityMsgHandler; |
| | | import com.secondworld.sdk.utils.CodeA2U; |
| | | import com.secondworld.sdk.utils.CodeU2A; |
| | |
| | | //发送设备信息 |
| | | Map<String, Object> _msgStruct = new HashMap<>(); |
| | | _msgStruct.put("userAgent", System.getProperty("http.agent")); |
| | | _msgStruct.put("mac", DeviceUtil.getLocalMac()); |
| | | _msgStruct.put("mac", DeviceUtil.getUniqueID()); |
| | | _msgStruct.put("imei", ""); |
| | | _msgStruct.put("android_id", DeviceUtil.getAndroidId()); |
| | | _msgStruct.put("android_id", DeviceUtil.getUniqueID()); |
| | | _msgStruct.put("unique_id", DeviceUtil.getUniqueID()); |
| | | _msgStruct.put("memoryTotal", size); |
| | | UnityMsgHandler.sendMessageToUnity(CodeA2U.DeviceInfo,_msgStruct); |
| | |
| | | _msgStruct.clear(); |
| | | _msgStruct.put("channelPlatform", PlatformDiff.I.platformName()); |
| | | UnityMsgHandler.sendMessageToUnity(CodeA2U.SdkInitComplete,_msgStruct); |
| | | MySdkMgr.I.sdkInitState = PlatformSdkMgr.SdkInitState.SUCCEED; |
| | | LogUtil.debug("CmdInit", "Sdk初始化完成"); |
| | | } |
| | | } |