mirror of
https://github.com/recloudstream/gradle.git
synced 2024-08-14 23:56:59 +00:00
add different setRepo
This commit is contained in:
parent
07c70ccfbd
commit
8f5776e0f3
1 changed files with 8 additions and 0 deletions
|
@ -25,6 +25,14 @@ abstract class CloudstreamExtension @Inject constructor(project: Project) {
|
||||||
fun setRepo(user: String, repo: String) {
|
fun setRepo(user: String, repo: String) {
|
||||||
repository = Repo(user, repo)
|
repository = Repo(user, repo)
|
||||||
}
|
}
|
||||||
|
fun setRepo(identifier: String) {
|
||||||
|
val split = identifier
|
||||||
|
.removePrefix("https://")
|
||||||
|
.removePrefix("github.com")
|
||||||
|
.removeSurrounding("/")
|
||||||
|
.split("/")
|
||||||
|
repository = Repo(split[0], split[1])
|
||||||
|
}
|
||||||
|
|
||||||
internal var pluginClassName: String? = null
|
internal var pluginClassName: String? = null
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue