#shell#cloudflare#grpc_cloudflare#httpupgrade#hysteria2#nginx#reality#reality_grpc#shell#sing_box#trojan#trojan_grpc#tuic_v5#v2ray#vless#vmess#websockettlscdn_cloudflare_ip#xray#xray_core#xray_install#xtls_rprx_vision
v2ray-agent is a tool that helps you quickly install and manage proxy servers using popular cores like Xray-core and sing-box. It supports many protocols such as VLESS, VMess, Trojan, and more, and automatically handles SSL certificates for secure connections. You can easily manage users, ports, and subscriptions through a simple menu. It also offers features like traffic routing, domain blocking, and P2P download control, which can help you unblock streaming services and control internet access. Installation is simple with a one-command script, making it convenient to set up and maintain your proxy server securely and efficiently.
https://github.com/mack-a/v2ray-agent
🚀 Вышел стабильный JavaScript движок от Google для Android
Новая стабильная библиотека Jetpack JavaScript Engine позволит разработчикам выполнять JS код в изолированной и ограниченной среде.
class MainActivity : ComponentActivity() {
// Теперь nullable, без lateinit
private var jsSandbox: JavaScriptSandbox? = null
private var jsIsolate: JavaScriptIsolate? = null
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
if (!JavaScriptSandbox.isSupported()) {
Log.e("JS", "JavaScriptSandbox не поддерживается")
return
}
lifecycleScope.launch {
// Создаём и сохраняем в nullable-поле
jsSandbox = JavaScriptSandbox
.createConnectedInstanceAsync(applicationContext)
.await()
jsIsolate = jsSandbox?.createIsolate()
// При выполнении гарантируем, что jsIsolate != null
val result: String = jsIsolate
?.evaluateJavaScriptAsync(JS_SCRIPT_SCRING)
?.await()
?: "Ошибка: isolate не инициализирован"
Log.d("JS", "Результат выполнения: $result")
}
}
override fun onDestroy() {
super.onDestroy()
// Закрываем только если не null
jsIsolate?.close()
jsSandbox?.close()
}
}
#jetpack#js