-
Notifications
You must be signed in to change notification settings - Fork 90
Expand file tree
/
Copy pathbuild.gradle
More file actions
78 lines (56 loc) · 2.17 KB
/
build.gradle
File metadata and controls
78 lines (56 loc) · 2.17 KB
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
apply plugin: 'com.android.application'
apply plugin: 'kotlin-android'
apply plugin: 'kotlin-kapt'
android {
compileSdkVersion 29
defaultConfig {
minSdkVersion 19
targetSdkVersion 29
versionCode 1
versionName "1.0"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}
compileOptions {
sourceCompatibility = 1.8
targetCompatibility = 1.8
}
kotlinOptions {
jvmTarget = "1.8"
}
dataBinding {
enabled = true
}
namespace 'com.smarttoolfactory.tutorial6_4_navigationui_viewpager_fragmenttoolbar'
}
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
// Kotlin
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$rootProject.kotlinVersion"
// Core for extension functions
implementation 'androidx.core:core-ktx:1.3.0'
// Support, Material and Components
implementation "androidx.appcompat:appcompat:$rootProject.appCompatVersion"
// ConstraintLayout
implementation "androidx.constraintlayout:constraintlayout:$rootProject.constraintLayoutVersion"
// ViewPager2
implementation "androidx.viewpager2:viewpager2:$rootProject.viewPager2Version"
// Material
implementation "com.google.android.material:material:$rootProject.materialVersion"
//RecyclerView
implementation "androidx.recyclerview:recyclerview:$rootProject.recyclerViewVersion"
//Navigation
implementation "androidx.navigation:navigation-fragment-ktx:$rootProject.navigationVersion"
implementation "androidx.navigation:navigation-ui-ktx:$rootProject.navigationVersion"
implementation "androidx.navigation:navigation-runtime-ktx:$rootProject.navigationVersion"
// Leak Canary
debugImplementation 'com.squareup.leakcanary:leakcanary-android:2.4'
testImplementation 'junit:junit:4.+'
androidTestImplementation 'androidx.test.ext:junit:1.1.1'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'
}