Skip to content

Commit

Permalink
support non-github ext repos
Browse files Browse the repository at this point in the history
  • Loading branch information
az4521 committed Jan 9, 2024
1 parent 0e12396 commit 47dcb07
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,15 @@ internal class ExtensionGithubApi {
val response = service.getRepo()
parseResponse(response)
} /* SY --> */ + preferences.extensionRepos().get().flatMap {
val url = "$BASE_URL$it/repo/"
val response = service.getRepo("${url}index.min.json")
parseResponse(response, url)

if (it.endsWith(".json")) {
val response = service.getRepo(it)
parseResponse(response, it)
} else {
val url = "$BASE_URL$it/repo/"
val response = service.getRepo("${url}index.min.json")
parseResponse(response, url)
}
}
// SY <--
}
Expand Down
1 change: 1 addition & 0 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,4 @@ kapt.use.worker.api=true
kotlin.parallel.tasks.in.project=true
android.useAndroidX=true
android.enableJetifier=true
android.defaults.buildfeatures.buildconfig=true

0 comments on commit 47dcb07

Please sign in to comment.