#kotlin#compose_multiplatform#git#jetbrains_compose#jgit#kotlin#multiplatform#rust
Gitnuro is a free, open-source Git client that works on Linux, Windows, and MacOS, offering the same experience on all platforms. It helps you manage Git repositories easily with features like viewing file changes, staging, committing, branching, merging, rebasing, and more. It supports advanced Git tasks such as interactive rebase, stash management, and image diffs. Gitnuro respects your privacy by not tracking your data and allows customization with themes. It is fast, does not rely on web technologies, and is suitable for both beginners and professionals, making Git version control simpler and more efficient for you.
https://github.com/JetpackDuba/Gitnuro
🚀 Вышел стабильный 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