#typescript#android#appwrite#backend#backend_as_a_service#docker#firebase#flutter#hacktoberfest#hosting#ios#javascript#nextjs#react#react_native#reactnative#self_hosted#selfhosted#serverless#swift#web
Appwrite is a backend platform that helps you build web, mobile, and Flutter apps quickly and easily. It handles complex tasks like user authentication, database management, file storage, and more, so you don’t have to build these from scratch. Appwrite is open source, secure, and works with many programming languages and frameworks. You can use it in the cloud or host it yourself using Docker. The main benefit is that it saves you time and effort, letting you focus on creating great features for your app instead of worrying about backend setup and maintenance[3][5][1].
https://github.com/appwrite/appwrite
🚀 Вышел стабильный 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