gildor
05/28/2018, 6:11 AMgildor
05/28/2018, 6:11 AMgildor
05/28/2018, 6:13 AMdave08
05/28/2018, 6:14 AMgildor
05/28/2018, 6:15 AMoffer
insteadgildor
05/28/2018, 6:18 AMmain
function, just wrap downloading to async
coroutine builderdave08
05/28/2018, 6:22 AMPaul Woitaschek
06/01/2018, 10:02 AMPaul Woitaschek
06/01/2018, 10:02 AMsierisimo
06/05/2018, 5:40 PMjava.lang.IllegalArgumentException: No JsonAdapter for ? (with no annotations)
? I saw a few issues on github but the use wildcards. I’m not. I’m also using Koin for connecting the parts but seems like a problem from moshi as the exception starts there.eric
06/05/2018, 5:47 PMtype
. i'd be curious to hear what it is if it's not a wildcard.sierisimo
06/05/2018, 8:19 PMsierisimo
06/05/2018, 8:24 PMsierisimo
06/05/2018, 8:25 PMsierisimo
06/05/2018, 8:25 PMeric
06/05/2018, 8:29 PMList<? extends Building>
. List<@JvmSuppressWildcards Building>
would fix that.eric
06/05/2018, 8:30 PMMap<String, Any>
=> Map<String, @JvmSuppressWildcards Any>
is my guess, but i haven't looked at it yet.sierisimo
06/05/2018, 8:31 PMsierisimo
06/05/2018, 9:01 PMsierisimo
06/05/2018, 9:01 PMsierisimo
06/05/2018, 9:01 PMeric
06/05/2018, 9:04 PMeric
06/05/2018, 9:04 PMsierisimo
06/05/2018, 10:19 PMeric
06/06/2018, 2:03 AMashishkrishnan
06/08/2018, 10:47 AMval name: String = // ... //
PropertySpec
.builder(name, ??? )
type would be a classtype which is also generated
& TypeName.get() is marked as internal
eric
06/08/2018, 7:01 PMTypeNames.get(TypeMirror)
(for Java users)
and there's a asTypeName()
extension on TypeMirror.eric
06/08/2018, 7:01 PMmyanmarking
06/14/2018, 9:42 AMclass NullPrimitiveTypeAdapter {
@FromJson
fun intFromJson(@NullableInt @Nullable value: Int?): Int = value ?: 0
@ToJson
@NullableInt
fun toFromJson(value: Int): Int? = throw UnsupportedOperationException()
@FromJson
fun floatFromJson(@NullableFloat @Nullable value: Float?): Float = value ?: 0f
@ToJson
@NullableFloat fun floattoJson(value: Float): Float? = throw UnsupportedOperationException()
}
@MustBeDocumented
@Retention(AnnotationRetention.RUNTIME)
annotation class Nullable
@Retention(AnnotationRetention.RUNTIME)
@JsonQualifier
annotation class NullableInt
@Retention(AnnotationRetention.RUNTIME)
@JsonQualifier
annotation class NullableFloat
myanmarking
06/14/2018, 9:42 AMopen class MeasureBodyDto(
val manualMode: Boolean,
@NullableFloat val skeletalMuscleRate: Float = 0f