Dependency updates. OkHttp nullability changes

This commit is contained in:
len
2017-05-23 20:39:02 +02:00
parent 72ea256906
commit 211f7b591b
22 changed files with 40 additions and 45 deletions
@@ -86,7 +86,7 @@ class UpdateDownloaderService : IntentService(UpdateDownloaderService::class.jav
val apkFile = File(externalCacheDir, "update.apk")
if (response.isSuccessful) {
response.body().source().saveTo(apkFile)
response.body()!!.source().saveTo(apkFile)
} else {
response.close()
throw Exception("Unsuccessful response")