-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle
68 lines (58 loc) · 1.32 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
buildscript {
repositories {
google()
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.4.2'
classpath 'org.jetbrains.kotlin:kotlin-gradle-plugin:1.3.41'
}
}
plugins {
id 'maven-publish'
id 'com.github.node-gradle.node' version '3.5.1'
}
apply plugin: 'com.android.library'
archivesBaseName = "thumbprint-tokens"
node {
nodeModulesDir = file("${project.projectDir}")
download = true
}
allprojects {
repositories {
google()
jcenter()
}
}
android {
compileSdkVersion 28
buildToolsVersion '29.0.1'
defaultConfig {
minSdkVersion 15
targetSdkVersion 28
versionCode 1
versionName '1.0'
}
buildTypes {
release {
minifyEnabled false
}
}
sourceSets {
main.res.srcDirs = ["${projectDir}/dist/android/index.xml"]
main.manifest.srcFile "${projectDir}/AndroidManifest.xml"
}
}
task buildThumbprintDistFiles(type: YarnTask) {
args = ['run', 'build']
}
buildThumbprintDistFiles.dependsOn 'yarn'
preBuild.dependsOn 'buildThumbprintDistFiles'
publishing {
publications {
maven(MavenPublication) {
groupId = 'com.github.thumbtack'
artifact("${buildDir}/outputs/aar/thumbprint-tokens-release.aar")
}
}
}