-
-
Notifications
You must be signed in to change notification settings - Fork 30
/
build.gradle
90 lines (73 loc) · 2.28 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
plugins {
id 'com.android.library'
id 'kotlin-android'
id 'org.jetbrains.dokka'
}
android {
compileSdk 34
defaultConfig {
minSdk 21
targetSdk 34
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_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
kotlinOptions {
jvmTarget = '1.8'
}
buildFeatures {
buildConfig false
compose true
}
composeOptions {
kotlinCompilerExtensionVersion composeCompilerVersion
}
packagingOptions {
resources {
excludes += '/META-INF/{AL2.0,LGPL2.1}'
}
}
testOptions {
unitTests.returnDefaultValues = true
}
namespace 'dev.shreyaspatil.capturable'
}
dependencies {
// Kotlin Coroutines
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-core:$coroutinesVersion"
// Android core
implementation "androidx.core:core-ktx:$androidCoreVersion"
// Jetpack Compose
def composeBom = platform("androidx.compose:compose-bom:$composeBomVersion")
implementation composeBom
implementation "androidx.compose.ui:ui"
implementation "androidx.compose.runtime:runtime"
implementation "androidx.compose.foundation:foundation"
// Testing
testImplementation "junit:junit:$jUnitVersion"
testImplementation "org.jetbrains.kotlinx:kotlinx-coroutines-test:$coroutinesVersion"
androidTestImplementation composeBom
androidTestImplementation "androidx.test.ext:junit:$androidJUnitTestVersion"
androidTestImplementation "androidx.compose.ui:ui-test-junit4"
androidTestImplementation "androidx.compose.ui:ui-test-manifest"
// For using UI components in test
androidTestImplementation "androidx.compose.material:material"
}
dokkaHtml.configure {
outputDirectory.set(rootProject.mkdir("docs"))
dokkaSourceSets {
named("main") {
noAndroidSdkLink.set(false)
}
}
}
apply plugin: 'com.vanniktech.maven.publish'