diff --git a/githubAppUpdate/src/main/java/info/hannes/github/AppUpdateHelper.kt b/githubAppUpdate/src/main/java/info/hannes/github/AppUpdateHelper.kt index 623b8b4..d0b8e49 100644 --- a/githubAppUpdate/src/main/java/info/hannes/github/AppUpdateHelper.kt +++ b/githubAppUpdate/src/main/java/info/hannes/github/AppUpdateHelper.kt @@ -63,7 +63,7 @@ object AppUpdateHelper { if (force || prefs.getLong(key, 0) < System.currentTimeMillis() - 1000 * 3600 * 24 / 24 / 60 * 5) { try { - val versionList = requestVersions(gitRepoUrl) + val versionList = requestGithubVersions(gitRepoUrl) prefs.edit().putLong(key, System.currentTimeMillis()).apply() versionList.body()?.firstOrNull()?.let { release -> @@ -112,7 +112,7 @@ object AppUpdateHelper { return client.github.getGithubVersions(gitRepoUrl.user(), gitRepoUrl.repo()).execute() } - private suspend fun requestVersions(gitRepoUrl: String): Response> { + private suspend fun requestGithubVersions(gitRepoUrl: String): Response> { val versionList = withContext(Dispatchers.Default) { val client = GithubClient(HttpLoggingInterceptor.Level.BODY) client.github.getGithubVersions(gitRepoUrl.user(), gitRepoUrl.repo()).execute()