Fix issues with release builds

This commit is contained in:
moezbhatti
2019-09-09 21:58:32 -04:00
parent 2380d29c2f
commit 71f5b7d9b6
5 changed files with 16 additions and 6 deletions
@@ -56,8 +56,7 @@ class ChangelogManagerImpl @Inject constructor(
override fun getChangelog(): Single<ChangelogManager.Changelog> {
val url = "https://firestore.googleapis.com/v1/projects/qksms-app/databases/(default)/documents/changelog"
val httpUrl = url.toHttpUrlOrNull()
val request = httpUrl?.let { Request.Builder().url(it).build() }
val request = url.toHttpUrlOrNull()?.let { Request.Builder().url(it).build() }
val call = request?.let { OkHttpClient().newCall(it) }
val adapter = moshi.adapter(ChangelogResponse::class.java)