-
-
Notifications
You must be signed in to change notification settings - Fork 418
/
build.gradle
81 lines (63 loc) · 2.06 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
apply plugin: "com.android.library"
apply plugin: "kotlin-android"
apply plugin: "androidx.navigation.safeargs.kotlin"
apply plugin: "org.jetbrains.dokka"
apply plugin: "com.vanniktech.maven.publish"
version VERSION_NAME
android {
compileSdk = libs.versions.compileSdk.get().toInteger()
namespace = "com.mikepenz.aboutlibraries"
defaultConfig {
minSdk = libs.versions.minSdk.get().toInteger()
versionName VERSION_NAME
versionCode Integer.parseInt(VERSION_CODE)
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
}
}
buildFeatures {
viewBinding true
}
productFlavors {
}
lintOptions {
abortOnError false
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_11
targetCompatibility JavaVersion.VERSION_11
}
kotlinOptions {
jvmTarget = "11"
}
// specify the artifactId as module-name for kotlin
kotlinOptions.freeCompilerArgs += ["-module-name", POM_ARTIFACT_ID]
}
dependencies {
api project(':aboutlibraries-core')
implementation(libs.androidx.core.ktx)
implementation(libs.bundles.androidx.lifecycle)
implementation(libs.androidx.cardView)
implementation(libs.androidx.recyclerView)
implementation(libs.google.material)
// Coroutines
implementation(libs.kotlin.coroutines.core)
// add the constraintLayout used to create the items and headers
implementation(libs.androidx.constraintLayout)
// used to fill the RecyclerView with the items
// and provides single and multi selection, expandable items
// https://github.com/mikepenz/FastAdapter
implementation(libs.fastAdapter.core)
// navigation
implementation(libs.androidx.navigation)
}
import com.vanniktech.maven.publish.SonatypeHost
if (project.hasProperty('pushall') || project.hasProperty('library_only')) {
mavenPublishing {
publishToMavenCentral(SonatypeHost.S01)
signAllPublications()
}
}