This repository has been archived by the owner on Mar 23, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathbuild.gradle
88 lines (84 loc) · 3.17 KB
/
build.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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
buildscript {
ext.kotlin_version = '1.3.61'
ext.versions = [
'minsdk' : 21,
'compilesdk' : 29,
'targetsdk' : 29,
'buildtools' : '29.0.2',
//插件版本 字母表排序
'anko' : '0.10.8',
'appcompat' : '1.2.0-alpha02',
'color' : '0.0.1',//io.nichijou.utils:color
'constraintlayout': '2.0.0-beta4',
'corektx' : '1.3.0-alpha01',
'fresco' : '2.1.0',
'fragment' : '1.2.2',
'glide' : '4.10.0',
'koin' : '2.0.0',
"lifecycle" : "2.2.0",
'material' : '1.2.0-alpha05',//google.android.material
'moshi' : '1.8.0',
'okhttp3' : '4.2.2',
'oops' : '1.0.0-rc01',//io.nichijou:oops
'photoview' : '1.4.1',
'richtext' : '3.0.8',//TextView markDown and Html
"room" : '2.2.4',
'retrofit' : '2.6.1',
'stetho' : '1.5.1',
'scaleimageview' : '3.10.0',//subsampling-scale-image-view
'transition' : '1.3.0',
]
repositories {
maven { url 'https://maven.aliyun.com/repository/google' }
maven { url 'https://maven.aliyun.com/repository/jcenter' }
maven { url 'https://dl.bintray.com/kotlin/kotlin-eap' }
maven { url 'https://jitpack.io' }
maven { url 'https://dl.bintray.com/iota9star/nichijou' }
maven { url "http://dl.bintray.com/piasy/maven" }
mavenCentral()
// google()
// jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.5.3'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath 'com.tencent.mm:AndResGuard-gradle-plugin:1.2.16'
}
}
def readApiProperties() {
File file = rootProject.file('local.properties')
if (file.exists()) {
InputStream inputStream = rootProject.file('local.properties').newDataInputStream()
Properties properties = new Properties()
properties.load(inputStream)
ext.API_BASE = properties.getProperty("api.base")
ext.API_SS = properties.getProperty("api.ss")
ext.API_PREFIX = properties.getProperty("api.prefix")
ext.API_TODAY = properties.getProperty("api.today")
ext.API_SEARCH = properties.getProperty("api.search")
ext.API_CATEGORY = properties.getProperty("api.category")
ext.API_LIST = properties.getProperty("api.list")
ext.API_MEMBER = properties.getProperty("api.member")
ext.API_RANDOM = properties.getProperty("api.random")
ext.API_TG = properties.getProperty("api.tg")
ext.API_UPLOAD = properties.getProperty("api.upload")
ext.API_BING = properties.getProperty("api.bing")
ext.API_HITOKOTO = properties.getProperty("api.hitokoto")
ext.API_BUGLY = properties.getProperty("api.bugly")
}
}
allprojects {
repositories {
maven { url 'https://maven.aliyun.com/repository/google' }
maven { url 'https://maven.aliyun.com/repository/jcenter' }
maven { url 'https://dl.bintray.com/kotlin/kotlin-eap' }
maven { url 'https://jitpack.io' }
maven { url 'https://dl.bintray.com/iota9star/nichijou' }
maven { url "http://dl.bintray.com/piasy/maven" }
mavenCentral()
}
readApiProperties()
}
task clean(type: Delete) {
delete rootProject.buildDir
}