KamilH
01/25/2022, 6:20 PMIIF
function? I’m getting “Unknown function IIF” when trying to use it. If not, is any workaround available?alec
01/25/2022, 6:30 PMalec
01/25/2022, 6:30 PMCASE WHEN X THEN Y ELSE Z END
insteadKamilH
01/25/2022, 7:19 PMCASE WHEN
. It seems to work fineDaniel Perez
01/26/2022, 8:29 PMandroid.content.Context
and androidx.work.WorkerParameters
. I’m under the impression I cannot access these types from the CodeGenerator because it runs at build-time in JVM(androidx.work:work-runtime
is in an AAR file as well)
Is there any way to access these types from my code generation module? Thanks allralf
01/26/2022, 8:42 PMFqName
or ClassName
for KotlinPoet. If you need access for some reason, then I’d suggest creating stubs and put them on the compile classpath only.jw
01/26/2022, 9:26 PMjw
01/26/2022, 9:26 PMephemient
01/26/2022, 9:28 PMparameterizedBy
extension functionDaniel Perez
01/26/2022, 9:31 PMNikky
01/30/2022, 1:19 PM2.0.0-SNAPSHOT
for sqlite on the maven now, is there any issue or readme for what big things to changes/breaks anywhere yet ?
PS: i found the tasks: https://github.com/cashapp/sqldelight/issues/2694 (i was just a bit blind before)alec
01/30/2022, 6:26 PMDorit Rein
02/03/2022, 7:40 PM@Annotation(x=[a,b,c])
. Everything I've seen online is pretty roundabout, is there something in KotlinPoet or the like that will allow me to do this?ralf
02/03/2022, 7:49 PMZac Sweers
02/03/2022, 7:51 PMarrayOf()
in kotlinpoet itself for maximum portability https://github.com/square/kotlinpoet/blob/master/kotlinpoet/src/main/java/com/squareup/kotlinpoet/AnnotationSpec.kt#L172-L180spierce7
02/04/2022, 1:39 AMALTER TABLE products ALTER available DROP DEFAULT;
is valid sql, but doesn’t seem to work. I wonder if anyone knows a creative work around. https://github.com/AlecStrong/sql-psi/issues/312Dorit Rein
02/04/2022, 6:29 PM@MyScope
interface MyInterface
I just added an annotation to a typespec interface, and i get this error: This class does not have a constructor
. Any thoughts?dave08
02/07/2022, 3:55 PMsuspend fun getFoo(): Response<Foo>
in the api interface?dave08
02/07/2022, 3:56 PMResponse
won't throw in any case... which makes it easy to use an extension function on Response
to transform the result to a domain error with a sealed class... if it throws when no connection, I'd also need to surround EACH call with a try/catch for that case and transform that to a result that the UI can deal with w/o crashing...jw
02/07/2022, 4:30 PMjw
02/07/2022, 4:30 PMdave08
02/07/2022, 4:35 PMdave08
02/07/2022, 4:36 PMJavier
02/07/2022, 4:55 PMEither
adapters for retrofitdave08
02/07/2022, 4:55 PMjw
02/07/2022, 4:56 PMjw
02/07/2022, 4:56 PMdave08
02/07/2022, 4:57 PMJavier
02/07/2022, 4:58 PMjw
02/07/2022, 5:00 PM