|  |  |  | @ -1,7 +1,12 @@ | 
		
	
		
			
				|  |  |  |  | package com.yinuo.safetywatcher.watcher.utils | 
		
	
		
			
				|  |  |  |  | 
 | 
		
	
		
			
				|  |  |  |  | import android.content.Context | 
		
	
		
			
				|  |  |  |  | import android.content.Intent | 
		
	
		
			
				|  |  |  |  | import com.common.commonlib.CommonApplication | 
		
	
		
			
				|  |  |  |  | import com.yinuo.safetywatcher.watcher.constant.CAMERA_DNS | 
		
	
		
			
				|  |  |  |  | import com.yinuo.safetywatcher.watcher.constant.CAMERA_GATEWAY | 
		
	
		
			
				|  |  |  |  | import com.yinuo.safetywatcher.watcher.constant.CAMERA_IP | 
		
	
		
			
				|  |  |  |  | import com.yinuo.safetywatcher.watcher.constant.CAMERA_NETMASK | 
		
	
		
			
				|  |  |  |  | import java.text.SimpleDateFormat | 
		
	
		
			
				|  |  |  |  | import java.util.Locale | 
		
	
		
			
				|  |  |  |  | 
 | 
		
	
	
		
			
				
					|  |  |  | @ -65,4 +70,10 @@ object PlatformUtils { | 
		
	
		
			
				|  |  |  |  |         intent.putExtra("confirm", true) | 
		
	
		
			
				|  |  |  |  |         CommonApplication.getContext()?.sendBroadcast(intent) | 
		
	
		
			
				|  |  |  |  |     } | 
		
	
		
			
				|  |  |  |  | 
 | 
		
	
		
			
				|  |  |  |  |     fun config(context: Context){ | 
		
	
		
			
				|  |  |  |  |         PlatformUtils.setEthIpAddress(CAMERA_IP, CAMERA_NETMASK, CAMERA_GATEWAY, CAMERA_DNS) | 
		
	
		
			
				|  |  |  |  |         PlatformUtils.hideNavigation() | 
		
	
		
			
				|  |  |  |  |         PlatformUtils.hideStatusBar() | 
		
	
		
			
				|  |  |  |  |     } | 
		
	
		
			
				|  |  |  |  | } |