SalomonBrys / Kotson

Kotlin bindings for JSON manipulation via Gson
MIT License
709 stars 37 forks source link

problems with proguard since v2.2.0 #16

Closed ralph-bergmann closed 8 years ago

ralph-bergmann commented 8 years ago

since v2.2.0 I get this build warnings and the build fails:

Warning: com.github.salomonbrys.kotson.RegistrationBuilder$_registerTypeAdapter$1: can't find enclosing method 'void _registerTypeAdapter()' in program class com.github.salomonbrys.kotson.RegistrationBuilder
Warning: com.github.salomonbrys.kotson.TypeAdapterBuilder$build$1: can't find referenced method 'kotlin.jvm.functions.Function1 access$get_readFunction$p(com.github.salomonbrys.kotson.TypeAdapterBuilder)' in program class com.github.salomonbrys.kotson.TypeAdapterBuilder
Warning: com.github.salomonbrys.kotson.TypeAdapterBuilder$build$1: can't find referenced method 'kotlin.jvm.functions.Function2 access$get_writeFunction$p(com.github.salomonbrys.kotson.TypeAdapterBuilder)' in program class com.github.salomonbrys.kotson.TypeAdapterBuilder
Warning: com.github.salomonbrys.kotson.TypeAdapterBuilder$build$1: can't find enclosing method 'com.google.gson.TypeAdapter build()' in program class com.github.salomonbrys.kotson.TypeAdapterBuilder
SalomonBrys commented 8 years ago

Have you tried with a clean build ?

ralph-bergmann commented 8 years ago

yes it tried it with ./gradlew clean ... and I tried to fix it with my proguard config but it fails :-(

SalomonBrys commented 8 years ago

Any news on this ? How about ignoring the warnings ?

ralph-bergmann commented 8 years ago

Hi, since v2.2.1 it is gone :-)

SalomonBrys commented 8 years ago

Great news :+1: