-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathbuild.gradle
More file actions
92 lines (79 loc) · 2.77 KB
/
build.gradle
File metadata and controls
92 lines (79 loc) · 2.77 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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
buildscript {
repositories {
mavenCentral()
jcenter()
google()
}
dependencies {
classpath 'com.android.tools.build:gradle:4.1.3'
classpath 'com.f2prateek.javafmt:javafmt:0.1.6'
classpath 'io.codearte.gradle.nexus:gradle-nexus-staging-plugin:0.11.0'
}
}
// Use -Prelease or $ORG_GRADLE_PROJECT_RELEASE="true" to mark the project as a release
if (!hasProperty('NIELSEN_USER') && !hasProperty('NIELSEN_AUTHCODE')) {
ext.NIELSEN_USER = System.getenv('NIELSEN_USER')
ext.NIELSEN_AUTHCODE = System.getenv('NIELSEN_AUTHCODE')
}
ext.isRelease = hasProperty('release')
apply plugin: 'com.android.library'
apply plugin: 'com.f2prateek.javafmt'
android {
compileSdkVersion 28
buildToolsVersion '28.0.3'
defaultConfig {
minSdkVersion 14
targetSdkVersion 28
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_7
targetCompatibility JavaVersion.VERSION_1_7
}
lintOptions {
abortOnError false
}
testOptions {
unitTests {
all {
jvmArgs '-noverify'
}
includeAndroidResources = true
}
}
}
dependencies {
repositories {
mavenCentral()
jcenter()
google()
maven {
url 'https://raw.githubusercontent.com/NielsenDigitalSDK/nielsenappsdk-android/master/'
credentials {
// Make sure you add nielsen_user and nielsen_authCode with respective nielsen provided
// values to global gradle.properties file
// See https://engineeringportal.nielsen.com/docs/Digital_Measurement_Android_Artifactory_Guide
username = NIELSEN_USER
password = NIELSEN_AUTHCODE
}
authentication {
basic(BasicAuthentication)
}
}
}
api 'com.segment.analytics.android:analytics:4.10.4'
api 'com.nielsenappsdk:global:[6.2,)'
testImplementation 'com.segment.analytics.android:analytics-tests:4.3.1'
testImplementation 'junit:junit:4.12'
testImplementation 'org.skyscreamer:jsonassert:1.5.0'
testImplementation 'org.robolectric:robolectric:4.5'
testImplementation 'org.mockito:mockito-core:2.28.0'
testImplementation 'net.bytebuddy:byte-buddy:1.9.10'
testImplementation 'org.objenesis:objenesis:3.0.1'
implementation group: 'androidx.lifecycle', name: 'lifecycle-common-java8', version: '2.3.0'
// Required for local (non-android) testing
testImplementation 'org.json:json:20180813'
}
apply from: rootProject.file('gradle/attach-jar.gradle')
apply from: rootProject.file('gradle/upload.gradle')
apply from: rootProject.file('gradle/sign.gradle')
apply from: rootProject.file('gradle/promote.gradle')