This repository has been archived by the owner on Feb 14, 2019. It is now read-only.
/
build.gradle
77 lines (59 loc) · 2.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
69
70
71
72
73
74
75
76
77
apply plugin: 'com.android.library'
// This is the library version used when deploying the artifact
version = '0.3.1'
ext {
bintrayRepo = 'android'
bintrayName = 'cloud-sdk'
bintrayOrg = 'particle'
publishedGroupId = 'io.particle'
libraryName = 'Particle (formerly Spark) Android Cloud SDK library '
artifact = 'cloudsdk'
libraryDescription = 'Particle (formerly Spark) Android Cloud SDK library\n' +
'The Particle Android Cloud SDK enables Android apps to interact with Particle-powered connected products via the Particle Cloud.\n' +
'Library will allow you to easily manage active user sessions to Particle cloud, query for device info,\n' +
'read and write data to/from Particle Core/Photon devices and (via exposed variables and functions)\n' +
'publish and subscribe events to/from the cloud or to/from devices (coming soon).'
siteUrl = 'https://github.com/spark/spark-sdk-android'
gitUrl = 'https://github.com/spark/spark-sdk-android.git'
libraryVersion = project.version
developerId = 'idok'
developerName = 'Ido Kleinman'
developerEmail = 'ido@particle.io'
licenseName = 'The Apache Software License, Version 2.0'
licenseUrl = 'http://www.apache.org/licenses/LICENSE-2.0.txt'
allLicenses = ["Apache-2.0"]
}
android {
compileSdkVersion 23
buildToolsVersion '23.0.2'
defaultConfig {
minSdkVersion 15
targetSdkVersion 23
versionCode 1
versionName project.version
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_7
targetCompatibility JavaVersion.VERSION_1_7
}
lintOptions {
disable 'InvalidPackage'
}
packagingOptions {
exclude 'META-INF/LICENSE.txt'
exclude 'META-INF/NOTICE.txt'
}
}
dependencies {
compile fileTree(include: ['*.jar'], dir: 'libs')
compile 'org.apache.commons:commons-lang3:3.3.2'
compile 'com.google.code.gson:gson:2.4'
compile 'com.google.guava:guava:18.0'
compile 'com.squareup.okhttp:okhttp:2.5.0'
compile 'com.squareup.okio:okio:1.6.0'
compile 'com.squareup.retrofit:retrofit:1.9.0'
compile 'net.danlew:android.joda:2.9.0'
compile 'com.android.support:support-v4:23.1.1'
}
apply from: '../pom_generator_v1.gradle'
apply from: '../bintray_upload_v1.gradle'