/
build.gradle
115 lines (93 loc) · 3.17 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
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
plugins {
id 'com.github.dcendents.android-maven' version '2.0'
id 'com.jfrog.bintray' version '1.7.3'
}
apply plugin: 'com.android.library'
apply plugin: 'kotlin-android'
group = 'com.filestack'
version = '5.3.0'
project.archivesBaseName = 'filestack-android'
android {
compileSdkVersion 28
defaultConfig {
minSdkVersion 16
targetSdkVersion 28
versionCode 1
versionName version
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
vectorDrawables {
useSupportLibrary true
}
resourcePrefix 'filestack__'
buildConfigField "String", "FILESTACK_ANDROID_VERSION", "\"$version\""
}
buildTypes {
release {
minifyEnabled false
consumerProguardFile 'consumer-proguard-rules.pro'
}
}
}
dependencies {
api 'com.filestack:filestack-java:0.9.0'
implementation 'com.android.support:appcompat-v7:28.0.0'
implementation 'com.android.support:design:28.0.0'
implementation 'com.android.support:customtabs:28.0.0'
implementation 'com.squareup.picasso:picasso:2.5.2'
implementation 'io.reactivex.rxjava2:rxandroid:2.1.0'
androidTestImplementation('com.android.support.test.espresso:espresso-core:2.2.2', {
exclude group: 'com.android.support', module: 'support-annotations'
})
testImplementation 'junit:junit:4.12'
testImplementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
}
task sourcesJar(type: Jar) {
from android.sourceSets.main.java.srcDirs
classifier = 'sources'
}
task javadoc(type: Javadoc) {
source = android.sourceSets.main.java.srcDirs
options.addStringOption('Xdoclint:none', '-quiet')
classpath += project.files(android.getBootClasspath().join(File.pathSeparator))
destinationDir = file("../docs/")
}
// Add dependencies to javadoc classpath so annotations work
afterEvaluate {
javadoc.classpath += files(android.libraryVariants.collect { variant ->
variant.javaCompiler.classpath.files
})
}
task javadocJar(type: Jar, dependsOn: javadoc) {
classifier = 'javadoc'
from javadoc.destinationDir
}
artifacts {
archives javadocJar
archives sourcesJar
}
bintray {
user = project.hasProperty('bintrayUser') ? project.property('bintrayUser')
: System.getenv('BINTRAY_USER')
key = project.hasProperty('bintrayApiKey') ? project.property('bintrayApiKey')
: System.getenv('BINTRAY_API_KEY')
configurations = ['archives']
publish = true
pkg {
repo = 'maven'
userOrg = 'filestack'
name = 'filestack-android'
desc = 'Official Android SDK for Filestack.'
publicDownloadNumbers = true
licenses = ['Apache-2.0']
websiteUrl = 'https://filestack.com'
vcsUrl = 'https://github.com/filestack/filestack-android.git'
issueTrackerUrl = 'https://github.com/filestack/filestack-android/issues'
githubRepo = 'filestack/filestack-android'
githubReleaseNotesFile = 'CHANGELOG.md'
version {
name = project.version
vcsTag = project.version
released = new Date()
}
}
}