javiersantos / AppUpdater

A library that checks for your apps' updates on Google Play, GitHub, Amazon, F-Droid or your own server. API 9+ required.
Apache License 2.0
1.98k stars 410 forks source link

Hostname not verified #191

Open P1NG2WIN opened 4 years ago

P1NG2WIN commented 4 years ago

AppUpdater:2.7

My domain has no ssl certificate. In the apk I ignore it by this

okHttpBuilder .hostnameVerifier(HostnameVerifier { _, _ -> true }),

but this library throws an error javax.net.ssl.SSLPeerUnverifiedException: Hostname ... not verified and I did not find the option to set custom hostnameVerifier

        AppUpdater(this).apply {
            setUpdateFrom(UpdateFrom.JSON)
            setUpdateJSON("${API.HTTPS_API_URL}/update-changelog")
            setDisplay(Display.DIALOG)
                .setCancelable(false)
            start()
        }