forked from mixpanel/mixpanel-android
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
74 lines (63 loc) · 1.81 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
buildscript {
repositories {
google()
jcenter()
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.2.1'
classpath 'com.github.dcendents:android-maven-gradle-plugin:2.1'
}
}
apply plugin: 'com.android.library'
apply plugin: 'signing'
apply plugin: 'com.github.dcendents.android-maven'
group = GROUP
version = VERSION_NAME
ext {
targetSdk = 33
compileSdk = 33
}
android {
compileSdkVersion rootProject.ext.compileSdk
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_7
targetCompatibility JavaVersion.VERSION_1_7
}
defaultConfig {
minSdkVersion 21
targetSdkVersion rootProject.ext.targetSdk
testApplicationId "com.mixpanel.android.mpmetrics"
testInstrumentationRunner "android.test.InstrumentationTestRunner"
consumerProguardFiles 'proguard.txt'
buildConfigField "String", "MIXPANEL_VERSION", "\"${version}\""
lintOptions {
abortOnError true
warningsAsErrors false
disable "UnusedResources"
textOutput "stdout"
textReport true
}
}
}
allprojects {
repositories {
google()
jcenter()
}
gradle.projectsEvaluated {
tasks.withType(JavaCompile) {
options.compilerArgs << "-Xlint:unchecked" << "-Xlint:deprecation"
}
}
}
// 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-jvm:1.6.0'
implementation 'com.squareup.okhttp3:okhttp:4.10.0'
}
task wrapper(type: Wrapper) {
gradleVersion = '2.14.1'
}