This repository has been archived by the owner on Jul 19, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 133
/
build.gradle
66 lines (54 loc) · 1.93 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
apply plugin: 'com.android.library'
apply plugin: 'com.jakewharton.butterknife'
android {
compileSdkVersion Integer.parseInt(COMPILE_SDK_VERSION)
defaultConfig {
minSdkVersion Integer.parseInt(MIN_SDK_VERSION)
targetSdkVersion Integer.parseInt(TARGET_SDK_VERSION)
versionCode 1
versionName "1.0"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
javaCompileOptions {
annotationProcessorOptions {
arguments = [AROUTER_MODULE_NAME: project.getName()]
}
}
}
compileOptions {
sourceCompatibility = '1.8'
targetCompatibility = '1.8'
}
buildTypes.each {
it.buildConfigField 'String', 'APP_ID_BETA', APP_ID_BETA
it.buildConfigField 'String', 'SECRET_BETA', SECRET_BETA
it.buildConfigField 'String', 'APP_ID_RELEASE', APP_ID_RELEASE
it.buildConfigField 'String', 'SECRET_RELEASE', SECRET_RELEASE
it.buildConfigField 'String', 'FEED_TOKEN', FEED_TOKEN
it.buildConfigField 'String', 'APP_ID_RELEASE_UNAUTH', APP_ID_RELEASE_UNAUTH
it.buildConfigField 'String', 'GET_STREAM_KEY', GET_STREAM_KEY
it.buildConfigField 'String', 'GET_STREAM_AUTH_CODE', GET_STREAM_AUTH_CODE
}
}
allprojects {
repositories {
jcenter()
google()
maven {
url "https://jitpack.io"
}
}
}
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
api project (':component')
// test.
testImplementation 'junit:junit:4.12'
androidTestImplementation 'androidx.test:runner:1.2.0'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'
// butter knife.
annotationProcessor 'com.jakewharton:butterknife-compiler:10.1.0'
// dagger.
annotationProcessor 'com.google.dagger:dagger-compiler:2.21'
// arouter.
annotationProcessor 'com.alibaba:arouter-compiler:1.2.0'
}