alec
06/12/2019, 5:35 PMNikky
06/12/2019, 5:36 PMMohammadsss1
06/17/2019, 3:40 PMeinar
06/18/2019, 12:00 PMimport com.myapp.model.Medication;
import com.myapp.model.Dosage;
CREATE TABLE _Treatment(
startDate TEXT NOT NULL,
endDate TEXT,
medication TEXT as Medication,
dosage TEXT as Dosage
);
Is there a recommended way to encode/decode this in a ColumnAdapter?alec
06/18/2019, 12:02 PMas
might need to be capitalized), are you asking how to write ColumnAdapters for your own types?einar
06/18/2019, 12:06 PMalec
06/18/2019, 12:32 PMalec
06/18/2019, 12:32 PMeinar
06/18/2019, 12:44 PMpniederw
06/20/2019, 10:02 AMpniederw
06/20/2019, 10:09 AMKotlinJsonAdapter
file and patching it as described here seems to work: https://github.com/square/moshi/issues/775#issuecomment-450222124Nikky
06/20/2019, 12:45 PMalec
06/20/2019, 1:09 PMalec
06/20/2019, 1:10 PMNikky
06/20/2019, 2:40 PMSELECT *
this would add 50-60 lines, maybe i should generate itNikky
06/20/2019, 2:41 PMcoletz
06/22/2019, 2:13 PMpackageName
setted in the build.gradle, but when running the gradle task to generate the code I get a SqlDelight files must be placed in a package directory
error message. I setted the sourceSet
to the folder where my .sq
files are located but I can't get this error to go away (PS: using sqldelight 1.0.3 since 1.1.3 seems to have some problem with kotlin 1.3.40 with ios)alec
06/22/2019, 2:14 PMalec
06/22/2019, 2:14 PMalec
06/22/2019, 2:14 PMalec
06/22/2019, 2:15 PMalec
06/22/2019, 2:15 PMcoletz
06/22/2019, 2:16 PMsrc/commonMain/sqldelight/com/mypackage/name
, will try them both 🙂coletz
06/22/2019, 2:19 PMsrc/main/sqldelight/com/mypackage/name
worked!hmole
06/24/2019, 5:34 AMsuspend fun <T : Any> Call<T>.await(): T {}
function, Call gets enqueued on OkHttp thread pool. Shouldn't it be async { call.execute() }
, so the call uses coroutine dispatcher and things like runBlocking and ThreadContextElement
work correctly with it?Paul Woitaschek
06/24/2019, 2:35 PMUnit
. Is there a workaround to have suspending functions without a result?Paul Woitaschek
06/24/2019, 2:35 PMkotlin
@POST("$V1/user/appsflyer")
suspend fun updateAppsFlyerData(@Body data: AppsFlyerDataDTO)
jw
06/24/2019, 2:35 PMUnit
works fine in the same way it did with Deferred
or any other call adapterPaul Woitaschek
06/24/2019, 2:36 PMkotlin.KotlinNullPointerException: Response from AccountApi.updateAppsFlyerData was null but response body type was declared as non-null
jw
06/24/2019, 2:36 PM