You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, When using R8 always get an exception with null when reading a RSS in the try catch block. If I don't use the problem does not happend. I don't understand if the problem is with an internal optimization that R8 tries to do., a Are you seen the same problem with R8 optimization eneabled ?
This is the part of the code:
fun getRssFedd(host:String):List<TwitterData>{
val trustManager = TrustAllX509TrustManager.INSTANCE
val client = OkHttpClient.Builder()
.sslSocketFactory(
sslContext(
null,
arrayOf<TrustManager>(trustManager)
).socketFactory,
trustManager)
.hostnameVerifier(TrustAllX509TrustManager.allowAllHostNames())
.build()
val mySyndication = Syndication(
url = host,
httpClient =client )
val reader = mySyndication.create(RssReader::class.java)
var lista : List<TwitterData>
try {
val rssFeed = reader.readRss()
lista = convRssFeed(rssFeed)
}
catch (e:Exception){
Log.e("Error reading RSS","${e.message}")
lista = mutableListOf<TwitterData>()
}
return lista
}
The text was updated successfully, but these errors were encountered:
Hello, When using R8 always get an exception with null when reading a RSS in the try catch block. If I don't use the problem does not happend. I don't understand if the problem is with an internal optimization that R8 tries to do., a Are you seen the same problem with R8 optimization eneabled ?
This is the part of the code:
The text was updated successfully, but these errors were encountered: