🌐Weekly News Digest [ February 9 – February 15 ]
Last week, the mining conference in Cape Town became the first high-level venue to criticize American expansion into Africa - but what else happened?
💡Here are the key highlights:
🇨🇩 DR Congo
— South Africa’s Minister of Resources sharply criticizes his Congolese counterpart
— Washington urged an Australian mining firm AVZ to sell its major lithium project to a US company
🇱🇾 Libya
— Libya’s fails its first oil license auction in 17 years
🇲🇱 Mali
— The Malian government establishes a new state-owned mining company
— Mali approves a 10-year extension of Canadian gold miner's license
🇳🇪 Niger
— Niger’s military repels an attack by MPLJ militants on Chinese oil facilities
— Niger is ready to return the uranium confiscated from the French
🇳🇬 Nigeria
— Nigerian company loses asset in Equatorial Guinea
— Dangote Refinery reaches its design capacity for the first time
— US lawmakers introduce a bill claiming that Chinese illegal miners are paying Fulani militant groups
🇿🇦 South Africa
— Mining Indaba Conference concludes in Cape Town
🌍 Global
— State Department reveals the US strategy for Africa
#NewsDigest
➡️ Follow to stay informed - @devilsbelow
🚀 Вышел стабильный 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