-
Notifications
You must be signed in to change notification settings - Fork 21
/
build.gradle
48 lines (40 loc) · 1.4 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
apply plugin: 'com.android.library'
apply plugin: 'kotlin-android'
ext.versionMajor = 1
ext.versionMinor = 2
ext.versionPatch = 1
android {
compileSdkVersion 30
defaultConfig {
minSdkVersion 15
targetSdkVersion 30
versionCode versionMajor * 100000 + versionMinor * 100 + versionPatch * 1
versionName "$versionMajor.$versionMinor.$versionPatch"
setProperty("archivesBaseName", "expandable-fab")
// Changes the name of generated AAR artifacts to be more descriptive
libraryVariants.all { variant ->
variant.outputs.all { output ->
if (outputFileName.endsWith('.aar')) {
outputFileName = "${archivesBaseName}-${versionName}.aar"
}
}
}
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}
sourceSets {
main.java.srcDirs += 'src/main/kotlin'
}
}
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation"org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
implementation 'com.google.android.material:material:1.4.0'
implementation 'androidx.appcompat:appcompat:1.3.1'
}
apply from: 'generate-docs-and-update-website.gradle'
apply from: 'publish-artifacts-to-maven-repo.gradle'