Description
The tikxml is working with retrofit but its not converting the "&" in the xml. I'm trying to follow the docs to add the HtmlEscapeStringConverter
TikXml.Builder()
.addTypeConverter(String.class, new HtmlEscapeStringConverter()) // HtmlEscapeStringConverter encode / decode html characters. This class ships as optional dependency
.build();
it also seems to expect a name for "String.class" parameter and has an issue with "no value passed for parameter 'converterForClass' but i think that has to do with this next part:
i also put in to my build.gradle file just at top level (also tried under application):
kapt {
arguments {
primitiveTypeConverters "java.lang.String, int, java.lang.Integer"
}
}
and this is the error im receiving
Could not determine the dependencies of task ':app:compileDebugJavaWithJavac'.
> Could not create task ':app:kaptDebugKotlin'.
> Could not find method primitiveTypeConverters() for arguments [java.lang.String] on extension 'kapt' of type org.jetbrains.kotlin.gradle.plugin.KaptExtension
Im using version:
// TikXML
implementation 'com.tickaroo.tikxml:annotation:0.8.13'
implementation 'com.tickaroo.tikxml:core:0.8.13'
implementation 'com.tickaroo.tikxml:retrofit-converter:0.8.13'
implementation 'com.tickaroo.tikxml:converter-htmlescape:0.8.13'
kapt 'com.tickaroo.tikxml:processor:0.8.13'
I also tried using 0.8.15 and the newer Snapshot versions but gradle couldn't find them even tho i did
repositories {
mavenCentral()
maven {
url = 'http://oss.sonatype.org/content/repositories/snapshots'
allowInsecureProtocol = true
}
}
Any help on getting the TypeConverter to work. I seen a few issues that maybe this was fixed in the newer SNAPSHOT versions, if so can you show me how to get the use the snapshot versions cause gradle can't seem to find them.