-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
105 lines (84 loc) · 2.79 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
import com.android.build.gradle.AppPlugin
import com.android.build.gradle.LibraryPlugin
buildscript {
apply from: "dependencies.gradle"
repositories {
google()
jcenter()
}
dependencies {
classpath "com.android.tools.build:gradle:${versions.gradle}"
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:${versions.kotlin}"
}
}
allprojects {
repositories {
google()
jcenter()
}
}
subprojects {
def directories = ["shared", "feature"]
if (!directories.contains(project.name)) {
if (project.name == "app") {
apply plugin: AppPlugin
} else {
apply plugin: LibraryPlugin
}
apply plugin: 'kotlin-android'
apply plugin: "kotlin-android-extensions"
sourceSets {
main.java.srcDirs += ["src/main/kotlin"]
test.java.srcDirs += ["src/test/kotlin"]
androidTest.java.srcDirs += ["src/androidTest/kotlin"]
}
android {
defaultConfig {
compileSdkVersion 30
buildToolsVersion "30.0.2"
minSdkVersion 21
targetSdkVersion 30
versionCode 1
versionName "1.0"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
kotlinOptions {
jvmTarget = '1.8'
useIR = true
}
composeOptions {
kotlinCompilerVersion "${versions.kotlin}"
kotlinCompilerExtensionVersion "${versions.compose}"
}
buildFeatures {
compose true
}
}
dependencies {
implementation "org.jetbrains.kotlin:kotlin-stdlib:${versions.kotlin}"
implementation "androidx.core:core-ktx:${versions.coreKtx}"
implementation "androidx.appcompat:appcompat:${versions.appCompat}"
implementation "androidx.datastore:datastore-preferences:${versions.preferences}"
implementation "androidx.navigation:navigation-fragment-ktx:${versions.navigation}"
implementation "androidx.navigation:navigation-ui-ktx:${versions.navigation}"
implementation "androidx.navigation:navigation-compose:${versions.navigationCompose}"
implementation "androidx.compose.ui:ui:${versions.compose}"
implementation "androidx.compose.ui:ui-tooling:${versions.compose}"
implementation "androidx.compose.foundation:foundation:${versions.compose}"
implementation "androidx.compose.material:material:${versions.compose}"
implementation "androidx.compose.material:material-icons-core:${versions.compose}"
implementation "androidx.compose.material:material-icons-extended:${versions.compose}"
implementation "androidx.compose.runtime:runtime-livedata:${versions.compose}"
implementation "org.koin:koin-androidx-scope:${versions.koin}"
implementation "org.koin:koin-androidx-viewmodel:${versions.koin}"
implementation "org.koin:koin-androidx-compose:${versions.koin}"
}
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}