🚀SavedState 1.3.0: Поддержка KotlinX Serialization и Kotlin Property delegate для удобства работы
Что нового:
👉 SavedState теперь полностью KMP библиотека с поддержкой Android, iOS, Linux, Mac и JVM
👉 LocalSavedStateRegistryOwner теперь не является частью Compose UI, а будет частью нового артефакта - savedstate-compose
👉 Появился обобщенный тип SavedState, который Bundle на Android и Map<String, Any> на других платформах
// Создаем SavedState с помощью DSL:
val savedState = savedState {
putInt("currentPage", 1)
putString("filter", "favorites")
}
val currentPage = savedState.read { getInt("currentPage") }
savedState.write { remove("currentPage") }
🏝 Добавили поддержку KotlinX Serialization🔥
@Serializable
data class Person(val firstName: String, val lastName: String)
fun main() {
val person = Person("John", "Doe")
val encoded: SavedState = encodeToSavedState(person)
val decoded: Person = decodeFromSavedState(encoded)
}
🏝 Используйте новый делегат saved в Activity и ViewModel
class MyActivity : ComponentActivity() {
var person by saved { Person("John", "Doe") }
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
this.person = Person("Jane", "Doe")
}
}
class MyViewModel(handle: SavedStateHandle) : ViewModel() {
var person by handle.saved { Person("John", "Doe") }
fun onPersonChanged(person: Person) {
this.person = person
}
}
#android#jetpack#jetpackupdate#kmp#kotlin#ios#desktop
#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
娃娃变成人
Sex doll came to Life
僕のダッチワイフが人間になった
某天晚上,其中一位角色对着流星许愿,没想到梦苑的充气娃娃竟然活了过来。起初,她只会说话,不会动,身体也还是硅胶材质。然而,经过两人的精心照料,梦苑的身体开始活动起来。不过,两人还需要付出很多努力,才能让她真正成为一个像真人一样的人。
🤿🤿🤿🤿🤿🤿🤿🤿🤿🤿
😁入正链接
➡️下载地址⬅️
#SLG#触摸#养成#Cosplay#情趣扮演#同居#爱情喜剧#口交#乳交#换装
#Android#RJ01369474#x822