-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathminiapp.gradle
47 lines (43 loc) · 958 Bytes
/
miniapp.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
/**
* Usage in settings.gradle.kts
*
* import groovy.lang.Closure
*
* apply { from("miniapp.gradle") }
* val setMiniApp = extra["setMiniApp"] as Closure<*>
*
* fun RepositoryHandler.setMiniApp() {
* setMiniApp.call(this)
* }
*
* repositories {
* setMiniApp(this)
* }
*
* Usage in build.gradle(project)
*
* apply { from("miniapp.gradle") }
* ext.setMiniApp = setMiniApp
*
* repositories {
* setMiniApp(repositories)
* }
*
*/
ext {
setMiniApp = { RepositoryHandler handler ->
handler.maven {
url 'https://tmf-work-maven.pkg.coding.net/repository/tmf/android/'
}
handler.maven {
url 'https://t.pinpad.qq.com/fHKFBbEjd/repository/maven-public/'
credentials {
username = 'tmf_read'
password = 'psnBSt@BVMva6#&^'
}
authentication {
basic(BasicAuthentication)
}
}
}
}