Skip to content

Commit 8b428c4

Browse files
committed
Add Gitlab repo mirror.
1 parent 1af6133 commit 8b428c4

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

library/src/main/java/com/absinthe/rulesbundle/LCRemoteRepo.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@ package com.absinthe.rulesbundle
22

33
sealed class LCRemoteRepo {
44
object Github : LCRemoteRepo()
5-
object Gitee : LCRemoteRepo()
5+
object Gitlab : LCRemoteRepo()
66
}

library/src/main/java/com/absinthe/rulesbundle/LCRules.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ object LCRules : IAPI {
8080
this.repo = repo
8181
this.baseUrl = when (repo) {
8282
LCRemoteRepo.Github -> Urls.GITHUB_ROOT_URL
83-
LCRemoteRepo.Gitee -> Urls.GITEE_ROOT_URL
83+
LCRemoteRepo.Gitlab -> Urls.GITLAB_ROOT_URL
8484
}
8585
}
8686

library/src/main/java/com/absinthe/rulesbundle/Urls.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,6 @@ private const val WORKING_BRANCH = BRANCH_MASTER
66
object Urls {
77
const val GITHUB_ROOT_URL =
88
"https://raw.githubusercontent.com/zhaobozhen/LibChecker-Rules/$WORKING_BRANCH/"
9-
const val GITEE_ROOT_URL =
10-
"https://gitee.com/zhaobozhen/LibChecker-Rules/raw/$WORKING_BRANCH/"
9+
const val GITLAB_ROOT_URL =
10+
"https://gitlab.com/zhaobozhen/LibChecker-Rules/-/raw/$WORKING_BRANCH/"
1111
}

0 commit comments

Comments
 (0)