-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
88 lines (75 loc) · 2.48 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
plugins {
id 'com.android.library'
id 'org.jetbrains.kotlin.android'
}
ext {
PUBLISH_GROUP_ID = 'com.everli'
PUBLISH_VERSION = rootVersionName
PUBLISH_ARTIFACT_ID = 'designsystem-utilities'
}
apply from: "${rootProject.projectDir}/scripts/publish-module.gradle"
android {
namespace 'com.everli.designsystem.utilities'
compileSdk 33
defaultConfig {
minSdk 21
targetSdk 33
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
consumerProguardFiles "consumer-rules.pro"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_17
targetCompatibility JavaVersion.VERSION_17
}
kotlinOptions {
jvmTarget = '17'
}
buildFeatures {
compose true
}
composeOptions {
kotlinCompilerExtensionVersion compose_compiler_version
kotlinCompilerVersion kotlin_version
}
testOptions {
unitTests.all {
useJUnitPlatform()
}
}
packagingOptions {
jniLibs {
excludes += ['META-INF/licenses/**']
}
resources {
excludes += ['META-INF/licenses/**', 'META-INF/AL2.0', 'META-INF/LGPL2.1']
}
}
}
dependencies {
// Test -> Kotest
testImplementation "org.junit.jupiter:junit-jupiter:$junit_jupiter_version"
testImplementation "io.kotest:kotest-runner-junit5:$kotest_version"
testImplementation "io.kotest:kotest-assertions-core:$kotest_version"
// Android Test -> JUnit4
androidTestImplementation "io.kotest:kotest-assertions-core:$kotest_version"
androidTestImplementation "androidx.test.ext:junit:$androidx_test_ext_version"
androidTestImplementation "androidx.test.espresso:espresso-core:$androidx_test_espresso_core_version"
androidTestImplementation "androidx.compose.ui:ui-test-junit4:$compose_version"
// Debug
debugImplementation "androidx.compose.ui:ui-tooling:$compose_version"
debugImplementation("androidx.compose.ui:ui-test-manifest:$compose_version")
// Kotlin
implementation "androidx.core:core-ktx:$androidx_core_ktx_version"
implementation "androidx.appcompat:appcompat:$androidx_appcompact_version"
// Compose & Material
implementation "com.google.android.material:material:$material_version"
implementation "androidx.compose.ui:ui:$compose_version"
implementation "androidx.compose.material:material:$compose_material_version"
implementation "androidx.compose.ui:ui-tooling-preview:$compose_version"
}