-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathbuild.gradle
More file actions
77 lines (68 loc) · 2.17 KB
/
build.gradle
File metadata and controls
77 lines (68 loc) · 2.17 KB
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
buildscript {
repositories {
jcenter()
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:2.2.2'
classpath 'com.novoda:bintray-release:0.3.4'
}
}
apply plugin: 'com.android.library'
// http://sunghwanjo94.blogspot.kr/2015/07/jcenter.html
// https://github.com/novoda/bintray-release
// $ ./gradlew clean build bintrayUpload -PbintrayUser=BINTRAY_USERNAME -PbintrayKey=BINTRAY_KEY -PdryRun=false
apply plugin: 'com.novoda.bintray-release'
publish {
userOrg = 'danielworld'
groupId = 'com.danielworld'
artifactId = 'http-connection-library'
publishVersion = '1.1.9'
desc = 'A wrapper for Okhttp library and it helps connection to server using HTTP / HTTPS easily'
website = 'https://github.com/DanielWorld/HttpLibrary'
issueTracker = "${website}/issues"
repository = "${website}.git"
}
android {
compileSdkVersion 24
buildToolsVersion "24.0.3"
defaultConfig {
minSdkVersion 10
targetSdkVersion 24
versionCode 1
versionName "1.1.9"
}
lintOptions {
abortOnError false
}
// Daniel (2016-04-15 15:25:17): https://jitpack.io 에서 gradle build 시 오류가 발생..
// gradle은 참조된 라이브러리가 debug 모드로 빌드가 안되는 문제를 방지하는 설정. http://stackoverflow.com/a/30134955/361100
// defaultPublishConfig 'release'
// publishNonDefault true
// productFlavors {
// library {
// }
// }
buildTypes {
debug {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
repositories {
jcenter()
mavenCentral()
}
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
compile 'com.squareup.okhttp3:okhttp:3.4.2'
compile 'com.squareup.okio:okio:1.11.0'
compile 'com.android.support:support-annotations:25.0.1'
// Required for local unit tests (JUnit 4 framework)
testCompile 'junit:junit:4.12'
}