-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcommon.gradle
78 lines (73 loc) · 2.96 KB
/
common.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
android {
compileSdk 31
defaultConfig {
minSdk 23
targetSdk 31
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
consumerProguardFiles "consumer-rules.pro"
versionCode 22
versionName "0.0.22"
}
buildTypes {
debug {
def configPropertiesFile = rootProject.file("debug.properties")
def configProperties = new Properties()
configProperties.load(new FileInputStream(configPropertiesFile))
buildConfigField("String", "BASE_URL", configProperties['BASE_URL'])
versionNameSuffix '-DEBUG'
}
dev {
def configPropertiesFile = rootProject.file("dev.properties")
def configProperties = new Properties()
configProperties.load(new FileInputStream(configPropertiesFile))
buildConfigField("String", "BASE_URL", configProperties['BASE_URL'])
versionNameSuffix '-DEV'
}
release {
def configPropertiesFile = rootProject.file("release.properties")
def configProperties = new Properties()
configProperties.load(new FileInputStream(configPropertiesFile))
buildConfigField("String", "BASE_URL", configProperties['BASE_URL'])
versionNameSuffix '-RELEASE'
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
kotlinOptions {
jvmTarget = '1.8'
}
hilt {
// enableExperimentalClasspathAggregation = true
enableAggregatingTask = true
}
}
dependencies {
implementation Dependencies.CORE_KTX
implementation Dependencies.APP_COMPAT
implementation Dependencies.MATERIAL
implementation Dependencies.CONSTRAINT_LAYOUT
implementation Dependencies.LOGGER
implementation Dependencies.HILT_ANDROID
kapt Dependencies.HILT_ANDROID_COMPILER
// testImplementation TestDependencies.HILT_TESTING
// kaptTest TestDependencies.HILT_ANDROID_COMPILER
androidTestImplementation TestDependencies.HILT_TESTING
kaptAndroidTest TestDependencies.HILT_ANDROID_COMPILER
implementation Dependencies.RXJAVA
implementation Dependencies.RXKOTLIN
implementation Dependencies.RXANDROID
testImplementation TestDependencies.JUNIT
testImplementation TestDependencies.TRUTH
testImplementation TestDependencies.ANDROIDX_TEST_CORE
androidTestImplementation AndroidTestDependencies.ESPRESSO_CORE
androidTestImplementation AndroidTestDependencies.JUNIT
androidTestImplementation AndroidTestDependencies.ANDROIDX_TEST_EXTENSION_TRUTH
testImplementation TestDependencies.MOCKITO_CORE
testImplementation TestDependencies.MOCKITO_INLINE
androidTestImplementation AndroidTestDependencies.MOCKITO_ANDROID
implementation Dependencies.GUAVA
}