linkedin / Spyglass

A library for mentions on Android
Apache License 2.0
387 stars 128 forks source link

isExplicit value is incorrect in release builds #137

Open Vaibhav2002 opened 3 months ago

Vaibhav2002 commented 3 months ago

This is my tokenizer config

val tokenizer = WordTokenizerConfig.Builder()
    .setExplicitChars("@")
    .setMaxNumKeywords(2)
    .build()
    .let(::WordTokenizer)

and I am logging this in QueryTokenReceiver

Napier.d { "Token >> ${token.tokenString} : ${token.isExplicit}" }

In debug build everything is correct

Token >> @Vaibhav Jaiswa : true
Token >> @Vaibhav Jaiswal : true

But the same, when I am doing a release build of my android app this is logged

Token >> @Vaibhav Jaiswa : false
Token >> @Vaibhav Jaiswal : false