forked from mixpanel/mixpanel-android
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
97 lines (81 loc) · 2.45 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
buildscript {
repositories {
mavenCentral()
google()
}
dependencies {
classpath 'com.android.tools.build:gradle:4.1.1'
}
}
apply plugin: 'com.android.library'
apply plugin: 'maven'
apply plugin: 'signing'
group = GROUP
version = VERSION_NAME
android {
compileSdkVersion 31
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_7
targetCompatibility JavaVersion.VERSION_1_7
}
lintOptions {
abortOnError false
}
defaultConfig {
minSdkVersion 14
targetSdkVersion 31
multiDexEnabled true
testApplicationId "com.mixpanel.android.mpmetrics"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
consumerProguardFiles 'proguard.txt'
buildConfigField "String", "MIXPANEL_VERSION", "\"${version}\""
lintOptions {
abortOnError true
warningsAsErrors false
disable "UnusedResources"
textOutput "stdout"
textReport true
}
testOptions {
execution 'ANDROIDX_TEST_ORCHESTRATOR'
}
}
buildTypes {
debug{
minifyEnabled false
debuggable true
testCoverageEnabled true
}
release {
minifyEnabled false
}
}
}
allprojects {
gradle.projectsEvaluated {
tasks.withType(JavaCompile) {
options.compilerArgs << "-Xlint:unchecked" << "-Xlint:deprecation"
}
}
repositories {
mavenCentral()
google()
}
}
// Note- *all* dependencies are marked as optional in our final
// pom! If you need a transitive dependency in the library, you'll
// have to change the bit in uploadArchives that marks all dependencies as optional.
dependencies {
implementation "androidx.annotation:annotation:1.1.0"
// AndroidJUnitRunner and JUnit Rules
testImplementation 'junit:junit:4.12'
androidTestImplementation 'androidx.test:core:1.4.0'
androidTestImplementation 'androidx.test:runner:1.4.0'
androidTestImplementation 'androidx.test:rules:1.4.0'
androidTestImplementation 'androidx.test.ext:junit:1.1.3'
androidTestImplementation 'androidx.test.ext:truth:1.4.0'
androidTestImplementation "org.mockito:mockito-android:2.25.1"
androidTestUtil 'androidx.test:orchestrator:1.4.0'
testImplementation "org.mockito:mockito-core:2.25.1"
}
apply from: rootProject.file('maven.gradle')