Akinyemi Emmanuel
11/23/2022, 7:35 AMShankar Gollakota
11/24/2022, 3:52 AMDINESH S
11/24/2022, 1:16 PMMaciej Pigulski
11/24/2022, 2:17 PMHossein Amini
11/25/2022, 6:35 AMMaulik
11/25/2022, 7:27 AMMaulik
11/25/2022, 7:27 AMTimo Drick
11/25/2022, 11:17 PMIntent.ACTION_OPEN_DOCUMENT_TREE
to let the user choose a directory and get access to this directory. It works but unfortunately the access is only temporary when the user closes the app and opens the app again i need to open the directory picker again. Especially for development this is very unpleasent. Of course i could ask the user for MANAGE_EXTERNAL_STORAGE permission but Google do not want this anymore for normal apps. My app is just a video player. But i need access to the directory to load subtitle files.Lukas Anda
11/25/2022, 11:20 PMDaniel De Jesus Rodrigues
11/27/2022, 8:35 PMdata class PostReply(
val author: String,
val body: String,
val replies: List<PostReply> // can be infinitely deep
)
I’ve created one regular data class, and another with serialized annotations. But I cannot think a good way on how to map replies
recursively. I tried that but didn’t work:
fun PostRepliesResponse.toModel() = PostReplies(
//...
replies = replies.map { reply -> reply.toModel() }
)
Can you guys help me?Patricia Tarazaga
11/28/2022, 8:15 AMNikolas Guillen Leon
11/28/2022, 10:07 AMFred Bowker
11/29/2022, 9:21 AMMez Pahlan
11/29/2022, 11:10 AMcom.android.library
gradle plugin to help build. I have a very small sliver of Android dependencies and would now like to convert this to an SDK that can run on our Java backend but still be written in Kotlin, of course.
Has anyone had experience with something doing something like this? Where should I start?
I think that all of my library dependencies will happily function outside of Android in an in a pure JVM apart from these:
1. com.android.tools:desugar_jdk_libs
2. androidx.annotation:annotation
3. androidx.datastore:datastore-preferences
Should I create two SDKs one of which is -core
and the other a slim -android
add on? Or can I get away with a single SDK?Francisco Vital Serrão Pereira De Carvalho
11/29/2022, 2:51 PMgian
12/01/2022, 12:31 PMParcelize
-annotated data class that contains a property whose type is a value class. E.g.:
@Parcelize data class Example(val id: Id) : Parcelable
@JvmInline value class Id(val long: Long)
With Kotlin 1.6.10 this compiles and work. However, after updating to Kotlin 1.7.20, I started getting the following error a compile time:
Type is not directly supported by 'Parcelize'. Annotate the parameter type with '@RawValue' if you want it to be serialized using 'writeValue()'
I'm not sure I understand why this stopped compiling, but is using @RawValue
the actual solution or is there a better one? It feels like a workaround that could break at runtime if the wrapped type changes to one that isn't Parcelable
.KotlinLeaner
12/01/2022, 1:40 PMSlackbot
12/01/2022, 3:14 PMMilo
12/01/2022, 10:37 PMSlackbot
12/02/2022, 12:27 AMNebil
12/02/2022, 11:41 AMShridhar Goel
12/02/2022, 12:18 PMDINESH S
12/03/2022, 4:39 AMFred Bowker
12/04/2022, 10:45 AMFred Bowker
12/04/2022, 10:45 AMFred Bowker
12/04/2022, 10:47 AMFred Bowker
12/04/2022, 10:52 AMFred Bowker
12/04/2022, 10:53 AMFred Bowker
12/04/2022, 10:54 AM