|  |  |  | @ -58,24 +58,27 @@ object PluginUtils { | 
			
		
	
		
			
				
					|  |  |  |  |             val oldConfig = GSON.fromJsonObject<PluginConfig>( | 
			
		
	
		
			
				
					|  |  |  |  |                 SharedPreUtils.getInstance().getString("pluginConfig") | 
			
		
	
		
			
				
					|  |  |  |  |             ) ?: PluginConfig("dynamic.dex", 100) | 
			
		
	
		
			
				
					|  |  |  |  |             launch { loadAppLoader(App.getmContext(), config) } | 
			
		
	
		
			
				
					|  |  |  |  |             val configJson = getProxyClient().newCallResponseBody { | 
			
		
	
		
			
				
					|  |  |  |  |                 url(pluginConfigUrl) | 
			
		
	
		
			
				
					|  |  |  |  |             }.text() | 
			
		
	
		
			
				
					|  |  |  |  |             config = GSON.fromJsonObject<PluginConfig>(configJson) | 
			
		
	
		
			
				
					|  |  |  |  |             if (config != null) { | 
			
		
	
		
			
				
					|  |  |  |  |             try { | 
			
		
	
		
			
				
					|  |  |  |  |                 val configJson = getProxyClient().newCallResponseBody(5) { | 
			
		
	
		
			
				
					|  |  |  |  |                     url(pluginConfigUrl) | 
			
		
	
		
			
				
					|  |  |  |  |                 }.text() | 
			
		
	
		
			
				
					|  |  |  |  |                 config = GSON.fromJsonObject<PluginConfig>(configJson) | 
			
		
	
		
			
				
					|  |  |  |  |                 if (config!!.versionCode > oldConfig.versionCode) { | 
			
		
	
		
			
				
					|  |  |  |  |                     downloadPlugin(config!!) | 
			
		
	
		
			
				
					|  |  |  |  |                     SharedPreUtils.getInstance().putString("pluginConfig", configJson) | 
			
		
	
		
			
				
					|  |  |  |  |                 } | 
			
		
	
		
			
				
					|  |  |  |  |             } else { | 
			
		
	
		
			
				
					|  |  |  |  |             } catch (e: Exception) { | 
			
		
	
		
			
				
					|  |  |  |  |                 config = oldConfig | 
			
		
	
		
			
				
					|  |  |  |  |                 e.printStackTrace() | 
			
		
	
		
			
				
					|  |  |  |  |                 errorMsg = e.stackTraceToString() | 
			
		
	
		
			
				
					|  |  |  |  |             } | 
			
		
	
		
			
				
					|  |  |  |  |             if (config!!.md5.lowercase(Locale.getDefault()) | 
			
		
	
		
			
				
					|  |  |  |  |                 != getPluginMD5(config!!)?.lowercase(Locale.getDefault()) | 
			
		
	
		
			
				
					|  |  |  |  |             ) { | 
			
		
	
		
			
				
					|  |  |  |  |                 downloadPlugin(config!!) | 
			
		
	
		
			
				
					|  |  |  |  |             kotlin.runCatching { | 
			
		
	
		
			
				
					|  |  |  |  |                 if (config!!.md5.lowercase(Locale.getDefault()) | 
			
		
	
		
			
				
					|  |  |  |  |                     != getPluginMD5(config!!)?.lowercase(Locale.getDefault()) | 
			
		
	
		
			
				
					|  |  |  |  |                 ) { | 
			
		
	
		
			
				
					|  |  |  |  |                     downloadPlugin(config!!) | 
			
		
	
		
			
				
					|  |  |  |  |                 } | 
			
		
	
		
			
				
					|  |  |  |  |             } | 
			
		
	
		
			
				
					|  |  |  |  |             Log.d(TAG, config!!.toString()) | 
			
		
	
		
			
				
					|  |  |  |  |         }.onSuccess { | 
			
		
	
		
			
				
					|  |  |  |  |             loadAppLoader(App.getmContext(), config) | 
			
		
	
		
			
				
					|  |  |  |  |         } | 
			
		
	
	
		
			
				
					|  |  |  | @ -117,6 +120,7 @@ object PluginUtils { | 
			
		
	
		
			
				
					|  |  |  |  |                         hasLoad = true | 
			
		
	
		
			
				
					|  |  |  |  |                         loadSuccess = true | 
			
		
	
		
			
				
					|  |  |  |  |                     } | 
			
		
	
		
			
				
					|  |  |  |  |                     SharedPreUtils.getInstance().putString("pluginConfig", GSON.toJson(config)) | 
			
		
	
		
			
				
					|  |  |  |  |                 } catch (e: Exception) { | 
			
		
	
		
			
				
					|  |  |  |  |                     e.printStackTrace() | 
			
		
	
		
			
				
					|  |  |  |  |                     errorMsg = e.stackTraceToString() | 
			
		
	
	
		
			
				
					|  |  |  | 
 |