-
-
Notifications
You must be signed in to change notification settings - Fork 244
/
Copy pathbuild.gradle
138 lines (110 loc) · 4.14 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
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
/*
* Copyright 2020 Shreyas Patil
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
apply plugin: 'com.android.application'
apply plugin: 'kotlin-android'
apply plugin: 'kotlin-kapt'
apply plugin: 'androidx.navigation.safeargs.kotlin'
apply plugin: 'dagger.hilt.android.plugin'
android {
compileSdkVersion ProjectConfig.compileSdkVersion
defaultConfig {
applicationId "dev.shreyaspatil.noty.simpleapp"
minSdkVersion ProjectConfig.minSdkVersion
targetSdkVersion ProjectConfig.targetSdkVersion
versionCode ProjectConfig.versionCode
versionName ProjectConfig.versionName
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}
buildFeatures {
viewBinding true
}
buildTypes {
debug {
minifyEnabled false
}
release {
minifyEnabled true
shrinkResources true
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}
compileOptions {
sourceCompatibility javaVersion
targetCompatibility javaVersion
}
kotlinOptions {
jvmTarget = javaVersion
}
kotlin {
jvmToolchain(javaVersion.toInteger())
}
lint {
abortOnError false
}
namespace 'dev.shreyaspatil.noty.simpleapp'
}
tasks.withType(org.jetbrains.kotlin.gradle.tasks.KotlinCompile).all {
kotlinOptions {
jvmTarget = javaVersion
}
}
kapt {
correctErrorTypes true
}
dependencies {
implementation fileTree(dir: "libs", include: ["*.jar"])
// Kotlin Stdlib
implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlinVersion"
// Core Module
implementation project(":core")
// Common App Module
implementation project(":app")
// Coroutines (Android)
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-android:$coroutinesVersion"
// Android
implementation "androidx.core:core-ktx:$coreKtxVersion"
implementation "androidx.legacy:legacy-support-v4:$legacySupportVersion"
implementation "androidx.appcompat:appcompat:$appcompatVersion"
implementation "androidx.constraintlayout:constraintlayout:$constraintlayoutVersion"
// Activity & Fragment
implementation "androidx.activity:activity-ktx:$activityVersion"
implementation "androidx.fragment:fragment-ktx:$fragmentVersion"
// Dagger + Hilt
implementation "com.google.dagger:hilt-android:$daggerHiltVersion"
kapt "com.google.dagger:hilt-android-compiler:$daggerHiltVersion"
// Hilt + Jetpack
implementation "androidx.hilt:hilt-navigation-fragment:$jetpackHiltVersion"
implementation "androidx.hilt:hilt-work:$jetpackHiltVersion"
// Lifecycle
implementation "androidx.lifecycle:lifecycle-runtime-ktx:$lifecycleVersion"
// Material Design
implementation "com.google.android.material:material:$materialDesignVersion"
// Lottie Animation Library
implementation "com.airbnb.android:lottie:$lottieVersion"
// Navigation
implementation "androidx.navigation:navigation-fragment-ktx:$navigationVersion"
implementation "androidx.navigation:navigation-ui-ktx:$navigationVersion"
// WorkManager
implementation "androidx.work:work-runtime-ktx:$workmanagerVersion"
// Testing
testImplementation "junit:junit:$jUnitVersion"
// Android Testing
androidTestImplementation "androidx.test.ext:junit:$androidJUnitVersion"
androidTestImplementation "androidx.test.espresso:espresso-core:$espressoVersion"
// Leak Canary
// Uncomment this when have to check for leaks
// debugImplementation "com.squareup.leakcanary:leakcanary-android:$leakCanaryVersion"
}