-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
98 lines (93 loc) · 3.78 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
plugins {
id 'com.android.library'
id "com.vanniktech.maven.publish" version "0.25.3"
}
mavenPublishing {
coordinates("io.github.middleware-labs", "android-sdk", "2.0.7")
pom {
name = "Middleware Android RUM SDK"
description = "Middleware Android RUM SDK"
inceptionYear = "2023"
url = "https://github.com/middleware-labs/middleware-android"
licenses {
license {
name = "The Apache License, Version 2.0"
url = "http://www.apache.org/licenses/LICENSE-2.0.txt"
distribution = "http://www.apache.org/licenses/LICENSE-2.0.txt"
}
}
developers {
developer {
id = "middleware-labs"
name = "Middleware"
url = "https://github.com/middleware-labs/"
}
}
scm {
url = "https://github.com/middleware-labs/middleware-android"
connection = "scm:git:git://github.com/middleware-labs/middleware-android.git"
developerConnection = "scm:git:ssh://[email protected]/middleware-labs/middleware-android.git"
}
}
}
android {
namespace 'io.middleware.android.sdk'
compileSdk 34
defaultConfig {
minSdk 21
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
consumerProguardFiles "consumer-rules.pro"
}
buildTypes {
configureEach {
resValue("string", "rum.version", "${project.version}")
}
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}
compileOptions {
coreLibraryDesugaringEnabled true
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
testOptions {
unitTests.returnDefaultValues = true
unitTests.all {
useJUnitPlatform()
}
}
}
dependencies {
api platform('io.opentelemetry:opentelemetry-bom:1.32.0')
implementation('io.opentelemetry:opentelemetry-exporter-logging')
implementation ('io.opentelemetry.android:instrumentation:0.3.0-alpha'){
exclude group: 'io.opentelemetry.contrib', module: 'opentelemetry-disk-buffering'
}
implementation 'io.opentelemetry.contrib:opentelemetry-disk-buffering:1.31.0-alpha'
implementation 'androidx.appcompat:appcompat:1.6.1'
implementation ('io.opentelemetry:opentelemetry-exporter-otlp:1.35.0')
implementation 'com.google.code.gson:gson:2.10.1'
implementation ('io.opentelemetry:opentelemetry-extension-trace-propagators:1.34.1')
api "com.squareup.okhttp3:okhttp:4.12.0"
implementation ("io.opentelemetry.instrumentation:opentelemetry-okhttp-3.0")
implementation ('org.apache.commons:commons-compress:1.26.0') {
exclude group: 'commons-io', module: 'commons-io'
exclude group: 'org.apache.commons', module: 'commons-lang3'
}
implementation 'commons-io:commons-io:2.14.0'
implementation 'org.apache.commons:commons-lang3:3.13.0'
implementation 'commons-codec:commons-codec:1.16.0'
coreLibraryDesugaring "com.android.tools:desugar_jdk_libs:2.0.4"
testImplementation('org.mockito:mockito-core:5.7.0')
testImplementation('org.mockito:mockito-junit-jupiter:5.7.0')
testImplementation(platform('org.junit:junit-bom:5.10.1'))
testImplementation("org.junit.jupiter:junit-jupiter-api")
testImplementation("org.junit.jupiter:junit-jupiter-engine")
testImplementation("org.junit.vintage:junit-vintage-engine")
testImplementation("io.opentelemetry:opentelemetry-sdk-testing")
testImplementation('org.robolectric:robolectric:4.11.1')
testImplementation("androidx.test:core:1.5.0")
testImplementation("org.assertj:assertj-core:3.24.2")
}