forked from johndpope/AndroidClientDownload
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
98 lines (86 loc) · 2.76 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
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:2.2.3'
classpath 'com.github.dcendents:android-maven-gradle-plugin:1.5'
classpath 'com.dicedmelon.gradle:jacoco-android:0.1.2'
}
}
allprojects {
repositories {
jcenter()
maven { url "https://maven.google.com" }
maven { url "https://jitpack.io" }
}
}
apply plugin: 'com.android.library'
apply plugin: 'com.github.dcendents.android-maven'
group='com.github.EricssonBroadcastServices'
ext {
releaseArtifact = 'empplayer-download'
releaseVersion = 'DEV-LATEST-VERSION'
releaseDescription = 'The EMP Player library download module.'
libraryTag = 'master-SNAPSHOT'
}
android {
compileSdkVersion 26
buildToolsVersion "26.0.1"
defaultConfig {
minSdkVersion 19
targetSdkVersion 26
versionName version
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
buildTypes {
debug {
resValue "string", "empdownloader_version", project.ext.releaseVersion
}
release {
resValue "string", "empdownloader_version", project.ext.releaseVersion
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
lintOptions {
abortOnError false
}
}
dependencies {
compile fileTree(include: ['*.jar'], dir: 'libs')
compile 'com.android.support:support-core-utils:26.0.1'
compile 'com.google.android.exoplayer:exoplayer:2.7.0'
if (project.hasProperty('hasParentProject')) {
compile project(':libraries:exposure')
compile project(':libraries:analytics')
}
else {
compile "com.github.EricssonBroadcastServices:AndroidClientExposure:${project.ext.libraryTag}"
compile "com.github.EricssonBroadcastServices:AndroidClientAnalytics:${project.ext.libraryTag}"
}
// Test Dependencies
testCompile "org.mockito:mockito-core:2.+"
testCompile "org.robolectric:robolectric:3.5.1"
testCompile 'junit:junit:4.12'
}
task sourcesJar(type: Jar) {
from android.sourceSets.main.java.srcDirs
classifier = 'sources'
}
task javadoc(type: Javadoc) {
failOnError false
source = android.sourceSets.main.java.sourceFiles
classpath += project.files(android.getBootClasspath().join(File.pathSeparator))
classpath += configurations.compile
}
// build a jar with javadoc
task javadocJar(type: Jar, dependsOn: javadoc) {
classifier = 'javadoc'
from javadoc.destinationDir
}
artifacts {
archives sourcesJar
archives javadocJar
}
apply from: 'https://raw.githubusercontent.com/EricssonBroadcastServices/AndroidClientUtilities/master/jacoco.gradle'