-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathbuild.gradle
96 lines (80 loc) · 3.07 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
89
90
91
92
93
94
95
96
plugins {
id 'com.android.application'
id 'kotlin-android'
id 'kotlin-kapt'
id 'dagger.hilt.android.plugin'
}
android {
compileSdk CompileSdkVersion
defaultConfig {
applicationId "com.khoshnaw.basicmvi"
minSdkVersion MinSdkVersion
targetSdkVersion TargetSdkVersion
versionCode 1
versionName "1.0.0"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}
buildFeatures {
dataBinding true
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}
buildTypes.each {
it.buildConfigField 'String', 'TMDB_API_BASE_URL', '"' + project.properties['tmdb_api_base_url'] + '"'
it.buildConfigField "String", "TMDB_API_KEY", '"' + project.properties["tmdb_api_key"] + '"'
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_11
targetCompatibility JavaVersion.VERSION_11
}
kotlinOptions {
jvmTarget = JavaVersion.VERSION_11
}
}
dependencies {
//region setup
api project(path: ':ui')
api project(path: ':db')
api project(path: ':remote')
//endregion setup
//region basic tools
implementation "com.android.support:multidex:$multidexVersion"
implementation "com.jakewharton.timber:timber:$timberVersion"
//endregion basic tools
//region hilt
implementation "com.google.dagger:hilt-android:$hiltAndroidVersion"
kapt "com.google.dagger:hilt-compiler:$hiltCompilerVersion"
kapt "com.google.dagger:hilt-android-compiler:$hiltAndroidCompilerVersion"
kapt "androidx.hilt:hilt-compiler:$androidxHiltCompilerVersion"
implementation "androidx.hilt:hilt-lifecycle-viewmodel:$hiltLifecycleViewmodelVersion"
//endregion hilt
//region okhttp
implementation "com.squareup.okhttp3:okhttp:$okhttpVersion"
implementation "com.squareup.okhttp3:logging-interceptor:$loggingInterceptorVersion"
implementation "com.squareup.retrofit2:retrofit:$retrofitVersion"
//endregion okhttp
//region room
implementation "androidx.room:room-runtime:$roomRuntimeVersion"
kapt "androidx.room:room-compiler:$roomCompilerVersion1"
implementation "androidx.room:room-ktx:$roomKtxVersion"
testImplementation "androidx.room:room-testing:$roomTestingVersion"
//endregion room
//region moshi
implementation "com.squareup.moshi:moshi:$moshiVersion"
implementation "com.squareup.moshi:moshi-kotlin:$moshiKotlinVersion"
implementation "com.squareup.retrofit2:converter-moshi:$converterMoshiVersion"
//endregion moshi
//region tests
testImplementation "junit:junit:$junitVersion"
testImplementation "io.mockk:mockk:$mockkVersion"
testImplementation "com.google.truth:truth:$truthVersion"
//endregion tests
//region android Test
androidTestImplementation "androidx.test.ext:junit:$androidJunitVersion"
androidTestImplementation "androidx.test.espresso:espresso-core:$espressoCoreVersion"
//endregion android Test
}